From fa66f5d8c76092410f392ccc3f754c8f3b7fadda Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 16 May 2026 17:21:24 +0000 Subject: [PATCH] Implement advanced theme creation: AI generation, manual editing, and forking. - Added AI theme generation via OpenRouter in AiService. - Updated ThemesController to support manual creation, forking, and AI generation. - Created ThemeEditorVariables and ColorPicker components with Tailwind color support. - Implemented real-time theme preview in the creation flow. - Added 'Fork Theme' functionality to theme details page. - Enhanced CSS variable building to correctly handle raw HSL values. Co-authored-by: claudemyburgh <6057076+claudemyburgh@users.noreply.github.com> --- .../skills/inertia-react-development/SKILL.md | 524 -- .../skills/inertia-react-development/SKILL.md | 524 -- AGENTS.md | 9 +- CLAUDE.md | 9 +- GEMINI.md | 9 +- app/Http/Controllers/ThemesController.php | 76 +- app/Models/Theme.php | 3 +- boost.json | 1 - composer.json | 3 +- composer.lock | 32 +- database/factories/ThemeFactory.php | 40 + npm_dev.log | 5 + package-lock.json | 8 +- php_server.log | 311 ++ ...ss-DIxn22Sl.js => animate-css-BwrG5zYQ.js} | 2 +- .../{app-CVlP31Z1.js => app-D7MKN1zp.js} | 6 +- public/build/assets/app-DN02iwDR.css | 2 + public/build/assets/app-DwgJtLjQ.css | 2 - ...nce-DkF4xOip.js => appearance-8Z1L6Aly.js} | 2 +- ...bh38TuS.js => appearance-tabs-BOBvnqrB.js} | 2 +- .../{badge-BeR0IMEC.js => badge-D9nNMnEq.js} | 2 +- .../{card-BMwhGcsv.js => card-C1ekp7Ou.js} | 2 +- public/build/assets/check-BBvDdM_9.js | 1 + public/build/assets/check-CCTwZBIw.js | 1 - public/build/assets/chevron-down-Cx1PhGaQ.js | 1 - public/build/assets/chevron-down-DuPWSveW.js | 1 + ...ls-ePYKqy3O.js => color-utils-DTvyGxAC.js} | 2 +- ...93YGU9.js => confirm-password-BNeZIAHY.js} | 2 +- ...onfirm-iDcX_7zW.js => confirm-tDhmficG.js} | 2 +- .../{copy-CgW44MFY.js => copy-HrVumo6t.js} | 2 +- public/build/assets/create-BmSt6sO8.js | 1 + public/build/assets/create-DWmMMfkI.js | 1 - ...oard-DfTez4xA.js => dashboard-oAHwTN2S.js} | 2 +- ...{dialog-D1phUQb7.js => dialog-CM260op0.js} | 2 +- .../{dist-CyCRNm1V.js => dist-D5bK512v.js} | 2 +- .../{fonts-P-PzeNmJ.js => fonts-CaQ0upX0.js} | 2 +- ...3UJsxPQ.js => forgot-password-B5S_AFXd.js} | 2 +- ...{github-BytY2MM3.js => github-Be9qoVk0.js} | 2 +- public/build/assets/glow-radial-CIe4ekoG.js | 1 + public/build/assets/glow-radial-JNwxsbej.js | 1 - public/build/assets/glow-stack-BaNii-nE.js | 1 + public/build/assets/glow-stack-DaYuOL5d.js | 1 - .../{heart-DBfrxc2y.js => heart-BDAPM7f6.js} | 2 +- public/build/assets/home-C2LooHG2.js | 4211 ----------------- public/build/assets/home-C3JgkfjT.js | 4211 +++++++++++++++++ ...or-BdHD9-x4.js => input-error-CzZYqI_U.js} | 2 +- .../{label-D-AkZnW_.js => label-fRwP89Ez.js} | 2 +- ...-XO7crStb.js => loader-circle-YfjFJaoY.js} | 2 +- .../{login-B4lH5do8.js => login-00JrbYrx.js} | 2 +- public/build/assets/main-layout-DiaP0ISn.js | 1 - public/build/assets/main-layout-qej9zSi0.js | 1 + ...js => main-registry-installer-_-xwUN0S.js} | 4 +- .../build/assets/main-theme-card-B0GTBBPN.js | 1 + ...sword-CsunKxsK.js => password-BDtte38w.js} | 2 +- ...QL8S9D3F.js => password-input-__9RhIwi.js} | 2 +- ...XXB.js => placeholder-pattern-DUvj6lOE.js} | 2 +- public/build/assets/plus-D1KRmSaN.js | 1 + public/build/assets/popover-B2UUPq8p.js | 1 + public/build/assets/pricing-B924f0vZ.js | 1 - public/build/assets/pricing-BiBh6JwN.js | 1 + ...rofile-CEhMOmdF.js => profile-CQF7e4MZ.js} | 2 +- ...ister-DvZlJMq4.js => register-DjsSoOdi.js} | 2 +- ...CjTooPZv.js => reset-password-CoN8fAaC.js} | 2 +- ...urity-CnUHyk63.js => security-BxjNuG8g.js} | 2 +- ...{select-DHOWe80x.js => select-DsMxFFiu.js} | 2 +- public/build/assets/show-B7YwVVJB.js | 22 - public/build/assets/show-D6Z2FFsL.js | 22 + ...lite-DAGU8Gzo.js => socialite-BBNBBxaD.js} | 2 +- ...pinner-CoRrGFqk.js => spinner-CCI0ZpZ9.js} | 2 +- ...n-BG3RHyD9.js => subscription-C-u-O6PN.js} | 2 +- ...n-CWLd4fU4.js => subscription-DJjwwh89.js} | 2 +- .../{sun-CDBr7ehg.js => sun-r0X8DC4y.js} | 2 +- public/build/assets/tabs-CNNfAj8l.js | 1 + ...link-B7waIO2E.js => text-link-BlYfkXNw.js} | 2 +- public/build/assets/themes-BEIrAo01.js | 1 - public/build/assets/themes-dmvzolUC.js | 1 + ...kP.js => two-factor-challenge-Miwtb12I.js} | 2 +- ...-C4ojyAai.js => use-clipboard-BvQkhUu9.js} | 2 +- ...CS_.js => use-two-factor-auth-Bdh-sKJ3.js} | 2 +- ...n-PIrv5pnj.js => verification-D4buixpo.js} | 2 +- ...l-CBOEFMni.js => verify-email-D806-GRE.js} | 2 +- public/build/manifest.json | 438 +- .../components/themes/ai-theme-generator.tsx | 92 + .../js/components/themes/color-picker.tsx | 102 + .../themes/theme-editor-variables.tsx | 83 + resources/js/lib/build-css-vars.ts | 8 +- resources/js/pages/themes/create.tsx | 312 +- resources/js/pages/themes/show.tsx | 11 +- resources/js/routes/animate-css/index.ts | 89 +- resources/js/routes/appearance/index.ts | 89 +- resources/js/routes/boost/index.ts | 57 +- resources/js/routes/cashier/index.ts | 57 +- resources/js/routes/debugbar/cache/index.ts | 84 +- resources/js/routes/debugbar/index.ts | 290 +- resources/js/routes/debugbar/queries/index.ts | 57 +- resources/js/routes/fonts/index.ts | 89 +- resources/js/routes/index.ts | 513 +- resources/js/routes/login/index.ts | 57 +- resources/js/routes/password/confirm/index.ts | 57 +- resources/js/routes/password/index.ts | 497 +- resources/js/routes/profile/index.ts | 249 +- resources/js/routes/register/index.ts | 57 +- resources/js/routes/sanctum/index.ts | 89 +- resources/js/routes/security/index.ts | 89 +- resources/js/routes/socialite/index.ts | 202 +- resources/js/routes/storage/index.ts | 98 +- resources/js/routes/storage/local/index.ts | 84 +- resources/js/routes/subscription/index.ts | 268 +- resources/js/routes/themes/index.ts | 413 +- resources/js/routes/two-factor/index.ts | 626 +-- resources/js/routes/two-factor/login/index.ts | 57 +- resources/js/routes/user-password/index.ts | 75 +- resources/js/routes/verification/index.ts | 255 +- routes/web.php | 1 + tests/Feature/ThemesControllerTest.php | 82 + 115 files changed, 7943 insertions(+), 7816 deletions(-) delete mode 100644 .agents/skills/inertia-react-development/SKILL.md delete mode 100644 .claude/skills/inertia-react-development/SKILL.md create mode 100644 database/factories/ThemeFactory.php create mode 100644 npm_dev.log create mode 100644 php_server.log rename public/build/assets/{animate-css-DIxn22Sl.js => animate-css-BwrG5zYQ.js} (99%) rename public/build/assets/{app-CVlP31Z1.js => app-D7MKN1zp.js} (94%) create mode 100644 public/build/assets/app-DN02iwDR.css delete mode 100644 public/build/assets/app-DwgJtLjQ.css rename public/build/assets/{appearance-DkF4xOip.js => appearance-8Z1L6Aly.js} (83%) rename public/build/assets/{appearance-tabs-Bbh38TuS.js => appearance-tabs-BOBvnqrB.js} (90%) rename public/build/assets/{badge-BeR0IMEC.js => badge-D9nNMnEq.js} (91%) rename public/build/assets/{card-BMwhGcsv.js => card-C1ekp7Ou.js} (96%) create mode 100644 public/build/assets/check-BBvDdM_9.js delete mode 100644 public/build/assets/check-CCTwZBIw.js delete mode 100644 public/build/assets/chevron-down-Cx1PhGaQ.js create mode 100644 public/build/assets/chevron-down-DuPWSveW.js rename public/build/assets/{color-utils-ePYKqy3O.js => color-utils-DTvyGxAC.js} (80%) rename public/build/assets/{confirm-password-hf93YGU9.js => confirm-password-BNeZIAHY.js} (76%) rename public/build/assets/{confirm-iDcX_7zW.js => confirm-tDhmficG.js} (82%) rename public/build/assets/{copy-CgW44MFY.js => copy-HrVumo6t.js} (71%) create mode 100644 public/build/assets/create-BmSt6sO8.js delete mode 100644 public/build/assets/create-DWmMMfkI.js rename public/build/assets/{dashboard-DfTez4xA.js => dashboard-oAHwTN2S.js} (93%) rename public/build/assets/{dialog-D1phUQb7.js => dialog-CM260op0.js} (98%) rename public/build/assets/{dist-CyCRNm1V.js => dist-D5bK512v.js} (74%) rename public/build/assets/{fonts-P-PzeNmJ.js => fonts-CaQ0upX0.js} (94%) rename public/build/assets/{forgot-password-H3UJsxPQ.js => forgot-password-B5S_AFXd.js} (83%) rename public/build/assets/{github-BytY2MM3.js => github-Be9qoVk0.js} (83%) create mode 100644 public/build/assets/glow-radial-CIe4ekoG.js delete mode 100644 public/build/assets/glow-radial-JNwxsbej.js create mode 100644 public/build/assets/glow-stack-BaNii-nE.js delete mode 100644 public/build/assets/glow-stack-DaYuOL5d.js rename public/build/assets/{heart-DBfrxc2y.js => heart-BDAPM7f6.js} (72%) delete mode 100644 public/build/assets/home-C2LooHG2.js create mode 100644 public/build/assets/home-C3JgkfjT.js rename public/build/assets/{input-error-BdHD9-x4.js => input-error-CzZYqI_U.js} (84%) rename public/build/assets/{label-D-AkZnW_.js => label-fRwP89Ez.js} (92%) rename public/build/assets/{loader-circle-XO7crStb.js => loader-circle-YfjFJaoY.js} (50%) rename public/build/assets/{login-B4lH5do8.js => login-00JrbYrx.js} (95%) delete mode 100644 public/build/assets/main-layout-DiaP0ISn.js create mode 100644 public/build/assets/main-layout-qej9zSi0.js rename public/build/assets/{main-registry-installer-CWpQAmy4.js => main-registry-installer-_-xwUN0S.js} (97%) create mode 100644 public/build/assets/main-theme-card-B0GTBBPN.js rename public/build/assets/{password-CsunKxsK.js => password-BDtte38w.js} (95%) rename public/build/assets/{password-input-QL8S9D3F.js => password-input-__9RhIwi.js} (96%) rename public/build/assets/{placeholder-pattern-CMjSLXXB.js => placeholder-pattern-DUvj6lOE.js} (91%) create mode 100644 public/build/assets/plus-D1KRmSaN.js create mode 100644 public/build/assets/popover-B2UUPq8p.js delete mode 100644 public/build/assets/pricing-B924f0vZ.js create mode 100644 public/build/assets/pricing-BiBh6JwN.js rename public/build/assets/{profile-CEhMOmdF.js => profile-CQF7e4MZ.js} (94%) rename public/build/assets/{register-DvZlJMq4.js => register-DjsSoOdi.js} (88%) rename public/build/assets/{reset-password-CjTooPZv.js => reset-password-CoN8fAaC.js} (85%) rename public/build/assets/{security-CnUHyk63.js => security-BxjNuG8g.js} (96%) rename public/build/assets/{select-DHOWe80x.js => select-DsMxFFiu.js} (99%) delete mode 100644 public/build/assets/show-B7YwVVJB.js create mode 100644 public/build/assets/show-D6Z2FFsL.js rename public/build/assets/{socialite-DAGU8Gzo.js => socialite-BBNBBxaD.js} (96%) rename public/build/assets/{spinner-CoRrGFqk.js => spinner-CCI0ZpZ9.js} (70%) rename public/build/assets/{subscription-BG3RHyD9.js => subscription-C-u-O6PN.js} (95%) rename public/build/assets/{subscription-CWLd4fU4.js => subscription-DJjwwh89.js} (92%) rename public/build/assets/{sun-CDBr7ehg.js => sun-r0X8DC4y.js} (88%) create mode 100644 public/build/assets/tabs-CNNfAj8l.js rename public/build/assets/{text-link-B7waIO2E.js => text-link-BlYfkXNw.js} (88%) delete mode 100644 public/build/assets/themes-BEIrAo01.js create mode 100644 public/build/assets/themes-dmvzolUC.js rename public/build/assets/{two-factor-challenge-CIH9e-kP.js => two-factor-challenge-Miwtb12I.js} (92%) rename public/build/assets/{use-clipboard-C4ojyAai.js => use-clipboard-BvQkhUu9.js} (96%) rename public/build/assets/{use-two-factor-auth-B2IHMCS_.js => use-two-factor-auth-Bdh-sKJ3.js} (99%) rename public/build/assets/{verification-PIrv5pnj.js => verification-D4buixpo.js} (95%) rename public/build/assets/{verify-email-CBOEFMni.js => verify-email-D806-GRE.js} (84%) create mode 100644 resources/js/components/themes/ai-theme-generator.tsx create mode 100644 resources/js/components/themes/color-picker.tsx create mode 100644 resources/js/components/themes/theme-editor-variables.tsx create mode 100644 tests/Feature/ThemesControllerTest.php diff --git a/.agents/skills/inertia-react-development/SKILL.md b/.agents/skills/inertia-react-development/SKILL.md deleted file mode 100644 index e440560..0000000 --- a/.agents/skills/inertia-react-development/SKILL.md +++ /dev/null @@ -1,524 +0,0 @@ ---- -name: inertia-react-development -description: "Develops Inertia.js v3 React client-side applications. Activates when creating React pages, forms, or navigation; using ,
, useForm, useHttp, setLayoutProps, or router; working with deferred props, prefetching, optimistic updates, instant visits, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation." -license: MIT -metadata: - author: laravel ---- - -# Inertia React Development - -## When to Apply - -Activate this skill when: - -- Creating or modifying React page components for Inertia -- Working with forms in React (using ``, `useForm`, or `useHttp`) -- Implementing client-side navigation with `` or `router` -- Using v3 features: deferred props, prefetching, optimistic updates, instant visits, layout props, HTTP requests, WhenVisible, InfiniteScroll, once props, flash data, or polling -- Building React-specific features with the Inertia protocol - -## Documentation - -Use `search-docs` for detailed Inertia v3 React patterns and documentation. - -## Basic Usage - -### Page Components Location - -React page components should be placed in the `resources/js/pages` directory. - -### Page Component Structure - - -```react -export default function UsersIndex({ users }) { - return ( -
-

Users

- -
- ) -} -``` - -## Client-Side Navigation - -### Basic Link Component - -Use `` for client-side navigation instead of traditional `` tags: - - -```react -import { Link, router } from '@inertiajs/react' - -Home -Users -View User -``` - -### Link with Method - - -```react -import { Link } from '@inertiajs/react' - - - Logout - -``` - -### Prefetching - -Prefetch pages to improve perceived performance: - - -```react -import { Link } from '@inertiajs/react' - - - Users - -``` - -### Programmatic Navigation - - -```react -import { router } from '@inertiajs/react' - -function handleClick() { - router.visit('/users') -} - -// Or with options -router.visit('/users', { - method: 'post', - data: { name: 'John' }, - onSuccess: () => console.log('Success!'), -}) -``` - -## Form Handling - -### Form Component (Recommended) - -The recommended way to build forms is with the `` component: - - -```react -import { Form } from '@inertiajs/react' - -export default function CreateUser() { - return ( - - {({ errors, processing, wasSuccessful }) => ( - <> - - {errors.name &&
{errors.name}
} - - - {errors.email &&
{errors.email}
} - - - - {wasSuccessful &&
User created!
} - - )} - - ) -} -``` - -### Form Component With All Props - - -```react -import { Form } from '@inertiajs/react' - -
- {({ - errors, - hasErrors, - processing, - progress, - wasSuccessful, - recentlySuccessful, - clearErrors, - resetAndClearErrors, - defaults, - isDirty, - reset, - submit - }) => ( - <> - - {errors.name &&
{errors.name}
} - - - - {progress && ( - - {progress.percentage}% - - )} - - {wasSuccessful &&
Saved!
} - - )} -
-``` - -### Form Component Reset Props - -The `
` component supports automatic resetting: - -- `resetOnError` - Reset form data when the request fails -- `resetOnSuccess` - Reset form data when the request succeeds -- `setDefaultsOnSuccess` - Update default values on success - -Use the `search-docs` tool with a query of `form component resetting` for detailed guidance. - - -```react -import { Form } from '@inertiajs/react' - - - {({ errors, processing, wasSuccessful }) => ( - <> - - {errors.name &&
{errors.name}
} - - - - )} -
-``` - -Forms can also be built using the `useForm` helper for more programmatic control. Use the `search-docs` tool with a query of `useForm helper` for guidance. - -### `useForm` Hook - -For more programmatic control or to follow existing conventions, use the `useForm` hook: - - -```react -import { useForm } from '@inertiajs/react' - -export default function CreateUser() { - const { data, setData, post, processing, errors, reset } = useForm({ - name: '', - email: '', - password: '', - }) - - function submit(e) { - e.preventDefault() - post('/users', { - onSuccess: () => reset('password'), - }) - } - - return ( -
- setData('name', e.target.value)} - /> - {errors.name &&
{errors.name}
} - - setData('email', e.target.value)} - /> - {errors.email &&
{errors.email}
} - - setData('password', e.target.value)} - /> - {errors.password &&
{errors.password}
} - - -
- ) -} -``` - -## Inertia v3 Features - -### HTTP Requests - -Use the `useHttp` hook for standalone HTTP requests that do not trigger Inertia page visits. It provides the same developer experience as `useForm`, but for plain JSON endpoints. - - -```react -import { useHttp } from '@inertiajs/react' - -export default function Search() { - const { data, setData, get, processing } = useHttp({ - query: '', - }) - - function search(e) { - setData('query', e.target.value) - get('/api/search', { - onSuccess: (response) => { - console.log(response) - }, - }) - } - - return ( - <> - - {processing &&
Searching...
} - - ) -} -``` - -### Optimistic Updates - -Apply data changes instantly before the server responds, with automatic rollback on failure: - - -```react -import { router } from '@inertiajs/react' - -function like(post) { - router.optimistic((props) => ({ - post: { - ...props.post, - likes: props.post.likes + 1, - }, - })).post(`/posts/${post.id}/like`) -} -``` - -Optimistic updates also work with `useForm` and the `
` component: - - -```react -import { Form } from '@inertiajs/react' - - ({ - todos: [...props.todos, { id: Date.now(), name: data.name, done: false }], - })} -> - - -
-``` - -### Instant Visits - -Navigate to a new page immediately without waiting for the server response. The target component renders right away with shared props, while page-specific props load in the background. - - -```react -import { Link } from '@inertiajs/react' - -Dashboard - - - View Post - -``` - -### Layout Props - -Share dynamic data between pages and persistent layouts: - - -```react -export default function Layout({ title = 'My App', showSidebar = true, children }) { - return ( - <> -
{title}
- {showSidebar && } -
{children}
- - ) -} -``` - - -```react -import { setLayoutProps } from '@inertiajs/react' - -export default function Dashboard() { - setLayoutProps({ - title: 'Dashboard', - showSidebar: false, - }) - - return

Dashboard

-} -``` - -### Deferred Props - -Use deferred props to load data after initial page render: - - -```react -export default function UsersIndex({ users }) { - return ( -
-

Users

- {!users ? ( -
-
-
-
- ) : ( -
    - {users.map(user => ( -
  • {user.name}
  • - ))} -
- )} -
- ) -} -``` - -### Polling - -Use the `usePoll` hook to automatically refresh data at intervals. It handles cleanup on unmount and throttles polling when the tab is inactive. - - -```react -import { usePoll } from '@inertiajs/react' - -export default function Dashboard({ stats }) { - usePoll(5000) - - return ( -
-

Dashboard

-
Active Users: {stats.activeUsers}
-
- ) -} -``` - - -```react -import { usePoll } from '@inertiajs/react' - -export default function Dashboard({ stats }) { - const { start, stop } = usePoll(5000, { - only: ['stats'], - onStart() { - console.log('Polling request started') - }, - onFinish() { - console.log('Polling request finished') - }, - }, { - autoStart: false, - keepAlive: true, - }) - - return ( -
-

Dashboard

-
Active Users: {stats.activeUsers}
- - -
- ) -} -``` - -- `autoStart` (default `true`) - set to `false` to start polling manually via the returned `start()` function -- `keepAlive` (default `false`) - set to `true` to prevent throttling when the browser tab is inactive - -### WhenVisible - -Lazy-load a prop when an element scrolls into view. Useful for deferring expensive data that sits below the fold: - - -```react -import { WhenVisible } from '@inertiajs/react' - -export default function Dashboard({ stats }) { - return ( -
-

Dashboard

- - Loading stats...
}> - {({ fetching }) => ( -
-

Total Users: {stats.total_users}

-

Revenue: {stats.revenue}

- {fetching && Refreshing...} -
- )} - - - ) -} -``` - -### InfiniteScroll - -Automatically load additional pages of paginated data as users scroll: - - -```react -import { InfiniteScroll } from '@inertiajs/react' - -export default function Users({ users }) { - return ( - - {users.data.map(user => ( -
{user.name}
- ))} -
- ) -} -``` - -The server must use `Inertia::scroll()` to configure the paginated data. Use the `search-docs` tool with a query of `infinite scroll` for detailed guidance on buffers, manual loading, reverse mode, and custom trigger elements. - -## Server-Side Patterns - -Server-side patterns (Inertia::render, props, middleware) are covered in inertia-laravel guidelines. - -## Common Pitfalls - -- Using traditional `
` links instead of Inertia's `` component (breaks SPA behavior) -- Forgetting to add loading states (skeleton screens) when using deferred props -- Not handling the `undefined` state of deferred props before data loads -- Using `
` without preventing default submission (use `` component or `e.preventDefault()`) -- Forgetting to check if `` component is available in your Inertia version -- Using `router.cancel()` instead of `router.cancelAll()` (v3 breaking change) -- Using `router.on('invalid', ...)` or `router.on('exception', ...)` instead of the renamed `httpException` and `networkError` events \ No newline at end of file diff --git a/.claude/skills/inertia-react-development/SKILL.md b/.claude/skills/inertia-react-development/SKILL.md deleted file mode 100644 index e440560..0000000 --- a/.claude/skills/inertia-react-development/SKILL.md +++ /dev/null @@ -1,524 +0,0 @@ ---- -name: inertia-react-development -description: "Develops Inertia.js v3 React client-side applications. Activates when creating React pages, forms, or navigation; using , , useForm, useHttp, setLayoutProps, or router; working with deferred props, prefetching, optimistic updates, instant visits, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation." -license: MIT -metadata: - author: laravel ---- - -# Inertia React Development - -## When to Apply - -Activate this skill when: - -- Creating or modifying React page components for Inertia -- Working with forms in React (using ``, `useForm`, or `useHttp`) -- Implementing client-side navigation with `` or `router` -- Using v3 features: deferred props, prefetching, optimistic updates, instant visits, layout props, HTTP requests, WhenVisible, InfiniteScroll, once props, flash data, or polling -- Building React-specific features with the Inertia protocol - -## Documentation - -Use `search-docs` for detailed Inertia v3 React patterns and documentation. - -## Basic Usage - -### Page Components Location - -React page components should be placed in the `resources/js/pages` directory. - -### Page Component Structure - - -```react -export default function UsersIndex({ users }) { - return ( -
-

Users

-
    - {users.map(user =>
  • {user.name}
  • )} -
-
- ) -} -``` - -## Client-Side Navigation - -### Basic Link Component - -Use `` for client-side navigation instead of traditional `
` tags: - - -```react -import { Link, router } from '@inertiajs/react' - -Home -Users -View User -``` - -### Link with Method - - -```react -import { Link } from '@inertiajs/react' - - - Logout - -``` - -### Prefetching - -Prefetch pages to improve perceived performance: - - -```react -import { Link } from '@inertiajs/react' - - - Users - -``` - -### Programmatic Navigation - - -```react -import { router } from '@inertiajs/react' - -function handleClick() { - router.visit('/users') -} - -// Or with options -router.visit('/users', { - method: 'post', - data: { name: 'John' }, - onSuccess: () => console.log('Success!'), -}) -``` - -## Form Handling - -### Form Component (Recommended) - -The recommended way to build forms is with the `` component: - - -```react -import { Form } from '@inertiajs/react' - -export default function CreateUser() { - return ( - - {({ errors, processing, wasSuccessful }) => ( - <> - - {errors.name &&
{errors.name}
} - - - {errors.email &&
{errors.email}
} - - - - {wasSuccessful &&
User created!
} - - )} - - ) -} -``` - -### Form Component With All Props - - -```react -import { Form } from '@inertiajs/react' - -
- {({ - errors, - hasErrors, - processing, - progress, - wasSuccessful, - recentlySuccessful, - clearErrors, - resetAndClearErrors, - defaults, - isDirty, - reset, - submit - }) => ( - <> - - {errors.name &&
{errors.name}
} - - - - {progress && ( - - {progress.percentage}% - - )} - - {wasSuccessful &&
Saved!
} - - )} -
-``` - -### Form Component Reset Props - -The `
` component supports automatic resetting: - -- `resetOnError` - Reset form data when the request fails -- `resetOnSuccess` - Reset form data when the request succeeds -- `setDefaultsOnSuccess` - Update default values on success - -Use the `search-docs` tool with a query of `form component resetting` for detailed guidance. - - -```react -import { Form } from '@inertiajs/react' - - - {({ errors, processing, wasSuccessful }) => ( - <> - - {errors.name &&
{errors.name}
} - - - - )} -
-``` - -Forms can also be built using the `useForm` helper for more programmatic control. Use the `search-docs` tool with a query of `useForm helper` for guidance. - -### `useForm` Hook - -For more programmatic control or to follow existing conventions, use the `useForm` hook: - - -```react -import { useForm } from '@inertiajs/react' - -export default function CreateUser() { - const { data, setData, post, processing, errors, reset } = useForm({ - name: '', - email: '', - password: '', - }) - - function submit(e) { - e.preventDefault() - post('/users', { - onSuccess: () => reset('password'), - }) - } - - return ( -
- setData('name', e.target.value)} - /> - {errors.name &&
{errors.name}
} - - setData('email', e.target.value)} - /> - {errors.email &&
{errors.email}
} - - setData('password', e.target.value)} - /> - {errors.password &&
{errors.password}
} - - -
- ) -} -``` - -## Inertia v3 Features - -### HTTP Requests - -Use the `useHttp` hook for standalone HTTP requests that do not trigger Inertia page visits. It provides the same developer experience as `useForm`, but for plain JSON endpoints. - - -```react -import { useHttp } from '@inertiajs/react' - -export default function Search() { - const { data, setData, get, processing } = useHttp({ - query: '', - }) - - function search(e) { - setData('query', e.target.value) - get('/api/search', { - onSuccess: (response) => { - console.log(response) - }, - }) - } - - return ( - <> - - {processing &&
Searching...
} - - ) -} -``` - -### Optimistic Updates - -Apply data changes instantly before the server responds, with automatic rollback on failure: - - -```react -import { router } from '@inertiajs/react' - -function like(post) { - router.optimistic((props) => ({ - post: { - ...props.post, - likes: props.post.likes + 1, - }, - })).post(`/posts/${post.id}/like`) -} -``` - -Optimistic updates also work with `useForm` and the `
` component: - - -```react -import { Form } from '@inertiajs/react' - - ({ - todos: [...props.todos, { id: Date.now(), name: data.name, done: false }], - })} -> - - -
-``` - -### Instant Visits - -Navigate to a new page immediately without waiting for the server response. The target component renders right away with shared props, while page-specific props load in the background. - - -```react -import { Link } from '@inertiajs/react' - -Dashboard - - - View Post - -``` - -### Layout Props - -Share dynamic data between pages and persistent layouts: - - -```react -export default function Layout({ title = 'My App', showSidebar = true, children }) { - return ( - <> -
{title}
- {showSidebar && } -
{children}
- - ) -} -``` - - -```react -import { setLayoutProps } from '@inertiajs/react' - -export default function Dashboard() { - setLayoutProps({ - title: 'Dashboard', - showSidebar: false, - }) - - return

Dashboard

-} -``` - -### Deferred Props - -Use deferred props to load data after initial page render: - - -```react -export default function UsersIndex({ users }) { - return ( -
-

Users

- {!users ? ( -
-
-
-
- ) : ( -
    - {users.map(user => ( -
  • {user.name}
  • - ))} -
- )} -
- ) -} -``` - -### Polling - -Use the `usePoll` hook to automatically refresh data at intervals. It handles cleanup on unmount and throttles polling when the tab is inactive. - - -```react -import { usePoll } from '@inertiajs/react' - -export default function Dashboard({ stats }) { - usePoll(5000) - - return ( -
-

Dashboard

-
Active Users: {stats.activeUsers}
-
- ) -} -``` - - -```react -import { usePoll } from '@inertiajs/react' - -export default function Dashboard({ stats }) { - const { start, stop } = usePoll(5000, { - only: ['stats'], - onStart() { - console.log('Polling request started') - }, - onFinish() { - console.log('Polling request finished') - }, - }, { - autoStart: false, - keepAlive: true, - }) - - return ( -
-

Dashboard

-
Active Users: {stats.activeUsers}
- - -
- ) -} -``` - -- `autoStart` (default `true`) - set to `false` to start polling manually via the returned `start()` function -- `keepAlive` (default `false`) - set to `true` to prevent throttling when the browser tab is inactive - -### WhenVisible - -Lazy-load a prop when an element scrolls into view. Useful for deferring expensive data that sits below the fold: - - -```react -import { WhenVisible } from '@inertiajs/react' - -export default function Dashboard({ stats }) { - return ( -
-

Dashboard

- - Loading stats...
}> - {({ fetching }) => ( -
-

Total Users: {stats.total_users}

-

Revenue: {stats.revenue}

- {fetching && Refreshing...} -
- )} - - - ) -} -``` - -### InfiniteScroll - -Automatically load additional pages of paginated data as users scroll: - - -```react -import { InfiniteScroll } from '@inertiajs/react' - -export default function Users({ users }) { - return ( - - {users.data.map(user => ( -
{user.name}
- ))} -
- ) -} -``` - -The server must use `Inertia::scroll()` to configure the paginated data. Use the `search-docs` tool with a query of `infinite scroll` for detailed guidance on buffers, manual loading, reverse mode, and custom trigger elements. - -## Server-Side Patterns - -Server-side patterns (Inertia::render, props, middleware) are covered in inertia-laravel guidelines. - -## Common Pitfalls - -- Using traditional `
` links instead of Inertia's `` component (breaks SPA behavior) -- Forgetting to add loading states (skeleton screens) when using deferred props -- Not handling the `undefined` state of deferred props before data loads -- Using `
` without preventing default submission (use `` component or `e.preventDefault()`) -- Forgetting to check if `` component is available in your Inertia version -- Using `router.cancel()` instead of `router.cancelAll()` (v3 breaking change) -- Using `router.on('invalid', ...)` or `router.on('exception', ...)` instead of the renamed `httpException` and `networkError` events \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index e34262c..23f3e23 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,7 +9,7 @@ The Laravel Boost guidelines are specifically curated by Laravel maintainers for This application is a Laravel application and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure you abide by these specific packages & versions. -- php - 8.4 +- php - 8.3 - inertiajs/inertia-laravel (INERTIA_LARAVEL) - v3 - laravel/fortify (FORTIFY) - v1 - laravel/framework (LARAVEL) - v13 @@ -118,13 +118,6 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac - Laravel can be deployed using [Laravel Cloud](https://cloud.laravel.com/), which is the fastest way to deploy and scale production Laravel applications. -=== herd rules === - -# Laravel Herd - -- The application is served by Laravel Herd at `https?://[kebab-case-project-dir].test`. Use the `get-absolute-url` tool to generate valid URLs. Never run commands to serve the site. It is always available. -- Use the `herd` CLI to manage services, PHP versions, and sites (e.g. `herd sites`, `herd services:start `, `herd php:list`). Run `herd list` to discover all available commands. - === tests rules === # Test Enforcement diff --git a/CLAUDE.md b/CLAUDE.md index e34262c..23f3e23 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -9,7 +9,7 @@ The Laravel Boost guidelines are specifically curated by Laravel maintainers for This application is a Laravel application and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure you abide by these specific packages & versions. -- php - 8.4 +- php - 8.3 - inertiajs/inertia-laravel (INERTIA_LARAVEL) - v3 - laravel/fortify (FORTIFY) - v1 - laravel/framework (LARAVEL) - v13 @@ -118,13 +118,6 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac - Laravel can be deployed using [Laravel Cloud](https://cloud.laravel.com/), which is the fastest way to deploy and scale production Laravel applications. -=== herd rules === - -# Laravel Herd - -- The application is served by Laravel Herd at `https?://[kebab-case-project-dir].test`. Use the `get-absolute-url` tool to generate valid URLs. Never run commands to serve the site. It is always available. -- Use the `herd` CLI to manage services, PHP versions, and sites (e.g. `herd sites`, `herd services:start `, `herd php:list`). Run `herd list` to discover all available commands. - === tests rules === # Test Enforcement diff --git a/GEMINI.md b/GEMINI.md index 1ad45de..d52b17f 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -9,7 +9,7 @@ The Laravel Boost guidelines are specifically curated by Laravel maintainers for This application is a Laravel application and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure you abide by these specific packages & versions. -- php - 8.4 +- php - 8.3 - inertiajs/inertia-laravel (INERTIA_LARAVEL) - v3 - laravel/fortify (FORTIFY) - v1 - laravel/framework (LARAVEL) - v13 @@ -118,13 +118,6 @@ This project has domain-specific skills available in `**/skills/**`. You MUST ac - Laravel can be deployed using [Laravel Cloud](https://cloud.laravel.com/), which is the fastest way to deploy and scale production Laravel applications. -=== herd rules === - -# Laravel Herd - -- The application is served by Laravel Herd at `https?://[kebab-case-project-dir].test`. Use the `get-absolute-url` tool to generate valid URLs. Never run commands to serve the site. It is always available. -- Use the `herd` CLI to manage services, PHP versions, and sites (e.g. `herd sites`, `herd services:start `, `herd php:list`). Run `herd list` to discover all available commands. - === tests rules === # Test Enforcement diff --git a/app/Http/Controllers/ThemesController.php b/app/Http/Controllers/ThemesController.php index 04740aa..ce50848 100644 --- a/app/Http/Controllers/ThemesController.php +++ b/app/Http/Controllers/ThemesController.php @@ -3,6 +3,7 @@ namespace App\Http\Controllers; use App\Models\Theme; +use App\Services\AiService; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\DB; @@ -13,24 +14,42 @@ class ThemesController extends Controller { - public function create() + public function create(Request $request) { - return Inertia::render('themes/create'); + $baseTheme = null; + if ($fork = $request->query('fork')) { + $baseTheme = Theme::where('name', $fork)->first(); + if ($baseTheme) { + $baseTheme->load('tags'); + $tags = $baseTheme->tags->pluck('name')->toArray(); + $baseTheme = $baseTheme->toArray(); + $baseTheme['tags'] = $tags; + } + } + + return Inertia::render('themes/create', [ + 'baseTheme' => $baseTheme, + ]); } public function store(Request $request) { $request->validate([ - 'url' => ['required', 'url'], + 'url' => ['required_without:theme_data', 'nullable', 'url'], + 'theme_data' => ['required_without:url', 'nullable', 'array'], ]); - $response = Http::get($request->url); + if ($request->url) { + $response = Http::get($request->url); - if ($response->failed()) { - return back()->withErrors(['url' => 'Could not fetch registry from the provided URL.']); - } + if ($response->failed()) { + return back()->withErrors(['url' => 'Could not fetch registry from the provided URL.']); + } - $data = $response->json(); + $data = $response->json(); + } else { + $data = $request->theme_data; + } if (empty($data) || ! is_array($data)) { return back()->withErrors(['url' => 'Invalid registry JSON format.']); @@ -56,6 +75,12 @@ public function store(Request $request) $errors[] = '"cssVars.dark" must be an object.'; } } + } elseif (isset($data['vars_light']) && isset($data['vars_dark'])) { + // Support direct vars_light/vars_dark for manual/AI creation + $data['cssVars'] = [ + 'light' => $data['vars_light'], + 'dark' => $data['vars_dark'], + ]; } if (isset($data['files'])) { @@ -100,22 +125,28 @@ public function store(Request $request) } if (! empty($errors)) { - return back()->withErrors(['url' => implode(' ', $errors)]); + $errorKey = $request->url ? 'url' : 'theme_data'; + + return back()->withErrors([$errorKey => implode(' ', $errors)]); } $data['name'] = Str::kebab($data['name']); $data['type'] = 'registry:theme'; if (! ($data['author'] ?? null)) { - $host = Str::of(parse_url($request->url, PHP_URL_HOST)) - ->replaceFirst('www.', '') - ->before('.') - ->toString(); - $data['author'] = $host; + if ($request->url) { + $host = Str::of(parse_url($request->url, PHP_URL_HOST)) + ->replaceFirst('www.', '') + ->before('.') + ->toString(); + $data['author'] = $host; + } else { + $data['author'] = auth()->user()->name; + } } if (Theme::where('name', $data['name'])->exists()) { - return back()->withErrors(['url' => "A theme named [{$data['name']}] already exists."]); + $data['name'] = $data['name'].'-'.Str::random(4); } $theme = Theme::fromRegistry($data); @@ -133,6 +164,21 @@ public function store(Request $request) ->with('success', 'Theme created successfully.'); } + public function generate(Request $request, AiService $aiService) + { + $request->validate([ + 'prompt' => ['required', 'string', 'max:500'], + ]); + + $themeData = $aiService->generateFullTheme($request->prompt); + + if (empty($themeData)) { + return response()->json(['error' => 'Failed to generate theme.'], 500); + } + + return response()->json($themeData); + } + public function index() { $availableTags = Cache::remember('themes:available_tags', 3600, function () { diff --git a/app/Models/Theme.php b/app/Models/Theme.php index a64dc26..2cb44b7 100644 --- a/app/Models/Theme.php +++ b/app/Models/Theme.php @@ -6,6 +6,7 @@ use App\Observers\ThemeObserver; use Illuminate\Database\Eloquent\Attributes\Fillable; use Illuminate\Database\Eloquent\Attributes\ObservedBy; +use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\SoftDeletes; @@ -27,7 +28,7 @@ #[ObservedBy(ThemeObserver::class)] class Theme extends Model { - use HasTags, HasTheme, SoftDeletes; + use HasFactory, HasTags, HasTheme, SoftDeletes; protected $table = 'themes'; diff --git a/boost.json b/boost.json index cc8eb0d..4662d93 100644 --- a/boost.json +++ b/boost.json @@ -15,7 +15,6 @@ "socialite-development", "wayfinder-development", "pest-testing", - "inertia-react-development", "tailwindcss-development" ] } diff --git a/composer.json b/composer.json index 10d3750..881ac39 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,8 @@ "laravel/tinker": "^3.0", "laravel/wayfinder": "^0.1.14", "spatie/laravel-permission": "^7.4", - "spatie/laravel-tags": "^4.11" + "spatie/laravel-tags": "^4.11", + "symfony/var-dumper": "7.4.*" }, "require-dev": { "fakerphp/faker": "^1.24", diff --git a/composer.lock b/composer.lock index 63db79a..27b8397 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "aefce61ee91cb5c06002bf16498e9e32", + "content-hash": "bc5a42e18cc15a4d663e8aab6a3d55ea", "packages": [ { "name": "bacon/bacon-qr-code", @@ -8151,31 +8151,31 @@ }, { "name": "symfony/var-dumper", - "version": "v8.0.8", + "version": "v7.4.8", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "cfb7badd53bf4177f6e9416cfbbccc13c0e773a1" + "reference": "9510c3966f749a1d1ff0059e1eabef6cc621e7fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/cfb7badd53bf4177f6e9416cfbbccc13c0e773a1", - "reference": "cfb7badd53bf4177f6e9416cfbbccc13c0e773a1", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/9510c3966f749a1d1ff0059e1eabef6cc621e7fd", + "reference": "9510c3966f749a1d1ff0059e1eabef6cc621e7fd", "shasum": "" }, "require": { - "php": ">=8.4", - "symfony/polyfill-mbstring": "^1.0" + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/console": "<7.4", - "symfony/error-handler": "<7.4" + "symfony/console": "<6.4" }, "require-dev": { - "symfony/console": "^7.4|^8.0", - "symfony/http-kernel": "^7.4|^8.0", - "symfony/process": "^7.4|^8.0", - "symfony/uid": "^7.4|^8.0", + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/uid": "^6.4|^7.0|^8.0", "twig/twig": "^3.12" }, "bin": [ @@ -8214,7 +8214,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v8.0.8" + "source": "https://github.com/symfony/var-dumper/tree/v7.4.8" }, "funding": [ { @@ -8234,7 +8234,7 @@ "type": "tidelift" } ], - "time": "2026-03-31T07:15:36+00:00" + "time": "2026-03-30T13:44:50+00:00" }, { "name": "tijsverkoyen/css-to-inline-styles", @@ -12441,5 +12441,5 @@ "php": "^8.4" }, "platform-dev": {}, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } diff --git a/database/factories/ThemeFactory.php b/database/factories/ThemeFactory.php new file mode 100644 index 0000000..e64b6ba --- /dev/null +++ b/database/factories/ThemeFactory.php @@ -0,0 +1,40 @@ + + */ +class ThemeFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + $name = $this->faker->unique()->slug(); + + return [ + 'user_id' => User::factory(), + 'name' => $name, + 'title' => $this->faker->words(3, true), + 'description' => $this->faker->sentence(), + 'vars_light' => [ + 'background' => '0 0% 100%', + 'foreground' => '240 10% 3.9%', + 'primary' => '240 5.9% 10%', + ], + 'vars_dark' => [ + 'background' => '240 10% 3.9%', + 'foreground' => '0 0% 98%', + 'primary' => '0 0% 98%', + ], + ]; + } +} diff --git a/npm_dev.log b/npm_dev.log new file mode 100644 index 0000000..8ec6c5c --- /dev/null +++ b/npm_dev.log @@ -0,0 +1,5 @@ + +> dev +> vite + +sh: 1: vite: not found diff --git a/package-lock.json b/package-lock.json index ebe0ac9..f80e1e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,7 +40,7 @@ "laravel-vite-plugin": "^3.1.0", "lucide-react": "^0.475.0", "motion": "^12.38.0", - "openai": "^6.37.0", + "openai": "^6.38.0", "prismjs": "^1.30.0", "radix-ui": "^1.4.3", "react": "^19.2.6", @@ -9232,9 +9232,9 @@ } }, "node_modules/openai": { - "version": "6.37.0", - "resolved": "https://registry.npmjs.org/openai/-/openai-6.37.0.tgz", - "integrity": "sha512-0H5dEGFmmLv6KSd0W1w2nyL8WsLkX6yoLeQpU+dZAOuGcany5qkYQMmj35ZrKgb6yiyYqpUzFOpR8mZQkgqeEQ==", + "version": "6.38.0", + "resolved": "https://registry.npmjs.org/openai/-/openai-6.38.0.tgz", + "integrity": "sha512-AoMplt2UalrpgUDMh3L09QWjNRlgJPipclQvA6sYAaeF6nHNBMgmikAZGmcYLn8on4d9sQY9Q8bOLfrBS7Lc8g==", "license": "Apache-2.0", "bin": { "openai": "bin/cli" diff --git a/php_server.log b/php_server.log new file mode 100644 index 0000000..6dac293 --- /dev/null +++ b/php_server.log @@ -0,0 +1,311 @@ + + INFO Server running on [http://127.0.0.1:8000]. + + Press Ctrl+C to stop the server + + 2026-05-16 13:00:41 /login ..................................... ~ 500.69ms + 2026-05-16 13:00:42 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 0.24ms + 2026-05-16 13:00:42 /build/assets/app-DwgJtLjQ.css ............... ~ 0.32ms + 2026-05-16 13:00:42 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 0.48ms + 2026-05-16 13:00:42 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 0.48ms + 2026-05-16 13:00:42 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 0.53ms + 2026-05-16 13:00:42 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 0.58ms + 2026-05-16 13:00:42 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 0.04ms + 2026-05-16 13:00:42 /build/assets/login-B4lH5do8.js .............. ~ 0.07ms + 2026-05-16 13:00:42 /build/assets/label-D-AkZnW_.js .............. ~ 0.20ms + 2026-05-16 13:00:42 /build/assets/dist-CyCRNm1V.js ............... ~ 0.41ms + 2026-05-16 13:00:42 /build/assets/check-CCTwZBIw.js .............. ~ 0.55ms + 2026-05-16 13:00:42 /build/assets/socialite-DAGU8Gzo.js .......... ~ 0.71ms + 2026-05-16 13:00:42 /build/assets/app-CVlP31Z1.js ................ ~ 0.89ms + 2026-05-16 13:00:42 /_debugbar/assets ............................ ~ 0.66ms + 2026-05-16 13:00:42 /build/assets/github-BytY2MM3.js ............. ~ 0.34ms + 2026-05-16 13:00:42 /build/assets/password-input-QL8S9D3F.js ..... ~ 0.65ms + 2026-05-16 13:00:42 /build/assets/input-error-BdHD9-x4.js ........ ~ 0.29ms + 2026-05-16 13:00:42 /build/assets/text-link-B7waIO2E.js .......... ~ 0.38ms + 2026-05-16 13:00:42 /build/assets/spinner-CoRrGFqk.js ............ ~ 0.48ms + 2026-05-16 13:00:42 /_debugbar/assets ............................ ~ 0.03ms + 2026-05-16 13:00:42 /build/assets/loader-circle-XO7crStb.js ...... ~ 0.87ms + 2026-05-16 13:00:42 /build/assets/password-CsunKxsK.js ........... ~ 0.74ms + 2026-05-16 13:00:42 /build/assets/confirm-iDcX_7zW.js ............ ~ 0.87ms + 2026-05-16 13:00:43 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 0.13ms + 2026-05-16 13:00:43 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.21ms + 2026-05-16 13:01:37 /login ....................................... ~ 0.12ms + 2026-05-16 13:01:37 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 0.08ms + 2026-05-16 13:01:37 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 0.14ms + 2026-05-16 13:01:37 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 0.19ms + 2026-05-16 13:01:37 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 0.24ms + 2026-05-16 13:01:37 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 0.35ms + 2026-05-16 13:01:37 /build/assets/app-DwgJtLjQ.css ............... ~ 0.46ms + 2026-05-16 13:01:37 /_debugbar/assets ............................ ~ 0.10ms + 2026-05-16 13:01:37 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 0.09ms + 2026-05-16 13:01:37 /build/assets/login-B4lH5do8.js .............. ~ 0.14ms + 2026-05-16 13:01:37 /build/assets/label-D-AkZnW_.js .............. ~ 0.36ms + 2026-05-16 13:01:37 /build/assets/dist-CyCRNm1V.js ............... ~ 0.50ms + 2026-05-16 13:01:37 /build/assets/app-CVlP31Z1.js ................ ~ 0.68ms + 2026-05-16 13:01:37 /build/assets/check-CCTwZBIw.js .............. ~ 0.06ms + 2026-05-16 13:01:37 /build/assets/socialite-DAGU8Gzo.js .......... ~ 0.25ms + 2026-05-16 13:01:37 /build/assets/password-input-QL8S9D3F.js ..... ~ 0.36ms + 2026-05-16 13:01:37 /build/assets/github-BytY2MM3.js ............. ~ 0.44ms + 2026-05-16 13:01:37 /build/assets/input-error-BdHD9-x4.js ........ ~ 0.60ms + 2026-05-16 13:01:37 /build/assets/text-link-B7waIO2E.js .......... ~ 0.18ms + 2026-05-16 13:01:37 /build/assets/spinner-CoRrGFqk.js ............ ~ 0.29ms + 2026-05-16 13:01:37 /build/assets/password-CsunKxsK.js ........... ~ 0.30ms + 2026-05-16 13:01:37 /build/assets/loader-circle-XO7crStb.js ...... ~ 0.58ms + 2026-05-16 13:01:37 /build/assets/confirm-iDcX_7zW.js ............ ~ 0.57ms + 2026-05-16 13:01:37 /_debugbar/assets ............................ ~ 0.16ms + 2026-05-16 13:01:37 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 500.55ms + 2026-05-16 13:01:37 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.30ms + 2026-05-16 13:01:38 /login ..................................... ~ 500.42ms + 2026-05-16 13:01:39 /dashboard ................................... ~ 0.03ms + 2026-05-16 13:01:39 /_debugbar/open .............................. ~ 0.04ms + 2026-05-16 13:01:39 /_debugbar/open .............................. ~ 0.31ms + 2026-05-16 13:01:41 /themes/create ............................... ~ 0.11ms + 2026-05-16 13:01:41 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 0.13ms + 2026-05-16 13:01:41 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 0.19ms + 2026-05-16 13:01:41 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 0.24ms + 2026-05-16 13:01:41 /build/assets/create-DWmMMfkI.js ............. ~ 0.28ms + 2026-05-16 13:01:41 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 0.40ms + 2026-05-16 13:01:41 /build/assets/main-layout-DiaP0ISn.js ........ ~ 0.45ms + 2026-05-16 13:01:41 /build/assets/app-DwgJtLjQ.css ............... ~ 0.04ms + 2026-05-16 13:01:41 /build/assets/placeholder-pattern-CMjSLXXB.js ~ 0.05ms + 2026-05-16 13:01:41 /build/assets/sun-CDBr7ehg.js ................ ~ 0.38ms + 2026-05-16 13:01:41 /build/assets/glow-stack-DaYuOL5d.js ......... ~ 0.30ms + 2026-05-16 13:01:41 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 0.67ms + 2026-05-16 13:01:41 /build/assets/card-BMwhGcsv.js ............... ~ 0.47ms + 2026-05-16 13:01:41 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 0.22ms + 2026-05-16 13:01:41 /build/assets/label-D-AkZnW_.js .............. ~ 0.11ms + 2026-05-16 13:01:41 /build/assets/check-CCTwZBIw.js .............. ~ 0.23ms + 2026-05-16 13:01:41 /build/assets/app-CVlP31Z1.js ................ ~ 0.39ms + 2026-05-16 13:01:41 /build/assets/github-BytY2MM3.js ............. ~ 0.51ms + 2026-05-16 13:01:41 /build/assets/loader-circle-XO7crStb.js ...... ~ 0.69ms + 2026-05-16 13:01:41 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.03ms + 2026-05-16 13:01:41 /build/assets/instrument-sans-600-normal-B9e8oLYv.woff ~ 0.04ms + 2026-05-16 13:01:41 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 0.09ms + 2026-05-16 13:07:46 /login ....................................... ~ 0.13ms + 2026-05-16 13:07:46 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 0.09ms + 2026-05-16 13:07:46 /build/assets/app-Cepr_1pM.css ............... ~ 0.16ms + 2026-05-16 13:07:46 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 0.30ms + 2026-05-16 13:07:46 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 0.35ms + 2026-05-16 13:07:46 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 0.40ms + 2026-05-16 13:07:46 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 0.44ms + 2026-05-16 13:07:46 /_debugbar/assets ............................ ~ 0.02ms + 2026-05-16 13:07:46 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 0.07ms + 2026-05-16 13:07:46 /build/assets/login-Dl7zqRmw.js .............. ~ 0.12ms + 2026-05-16 13:07:46 /build/assets/label-BEGn4mDy.js .............. ~ 0.26ms + 2026-05-16 13:07:46 /build/assets/dist-FMp-wKgF.js ............... ~ 0.38ms + 2026-05-16 13:07:46 /build/assets/app-t0zkJl3W.js ................ ~ 0.57ms + 2026-05-16 13:07:46 /build/assets/check-lG57EO4u.js .............. ~ 0.07ms + 2026-05-16 13:07:46 /build/assets/socialite-B5uUfCjR.js .......... ~ 0.32ms + 2026-05-16 13:07:46 /build/assets/password-input-0Arh7dRl.js ..... ~ 0.45ms + 2026-05-16 13:07:46 /build/assets/github-D4O3YWJ6.js ............. ~ 0.53ms + 2026-05-16 13:07:46 /build/assets/input-error-nM-55OXd.js ........ ~ 0.67ms + 2026-05-16 13:07:46 /build/assets/text-link-D6AsDMWO.js .......... ~ 0.17ms + 2026-05-16 13:07:46 /build/assets/spinner-Ca5g_4_r.js ............ ~ 0.20ms + 2026-05-16 13:07:46 /build/assets/loader-circle-CBDF0HJ_.js ...... ~ 0.43ms + 2026-05-16 13:07:46 /build/assets/password-oDltnRva.js ........... ~ 0.52ms + 2026-05-16 13:07:46 /build/assets/confirm-yRWW3fdM.js ............ ~ 0.65ms + 2026-05-16 13:07:46 /_debugbar/assets ............................ ~ 0.62ms + 2026-05-16 13:07:47 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 0.04ms + 2026-05-16 13:07:47 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.09ms + 2026-05-16 13:07:48 /login ..................................... ~ 500.43ms + 2026-05-16 13:07:48 /dashboard ................................... ~ 0.03ms + 2026-05-16 13:07:48 /_debugbar/open .............................. ~ 0.10ms + 2026-05-16 13:07:48 /_debugbar/open .............................. ~ 0.39ms + 2026-05-16 13:07:50 /themes/create ............................... ~ 0.17ms + 2026-05-16 13:07:50 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 0.09ms + 2026-05-16 13:07:50 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 0.14ms + 2026-05-16 13:07:50 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 0.18ms + 2026-05-16 13:07:50 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 0.23ms + 2026-05-16 13:07:50 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 0.30ms + 2026-05-16 13:07:50 /build/assets/create-b8caykA-.js ............. ~ 0.35ms + 2026-05-16 13:07:50 /build/assets/popover-Cvj6nQrP.js ............ ~ 0.07ms + 2026-05-16 13:07:50 /build/assets/tabs-DGRbvRwG.js ............... ~ 0.24ms + 2026-05-16 13:07:50 /build/assets/app-Cepr_1pM.css ............... ~ 0.40ms + 2026-05-16 13:07:50 /build/assets/color-utils-EgcE6_BX.js ........ ~ 0.51ms + 2026-05-16 13:07:50 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 0.62ms + 2026-05-16 13:07:50 /build/assets/main-layout-C-4RrJnG.js ........ ~ 0.67ms + 2026-05-16 13:07:50 /build/assets/sun-CWyb80F9.js ................ ~ 0.07ms + 2026-05-16 13:07:50 /build/assets/placeholder-pattern-CbHbctQs.js ~ 0.21ms + 2026-05-16 13:07:50 /build/assets/glow-stack-CKER3ASb.js ......... ~ 0.26ms + 2026-05-16 13:07:50 /build/assets/card-CrkRsm4M.js ............... ~ 0.40ms + 2026-05-16 13:07:50 /build/assets/main-theme-card-Oa0nREEd.js .... ~ 0.54ms + 2026-05-16 13:07:50 /build/assets/glow-radial-Evr5btJB.js ........ ~ 0.71ms + 2026-05-16 13:07:50 /build/assets/label-BEGn4mDy.js .............. ~ 0.06ms + 2026-05-16 13:07:50 /build/assets/check-lG57EO4u.js .............. ~ 0.27ms + 2026-05-16 13:07:50 /build/assets/github-D4O3YWJ6.js ............. ~ 0.40ms + 2026-05-16 13:07:50 /build/assets/app-t0zkJl3W.js ................ ~ 0.59ms + 2026-05-16 13:07:50 /build/assets/loader-circle-CBDF0HJ_.js ...... ~ 0.71ms + 2026-05-16 13:07:50 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.04ms + 2026-05-16 13:07:50 /build/assets/instrument-sans-600-normal-B9e8oLYv.woff ~ 0.09ms + 2026-05-16 13:07:50 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 0.14ms + 2026-05-16 13:16:30 /login ....................................... ~ 0.18ms + 2026-05-16 13:16:30 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 0.04ms + 2026-05-16 13:16:30 /_debugbar/assets ............................ ~ 0.04ms + 2026-05-16 13:16:30 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 0.30ms + 2026-05-16 13:16:30 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 0.36ms + 2026-05-16 13:16:30 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 0.41ms + 2026-05-16 13:16:30 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 0.50ms + 2026-05-16 13:16:30 /build/assets/app-Cepr_1pM.css ............... ~ 0.60ms + 2026-05-16 13:16:30 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 0.07ms + 2026-05-16 13:16:30 /build/assets/login-ChcC_8AO.js .............. ~ 0.12ms + 2026-05-16 13:16:30 /build/assets/label-Bm_XQ51m.js .............. ~ 0.25ms + 2026-05-16 13:16:30 /build/assets/dist-BbyHtHkN.js ............... ~ 0.38ms + 2026-05-16 13:16:30 /build/assets/check-DyiRX4Xw.js .............. ~ 0.53ms + 2026-05-16 13:16:30 /build/assets/app-oD_smNiH.js ................ ~ 0.69ms + 2026-05-16 13:16:30 /build/assets/socialite-nLlijaNu.js .......... ~ 1.67ms + 2026-05-16 13:16:30 /build/assets/password-input-edyn0ldP.js ..... ~ 1.90ms + 2026-05-16 13:16:30 /build/assets/github-CKHGr0Eu.js ............. ~ 2.03ms + 2026-05-16 13:16:30 /build/assets/input-error-BKflSobO.js ........ ~ 2.16ms + 2026-05-16 13:16:30 /build/assets/text-link-CLgvsck4.js .......... ~ 0.73ms + 2026-05-16 13:16:30 /build/assets/spinner-G1qHHBFp.js ............ ~ 0.07ms + 2026-05-16 13:16:30 /build/assets/loader-circle-TxyH1sMW.js ...... ~ 0.22ms + 2026-05-16 13:16:30 /_debugbar/assets ............................ ~ 0.29ms + 2026-05-16 13:16:30 /build/assets/password-BYr0oeQb.js ........... ~ 0.62ms + 2026-05-16 13:16:30 /build/assets/confirm-4rcYKmMR.js ............ ~ 0.88ms + 2026-05-16 13:16:30 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 0.04ms + 2026-05-16 13:16:30 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.09ms + 2026-05-16 13:16:31 /login ..................................... ~ 500.46ms + 2026-05-16 13:16:32 /dashboard ................................... ~ 0.03ms + 2026-05-16 13:16:32 /_debugbar/open .............................. ~ 0.03ms + 2026-05-16 13:16:32 /_debugbar/open .............................. ~ 0.30ms + 2026-05-16 13:16:33 /themes/create ............................... ~ 0.11ms + 2026-05-16 13:16:33 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 0.14ms + 2026-05-16 13:16:33 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 0.19ms + 2026-05-16 13:16:33 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 0.24ms + 2026-05-16 13:16:33 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 0.29ms + 2026-05-16 13:16:33 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 0.33ms + 2026-05-16 13:16:33 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 0.33ms + 2026-05-16 13:16:33 /build/assets/app-Cepr_1pM.css ............... ~ 0.07ms + 2026-05-16 13:16:33 /build/assets/create-CKJR6MW9.js ............. ~ 0.20ms + 2026-05-16 13:16:33 /build/assets/popover-CMxhrS4e.js ............ ~ 0.34ms + 2026-05-16 13:16:33 /build/assets/tabs-CIeNcDCw.js ............... ~ 0.50ms + 2026-05-16 13:16:33 /build/assets/label-Bm_XQ51m.js .............. ~ 0.68ms + 2026-05-16 13:16:33 /build/assets/color-utils-EgcE6_BX.js ........ ~ 0.38ms + 2026-05-16 13:16:33 /build/assets/main-layout-CZKESKz-.js ........ ~ 0.46ms + 2026-05-16 13:16:33 /build/assets/app-oD_smNiH.js ................ ~ 1.02ms + 2026-05-16 13:16:33 /build/assets/sun-D0QtTDKA.js ................ ~ 0.69ms + 2026-05-16 13:16:33 /build/assets/placeholder-pattern-DQ049twe.js ~ 0.06ms + 2026-05-16 13:16:33 /build/assets/glow-stack-BsODASz1.js ......... ~ 0.10ms + 2026-05-16 13:16:33 /build/assets/card-DbftTBhB.js ............... ~ 0.20ms + 2026-05-16 13:16:33 /build/assets/main-theme-card-C5qy-QOO.js .... ~ 0.39ms + 2026-05-16 13:16:33 /build/assets/glow-radial-DzS8n93o.js ........ ~ 0.06ms + 2026-05-16 13:16:33 /build/assets/check-DyiRX4Xw.js .............. ~ 0.15ms + 2026-05-16 13:16:33 /build/assets/github-CKHGr0Eu.js ............. ~ 0.28ms + 2026-05-16 13:16:33 /build/assets/loader-circle-TxyH1sMW.js ...... ~ 0.39ms + 2026-05-16 13:16:33 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.05ms + 2026-05-16 13:16:33 /build/assets/instrument-sans-600-normal-B9e8oLYv.woff ~ 0.10ms + 2026-05-16 13:16:33 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 0.14ms + 2026-05-16 13:19:21 /login ....................................... ~ 0.15ms + 2026-05-16 13:19:21 /build/assets/app-Cepr_1pM.css ............... ~ 0.09ms + 2026-05-16 13:19:21 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 0.23ms + 2026-05-16 13:19:21 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 0.29ms + 2026-05-16 13:19:21 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 0.33ms + 2026-05-16 13:19:21 /_debugbar/assets ............................ ~ 0.03ms + 2026-05-16 13:19:21 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 0.66ms + 2026-05-16 13:19:21 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 0.71ms + 2026-05-16 13:19:21 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 0.31ms + 2026-05-16 13:19:21 /build/assets/login-DBeospjT.js .............. ~ 0.11ms + 2026-05-16 13:19:21 /build/assets/app-CDTTmT5q.js ................ ~ 0.52ms + 2026-05-16 13:19:21 /build/assets/label-HjChP4NT.js .............. ~ 0.06ms + 2026-05-16 13:19:21 /build/assets/dist-BSWObGKZ.js ............... ~ 0.19ms + 2026-05-16 13:19:21 /build/assets/check-DIZpAYhB.js .............. ~ 0.33ms + 2026-05-16 13:19:21 /build/assets/socialite-j_TSd3nX.js .......... ~ 0.52ms + 2026-05-16 13:19:21 /build/assets/password-input-Ce0OxZVs.js ..... ~ 0.63ms + 2026-05-16 13:19:21 /build/assets/github-Dvrv3DFg.js ............. ~ 0.06ms + 2026-05-16 13:19:21 /build/assets/input-error-DOkH3rlS.js ........ ~ 0.19ms + 2026-05-16 13:19:21 /build/assets/text-link-CWPOkL8O.js .......... ~ 0.27ms + 2026-05-16 13:19:21 /build/assets/spinner-CkkNsEZR.js ............ ~ 0.38ms + 2026-05-16 13:19:21 /build/assets/loader-circle-BneiEJoj.js ...... ~ 0.50ms + 2026-05-16 13:19:21 /_debugbar/assets ............................ ~ 0.03ms + 2026-05-16 13:19:21 /build/assets/password-CKTtsbof.js ........... ~ 0.31ms + 2026-05-16 13:19:21 /build/assets/confirm-EeVTAroS.js ............ ~ 0.46ms + 2026-05-16 13:19:21 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 0.13ms + 2026-05-16 13:19:21 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.21ms + 2026-05-16 13:19:22 /login ..................................... ~ 504.25ms + 2026-05-16 13:19:23 /dashboard ................................... ~ 0.03ms + 2026-05-16 13:19:23 /_debugbar/open ............................ ~ 500.51ms + 2026-05-16 13:19:23 /_debugbar/open ............................ ~ 500.87ms + 2026-05-16 13:19:24 /themes/create ............................... ~ 0.10ms + 2026-05-16 13:19:24 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 0.08ms + 2026-05-16 13:19:24 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 0.13ms + 2026-05-16 13:19:24 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 0.44ms + 2026-05-16 13:19:24 /build/assets/create-CBrpIMIh.js ............. ~ 0.62ms + 2026-05-16 13:19:24 /build/assets/popover-CU2Pu7oR.js ............ ~ 0.78ms + 2026-05-16 13:19:24 /build/assets/tabs-3sMR4DIH.js ............... ~ 0.93ms + 2026-05-16 13:19:24 /build/assets/app-Cepr_1pM.css ............... ~ 0.08ms + 2026-05-16 13:19:24 /build/assets/color-utils-EgcE6_BX.js ........ ~ 0.08ms + 2026-05-16 13:19:24 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 0.45ms + 2026-05-16 13:19:24 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 0.22ms + 2026-05-16 13:19:24 /build/assets/sun-CaRqgIa8.js ................ ~ 0.27ms + 2026-05-16 13:19:24 /build/assets/main-layout-BBVsjXRW.js ........ ~ 0.46ms + 2026-05-16 13:19:24 /build/assets/placeholder-pattern-BxzTt3oZ.js ~ 0.54ms + 2026-05-16 13:19:24 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 0.07ms + 2026-05-16 13:19:24 /build/assets/glow-stack-CD0aM0Yh.js ......... ~ 0.12ms + 2026-05-16 13:19:24 /build/assets/card-B0uGXLso.js ............... ~ 0.28ms + 2026-05-16 13:19:24 /build/assets/main-theme-card-CXCXK_av.js .... ~ 0.42ms + 2026-05-16 13:19:24 /build/assets/glow-radial-TZeI-bSg.js ........ ~ 0.49ms + 2026-05-16 13:19:24 /build/assets/label-HjChP4NT.js .............. ~ 0.06ms + 2026-05-16 13:19:24 /build/assets/check-DIZpAYhB.js .............. ~ 0.19ms + 2026-05-16 13:19:24 /build/assets/github-Dvrv3DFg.js ............. ~ 0.32ms + 2026-05-16 13:19:24 /build/assets/loader-circle-BneiEJoj.js ...... ~ 0.45ms + 2026-05-16 13:19:24 /build/assets/app-CDTTmT5q.js ................ ~ 1.13ms + 2026-05-16 13:19:25 /build/assets/instrument-sans-600-normal-B9e8oLYv.woff ~ 0.16ms + 2026-05-16 13:19:25 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.24ms + 2026-05-16 13:19:25 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 0.29ms + 2026-05-16 16:30:13 /login ..................................... ~ 517.06ms + 2026-05-16 16:30:14 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 1.07ms + 2026-05-16 16:30:14 /build/assets/app-DN02iwDR.css ............... ~ 1.17ms + 2026-05-16 16:30:14 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 1.19ms + 2026-05-16 16:30:14 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 1.14ms + 2026-05-16 16:30:14 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 1.17ms + 2026-05-16 16:30:14 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 1.22ms + 2026-05-16 16:30:14 /_debugbar/assets ............................ ~ 0.03ms + 2026-05-16 16:30:14 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 1.06ms + 2026-05-16 16:30:14 /build/assets/login-00JrbYrx.js .............. ~ 0.12ms + 2026-05-16 16:30:14 /build/assets/label-fRwP89Ez.js .............. ~ 0.60ms + 2026-05-16 16:30:14 /build/assets/dist-D5bK512v.js ............... ~ 0.77ms + 2026-05-16 16:30:14 /build/assets/app-D7MKN1zp.js ................ ~ 0.95ms + 2026-05-16 16:30:14 /build/assets/check-BBvDdM_9.js .............. ~ 0.06ms + 2026-05-16 16:30:14 /build/assets/socialite-BBNBBxaD.js .......... ~ 0.19ms + 2026-05-16 16:30:14 /build/assets/password-input-__9RhIwi.js ..... ~ 0.78ms + 2026-05-16 16:30:14 /build/assets/github-Be9qoVk0.js ............. ~ 0.86ms + 2026-05-16 16:30:14 /build/assets/input-error-CzZYqI_U.js ........ ~ 0.99ms + 2026-05-16 16:30:14 /build/assets/text-link-BlYfkXNw.js .......... ~ 0.06ms + 2026-05-16 16:30:14 /build/assets/spinner-CCI0ZpZ9.js ............ ~ 1.02ms + 2026-05-16 16:30:14 /build/assets/loader-circle-YfjFJaoY.js ...... ~ 1.17ms + 2026-05-16 16:30:14 /build/assets/password-BDtte38w.js ........... ~ 1.26ms + 2026-05-16 16:30:14 /build/assets/confirm-tDhmficG.js ............ ~ 1.38ms + 2026-05-16 16:30:14 /_debugbar/assets ............................ ~ 0.04ms + 2026-05-16 16:30:14 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 0.21ms + 2026-05-16 16:30:14 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.26ms + 2026-05-16 16:30:15 /login ........................................... ~ 1s + 2026-05-16 16:30:16 /dashboard ................................... ~ 0.04ms + 2026-05-16 16:30:16 /_debugbar/open .............................. ~ 0.04ms + 2026-05-16 16:30:16 /_debugbar/open .............................. ~ 0.26ms + 2026-05-16 16:30:17 /themes/create ............................... ~ 0.16ms + 2026-05-16 16:30:17 /build/assets/instrument-sans-400-normal-DRC__1Mx.woff2 ~ 0.09ms + 2026-05-16 16:30:17 /build/assets/instrument-sans-400-normal-Q_nF8v4l.woff2 ~ 0.20ms + 2026-05-16 16:30:17 /build/assets/instrument-sans-500-normal-Dk9ku72i.woff2 ~ 0.27ms + 2026-05-16 16:30:17 /build/assets/create-BmSt6sO8.js ............. ~ 0.31ms + 2026-05-16 16:30:17 /build/assets/instrument-sans-500-normal-CTEe1bJa.woff2 ~ 0.44ms + 2026-05-16 16:30:17 /build/assets/popover-B2UUPq8p.js ............ ~ 0.48ms + 2026-05-16 16:30:17 /build/assets/app-DN02iwDR.css ............... ~ 0.04ms + 2026-05-16 16:30:17 /build/assets/tabs-CNNfAj8l.js ............... ~ 0.26ms + 2026-05-16 16:30:17 /build/assets/color-utils-DTvyGxAC.js ........ ~ 0.22ms + 2026-05-16 16:30:17 /build/assets/instrument-sans-600-normal-B7fBEWYG.woff2 ~ 0.35ms + 2026-05-16 16:30:17 /build/assets/sun-r0X8DC4y.js ................ ~ 0.41ms + 2026-05-16 16:30:17 /build/assets/placeholder-pattern-DUvj6lOE.js ~ 0.55ms + 2026-05-16 16:30:17 /build/assets/main-layout-qej9zSi0.js ........ ~ 0.61ms + 2026-05-16 16:30:17 /build/assets/glow-stack-BaNii-nE.js ......... ~ 0.08ms + 2026-05-16 16:30:17 /build/assets/instrument-sans-600-normal-BsaQcF38.woff2 ~ 0.17ms + 2026-05-16 16:30:17 /build/assets/card-C1ekp7Ou.js ............... ~ 0.22ms + 2026-05-16 16:30:17 /build/assets/main-theme-card-B0GTBBPN.js .... ~ 0.36ms + 2026-05-16 16:30:17 /build/assets/glow-radial-CIe4ekoG.js ........ ~ 0.42ms + 2026-05-16 16:30:17 /build/assets/app-D7MKN1zp.js ................ ~ 0.51ms + 2026-05-16 16:30:17 /build/assets/label-fRwP89Ez.js .............. ~ 0.06ms + 2026-05-16 16:30:17 /build/assets/check-BBvDdM_9.js .............. ~ 0.19ms + 2026-05-16 16:30:17 /build/assets/github-Be9qoVk0.js ............. ~ 0.32ms + 2026-05-16 16:30:17 /build/assets/loader-circle-YfjFJaoY.js ...... ~ 0.89ms + 2026-05-16 16:30:18 /build/assets/instrument-sans-600-normal-B9e8oLYv.woff ~ 0.14ms + 2026-05-16 16:30:18 /build/assets/instrument-sans-400-normal-D1W7dsQl.woff ~ 0.22ms + 2026-05-16 16:30:18 /build/assets/instrument-sans-500-normal-Z6ESRlEs.woff ~ 0.27ms diff --git a/public/build/assets/animate-css-DIxn22Sl.js b/public/build/assets/animate-css-BwrG5zYQ.js similarity index 99% rename from public/build/assets/animate-css-DIxn22Sl.js rename to public/build/assets/animate-css-BwrG5zYQ.js index f047952..487103d 100644 --- a/public/build/assets/animate-css-DIxn22Sl.js +++ b/public/build/assets/animate-css-BwrG5zYQ.js @@ -1,4 +1,4 @@ -import{t as e}from"./check-CCTwZBIw.js";import{t}from"./chevron-down-Cx1PhGaQ.js";import{t as n}from"./copy-CgW44MFY.js";import{t as r}from"./heart-DBfrxc2y.js";import{t as i}from"./main-layout-DiaP0ISn.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./main-registry-installer-CWpQAmy4.js";import{At as d,B as f,C as p,Ct as m,Dt as h,Et as g,Ft as _,G as v,H as y,It as b,K as x,Kt as S,Mt as C,Nt as w,Ot as T,Pt as E,Q as D,St as O,Tt as k,V as A,Wt as j,_t as M,an as N,bt as P,dt as F,ft as I,gt as ee,ht as L,jt as te,kt as R,ln as z,lt as ne,mt as re,nn as ie,pt as B,qt as ae,r as V,rn as oe,tn as se,ut as H,vt as ce,wt as le,xt as ue,yt as de}from"./app-CVlP31Z1.js";import{a as fe,n as pe,o as me,t as he}from"./card-BMwhGcsv.js";import{c as ge,i as U,o as _e,r as ve,s as ye,t as be}from"./dialog-D1phUQb7.js";import{i as xe}from"./glow-stack-DaYuOL5d.js";var Se=v(`Share`,[[`path`,{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`,key:`1b2hhj`}],[`polyline`,{points:`16 6 12 2 8 6`,key:`m901s6`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`15`,key:`1p0rca`}]]),Ce=v(`ThumbsUp`,[[`path`,{d:`M7 10v12`,key:`1qc93n`}],[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}]]),W=z(oe()),we=ae();function Te(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Ee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var De={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},G={duration:.5,overwrite:!1,delay:0},Oe,ke,K,Ae=1e8,je=1/Ae,Me=Math.PI*2,Ne=Me/4,Pe=0,Fe=Math.sqrt,Ie=Math.cos,Le=Math.sin,Re=function(e){return typeof e==`string`},ze=function(e){return typeof e==`function`},Be=function(e){return typeof e==`number`},Ve=function(e){return e===void 0},He=function(e){return typeof e==`object`},Ue=function(e){return e!==!1},We=function(){return typeof window<`u`},Ge=function(e){return ze(e)||Re(e)},Ke=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},qe=Array.isArray,Je=/random\([^)]+\)/g,Ye=/,\s*/g,Xe=/(?:-?\.?\d|\.)+/gi,Ze=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Qe=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,$e=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,et=/[+-]=-?[.\d]+/,tt=/[^,'"\[\]\s]+/gi,nt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,rt,it,at,ot,st={},ct={},lt,ut=function(e){return(ct=Ht(e,st))&&ci},dt=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},ft=function(e,t){return!t&&console.warn(e)},pt=function(e,t){return e&&(st[e]=t)&&ct&&(ct[e]=t)||st},mt=function(){return 0},ht={suppressEvents:!0,isStart:!0,kill:!1},gt={suppressEvents:!0,kill:!1},_t={suppressEvents:!0},vt={},yt=[],bt={},xt,St={},Ct={},wt=30,Tt=[],Et=``,Dt=function(e){var t=e[0],n,r;if(He(t)||ze(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=Tt.length;r--&&!Tt[r].targetTest(t););n=Tt[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new vr(e[r],n)))||e.splice(r,1);return e},Ot=function(e){return e._gsap||Dt(En(e))[0]._gsap},kt=function(e,t,n){return(n=e[t])&&ze(n)?e[t]():Ve(n)&&e.getAttribute&&e.getAttribute(t)||n},At=function(e,t){return(e=e.split(`,`)).forEach(t)||e},jt=function(e){return Math.round(e*1e5)/1e5||0},Mt=function(e){return Math.round(e*1e7)/1e7||0},Nt=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Pt=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ro;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},Jt=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Yt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Xt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Zt=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Qt=function(e,t,n,r){return e._startAt&&(ke?e._startAt.revert(gt):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},$t=function e(t){return!t||t._ts&&e(t.parent)},en=function(e){return e._repeat?tn(e._tTime,e=e.duration()+e._rDelay)*e:0},tn=function(e,t){var n=Math.floor(e=Mt(e/t));return e&&n===e?n-1:n},nn=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},rn=function(e){return e._end=Mt(e._start+(e._tDur/Math.abs(e._ts||e._rts||je)||0))},an=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=Mt(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),rn(e),n._dirty||Xt(n,e)),e},on=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._startje)&&t.render(n,!0)),Xt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-je}},sn=function(e,t,n,r){return t.parent&&Yt(t),t._start=Mt((Be(n)?n:n||e!==rt?_n(e,n,t):e._time)+t._delay),t._end=Mt(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),qt(e,t,`_first`,`_last`,e._sort?`_start`:0),dn(t)||(e._recent=t),r||on(e,t),e._ts<0&&an(e,e._tTime),e},cn=function(e,t){return(st.ScrollTrigger||dt(`scrollTrigger`,t))&&st.ScrollTrigger.create(t,e)},ln=function(e,t,n,r,i){if(Dr(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!ke&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&xt!==ir.frame)return yt.push(e),e._lazy=[i,r],1},un=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},dn=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},fn=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&un(e)&&!(!e._initted&&dn(e))||(e._ts<0||e._dp._ts<0)&&!dn(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=bn(0,e._tDur,t),l=tn(s,o),e._yoyo&&l&1&&(a=1-a),l!==tn(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||ke||r||e._zTime===je||!t&&e._zTime){if(!e._initted&&ln(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?je:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Qt(e,t,n,!0),e._onUpdate&&!n&&Un(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Un(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Yt(e,1),!n&&!ke&&(Un(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},pn=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start0&&!r&&an(e,e._tTime=e._tDur*o),e.parent&&rn(e),n||Xt(e.parent,e),e},hn=function(e){return e instanceof br?Xt(e):mn(e,e._dur)},gn={_start:0,endTime:mt,totalDuration:mt},_n=function e(t,n,r){var i=t.labels,a=t._recent||gn,o=t.duration()>=Ae?a.endTime(!1):t._dur,s,c,l;return Re(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(qe(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},vn=function(e,t,n){var r=Be(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=Ue(s.vars.inherit)&&s.parent;a.immediateRender=Ue(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Pr(t[0],a,t[i+1])},yn=function(e,t){return e||e===0?t(e):t},bn=function(e,t,n){return nt?t:n},xn=function(e,t){return!Re(e)||!(t=nt.exec(e))?``:t[1]},Sn=function(e,t,n){return yn(n,function(n){return bn(e,t,n)})},Cn=[].slice,wn=function(e,t){return e&&He(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&He(e[0]))&&!e.nodeType&&e!==it},Tn=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return Re(e)&&!t||wn(e,1)?(r=n).push.apply(r,En(e)):n.push(e)})||n},En=function(e,t,n){return K&&!t&&K.selector?K.selector(e):Re(e)&&!n&&(at||!ar())?Cn.call((t||ot).querySelectorAll(e),0):qe(e)?Tn(e,n):wn(e)?Cn.call(e,0):e?[e]:[]},Dn=function(e){return e=En(e)[0]||ft(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return En(t,n.querySelectorAll?n:n===e?ft(`Invalid scope`)||ot.createElement(`div`):e)}},On=function(e){return e.sort(function(){return .5-Math.random()})},kn=function(e){if(ze(e))return e;var t=He(e)?e:{each:e},n=pr(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return Re(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,Ae])[1],!S){for(b=-Ae;b<(b=d[S++].getBoundingClientRect().left)&&Sb&&(b=v),vf?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=xn(t.amount||t.each)||0,n=n&&f<0?fr(n):n}return f=(p[e]-p.min)/p.max||0,Mt(p.b+(n?n(f):f)*p.v)+p.u}},An=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=Mt(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Be(n)?0:xn(n))}},jn=function(e,t){var n=qe(e),r,i;return!n&&He(e)&&(r=n=e.radius||Ae,e.values?(e=En(e.values),(i=!Be(e[0]))&&(r*=r)):e=An(e.increment)),yn(t,n?ze(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=Ae,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),li?a-e:e)})},zn=function(e){return e.replace(Je,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(Ye);return Mn(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},Bn=function(e,t,n,r,i){var a=t-e,o=r-n;return yn(i,function(t){return n+((t-e)/a*o||0)})},Vn=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=Re(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(qe(t)&&!qe(n)){for(u=[],d=t.length,f=d-2,l=1;l(o=Math.abs(o))&&(s=a,i=o);return s},Un=function(e,t,n){var r=e.vars,i=r[t],a=K,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&yt.length&&Ft(),o&&(K=o),l=s?i.apply(c,s):i.call(c),K=a,l},Wn=function(e){return Yt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ke),e.progress()<1&&Un(e,`onInterrupt`),e},Gn,Kn=[],qn=function(e){if(e)if(e=!e.name&&e.default||e,We()||e.headless){var t=e.name,n=ze(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:mt,render:Ur,add:Sr,kill:Gr,modifier:Wr,rawVars:0},a={targetTest:0,get:0,getSetter:zr,aliases:{},register:0};if(ar(),e!==r){if(St[t])return;Bt(r,Bt(Wt(e,i),a)),Ht(r.prototype,Ht(i,Wt(e,a))),St[r.prop=t]=r,e.targetTest&&(Tt.push(r),vt[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}pt(t,r),e.register&&e.register(ci,r,Jr)}else Kn.push(e)},Jn=255,Yn={aqua:[0,Jn,Jn],lime:[0,Jn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Jn],navy:[0,0,128],white:[Jn,Jn,Jn],olive:[128,128,0],yellow:[Jn,Jn,0],orange:[Jn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Jn,0,0],pink:[Jn,192,203],cyan:[0,Jn,Jn],transparent:[Jn,Jn,Jn,0]},Xn=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*Jn+.5|0},Zn=function(e,t,n){var r=e?Be(e)?[e>>16,e>>8&Jn,e&Jn]:0:Yn.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Yn[e])r=Yn[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Jn,r&Jn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Jn,e&Jn]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(Xe),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Xn(s+1/3,i,a),r[1]=Xn(s,i,a),r[2]=Xn(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Ze),n&&r.length<4&&(r[3]=1),r}else r=e.match(Xe)||Yn.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/Jn,a=r[1]/Jn,o=r[2]/Jn,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(at||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p=t&&p--},_listeners:s},d}(),ar=function(){return!rr&&ir.wake()},or={},sr=/^[\d.\-M][\d.\-,\s]/,cr=/["']/g,lr=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[lr(t[1])]:ur(e).split(`,`).map(Rt)):or._CE&&sr.test(e)?or._CE(``,e):n},fr=function(e){return function(t){return 1-e(1-t)}},pr=function(e,t){return e&&(ze(e)?e:or[e]||dr(e))||t},mr=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return At(e,function(e){for(var t in or[e]=st[e]=i,or[a=e.toLowerCase()]=n,i)or[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=or[e+`.`+t]=i[t]}),i},hr=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},gr=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/Me*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*Le((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:hr(s);return a=Me/a,c.config=function(n,r){return e(t,n,r)},c},_r=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:hr(r);return i.config=function(n){return e(t,n)},i};At(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;mr(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),or.Linear.easeNone=or.none=or.Linear.easeIn,mr(`Elastic`,gr(`in`),gr(`out`),gr()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,mn(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(ar(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(an(this,e),!n._dp||n.parent||on(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&sn(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===je||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Lt(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+en(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+en(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?tn(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-je?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?nn(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-je?0:this._rts,this.totalTime(bn(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),rn(this),Zt(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ar(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==je&&(this._tTime-=je)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=Mt(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&sn(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Ue(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?nn(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=_t);var t=ke;return ke=e,It(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),ke=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,hn(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,hn(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(_n(this,e),Ue(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,Ue(t)),this._dur||(this._zTime=-je),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-je:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-je,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=ze(e)?e:zt,a=function(){var e=t.then;t.then=null,n&&n(),ze(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Wn(this)},e}();Bt(yr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-je,_prom:0,_ps:!1,_rts:1});var br=function(e){Ee(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=Ue(t.sortChildren),rt&&sn(t.parent||rt,Te(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&cn(Te(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return vn(0,arguments,this),this},n.from=function(e,t,n){return vn(1,arguments,this),this},n.fromTo=function(e,t,n,r){return vn(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Gt(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Pr(e,t,_n(this,n),1),this},n.call=function(e,t,n){return sn(this,Pr.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new Pr(e,n,_n(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Gt(n).immediateRender=Ue(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Gt(r).immediateRender=Ue(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:Mt(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==rt&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=Mt(o%f),o===i?(d=this._repeat,c=a):(_=Mt(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=tn(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:Mt(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Un(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=pn(this,Mt(r),Mt(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Un(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-je);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||ke&&It(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-je:je);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-je)._zTime=c>=r?1:-1,this._ts))return this._start=g,rn(this),this.render(e,t,n);this._onUpdate&&!t&&Un(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Yt(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Un(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(Be(t)||(t=_n(this,t,e)),!(e instanceof yr)){if(qe(e))return e.forEach(function(e){return n.add(e,t)}),this;if(Re(e))return this.addLabel(e,t);if(ze(e))e=Pr.delayedCall(0,e);else return this}return this===e?this:sn(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-Ae);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Pr?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return Re(e)?this.removeLabel(e):ze(e)?this.killTweensOf(e):(e.parent===this&&Jt(this,e),e===this._recent&&(this._recent=this._last),Xt(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Mt(ir.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=_n(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Pr.delayedCall(0,t||mt,n);return r.data=`isPause`,this._hasPause=1,sn(this,r,_n(this,e))},n.removePause=function(e){var t=this._first;for(e=_n(this,e);t;)t._start===e&&t.data===`isPause`&&Yt(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Tr!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=En(e),i=this._first,a=Be(t),o;i;)i instanceof Pr?Pt(i._targets,r)&&(a?(!Tr||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=_n(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Pr.to(n,Bt({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||je,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&mn(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,Bt({startAt:{time:_n(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Hn(this,_n(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Hn(this,_n(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+je)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=Mt(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Xt(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Xt(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=Ae,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,sn(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=Mt(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;mn(n,n===rt&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(rt._ts&&(Lt(rt,nn(e,rt)),xt=ir.frame),ir.frame>=wt){wt+=De.autoSleep||120;var t=rt._first;if((!t||!t._ts)&&De.autoSleep&&ir._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||ir.sleep()}}},t}(yr);Bt(br.prototype,{_lock:0,_hasPause:0,_forcing:0});var xr=function(e,t,n,r,i,a,o){var s=new Jr(this._pt,e,t,0,1,Hr,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=zn(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match($e)||[];u=$e.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Nt(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=$e.lastIndex);return s.c=c`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||Ar(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;vi-je&&!o?i:ea&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=tn(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(Mt(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(ln(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c0||!s&&this._ts<0)&&Yt(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Un(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){rr||ir.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Dr(this,a),o=this._ease(a/this._dur),Or(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(an(this,0),this.parent||qt(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Wn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ke),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Tr&&Tr.vars.overwrite!==!0)._first||Wn(this),this.parent&&n!==this.timeline.totalDuration()&&mn(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?En(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Kt(r,i))return t===`all`&&(this._pt=0),Wn(this);for(s=this._op=this._op||[],t!==`all`&&(Re(t)&&(d={},At(t,function(e){return d[e]=1}),t=d),t=kr(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&Jt(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Wn(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return vn(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return vn(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return rt.killTweensOf(e,t,n)},t}(yr);Bt(Pr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),At(`staggerTo,staggerFrom,staggerFromTo`,function(e){Pr[e]=function(){var t=new br,n=Cn.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Fr=function(e,t,n){return e[t]=n},Ir=function(e,t,n){return e[t](n)},Lr=function(e,t,n,r){return e[t](r.fp,n)},Rr=function(e,t,n){return e.setAttribute(t,n)},zr=function(e,t){return ze(e[t])?Ir:Ve(e[t])&&e.setAttribute?Rr:Fr},Br=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Vr=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Hr=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Ur=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Wr=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Gr=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Jt(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Kr=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},qr=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},Jr=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Br,this.d=o||this,this.set=s||Fr,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Kr,this.m=e,this.mt=n,this.tween=t},e}();At(Et+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return vt[e]=1}),st.TweenMax=st.TweenLite=Pr,st.TimelineLite=st.TimelineMax=br,rt=new br({sortChildren:!1,defaults:G,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),De.stringFilter=nr;var Yr=[],Xr={},Zr=[],Qr=0,$r=0,ei=function(e){return(Xr[e]||Zr).map(function(e){return e()})},ti=function(){var e=Date.now(),t=[];e-Qr>2&&(ei(`matchMediaInit`),Yr.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=it.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),ei(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Qr=e,ei(`matchMedia`))},ni=function(){function e(e,t){this.selector=t&&Dn(t),this.data=[],this._r=[],this.isReverted=!1,this.id=$r++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){ze(e)&&(n=t,t=e,e=ze);var r=this,i=function(){var e=K,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=Dn(n)),K=r,a=t.apply(r,arguments),ze(a)&&r._r.push(a),K=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===ze?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=K;K=null,e(this),K=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Pr&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof br?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Pr)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Yr.length;r--;)Yr[r].id===this.id&&Yr.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),ri=function(){function e(e){this.contexts=[],this.scope=e,K&&K.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){He(e)||(e={matches:e});var r=new ni(0,n||this.scope),i=r.conditions={},a,o,s;for(o in K&&!r.selector&&(r.selector=K.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=it.matchMedia(e[o]),a&&(Yr.indexOf(r)<0&&Yr.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(ti):a.addEventListener(`change`,ti)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),ii={registerPlugin:function(){[...arguments].forEach(function(e){return qn(e)})},timeline:function(e){return new br(e)},getTweensOf:function(e,t){return rt.getTweensOf(e,t)},getProperty:function(e,t,n,r){Re(e)&&(e=En(e)[0]);var i=Ot(e||{}).get,a=n?zt:Rt;return n===`native`&&(n=``),e&&(t?a((St[t]&&St[t].get||i)(e,t,n,r)):function(t,n,r){return a((St[t]&&St[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=En(e),e.length>1){var r=e.map(function(e){return ci.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=St[t],o=Ot(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Gn._pt=0,r.init(e,n?t+n:t,Gn,0,[e]),r.render(1,r),Gn._pt&&Ur(1,Gn)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=ci.to(e,Bt((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return rt.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=pr(e.ease,G.ease)),Ut(G,e||{})},config:function(e){return Ut(De,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!St[e]&&!st[e]&&ft(t+` effect requires `+e+` plugin.`)}),Ct[t]=function(e,t,r){return n(En(e),Bt(t||{},i),r)},a&&(br.prototype[t]=function(e,n,r){return this.add(Ct[t](e,He(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){or[e]=pr(t)},parseEase:function(e,t){return arguments.length?pr(e,t):or},getById:function(e){return rt.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new br(e),r,i;for(n.smoothChildTiming=Ue(e.smoothChildTiming),rt.remove(n),n._dp=0,n._time=n._tTime=rt._time,r=rt._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Pr&&r.vars.onComplete===r._targets[0]))&&sn(n,r,r._start-r._delay),r=i;return sn(rt,n,0),n},context:function(e,t){return e?new ni(e,t):K},matchMedia:function(e){return new ri(e)},matchMediaRefresh:function(){return Yr.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||ti()},addEventListener:function(e,t){var n=Xr[e]||(Xr[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Xr[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Ln,wrapYoyo:Rn,distribute:kn,random:Mn,snap:jn,normalize:Fn,getUnit:xn,clamp:Sn,splitColor:Zn,toArray:En,selector:Dn,mapRange:Bn,pipe:Nn,unitize:Pn,interpolate:Vn,shuffle:On},install:ut,effects:Ct,ticker:ir,updateRoot:br.updateRoot,plugins:St,globalTimeline:rt,core:{PropTween:Jr,globals:pt,Tween:Pr,Timeline:br,Animation:yr,getCache:Ot,_removeLinkedListItem:Jt,reverting:function(){return ke},context:function(e){return e&&K&&(K.data.push(e),e._ctx=K),K},suppressOverwrites:function(e){return Oe=e}}};At(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return ii[e]=Pr[e]}),ir.add(br.updateRoot),Gn=ii.to({},{duration:0});var ai=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},oi=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=ai(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},si=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(Re(n)&&(r={},At(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}oi(e,n)}}}},ci=ii.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)ke?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},si(`roundProps`,An),si(`modifiers`),si(`snap`,jn))||ii;Pr.version=br.version=ci.version=`3.15.0`,lt=1,We()&&ar(),or.Power0,or.Power1,or.Power2,or.Power3,or.Power4,or.Linear,or.Quad,or.Cubic,or.Quart,or.Quint,or.Strong,or.Elastic,or.Back,or.SteppedEase,or.Bounce,or.Sine,or.Expo,or.Circ;var li,ui,di,fi,pi,mi,hi,gi=function(){return typeof window<`u`},_i={},vi=180/Math.PI,yi=Math.PI/180,bi=Math.atan2,xi=1e8,Si=/([A-Z])/g,Ci=/(left|right|width|margin|padding|x)/i,wi=/[\s,\(]\S/,Ti={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},Ei=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Di=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Oi=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},ki=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Ai=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},ji=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Mi=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Ni=function(e,t,n){return e.style[t]=n},Pi=function(e,t,n){return e.style.setProperty(t,n)},Fi=function(e,t,n){return e._gsap[t]=n},Ii=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Li=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Ri=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},zi=`transform`,Bi=zi+`Origin`,Vi=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in _i&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=Ti[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=oa(i,e)}):this.tfm[t]=o.x?o[t]:oa(i,t),t===Bi&&(this.tfm.zOrigin=o.zOrigin);else return Ti.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(zi)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Bi,n,``)),t=zi}(a||n)&&this.props.push(t,n,a[t])},Hi=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Ui=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i=0?Ji[i]:``)+e},Xi=function(){gi()&&window.document&&(li=window,ui=li.document,di=ui.documentElement,pi=Ki(`div`)||{style:{}},Ki(`div`),zi=Yi(zi),Bi=zi+`Origin`,pi.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Gi=!!Yi(`perspective`),hi=ci.core.reverting,fi=1)},Zi=function(e){var t=e.ownerSVGElement,n=Ki(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),di.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),di.removeChild(n),i},Qi=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},$i=function(e){var t,n;try{t=e.getBBox()}catch{t=Zi(e),n=1}return t&&(t.width||t.height)||n||(t=Zi(e)),t&&!t.width&&!t.x&&!t.y?{x:+Qi(e,[`x`,`cx`,`x1`])||0,y:+Qi(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},ea=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&$i(e))},ta=function(e,t){if(t){var n=e.style,r;t in _i&&t!==Bi&&(t=zi),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(Si,`-$1`).toLowerCase())):n.removeAttribute(t)}},na=function(e,t,n,r,i,a){var o=new Jr(e._pt,t,n,0,1,a?Mi:ji);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},ra={deg:1,rad:1,turn:1},ia={grid:1,flex:1},aa=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=pi.style,c=Ci.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||ra[i]||ra[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&ea(t),(p||o===`%`)&&(_i[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],jt(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===ui||!h.appendChild)&&(h=ui.body),g=h._gsap,g&&p&&g.width&&c&&g.time===ir.time&&!g.uncache)return jt(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:ta(t,n)}else (p||o===`%`)&&!ia[qi(h,`display`)]&&(s.position=qi(t,`position`)),h===t&&(s.position=`static`),h.appendChild(pi),m=pi[u],h.removeChild(pi),s.position=`absolute`;return c&&p&&(g=Ot(h),g.time=ir.time,g.width=h[u]),jt(f?m*a/d:m&&a?d/m*a:0)},oa=function(e,t,n,r){var i;return fi||Xi(),t in Ti&&t!==`transform`&&(t=Ti[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),_i[t]&&t!==`transform`?(i=va(e,r),i=t===`transformOrigin`?i.svg?i.origin:ya(qi(e,Bi))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=da[t]&&da[t](e,t,n)||qi(e,t)||kt(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?aa(e,t,i,n)+n:i},sa=function(e,t,n,r){if(!n||n===`none`){var i=Yi(t,e,1),a=i&&qi(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=qi(e,`borderTopColor`))}var o=new Jr(this._pt,e.style,t,0,1,Hr),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=qi(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=qi(e,t)||r,m?e.style[t]=m:ta(e,t)),l=[n,r],nr(l),n=l[0],r=l[1],d=n.match(Qe)||[],b=r.match(Qe)||[],b.length){for(;u=Qe.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Nt(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Qe.lastIndex-v.length,v||(v=v||De.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=aa(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s-1;)o=i[c],_i[o]&&(s=1,o=o===`transformOrigin`?Bi:zi),ta(n,o);s&&(ta(n,zi),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,va(n,1),a.uncache=1,Hi(r)))}},da={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Jr(e._pt,t,n,0,0,ua);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},fa=[1,0,0,1,0,0],pa={},ma=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},ha=function(e){var t=qi(e,zi);return ma(t)?fa:t.substr(7).match(Ze).map(jt)},ga=function(e,t){var n=e._gsap||Ot(e),r=e.style,i=ha(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?fa:i):(i===fa&&!e.offsetParent&&e!==di&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,di.appendChild(e)),i=ha(e),s?r.display=s:ta(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):di.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},_a=function(e,t,n,r,i,a){var o=e._gsap,s=i||ga(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==fa&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=$i(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Bi]=`0px 0px`,a&&(na(a,o,`xOrigin`,c,y),na(a,o,`yOrigin`,l,b),na(a,o,`xOffset`,u,o.xOffset),na(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},va=function(e,t){var n=e._gsap||new vr(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=qi(e,Bi)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,L,te,R;return n.svg=!!(e.getCTM&&ea(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[zi]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[zi]===`none`?``:s[zi])),r.scale=r.rotate=r.translate=`none`),S=ga(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),_a(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==fa&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?bi(D,E)*vi:0,_=O||k?bi(O,k)*vi+m:0,_&&(p*=Math.abs(Math.cos(_*yi))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(R=S[6],L=S[7],F=S[8],I=S[9],ee=S[10],te=S[11],l=S[12],u=S[13],d=S[14],C=bi(R,ee),h=C*vi,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+F*T,N=j*w+I*T,P=R*w+ee*T,F=A*-T+F*w,I=j*-T+I*w,ee=R*-T+ee*w,te=L*-T+te*w,A=M,j=N,R=P),C=bi(-O,ee),g=C*vi,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-F*T,N=D*w-I*T,P=O*w-ee*T,te=k*T+te*w,E=M,D=N,O=P),C=bi(D,E),m=C*vi,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=jt(Math.sqrt(E*E+D*D+O*O)),p=jt(Math.sqrt(j*j+R*R)),C=bi(A,j),_=Math.abs(C)>2e-4?C*vi:0,y=te?1/(te<0?-te:te):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!ma(qi(e,zi)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=jt(f),n.scaleY=jt(p),n.rotation=jt(m)+o,n.rotationX=jt(h)+o,n.rotationY=jt(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Bi]=ya(c)),n.xOffset=n.yOffset=0,n.force3D=De.force3D,n.renderTransform=n.svg?Ea:Gi?Ta:xa,n.uncache=0,n},ya=function(e){return(e=e.split(` `))[0]+` `+e[1]},ba=function(e,t,n){var r=xn(t);return jt(parseFloat(t)+parseFloat(aa(e,`x`,n+`px`,r)))+r},xa=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,Ta(e,t)},Sa=`0deg`,Ca=`0px`,wa=`) `,Ta=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==Sa||l!==Sa)){var x=parseFloat(l)*yi,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*yi,w=Math.cos(x),a=ba(_,a,S*w*-v),o=ba(_,o,-Math.sin(x)*-v),s=ba(_,s,C*w*-v+v)}h!==Ca&&(y+=`perspective(`+h+wa),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==Ca||o!==Ca||s!==Ca)&&(y+=s!==Ca||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+wa),c!==Sa&&(y+=`rotate(`+c+wa),l!==Sa&&(y+=`rotateY(`+l+wa),u!==Sa&&(y+=`rotateX(`+u+wa),(d!==Sa||f!==Sa)&&(y+=`skew(`+d+`, `+f+wa),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+wa),_.style[zi]=y||`translate(0, 0)`},Ea=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=yi,c*=yi,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=yi,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=jt(b),x=jt(x),S=jt(S),C=jt(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=aa(f,`x`,a,`px`),y=aa(f,`y`,o,`px`)),(p||m||h||g)&&(v=jt(v+p-(p*b+m*S)+h),y=jt(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=jt(v+r/100*w.width),y=jt(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[zi]=w)},Da=function(e,t,n,r,i){var a=360,o=Re(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?vi:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*xi)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*xi)%a-~~(s/a)*a)),e._pt=u=new Jr(e._pt,t,n,r,s,Di),u.e=c,u.u=`deg`,e._props.push(n),u},Oa=function(e,t){for(var n in t)e[n]=t[n];return e},ka=function(e,t,n){var r=Oa({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[zi]=t,o=va(n,1),ta(n,zi),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[zi],a[zi]=t,o=va(n,1),a[zi]=c),_i)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=xn(c),p=xn(l),u=f===p?parseFloat(c):aa(n,s,c,p),d=parseFloat(l),e._pt=new Jr(e._pt,o,s,u,d-u,Ei),e._pt.u=p||0,e._props.push(s));Oa(o,r)};At(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});da[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return oa(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var Aa={name:`css`,register:Xi,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in fi||Xi(),this.styles=this.styles||Wi(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(St[m]&&wr(m,t,n,r,e,i)))){if(f=typeof l,p=da[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=zn(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,er.lastIndex=0,er.test(c)||(h=xn(c),g=xn(l),g?h!==g&&(c=aa(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],Re(c)&&~c.indexOf(`random(`)&&(c=zn(c)),xn(c+``)||c===`auto`||(c+=De.units[m]||xn(oa(e,m))||``),(c+``).charAt(1)===`=`&&(c=oa(e,m))):c=oa(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in Ti&&(m===`autoAlpha`&&(d===1&&oa(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),na(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=Ti[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in _i,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=qi(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=qi(e,`perspective`),T?e.style.perspective=T:ta(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||va(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new Jr(this._pt,o,zi,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new Jr(this._pt,b,`scaleY`,b.scaleY,(_?Nt(b.scaleY,_+u):u)-b.scaleY||0,Ei),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(Bi,0,o[Bi]),l=la(l),b.svg?_a(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&na(this,b,`zOrigin`,b.zOrigin,g),na(this,o,m,ya(c),ya(l)));continue}else if(m===`svgOrigin`){_a(e,l,1,x,0,this);continue}else if(m in pa){Da(this,b,m,d,_?Nt(d,_+l):l);continue}else if(m===`smoothOrigin`){na(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){ka(this,l,e);continue}}else m in o||(m=Yi(m)||m);if(v||(u||u===0)&&(d||d===0)&&!wi.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=xn(l)||(m in De.units?De.units[m]:h),h!==g&&(d=aa(e,m,c,g)),this._pt=new Jr(this._pt,v?b:o,m,d,(_?Nt(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?Ai:Ei),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=ki):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=Oi);else if(m in o)sa.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){dt(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&qr(this)},render:function(e,t){if(t.tween._time||!hi())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:oa,aliases:Ti,getSetter:function(e,t,n){var r=Ti[t];return r&&r.indexOf(`,`)<0&&(t=r),t in _i&&t!==Bi&&(e._gsap.x||oa(e,`x`))?n&&mi===n?t===`scale`?Ii:Fi:(mi=n||{})&&(t===`scale`?Li:Ri):e.style&&!Ve(e.style[t])?Ni:~t.indexOf(`-`)?Pi:zr(e,t)},core:{_removeProperty:ta,_getMatrix:ga}};ci.utils.checkPrefix=Yi,ci.core.getStyleSaver=Wi,(function(e,t,n,r){var i=At(e+`,`+t+`,`+n,function(e){_i[e]=1});At(t,function(e){De.units[e]=`deg`,pa[e]=1}),Ti[i[13]]=e+`,`+t,At(r,function(e){var t=e.split(`:`);Ti[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),At(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){De.units[e]=`px`}),ci.registerPlugin(Aa);var ja=ci.registerPlugin(Aa)||ci;ja.core.Tween;var Ma=typeof document<`u`?W.useLayoutEffect:W.useEffect,Na=e=>e&&!Array.isArray(e)&&typeof e==`object`,Pa=[],Fa={},Ia=ja,La=(e,t=Pa)=>{let n=Fa;Na(e)?(n=e,e=null,t=`dependencies`in n?n.dependencies:Pa):Na(t)&&(n=t,t=`dependencies`in n?n.dependencies:Pa),e&&typeof e!=`function`&&console.warn(`First parameter must be a function or config object`);let{scope:r,revertOnUpdate:i}=n,a=(0,W.useRef)(!1),o=(0,W.useRef)(Ia.context(()=>{},r)),s=(0,W.useRef)(e=>o.current.add(null,e)),c=t&&t.length&&!i;return c&&Ma(()=>(a.current=!0,()=>o.current.revert()),Pa),Ma(()=>{if(e&&o.current.add(e,r),!c||!a.current)return()=>o.current.revert()},t),{context:o.current,contextSafe:s.current}};La.register=e=>{Ia=e},La.headless=!0;function Ra(e,t){for(var n=0;ns?(i=r,r=e,o=a,a=c):n?r+=e:r=i+(e-i)/(c-o)*(a-o)};return{update:l,reset:function(){i=r=n?0:r,o=a=0},getVelocity:function(e){var t=o,s=i,u=io();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},So=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Co=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},wo=function(){Ja=Ba.core.globals().ScrollTrigger,Ja&&Ja.core&&oo()},To=function(e){return Ba=e||$a(),!Va&&Ba&&typeof document<`u`&&document.body&&(Ha=window,Ua=document,Wa=Ua.documentElement,Ga=Ua.body,Ya=[Ha,Ua,Wa,Ga],Ba.utils.clamp,Qa=Ba.core.context||function(){},qa=`onpointerenter`in Ga?`pointer`:`mouse`,Ka=Eo.isTouch=Ha.matchMedia&&Ha.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in Ha||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Za=Eo.eventTypes=(`ontouchstart`in Wa?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in Wa?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return eo=0},500),Va=1),Ja||wo(),Va};go.op=_o,no.cache=0;var Eo=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){Va||To(Ba)||console.warn(`Please gsap.registerPlugin(Observer)`),Ja||wo();var t=e.tolerance,n=e.dragMinimum,r=e.type,i=e.target,a=e.lineHeight,o=e.debounce,s=e.preventDefault,c=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,p=e.onDragStart,m=e.onDragEnd,h=e.onDrag,g=e.onPress,_=e.onRelease,v=e.onRight,y=e.onLeft,b=e.onUp,x=e.onDown,S=e.onChangeX,C=e.onChangeY,w=e.onChange,T=e.onToggleX,E=e.onToggleY,D=e.onHover,O=e.onHoverEnd,k=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,M=e.onGestureStart,N=e.onGestureEnd,P=e.onWheel,F=e.onEnable,I=e.onDisable,ee=e.onClick,L=e.scrollSpeed,te=e.capture,R=e.allowClicks,z=e.lockAxis,ne=e.onLockAxis;this.target=i=vo(i)||Wa,this.vars=e,u&&=Ba.utils.toArray(u),t||=1e-9,n||=0,d||=1,L||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(Ha.getComputedStyle(Ga).lineHeight)||22;var re,ie,B,ae,V,oe,se,H=this,ce=0,le=0,ue=e.passive||!s&&e.passive!==!1,de=bo(i,go),fe=bo(i,_o),pe=de(),me=fe(),he=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&Za[0]===`pointerdown`,ge=co(i),U=i.ownerDocument||Ua,_e=[0,0,0],ve=[0,0,0],ye=0,be=function(){return ye=io()},xe=function(e,t){return(H.event=e)&&u&&yo(e.target,u)||t&&he&&e.pointerType!==`touch`||A&&A(e,t)},Se=function(){H._vx.reset(),H._vy.reset(),ie.pause(),c&&c(H)},Ce=function(){var e=H.deltaX=Co(_e),n=H.deltaY=Co(ve),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(H,e,n,_e,ve),r&&(v&&H.deltaX>0&&v(H),y&&H.deltaX<0&&y(H),S&&S(H),T&&H.deltaX<0!=ce<0&&T(H),ce=H.deltaX,_e[0]=_e[1]=_e[2]=0),i&&(x&&H.deltaY>0&&x(H),b&&H.deltaY<0&&b(H),C&&C(H),E&&H.deltaY<0!=le<0&&E(H),le=H.deltaY,ve[0]=ve[1]=ve[2]=0),(ae||B)&&(k&&k(H),B&&=(p&&B===1&&p(H),h&&h(H),0),ae=!1),oe&&!(oe=!1)&&ne&&ne(H),V&&=(P(H),!1),re=0},W=function(e,t,n){_e[n]+=e,ve[n]+=t,H._vx.update(e),H._vy.update(t),o?re||=requestAnimationFrame(Ce):Ce()},we=function(e,t){z&&!se&&(H.axis=se=Math.abs(e)>Math.abs(t)?`x`:`y`,oe=!0),se!==`y`&&(_e[2]+=e,H._vx.update(e,!0)),se!==`x`&&(ve[2]+=t,H._vy.update(t,!0)),o?re||=requestAnimationFrame(Ce):Ce()},Te=function(e){if(!xe(e,1)){e=So(e,s);var t=e.clientX,r=e.clientY,i=t-H.x,a=r-H.y,o=H.isDragging;H.x=t,H.y=r,(o||(i||a)&&(Math.abs(H.startX-t)>=n||Math.abs(H.startY-r)>=n))&&(B||=o?2:1,o||(H.isDragging=!0),we(i,a))}},Ee=H.onPress=function(e){xe(e,1)||e&&e.button||(H.axis=se=null,ie.pause(),H.isPressed=!0,e=So(e),ce=le=0,H.startX=H.x=e.clientX,H.startY=H.y=e.clientY,H._vx.reset(),H._vy.reset(),lo(j?i:U,Za[1],Te,ue,!0),H.deltaX=H.deltaY=0,g&&g(H))},De=H.onRelease=function(e){if(!xe(e,1)){uo(j?i:U,Za[1],Te,!0);var t=!isNaN(H.y-H.startY),n=H.isDragging,r=n&&(Math.abs(H.x-H.startX)>3||Math.abs(H.y-H.startY)>3),a=So(e);!r&&t&&(H._vx.reset(),H._vy.reset(),s&&R&&Ba.delayedCall(.08,function(){if(io()-ye>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(U.createEvent){var t=U.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,Ha,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),H.isDragging=H.isGesturing=H.isPressed=!1,c&&n&&!j&&ie.restart(!0),B&&Ce(),m&&n&&m(H),_&&_(H,r)}},G=function(e){return e.touches&&e.touches.length>1&&(H.isGesturing=!0)&&M(e,H.isDragging)},Oe=function(){return(H.isGesturing=!1)||N(H)},ke=function(e){if(!xe(e)){var t=de(),n=fe();W((t-pe)*L,(n-me)*L,1),pe=t,me=n,c&&ie.restart(!0)}},K=function(e){if(!xe(e)){e=So(e,s),P&&(V=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?Ha.innerHeight:1)*d;W(e.deltaX*t,e.deltaY*t,0),c&&!j&&ie.restart(!0)}},Ae=function(e){if(!xe(e)){var t=e.clientX,n=e.clientY,r=t-H.x,i=n-H.y;H.x=t,H.y=n,ae=!0,c&&ie.restart(!0),(r||i)&&we(r,i)}},je=function(e){H.event=e,D(H)},Me=function(e){H.event=e,O(H)},Ne=function(e){return xe(e)||So(e,s)&&ee(H)};ie=H._dc=Ba.delayedCall(l||.25,Se).pause(),H.deltaX=H.deltaY=0,H._vx=xo(0,50,!0),H._vy=xo(0,50,!0),H.scrollX=de,H.scrollY=fe,H.isDragging=H.isGesturing=H.isPressed=!1,Qa(this),H.enable=function(e){return H.isEnabled||(lo(ge?U:i,`scroll`,mo),r.indexOf(`scroll`)>=0&&lo(ge?U:i,`scroll`,ke,ue,te),r.indexOf(`wheel`)>=0&&lo(i,`wheel`,K,ue,te),(r.indexOf(`touch`)>=0&&Ka||r.indexOf(`pointer`)>=0)&&(lo(i,Za[0],Ee,ue,te),lo(U,Za[2],De),lo(U,Za[3],De),R&&lo(i,`click`,be,!0,!0),ee&&lo(i,`click`,Ne),M&&lo(U,`gesturestart`,G),N&&lo(U,`gestureend`,Oe),D&&lo(i,qa+`enter`,je),O&&lo(i,qa+`leave`,Me),k&&lo(i,qa+`move`,Ae)),H.isEnabled=!0,H.isDragging=H.isGesturing=H.isPressed=ae=B=!1,H._vx.reset(),H._vy.reset(),pe=de(),me=fe(),e&&e.type&&Ee(e),F&&F(H)),H},H.disable=function(){H.isEnabled&&(to.filter(function(e){return e!==H&&co(e.target)}).length||uo(ge?U:i,`scroll`,mo),H.isPressed&&(H._vx.reset(),H._vy.reset(),uo(j?i:U,Za[1],Te,!0)),uo(ge?U:i,`scroll`,ke,te),uo(i,`wheel`,K,te),uo(i,Za[0],Ee,te),uo(U,Za[2],De),uo(U,Za[3],De),uo(i,`click`,be,!0),uo(i,`click`,Ne),uo(U,`gesturestart`,G),uo(U,`gestureend`,Oe),uo(i,qa+`enter`,je),uo(i,qa+`leave`,Me),uo(i,qa+`move`,Ae),H.isEnabled=H.isPressed=H.isDragging=!1,I&&I(H))},H.kill=H.revert=function(){H.disable();var e=to.indexOf(H);e>=0&&to.splice(e,1),Xa===H&&(Xa=0)},to.push(H),j&&co(i)&&(Xa=H),H.enable(f)},za(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();Eo.version=`3.15.0`,Eo.create=function(e){return new Eo(e)},Eo.register=To,Eo.getAll=function(){return to.slice()},Eo.getById=function(e){return to.filter(function(t){return t.vars.id===e})[0]},$a()&&Ba.registerPlugin(Eo);var q,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os=1,ss=Date.now,cs=ss(),ls=0,us=0,ds=function(e,t,n){var r=Ds(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},fs=function(e,t){return t&&(!Ds(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},ps=function e(){return us&&requestAnimationFrame(e)},ms=function(){return zo=1},hs=function(){return zo=0},gs=function(e){return e},_s=function(e){return Math.round(e*1e5)/1e5||0},vs=function(){return typeof window<`u`},ys=function(){return q||vs()&&(q=window.gsap)&&q.registerPlugin&&q},bs=function(e){return!!~Mo.indexOf(e)},xs=function(e){return(e===`Height`?ns:Oo[`inner`+e])||Ao[`client`+e]||jo[`client`+e]},Ss=function(e){return so(e,`getBoundingClientRect`)||(bs(e)?function(){return Yc.width=Oo.innerWidth,Yc.height=ns,Yc}:function(){return Qs(e)})},Cs=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=so(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?xs(i):e[`client`+i])||0}},ws=function(e,t){return!t||~ro.indexOf(e)?Ss(e):function(){return Yc}},Ts=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=so(e,n))?a()-Ss(e)()[i]:bs(e)?(Ao[n]||jo[n])-xs(r):e[n]-e[`offset`+r])},Es=function(e,t){for(var n=0;n0){for(e-=i,a=0;a=e)return n[a];return n[a-1]}else for(a=n.length,e+=i;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,r,i){i===void 0&&(i=.001);var a=t(n);return!r||Math.abs(a-n)n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in uc?uc[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},fc=function(e,t,n,r,i,a,o,s){var c=i.startColor,l=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=ko.createElement(`div`),m=bs(n)||so(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?jo:n.tagName===`IFRAME`?n.contentDocument.body:n,_=e.indexOf(`start`)!==-1,v=_?c:l,y=`border-color:`+v+`;font-size:`+u+`;color:`+v+`;font-weight:`+f+`;pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;`;return y+=`position:`+((h||s)&&m?`fixed;`:`absolute;`),(h||s||!m)&&(y+=(r===_o?Is:Ls)+`:`+(a+parseFloat(d))+`px;`),o&&(y+=`box-sizing:border-box;text-align:left;width:`+o.offsetWidth+`px;`),p._isStart=_,p.setAttribute(`class`,`gsap-marker-`+e+(t?` marker-`+t:``)),p.style.cssText=y,p.innerText=t||t===0?e+`-`+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p[`offset`+r.op.d2],pc(p,0,r,_),p},pc=function(e,t,n,r){var i={display:`block`},a=n[r?`os2`:`p2`],o=n[r?`p2`:`os2`];e._isFlipped=r,i[n.a+`Percent`]=r?-100:0,i[n.a]=r?`1px`:0,i[`border`+a+Ks]=1,i[`border`+o+Ks]=0,i[n.p]=t+`px`,q.set(e,i)},mc=[],hc={},gc,_c=function(){return ss()-ls>34&&(gc||=requestAnimationFrame(Bc))},vc=function(){(!Jo||!Jo.isPressed||Jo.startX>jo.clientWidth)&&(no.cache++,Jo?gc||=requestAnimationFrame(Bc):Bc(),ls||wc(`scrollStart`),ls=ss())},yc=function(){Zo=Oo.innerWidth,Xo=Oo.innerHeight},bc=function(e){no.cache++,(e===!0||!Ro&&!qo&&!ko.fullscreenElement&&!ko.webkitFullscreenElement&&(!Yo||Zo!==Oo.innerWidth||Math.abs(Oo.innerHeight-Xo)>Oo.innerHeight*.25))&&No.restart(!0)},xc={},Sc=[],Cc=function e(){return oc(nl,`scrollEnd`,e)||Ic(!0)},wc=function(e){return xc[e]&&xc[e].map(function(e){return e()})||Sc},Tc=[],Ec=function(e){for(var t=0;tt,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),Fc(!1),is=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),no.forEach(function(e){Os(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),kc(es,1),No.pause(),jc++,Ac=2,Bc(2),mc.forEach(function(e){return Os(e.vars.onRefresh)&&e.vars.onRefresh(e)}),Ac=nl.isRefreshing=!1,wc(`refresh`)},Lc=0,Rc=1,zc,Bc=function(e){if(e===2||!Ac&&!rs){nl.isUpdating=!0,zc&&zc.update(0);var t=mc.length,n=ss(),r=n-cs>=50,i=t&&mc[0].scroll();if(Rc=Lc>i?-1:1,Ac||(Lc=i),r&&(ls&&!zo&&n-ls>200&&(ls=0,wc(`scrollEnd`)),Io=cs,cs=n),Rc<0){for(Vo=t;Vo-- >0;)mc[Vo]&&mc[Vo].update(0,r);Rc=1}else for(Vo=0;Vo20),n-=n-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),a){var C=e+n,w=a._isStart;h=`scroll`+r.d2,pc(a,C,r,w&&C>20||!w&&(u?Math.max(jo[h],Ao[h]):a.parentNode[h])<=C+1),u&&(c=Qs(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+Js))}return f&&_&&(h=Qs(_),f.seek(d),g=Qs(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},Zc=/(webkit|moz|length|cssText|inset)/i,Qc=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===jo){for(a in e._stOrig=i.cssText,o=Ys(e),o)!+a&&!Zc.test(a)&&o[a]&&typeof i[a]==`string`&&a!==`0`&&(i[a]=o[a]);i.top=n,i.left=r}else i.cssText=e._stOrig;q.core.getCache(e).uncache=1,t.appendChild(e)}},$c=function(e,t,n){var r=t,i=r;return function(t){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(t=a,n&&n()),i=r,r=Math.round(t),r}},el=function(e,t,n){var r={};r[t.p]=`+=`+n,q.set(e,r)},tl=function(e,t){var n=bo(e,t),r=`_scroll`+t.p2,i=function t(i,a,o,s,c){var l=t.tween,u=a.onComplete,d={};o||=n();var f=$c(n,o,function(){l.kill(),t.tween=0});return c=s&&c||0,s||=i-o,l&&l.kill(),a[r]=i,a.inherit=!1,a.modifiers=d,d[r]=function(){return f(o+s*l.ratio+c*l.ratio*l.ratio)},a.onUpdate=function(){no.cache++,t.tween&&Bc()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=q.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ac(e,`wheel`,n.wheelHandler),nl.isTouch&&ac(e,`touchmove`,n.wheelHandler),i},nl=function(){function e(t,n){Do||e.register(q)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),$o(this),this.init(t,n)}var t=e.prototype;return t.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!us){this.update=this.refresh=this.kill=gs;return}t=Zs(Ds(t)||ks(t)||t.nodeType?{trigger:t}:t,lc);var r=t,i=r.onUpdate,a=r.toggleClass,o=r.id,s=r.onToggle,c=r.onRefresh,l=r.scrub,u=r.trigger,d=r.pin,f=r.pinSpacing,p=r.invalidateOnRefresh,m=r.anticipatePin,h=r.onScrubComplete,g=r.onSnapComplete,_=r.once,v=r.snap,y=r.pinReparent,b=r.pinSpacer,x=r.containerAnimation,S=r.fastScrollEnd,C=r.preventOverlaps,w=t.horizontal||t.containerAnimation&&t.horizontal!==!1?go:_o,T=!l&&l!==0,E=vo(t.scroller||Oo),D=q.core.getCache(E),O=bs(E),k=(`pinType`in t?t.pinType:so(E,`pinType`)||O&&`fixed`)===`fixed`,A=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],j=T&&t.toggleActions.split(` `),M=`markers`in t?t.markers:lc.markers,N=O?0:parseFloat(Ys(E)[`border`+w.p2+Ks])||0,P=this,F=t.onRefreshInit&&function(){return t.onRefreshInit(P)},I=Cs(E,O,w),ee=ws(E,O),L=0,te=0,R=0,z=bo(E,w),ne,re,ie,B,ae,V,oe,se,H,ce,le,ue,de,fe,pe,me,he,ge,U,_e,ve,ye,be,xe,Se,Ce,W,we,Te,Ee,De,G,Oe,ke,K,Ae,je,Me,Ne;if(P._startClamp=P._endClamp=!1,P._dir=w,m*=45,P.scroller=E,P.scroll=x?x.time.bind(x):z,B=z(),P.vars=t,n||=t.animation,`refreshPriority`in t&&(Go=1,t.refreshPriority===-9999&&(zc=P)),D.tweenScroll=D.tweenScroll||{top:tl(E,_o),left:tl(E,go)},P.tweenTo=ne=D.tweenScroll[w.p],P.scrubDuration=function(e){Oe=ks(e)&&e,Oe?G?G.duration(e):G=q.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:Oe,paused:!0,onComplete:function(){return h&&h(P)}}):(G&&G.progress(1).kill(),G=0)},n&&(n.vars.lazy=!1,n._initted&&!P.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),P.animation=n.pause(),n.scrollTrigger=P,P.scrubDuration(l),Ee=0,o||=n.vars.id),v&&((!As(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in jo.style&&q.set(O?[jo,Ao]:E,{scrollBehavior:`auto`}),no.forEach(function(e){return Os(e)&&e.target===(O?ko.scrollingElement||Ao:E)&&(e.smooth=!1)}),ie=Os(v.snapTo)?v.snapTo:v.snapTo===`labels`?tc(n):v.snapTo===`labelsDirectional`?rc(n):v.directional===!1?q.utils.snap(v.snapTo):function(e,t){return nc(v.snapTo)(e,ss()-te<500?0:t.direction)},ke=v.duration||{min:.1,max:2},ke=As(ke)?Fo(ke.min,ke.max):Fo(ke,ke),K=q.delayedCall(v.delay||Oe/2||.1,function(){var e=z(),t=ss()-te<500,r=ne.tween;if((t||Math.abs(P.getVelocity())<10)&&!r&&!zo&&L!==e){var i=(e-V)/fe,a=n&&!T?n.totalProgress():i,o=t?0:(a-De)/(ss()-Io)*1e3||0,s=q.utils.clamp(-i,1-i,Ns(o/2)*o/.185),c=i+(v.inertia===!1?0:s),l,u,d=v,f=d.onStart,p=d.onInterrupt,m=d.onComplete;if(l=ie(c,P),ks(l)||(l=c),u=Math.max(0,Math.round(V+l*fe)),e<=oe&&e>=V&&u!==e){if(r&&!r._initted&&r.data<=Ns(u-e))return;v.inertia===!1&&(s=l-i),ne(u,{duration:ke(Ns(Math.max(Ns(c-a),Ns(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:Ns(u-e),onInterrupt:function(){return K.restart(!0)&&p&&Ms(P,p)},onComplete:function(){P.update(),L=z(),n&&!T&&(G?G.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),Ee=De=n&&!T?n.totalProgress():P.progress,g&&g(P),m&&Ms(P,m)}},e,s*fe,u-e-s*fe),f&&Ms(P,f,ne.tween)}}else P.isActive&&L!==e&&K.restart(!0)}).pause()),o&&(hc[o]=P),u=P.trigger=vo(u||d!==!0&&d),Ne=u&&u._gsap&&u._gsap.stRevert,Ne&&=Ne(P),d=d===!0?u:vo(d),Ds(a)&&(a={targets:u,className:a}),d&&(f===!1||f===Gs||(f=!f&&d.parentNode&&d.parentNode.style&&Ys(d.parentNode).display===`flex`?!1:Ws),P.pin=d,re=q.core.getCache(d),re.spacer?pe=re.pinState:(b&&(b=vo(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),re.spacerIsNative=!!b,b&&(re.spacerState=qc(b))),re.spacer=ge=b||ko.createElement(`div`),ge.classList.add(`pin-spacer`),o&&ge.classList.add(`pin-spacer-`+o),re.pinState=pe=qc(d)),t.force3D!==!1&&q.set(d,{force3D:!0}),P.spacer=ge=re.spacer,Te=Ys(d),xe=Te[f+w.os2],_e=q.getProperty(d),ve=q.quickSetter(d,w.a,Js),Wc(d,ge,Te),he=qc(d)),M){ue=As(M)?Zs(M,cc):cc,ce=fc(`scroller-start`,o,E,w,ue,0),le=fc(`scroller-end`,o,E,w,ue,0,ce),U=ce[`offset`+w.op.d2];var Pe=vo(so(E,`content`)||E);se=this.markerStart=fc(`start`,o,Pe,w,ue,U,0,x),H=this.markerEnd=fc(`end`,o,Pe,w,ue,U,0,x),x&&(Me=q.quickSetter([se,H],w.a,Js)),!k&&!(ro.length&&so(E,`fixedMarkers`)===!0)&&(Xs(O?jo:E),q.set([ce,le],{force3D:!0}),Ce=q.quickSetter(ce,w.a,Js),we=q.quickSetter(le,w.a,Js))}if(x){var Fe=x.vars.onUpdate,Ie=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){P.update(0,0,1),Fe&&Fe.apply(x,Ie||[])})}if(P.previous=function(){return mc[mc.indexOf(P)-1]},P.next=function(){return mc[mc.indexOf(P)+1]},P.revert=function(e,t){if(!t)return P.kill(!0);var r=e!==!1||!P.enabled,i=Ro;r!==P.isReverted&&(r&&(Ae=Math.max(z(),P.scroll.rec||0),R=P.progress,je=n&&n.progress()),se&&[se,H,ce,le].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(Ro=P,P.update(r)),d&&(!y||!P.isActive)&&(r?Uc(d,ge,pe):Wc(d,ge,Ys(d),Se)),r||P.update(r),Ro=i,P.isReverted=r)},P.refresh=function(r,i,a,o){if(!((Ro||!P.enabled)&&!i)){if(d&&r&&ls){ac(e,`scrollEnd`,Cc);return}!Ac&&F&&F(P),Ro=P,ne.tween&&!a&&(ne.tween.kill(),ne.tween=0),G&&G.pause(),p&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var s=I(),l=ee(),m=x?x.duration():Ts(E,w),h=fe<=.01||!fe,g=0,_=o||0,v=As(a)?a.end:t.end,b=t.endTrigger||u,S=As(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=P.pinnedContainer=t.pinnedContainer&&vo(t.pinnedContainer,P),D=u&&Math.max(0,mc.indexOf(P))||0,A=D,j,re,ie,ue,U,ve,xe,Ce,we,Te,Ee,De,Oe;for(M&&As(a)&&(De=q.getProperty(ce,w.p),Oe=q.getProperty(le,w.p));A-- >0;)ve=mc[A],ve.end||ve.refresh(0,1)||(Ro=P),xe=ve.pin,xe&&(xe===u||xe===d||xe===C)&&!ve.isReverted&&(Te||=[],Te.unshift(ve),ve.revert(!0,!0)),ve!==mc[A]&&(D--,A--);for(Os(S)&&(S=S(P)),S=ds(S,`start`,P),V=Xc(S,u,s,w,z(),se,ce,P,l,N,k,m,x,P._startClamp&&`_startClamp`)||(d?-.001:0),Os(v)&&(v=v(P)),Ds(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(Ds(S)?S.split(` `)[0]:``)+v:(g=dc(v.substr(2),s),v=Ds(S)?S:(x?q.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,V):V)+g,b=u)),v=ds(v,`end`,P),oe=Math.max(V,Xc(v||(b?`100% 0`:m),b,s,w,z()+g,H,le,P,l,N,k,m,x,P._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)ve=mc[A]||{},xe=ve.pin,xe&&ve.start-ve._pinPush<=V&&!x&&ve.end>0&&(j=ve.end-(P._startClamp?Math.max(0,ve.start):ve.start),(xe===u&&ve.start-ve._pinPush=Ts(E,w)))j=Ys(d),ue=w===_o,ie=z(),ye=parseFloat(_e(w.a))+_,!m&&oe>1&&(Ee=(O?ko.scrollingElement||Ao:E).style,Ee={style:Ee,value:Ee[`overflow`+w.a.toUpperCase()]},O&&Ys(jo)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(Ee.style[`overflow`+w.a.toUpperCase()]=`scroll`)),Wc(d,ge,j),he=qc(d),re=Qs(d,!0),Ce=k&&bo(E,ue?go:_o)(),f?(Se=[f+w.os2,fe+_+Js],Se.t=ge,A=f===Ws?$s(d,w)+fe+_:0,A&&(Se.push(w.d,A+Js),ge.style.flexBasis!==`auto`&&(ge.style.flexBasis=A+Js)),Kc(Se),C&&mc.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&z(Ae)):(A=$s(d,w),A&&ge.style.flexBasis!==`auto`&&(ge.style.flexBasis=A+Js)),k&&(U={top:re.top+(ue?ie-V:Ce)+Js,left:re.left+(ue?Ce:ie-V)+Js,boxSizing:`border-box`,position:`fixed`},U[Rs]=U[`max`+Ks]=Math.ceil(re.width)+Js,U[zs]=U[`max`+qs]=Math.ceil(re.height)+Js,U[Gs]=U[Gs+Hs]=U[Gs+Bs]=U[Gs+Us]=U[Gs+Vs]=`0`,U[Ws]=j[Ws],U[Ws+Hs]=j[Ws+Hs],U[Ws+Bs]=j[Ws+Bs],U[Ws+Us]=j[Ws+Us],U[Ws+Vs]=j[Ws+Vs],me=Jc(pe,U,y),Ac&&z(0)),n?(we=n._initted,Ko(1),n.render(n.duration(),!0,!0),be=_e(w.a)-ye+fe+_,W=Math.abs(fe-be)>1,k&&W&&me.splice(me.length-2,2),n.render(0,!0,!0),we||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),Ko(0)):be=fe,Ee&&(Ee.value?Ee.style[`overflow`+w.a.toUpperCase()]=Ee.value:Ee.style.removeProperty(`overflow-`+w.a));else if(u&&z()&&!x)for(re=u.parentNode;re&&re!==jo;)re._pinOffset&&(V-=re._pinOffset,oe-=re._pinOffset),re=re.parentNode;Te&&Te.forEach(function(e){return e.revert(!1,!0)}),P.start=V,P.end=oe,B=ae=Ac?Ae:z(),!x&&!Ac&&(B0?mc.slice(0,t).reverse():mc.slice(t+1);return(Ds(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return P.direction>0?e.end<=V:e.start>=oe})},P.update=function(e,t,r){if(!(x&&!r&&!e)){var o=Ac===!0?Ae:P.scroll(),c=e?0:(o-V)/fe,u=c<0?0:c>1?1:c||0,p=P.progress,h,g,b,D,O,M,N,F;if(t&&(ae=B,B=x?z():o,v&&(De=Ee,Ee=n&&!T?n.totalProgress():u)),m&&d&&!Ro&&!os&&ls&&(!u&&Vo+(o-ae)/(ss()-Io)*m&&(u=.9999)),u!==p&&P.enabled){if(h=P.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,P.direction=u>p?1:-1,P.progress=u,O&&!Ro&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],F=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||F)&&(F||l||!n)&&(Os(C)?C(P):P.getTrailing(C).forEach(function(e){return e.endAnimation()})),T||(G&&!Ro&&!os?(G._dp._time-G._start!==G._time&&G.render(G._dp._time-G._start),G.resetTo?G.resetTo(`totalProgress`,u,n._tTime/n._tDur):(G.vars.totalProgress=u,G.invalidate().restart())):n&&n.totalProgress(u,!!(Ro&&(te||e)))),d){if(e&&f&&(ge.style[f+w.os2]=xe),!k)ve(_s(ye+be*u));else if(O){if(N=!e&&u>p&&oe+1>o&&o+1>=Ts(E,w),y)if(!e&&(h||N)){var I=Qs(d,!0),ee=o-V;Qc(d,jo,I.top+(w===_o?ee:0)+Js,I.left+(w===_o?0:ee)+Js)}else Qc(d,ge);Kc(h||N?me:he),W&&u<1&&h||ve(ye+(u===1&&!N?be:0))}}v&&!ne.tween&&!Ro&&!os&&K.restart(!0),a&&(M||_&&u&&(u<1||!as))&&Po(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(P),O&&!Ro?(T&&(F&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(P)),(M||!as)&&(s&&M&&Ms(P,s),A[b]&&Ms(P,A[b]),_&&(u===1?P.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&Ms(P,A[b]))),S&&!h&&Math.abs(P.getVelocity())>(ks(S)?S:2500)&&(js(P.callbackAnimation),G?G.progress(1):js(n,D===`reverse`?1:!u,1))):T&&i&&!Ro&&i(P)}if(we){var L=x?o/x.duration()*(x._caScrollDist||0):o;Ce(L+ +!!ce._isFlipped),we(L)}Me&&Me(-o/x.duration()*(x._caScrollDist||0))}},P.enable=function(t,n){P.enabled||(P.enabled=!0,ac(E,`resize`,bc),O||ac(E,`scroll`,vc),F&&ac(e,`refreshInit`,F),t!==!1&&(P.progress=R=0,B=ae=L=z()),n!==!1&&P.refresh())},P.getTween=function(e){return e&&ne?ne.tween:G},P.setPositions=function(e,t,n,r){if(x){var i=x.scrollTrigger,a=x.duration(),o=i.end-i.start;e=i.start+o*e/a,t=i.start+o*t/a}P.refresh(!1,!1,{start:fs(e,n&&!!P._startClamp),end:fs(t,n&&!!P._endClamp)},r),P.update()},P.adjustPinSpacing=function(e){if(Se&&e){var t=Se.indexOf(w.d)+1;Se[t]=parseFloat(Se[t])+e+Js,Se[1]=parseFloat(Se[1])+e+Js,Kc(Se)}},P.disable=function(t,n){if(t!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,n||G&&G.pause(),Ae=0,re&&(re.uncache=1),F&&oc(e,`refreshInit`,F),K&&(K.pause(),ne.tween&&ne.tween.kill()&&(ne.tween=0)),!O)){for(var r=mc.length;r--;)if(mc[r].scroller===E&&mc[r]!==P)return;oc(E,`resize`,bc),O||oc(E,`scroll`,vc)}},P.kill=function(e,r){P.disable(e,r),G&&!r&&G.kill(),o&&delete hc[o];var i=mc.indexOf(P);i>=0&&mc.splice(i,1),i===Vo&&Rc>0&&Vo--,i=0,mc.forEach(function(e){return e.scroller===P.scroller&&(i=1)}),i||Ac||(P.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),se&&[se,H,ce,le].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),zc===P&&(zc=0),d&&(re&&(re.uncache=1),i=0,mc.forEach(function(e){return e.pin===d&&i++}),i||(re.spacer=0)),t.onKill&&t.onKill(P)},mc.push(P),P.enable(!1,!1),Ne&&Ne(P),n&&n.add&&!fe){var Le=P.update;P.update=function(){P.update=Le,no.cache++,V||oe||P.refresh()},q.delayedCall(.01,P.update),fe=.01,V=oe=0}else P.refresh();d&&Nc()},e.register=function(t){return Do||=(q=t||ys(),vs()&&window.document&&e.enable(),us),Do},e.defaults=function(e){if(e)for(var t in e)lc[t]=e[t];return lc},e.disable=function(e,t){us=0,mc.forEach(function(n){return n[t?`kill`:`disable`](e)}),oc(Oo,`wheel`,vc),oc(ko,`scroll`,vc),clearInterval(Lo),oc(ko,`touchcancel`,gs),oc(jo,`touchstart`,gs),ic(oc,ko,`pointerdown,touchstart,mousedown`,ms),ic(oc,ko,`pointerup,touchend,mouseup`,hs),No.kill(),Es(oc);for(var n=0;n0&&r.left+i0&&r.top+i=0&&Tc.splice(t,5),Tc.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),q.core.getCache(e),$o())}}):Tc},nl.revert=function(e,t){return Oc(!e,t)},nl.create=function(e,t){return new nl(e,t)},nl.refresh=function(e){return e?bc(!0):(Do||nl.register())&&Ic(!0)},nl.update=function(e){return++no.cache&&Bc(e===!0?2:0)},nl.clearScrollMemory=kc,nl.maxScroll=function(e,t){return Ts(e,t?go:_o)},nl.getScrollFunc=function(e,t){return bo(vo(e),t?go:_o)},nl.getById=function(e){return hc[e]},nl.getAll=function(){return mc.filter(function(e){return e.vars.id!==`ScrollSmoother`})},nl.isScrolling=function(){return!!ls},nl.snapDirectional=nc,nl.addEventListener=function(e,t){var n=xc[e]||(xc[e]=[]);~n.indexOf(t)||n.push(t)},nl.removeEventListener=function(e,t){var n=xc[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},nl.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=q.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&o.progress(1)}},s;for(s in t)r[s]=s.substr(0,2)===`on`&&Os(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return Os(a)&&(a=a(),ac(nl,`refresh`,function(){return a=t.batchMax()})),Po(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push(nl.create(t))}),n};var rl=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},il=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(Eo.isTouch?` pinch-zoom`:``):`none`,t===Ao&&e(jo,n)},al={auto:1,scroll:1},ol=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||q.core.getCache(i),o=ss(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==jo&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(al[(s=Ys(i)).overflowY]||al[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!bs(i)&&(al[(s=Ys(i)).overflowY]||al[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},sl=function(e,t,n,r){return Eo.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=ol,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&ac(ko,Eo.eventTypes[0],ul,!1,!0)},onDisable:function(){return oc(ko,Eo.eventTypes[0],ul,!0)}})},cl=/(input|label|select|textarea)/i,ll,ul=function(e){var t=cl.test(e.target.tagName);(t||ll)&&(e._gsapAllow=!0,ll=t)},dl=function(e){As(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||=`wheel,touch`,e.debounce=!!e.debounce,e.id=e.id||`normalizer`;var t=e,n=t.normalizeScrollX,r=t.momentum,i=t.allowNestedScroll,a=t.onRelease,o,s,c=vo(e.target)||Ao,l=q.core.globals().ScrollSmoother,u=l&&l.get(),d=Qo&&(e.content&&vo(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=bo(c,_o),p=bo(c,go),m=1,h=(Eo.isTouch&&Oo.visualViewport?Oo.visualViewport.scale*Oo.visualViewport.width:Oo.outerWidth)/Oo.innerWidth,g=0,_=Os(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=sl(c,e.type,!0,i),x=function(){return y=!1},S=gs,C=gs,w=function(){s=Ts(c,_o),C=Fo(+!!Qo,s),n&&(S=Fo(0,Ts(c,go))),v=jc},T=function(){d._gsap.y=_s(parseFloat(d._gsap.y)+f.offset)+`px`,d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+parseFloat(d._gsap.y)+`, 0, 1)`,f.offset=f.cacheID=0},E=function(){if(y){requestAnimationFrame(x);var e=_s(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=_s((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+n+`, 0, 1)`,d._gsap.y=n+`px`,f.cacheID=no.cache,Bc()}return!0}f.offset&&T(),y=!0},D,O,k,A,j=function(){w(),D.isActive()&&D.vars.scrollY>s&&(f()>s?D.progress(1)&&f(s):D.resetTo(`scrollY`,s))};return d&&q.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return Qo&&e.type===`touchmove`&&E(e)||m>1.05&&e.type!==`touchstart`||o.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){y=!1;var e=m;m=_s((Oo.visualViewport&&Oo.visualViewport.scale||1)/h),D.pause(),e!==m&&il(c,m>1.01?!0:n?!1:`x`),O=p(),k=f(),w(),v=jc},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{no.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=rl(p,i,o,Ts(c,go)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=rl(f,i,o,Ts(c,_o)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(Qo&&D.vars.scrollY>=s||i>=s-1)&&q.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),ss()-g>1e3&&(v=0,g=ss())},e.onChange=function(e,t,r,i,a){if(jc!==v&&w(),t&&n&&p(S(i[2]===t?O+(e.startX-e.x):p()+t-i[1])),r){f.offset&&T();var o=a[2]===r,s=o?k+e.startY-e.y:f()+r-a[1],c=C(s);o&&s!==c&&(k+=c-s),f(c)}(r||t)&&Bc()},e.onEnable=function(){il(c,n?!1:`x`),nl.addEventListener(`refresh`,j),ac(Oo,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){il(c,!0),oc(Oo,`resize`,j),nl.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new Eo(e),o.iOS=Qo,Qo&&!f()&&f(1),Qo&&q.ticker.add(gs),A=o._dc,D=q.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:$c(f,f(),function(){return D.pause()})},onUpdate:Bc,onComplete:A.vars.onComplete}),o};nl.sort=function(e){if(Os(e))return mc.sort(e);var t=Oo.pageYOffset||0;return nl.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Oo.innerHeight}),mc.sort(e||function(e,t){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})},nl.observe=function(e){return new Eo(e)},nl.normalizeScroll=function(e){if(e===void 0)return Jo;if(e===!0&&Jo)return Jo.enable();if(e===!1){Jo&&Jo.kill(),Jo=e;return}var t=e instanceof Eo?e:dl(e);return Jo&&Jo.target===t.target&&Jo.kill(),bs(t.target)&&(Jo=t),t},nl.core={_getVelocityProp:xo,_inputObserver:sl,_scrollers:no,_proxies:ro,bridge:{ss:function(){ls||wc(`scrollStart`),ls=ss()},ref:function(){return Ro}}},ys()&&q.registerPlugin(nl);var J=j();function fl(t){let r=(0,we.c)(31),{code:i,language:s,className:c,variant:l,showCopyButton:u}=t,d=s===void 0?`bash`:s,f=l===void 0?`default`:l,p=u===void 0?!0:u,[m,h]=(0,W.useState)(!1),{normalizedLanguage:g,highlightedCode:_}=a(i,d),{copy:v}=o(),y;r[0]!==i||r[1]!==v?(y=async()=>{await v(i)?(h(!0),S.success(`Copied to clipboard`),setTimeout(()=>h(!1),2e3)):S.error(`Failed to copy to clipboard`)},r[0]=i,r[1]=v,r[2]=y):y=r[2];let b=y,x;r[3]===c?x=r[4]:(x=D(`group/code-block relative rounded-md border border-border bg-muted/30 text-sm`,c),r[3]=c,r[4]=x);let C;r[5]!==m||r[6]!==b||r[7]!==g||r[8]!==p||r[9]!==f?(C=f===`default`&&(0,J.jsxs)(`div`,{className:`flex h-14 items-center justify-between border-b border-border bg-muted/50 px-3 py-2`,children:[(0,J.jsx)(`span`,{className:`font-mono text-sm font-bold text-muted-foreground`,children:g}),p&&(0,J.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,J.jsx)(`span`,{className:D(`text-xs text-green-500 transition-opacity duration-200`,m?`opacity-100`:`pointer-events-none opacity-0`),children:`Copied`}),(0,J.jsxs)(A,{variant:`ghost`,size:`icon`,onClick:b,className:`transition-opacity hover:opacity-100`,children:[m?(0,J.jsx)(e,{className:`size-4 text-green-500`}):(0,J.jsx)(n,{className:`size-4`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Copy`})]})]})]}),r[5]=m,r[6]=b,r[7]=g,r[8]=p,r[9]=f,r[10]=C):C=r[10];let w;r[11]!==m||r[12]!==b||r[13]!==p||r[14]!==f?(w=f===`minimal`&&p&&(0,J.jsxs)(`div`,{className:`absolute top-2 right-2 z-10 flex items-center gap-1 opacity-0 transition-opacity group-hover/code-block:opacity-100`,children:[(0,J.jsx)(`span`,{className:D(`text-xs text-green-500 transition-opacity duration-200`,m?`opacity-100`:`pointer-events-none opacity-0`),children:`Copied`}),(0,J.jsxs)(A,{variant:`ghost`,size:`icon`,onClick:b,children:[m?(0,J.jsx)(e,{className:`size-4 text-green-500`}):(0,J.jsx)(n,{className:`size-4`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Copy`})]})]}),r[11]=m,r[12]=b,r[13]=p,r[14]=f,r[15]=w):w=r[15];let T=f===`default`?`rounded-none! p-3!`:`rounded-md! p-4!`,E;r[16]===T?E=r[17]:(E=D(`m-0! font-mono! text-sm leading-relaxed`,T),r[16]=T,r[17]=E);let O;r[18]===_?O=r[19]:(O=(0,J.jsx)(`span`,{dangerouslySetInnerHTML:{__html:_}}),r[18]=_,r[19]=O);let k;r[20]!==d||r[21]!==O?(k=(0,J.jsx)(`code`,{"data-language":d,suppressHydrationWarning:!0,children:O}),r[20]=d,r[21]=O,r[22]=k):k=r[22];let j;r[23]!==k||r[24]!==E?(j=(0,J.jsx)(`div`,{className:`overflow-x-auto`,children:(0,J.jsx)(`pre`,{className:E,children:k})}),r[23]=k,r[24]=E,r[25]=j):j=r[25];let M;return r[26]!==j||r[27]!==x||r[28]!==C||r[29]!==w?(M=(0,J.jsxs)(`div`,{className:x,children:[C,w,j]}),r[26]=j,r[27]=x,r[28]=C,r[29]=w,r[30]=M):M=r[30],M}function pl({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=W.useRef(e!==void 0),[a,o]=W.useState(t);return[i?e:a,W.useCallback(e=>{i||o(e)},[])]}var ml={};function hl(e,t){let n=W.useRef(ml);return n.current===ml&&(n.current=e(t)),n}var gl=W[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],_l=gl&&gl!==W.useLayoutEffect?gl:e=>e();function Y(e){let t=hl(vl).current;return t.next=e,_l(t.effect),t.trampoline}function vl(){let e={next:void 0,callback:yl,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function yl(){}var X=typeof document<`u`?W.useLayoutEffect:()=>{},bl=W.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function xl(){return W.useContext(bl)}function Sl(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Y(i),o=W.useRef(0),s=hl(wl).current,c=hl(Cl).current,[l,u]=W.useState(0),d=W.useRef(l),f=Y((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=Y(e=>{c.delete(e),d.current+=1,u(d.current)}),m=W.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(Tl).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);X(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),X(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),X(()=>()=>{n.current=[]},[n]),X(()=>()=>{r&&(r.current=[])},[r]);let h=Y(e=>(s.add(e),()=>{s.delete(e)}));X(()=>{s.forEach(e=>e(m))},[s,m]);let g=W.useMemo(()=>({register:f,unregister:p,subscribeMapChange:h,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,h,n,r,o]);return(0,J.jsx)(bl.Provider,{value:g,children:t})}function Cl(){return new Map}function wl(){return new Set}function Tl(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var El=W.createContext(void 0);function Dl(){return W.useContext(El)?.direction??`ltr`}function Ol(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var kl=Ol(`https://base-ui.com/production-error`,`Base UI`);function Al(e,t,n,r){let i=hl(Ml).current;return Nl(i,e,t,n,r)&&Fl(i,[e,t,n,r]),i.callback}function jl(e){let t=hl(Ml).current;return Pl(t,e)&&Fl(t,e),t.callback}function Ml(){return{callback:null,cleanup:null,refs:[]}}function Nl(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Pl(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Fl(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function Rl(e){if(!W.isValidElement(e))return null;let t=e,n=t.props;return(Ll(19)?n?.ref:t.ref)??null}function zl(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Bl(){}var Vl=Object.freeze([]),Hl=Object.freeze({});function Ul(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Wl(e,t){return typeof e==`function`?e(t):e}function Gl(e,t){return typeof e==`function`?e(t):e}var Kl={};function ql(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Yl(t);let a=Yl(e);return t&&(a=Xl(a,t)),n&&(a=Xl(a,n)),r&&(a=Xl(a,r)),i&&(a=Xl(a,i)),a}function Jl(e){if(e.length===0)return Kl;if(e.length===1)return Yl(e[0]);let t=Yl(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function eu(e){return typeof e==`function`}function tu(e,t){return eu(e)?e(t):e??Kl}function nu(e,t){return t?e?(...n)=>{let r=n[0];if(ou(r)){let i=r;iu(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:ru(t):e}function ru(e){return e&&((...t)=>{let n=t[0];return ou(n)&&iu(n),e(...t)})}function iu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function au(e,t){return t?e?t+` `+e:t:e}function ou(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function su(e,t,n={}){let r=t.render,i=cu(t,n);return n.enabled===!1?null:du(e,r,i,n.state??Hl)}function cu(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Hl,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Wl(n,a):void 0,d=l?Gl(r,a):void 0,f=l?Ul(a,c):Hl,p=l&&s?lu(s):void 0,m=l?zl(f,p)??{}:Hl;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=jl([m.ref,Rl(i),...o]):m.ref=Al(m.ref,Rl(i),o):Al(null,null)),l?(u!==void 0&&(m.className=au(m.className,u)),d!==void 0&&(m.style=zl(m.style,d)),m):Hl}function lu(e){return Array.isArray(e)?Jl(e):ql(void 0,e)}var uu=Symbol.for(`react.lazy`);function du(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=ql(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===uu&&(i=W.Children.toArray(t)[0]),W.cloneElement(i,e)}if(e&&typeof e==`string`)return fu(e,n);throw Error(kl(8))}function fu(e,t){return e===`button`?(0,W.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,W.createElement)(`img`,{alt:``,...t,key:t.key}):W.createElement(e,t)}var pu=`none`,mu=`trigger-press`,hu=`outside-press`,gu=`item-press`,_u=`close-press`,vu=`clear-press`,yu=`input-change`,bu=`input-clear`,xu=`input-press`,Su=`focus-out`,Cu=`escape-key`,wu=`list-navigation`;function Tu(e,t,n,r){let i=!1,a=!1,o=r??Hl;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Eu(e,t,n){let r=n??Hl;return{reason:e,event:t??new Event(`base-ui`),...r}}var Du={...W},Ou=0;function ku(e,t=`mui`){let[n,r]=W.useState(e),i=e||n;return W.useEffect(()=>{n??(Ou+=1,r(`${t}-${Ou}`))},[n,t]),i}var Au=Du.useId;function ju(e,t){if(Au!==void 0){let n=Au();return e??(t?`${t}-${n}`:n)}return ku(e,t)}function Mu(e){return ju(e,`base-ui`)}var Nu=[];function Pu(e){W.useEffect(e,Nu)}var Fu=null;globalThis.requestAnimationFrame;var Iu=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Lu=class e{static create(){return new e}static request(e){return Iu.request(e)}static cancel(e){return Iu.cancel(e)}currentId=Fu;request(e){this.cancel(),this.currentId=Iu.request(()=>{this.currentId=Fu,e()})}cancel=()=>{this.currentId!==Fu&&(Iu.cancel(this.currentId),this.currentId=Fu)};disposeEffect=()=>this.cancel};function Ru(){let e=hl(Lu.create).current;return Pu(e.disposeEffect),e}function zu(e){return e==null?e:`current`in e?e.current:e}var Bu=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Vu={[Bu.startingStyle]:``},Hu={[Bu.endingStyle]:``},Uu={transitionStatus(e){return e===`starting`?Vu:e===`ending`?Hu:null}},Wu=z(ie());function Gu(e,t=!1,n=!0){let r=Ru();return Y((i,a=null)=>{r.cancel();let o=zu(e);if(o==null)return;let s=o,c=()=>{Wu.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=Bu.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Ku(e,t=!1,n=!1){let[r,i]=W.useState(e&&t?`idle`:void 0),[a,o]=W.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),X(()=>{if(!e&&a&&r!==`ending`&&n){let e=Lu.request(()=>{i(`ending`)});return()=>{Lu.cancel(e)}}},[e,a,r,n]),X(()=>{if(!e||t)return;let n=Lu.request(()=>{i(void 0)});return()=>{Lu.cancel(n)}},[t,e]),X(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Lu.request(()=>{i(`idle`)});return()=>{Lu.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}var qu=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function Ju(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=xl(),f=W.useRef(-1),[p,m]=W.useState(a??(i===qu.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=W.useRef(null),g=W.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return X(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),X(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),W.useMemo(()=>({ref:g,index:p}),[p,g])}var Yu=W.createContext(void 0);function Xu(e=!1){let t=W.useContext(Yu);if(t===void 0&&!e)throw Error(kl(16));return t}function Zu(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:W.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Qu(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=W.useRef(null),s=Xu(!0),c=a??s!==void 0,{props:l}=Zu({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=W.useCallback(()=>{let e=o.current;$u(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return X(u,[u]),{getButtonProps:W.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return ql({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(iu(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=$u(a),l=!i&&ed(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(iu(e),a?.(e),e.target===e.currentTarget&&i&&c&&$u(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?void 0:{role:`button`},l,u)},[t,l,c,i]),buttonRef:Y(e=>{o.current=e,u()})}}function $u(e){return O(e)&&e.tagName===`BUTTON`}function ed(e){return!!(e?.tagName===`A`&&e?.href)}var td=typeof navigator<`u`,nd=dd(),rd=pd(),id=fd(),ad=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),od=nd.platform===`MacIntel`&&nd.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(nd.platform),sd=td&&/firefox/i.test(id),cd=td&&/apple/i.test(navigator.vendor);td&&/Edg/i.test(id);var ld=td&&/android/i.test(rd)||/android/i.test(id);td&&rd.toLowerCase().startsWith(`mac`)&&navigator.maxTouchPoints;var ud=id.includes(`jsdom/`);function dd(){if(!td)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function fd(){if(!td)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function pd(){if(!td)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var md=`data-base-ui-focusable`,hd=`ArrowLeft`,gd=`ArrowRight`,_d=`ArrowUp`,vd=`ArrowDown`;function yd(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function bd(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&g(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function xd(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Sd(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Cd(e){return e.matches(`html,body`)}function wd(e){return O(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Td(e){return e?e.getAttribute(`role`)===`combobox`&&wd(e):!1}function Ed(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Dd(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Dd(e,t.id,n)])}function Od(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function kd(e){e.preventDefault(),e.stopPropagation()}function Ad(e){return`nativeEvent`in e}function jd(e){return e.pointerType===``&&e.isTrusted?!0:ld&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Md(e){return ud?!1:!ld&&e.width===0&&e.height===0||ld&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Nd(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Pd(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function Fd(e,t,n){return Math.floor(e/t)!==n}function Id(e,t){return t<0||t>=e.length}function Ld(e,t){return zd(e.current,{disabledIndices:t})}function Rd(e,t){return zd(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function zd(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Wd(e,a,r));return a}function Bd(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:f=!1}){let p=u,m;if(t.key===`ArrowUp`?m=`up`:t.key===`ArrowDown`&&(m=`down`),m){let n=[],a=[],h=!1,g=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;g+=1;let o=e.closest(`[role="row"]`);o&&(h=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let _=!1,v=0;if(h)for(let e of n){let t=e.length;t>v&&(v=t),t!==o&&(_=!0)}let y=_&&g{if(!_||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f=n.length){if(!r||y)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Wd(e,n,s))return n}}},S=t=>{if(!y||u===-1)return;let n=u%b,i=t===`up`?-b:b,a=l-l%b,o=d(l/b)+1;for(let t=u-n+i,c=0;cl){if(!r)return;t=t<0?a:0}let i=Math.min(t+b-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Wd(e,r,s))return r}};f&&kd(t);let C=x(m)??S(m);if(C!==void 0)p=C;else if(u===-1)p=m===`up`?l:c;else if(p=zd(e,{startingIndex:u,amount:b,decrement:m===`up`,disabledIndices:s}),r){if(m===`up`&&(u-be?r:r-b,i&&(p=i(t,u,p))}m===`down`&&u+b>l&&(p=zd(e,{startingIndex:u%b-b,amount:b,disabledIndices:s}),i&&(p=i(t,u,p)))}Id(e,p)&&(p=u)}if(n===`both`){let n=d(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(f&&kd(t),u%o===o-1?r&&(p=zd(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(p=i(t,u,p))):(p=zd(e,{startingIndex:u,disabledIndices:s}),r&&Fd(p,o,n)&&(p=zd(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(p=i(t,u,p)))),Fd(p,o,n)&&(p=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(f&&kd(t),u%o===0?r&&(p=zd(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(p=i(t,u,p))):(p=zd(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Fd(p,o,n)&&(p=zd(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(p=i(t,u,p)))),Fd(p,o,n)&&(p=u));let c=d(l/o)===n;Id(e,p)&&(r&&c?(p=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:zd(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(p=i(t,u,p))):p=u)}return p}function Vd(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Hd(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Ud(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Wd(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Kd(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Gd(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Kd(e,t=e?M(e):null){return!e||!e.isConnected||!t||Gd(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}function qd(e){return e?.ownerDocument||document}var Jd=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Yd(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return g(n)?n.host:null}function Xd(e){for(let t of Array.from(e.children))if(ce(t)===`summary`)return t;return null}function Zd(e,t){let n=Xd(t);return!!n&&(e===n||bd(n,e))}function Qd(e){let t=e?ce(e):``;return e!=null&&e.matches(Jd)&&(t!==`summary`||e.parentElement!=null&&ce(e.parentElement)===`details`&&Xd(e.parentElement)===e)&&(t!==`details`||Xd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function $d(e){if(!Qd(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Yd(t)){let n=t!==e,r=ce(t)===`slot`;if(t.hasAttribute(`inert`)||n&&ce(t)===`details`&&!t.open&&!Zd(e,t)||t.hasAttribute(`hidden`)||!r&&!ef(t,n))return!1}return!0}function ef(e,t){let n=M(e);return t?n.display!==`none`:Kd(e,n)}function tf(e){let t=e.tabIndex;if(t<0){let t=ce(e);if(t===`details`||t===`audio`||t===`video`||O(e)&&e.isContentEditable)return 0}return t}function nf(e){if(ce(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function rf(e,t){let n=nf(e);if(!n)return!0;let r=t.find(e=>{let t=nf(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=nf(e);return t?.name===n.name&&t.form===n.form})===n}function af(e){if(O(e)&&ce(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return O(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function of(e,t){af(e).forEach(e=>{Qd(e)&&t.push(e),of(e,t)})}function sf(e,t,n){af(e).forEach(e=>{O(e)&&e.matches(t)&&n.push(e),sf(e,t,n)})}function cf(e){return $d(e)&&tf(e)>=0}function lf(e){let t=[];return of(e,t),t.filter($d)}function uf(e){let t=lf(e);return t.filter(e=>tf(e)>=0&&rf(e,t))}function df(e,t){let n=uf(e),r=n.length;if(r===0)return;let i=yd(qd(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function ff(e){return df(qd(e).body,1)||e}function pf(e){return df(qd(e).body,-1)||e}function mf(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!bd(n,r)}function hf(e){uf(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function gf(e){let t=[];sf(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function _f(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function vf(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=Y(i),o=Gu(r,n,!1);W.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function yf(e){let t=W.useRef(!0);t.current&&(t.current=!1,e())}var bf=0,xf=class e{static create(){return new e}currentId=bf;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=bf,t()},e)}isStarted(){return this.currentId!==bf}clear=()=>{this.currentId!==bf&&(clearTimeout(this.currentId),this.currentId=bf)};disposeEffect=()=>this.clear};function Sf(){let e=hl(xf.create).current;return Pu(e.disposeEffect),e}var Cf={},wf={},Tf=``;function Ef(e){if(typeof document>`u`)return!1;let t=qd(e);return P(t).innerWidth-t.documentElement.clientWidth>0}function Df(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=qd(e),n=t.documentElement,r=t.body,i=k(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Of(e){let t=qd(e),n=t.documentElement,r=t.body,i=k(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function kf(e){let t=qd(e),n=t.documentElement,r=t.body,i=P(n),a=0,o=0,s=!1,c=Lu.create();if(ad&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Cf={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Tf=n.style.scrollBehavior,wf={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=k(n)?n:r;if(s=Df(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Cf),Object.assign(r.style,wf),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Tf)}function d(){u(),c.request(l)}l();let f=_f(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Af=new class{lockCount=0;restore=null;timeoutLock=xf.create();timeoutUnlock=xf.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=qd(e).documentElement,n=P(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Bl;return}let r=od||!Ef(e);this.restore=r?Of(e):kf(e)}};function jf(e=!0,t=null){X(()=>{if(e)return Af.acquire(t)},[e,t])}function Mf(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Ff={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},If={...Ff,position:`fixed`,top:0,left:0},Lf={...Ff,position:`absolute`},Rf=W.forwardRef(function(e,t){let[n,r]=W.useState();X(()=>{cd&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,J.jsx)(`span`,{...e,ref:t,style:If,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function zf(e){return`data-base-ui-${e}`}var Bf=0;function Vf(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Bf);let a=()=>e?.focus({preventScroll:n});if(i)return a(),Bl;let o=requestAnimationFrame(a);return Bf=o,()=>{Bf===o&&(cancelAnimationFrame(o),Bf=0)}}var Hf={inert:new WeakMap,"aria-hidden":new WeakMap},Uf=`data-base-ui-inert`,Wf={inert:new WeakSet,"aria-hidden":new WeakSet},Gf=new WeakMap,Kf=0;function qf(e){return Wf[e]}function Jf(e){return e?g(e)?e.host:Jf(e.parentNode):null}var Yf=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Jf(t);return e.contains(n)?n:null}).filter(e=>e!=null),Xf=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Zf=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{ce(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Qf(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=Yf(t,e),u=i?Yf(t,a):[],d=new Set(u),f=i?Zf(t,Xf(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Hf[o],n=qf(o);c=n,s=e;let r=Yf(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);Zf(t,Xf(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(Gf.get(e)||0)+1;Gf.set(e,t),m.push(e),t===1&&e.setAttribute(Uf,``)}),Kf+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(Gf.get(e)||0)-1;Gf.set(e,t),t||e.removeAttribute(Uf)}),--Kf,Kf||(Hf.inert=new WeakMap,Hf[`aria-hidden`]=new WeakMap,Wf.inert=new WeakSet,Wf[`aria-hidden`]=new WeakSet,Gf=new WeakMap)}}function $f(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=qd(e[0]).body;return Qf(e,o,n,r,{mark:i,markerIgnoreElements:a})}var ep={style:{transition:`none`}},tp={fallbackAxisSide:`none`},np={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},rp=W.createContext(null),ip=()=>W.useContext(rp),ap=zf(`portal`);function op(e={}){let{ref:t,container:n,componentProps:r=Hl,elementProps:i}=e,a=ju(),o=ip()?.portalNode,[s,c]=W.useState(null),[l,u]=W.useState(null),d=Y(e=>{e!==null&&u(e)}),f=W.useRef(null);X(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(le(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=su(`div`,r,{ref:[t,d],props:[{id:a,[ap]:``},i]});return{portalNode:l,portalSubtree:s&&p?Wu.createPortal(p,s):null}}var sp=W.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,style:s,...c}=e,{portalNode:l,portalSubtree:u}=op({container:r,ref:t,componentProps:e,elementProps:c}),d=W.useRef(null),f=W.useRef(null),p=W.useRef(null),m=W.useRef(null),[h,g]=W.useState(null),_=W.useRef(!1),v=h?.modal,y=h?.open,b=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!l;W.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&mf(e)&&(e.type===`focusin`?_.current&&=(gf(l),!1):(hf(l),_.current=!0))}return Mf(_f(l,`focusin`,e,!0),_f(l,`focusout`,e,!0))},[l,v]),W.useEffect(()=>{!l||y!==!1||(gf(l),_.current=!1)},[y,l]);let x=W.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,J.jsxs)(W.Fragment,{children:[u,(0,J.jsxs)(rp.Provider,{value:x,children:[b&&l&&(0,J.jsx)(Rf,{"data-type":`outside`,ref:d,onFocus:e=>{mf(e,l)?p.current?.focus():pf(h?h.domReference:null)?.focus()}}),b&&l&&(0,J.jsx)(`span`,{"aria-owns":l.id,style:np}),l&&Wu.createPortal(n,l),b&&l&&(0,J.jsx)(Rf,{"data-type":`outside`,ref:f,onFocus:e=>{mf(e,l)?m.current?.focus():(ff(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Tu(`focus-out`,e.nativeEvent)))}})]})]})});function cp(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var lp=W.createContext(null),up=W.createContext(null),dp=()=>W.useContext(lp)?.id||null,fp=e=>{let t=W.useContext(up);return e??t};function pp(e,t){let n=P(xd(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var mp=20,hp=[];function gp(){hp=hp.filter(e=>e.deref()?.isConnected)}function _p(e){gp(),e&&ce(e)!==`body`&&(hp.push(new WeakRef(e)),hp.length>mp&&(hp=hp.slice(-mp)))}function vp(){return gp(),hp[hp.length-1]?.deref()}function yp(e){return e?cf(e)?e:uf(e)[0]||e:null}function bp(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=lf(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return cf(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function xp(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=Y(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Td(_)&&S,w=W.useRef([`content`]),T=Nf(i),E=Nf(a),D=Nf(l),k=fp(p),A=ip(),j=W.useRef(!1),M=W.useRef(!1),N=W.useRef(!1),P=W.useRef(null),F=W.useRef(``),I=W.useRef(``),ee=W.useRef(null),L=W.useRef(null),te=Al(ee,f,A?.beforeInsideRef),R=Al(L,A?.afterInsideRef),z=Sf(),ne=Sf(),re=Ru(),ie=A!=null,B=Ed(v),ae=Y((e=B)=>e?uf(e):[]),V=Y(()=>m?.().filter(e=>e!=null)??[]);W.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&bd(B,yd(qd(B)))&&ae().length===0&&!C&&kd(e)}return _f(qd(B),`keydown`,e)},[r,_,B,s,w,C,ae]),W.useEffect(()=>{if(r||!g)return;let e=qd(B);function t(){N.current=!1}function n(e){let t=xd(e),n=V();N.current=!(bd(v,t)||bd(_,t)||bd(A?.portalNode,t)||n.some(e=>e===t||bd(e,t))),I.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(M.current=!0)}function i(){I.current=`keyboard`}return Mf(_f(e,`pointerdown`,n,!0),_f(e,`pointerup`,t,!0),_f(e,`pointercancel`,t,!0),_f(e,`keydown`,i,!0))},[r,v,_,B,g,A,V]),W.useEffect(()=>{if(r||!c)return;let e=qd(B);function t(){M.current=!0,ne.start(0,()=>{M.current=!1})}function n(e){let t=xd(e);cf(t)&&(P.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=xd(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=V(),f=n?.hasAttribute(zf(`focus-guard`))&&[ee.current,L.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,zu(d),zu(u)].includes(n),p=!(bd(_,n)||bd(v,n)||bd(n,v)||bd(A?.portalNode,n)||l.some(e=>e===n||bd(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>bd(e,n))||f||k&&(Dd(k.nodesRef.current,a).find(e=>bd(e.context?.elements.floating,n)||bd(e.context?.elements.domReference,n))||Od(k.nodesRef.current,a).find(e=>[e.context?.elements.floating,Ed(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&B&&bp(B,w),o&&r!==_&&!Kd(i)&&yd(e)===e.body){if(O(B)&&(B.focus(),o===`popup`)){re.request(()=>{B.focus()});return}let e=ae(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||B;O(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!M.current&&(C||n!==vp())&&(j.current=!0,h.setOpen(!1,Tu(Su,t)))})}function a(){N.current||(b.current.insideReactTree=!0,z.start(0,()=>{b.current.insideReactTree=!1}))}let l=O(_)?_:null;if(!(!v&&!l))return Mf(l&&_f(l,`focusout`,i),l&&_f(l,`pointerdown`,t),v&&_f(v,`focusin`,n),v&&_f(v,`focusout`,i),v&&A&&_f(v,`focusout`,a,!0))},[r,_,v,B,s,k,A,h,c,o,ae,C,x,w,b,z,ne,re,u,d,V]),W.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${zf(`portal`)}]`)||[]),t=(k?Od(k.nodesRef.current,x()):[]).find(e=>Td(e.context?.elements.domReference||null))?.context?.elements.domReference,n=$f([v,...e,ee.current,L.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...V(),t,zu(d),zu(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=$f([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,w,A,C,k,x,u,d,V]),X(()=>{if(!g||r||!O(B))return;let e=yd(qd(B));queueMicrotask(()=>{let t=T.current,n=typeof t==`function`?t(D.current||``):t;if(n===void 0||n===!1||bd(B,e))return;let r=null,i=()=>(r??=ae(B),r[0]||B),a;a=n===!0||n===null?i():zu(n),a||=i(),Vf(a,{preventScroll:a===B})})},[r,g,B,S,ae,T,D]),X(()=>{if(r||!B)return;let e=qd(B);_p(yd(e));function t(e){if(e.open||(F.current=pp(e.nativeEvent,I.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(j.current=!0),e.reason===`outside-press`)if(e.nested)j.current=!1;else if(jd(e.nativeEvent)||Md(e.nativeEvent))j.current=!1;else{let e=!1;qd(B).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}y.on(`openchange`,t);function n(){let e=E.current,t=typeof e==`function`?e(F.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=_||vp();return e&&e.isConnected?e:null}let n=_||vp();return zu(t)||n||null}return()=>{y.off(`openchange`,t);let r=yd(e),i=V(),a=bd(v,r)||i.some(e=>e===r||bd(e,r))||k&&Dd(k.nodesRef.current,x(),!1).some(e=>bd(e.context?.elements.floating,r)),o=E.current,s=n();queueMicrotask(()=>{let t=yp(s),n=typeof o!=`boolean`;o&&!j.current&&O(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),j.current=!1})}},[r,v,B,E,b,y,k,_,x,V]),X(()=>{if(!ad||g||!v)return;let e=yd(qd(v));!O(e)||!wd(e)||bd(v,e)&&e.blur()},[g,v]),X(()=>{if(!(r||!A))return A.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,s,g,h,c,_]),X(()=>{if(!(r||!B))return bp(B,w),()=>{queueMicrotask(gp)}},[r,B,w]);let oe=!r&&(s?!C:!0)&&(ie||s);return(0,J.jsxs)(W.Fragment,{children:[oe&&(0,J.jsx)(Rf,{"data-type":`inside`,ref:te,onFocus:e=>{if(s){let e=ae();Vf(e[e.length-1])}else A?.portalNode&&(j.current=!1,mf(e,A.portalNode)?ff(_)?.focus():zu(d??A.beforeOutsideRef)?.focus())}}),n,oe&&(0,J.jsx)(Rf,{"data-type":`inside`,ref:R,onFocus:e=>{s?Vf(ae()[0]):A?.portalNode&&(c&&(j.current=!0),mf(e,A.portalNode)?pf(_)?.focus():zu(u??A.afterOutsideRef)?.focus())}})]})}function Sp(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:c=!0,touchOpenDelay:l=0,reason:u=mu}=t,d=W.useRef(void 0),f=Ru(),p=Sf(),m=W.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current,i=e.nativeEvent,m=n.select(`open`);if(e.button!==0||a===`click`||Nd(t,!0)&&s)return;let h=r.current.openEvent,g=h?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=m&&_||!(m&&o&&(!(h&&c)||g===`click`||g===`mousedown`)),y=xd(i);if(wd(y)){let e=Tu(u,i,y);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let b=e.currentTarget;f.request(()=>{let e=Tu(u,i,b);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=d.current;if(a===`mousedown`&&t){d.current=void 0;return}if(Nd(t,!0)&&s)return;let i=n.select(`open`),f=r.current.openEvent,m=n.select(`domReferenceElement`)!==e.currentTarget,h=i&&m||!(i&&o&&(!(f&&c)||Pd(f))),g=Tu(u,e.nativeEvent,e.currentTarget);h&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){d.current=void 0}}),[r,a,s,n,c,o,f,p,l,u]);return W.useMemo(()=>i?{reference:m}:Hl,[i,m])}var Cp={intentional:`onClick`,sloppy:`onPointerDown`};function wp(){return!1}function Tp(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Ep(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),{dataRef:a}=n.context,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`sloppy`,referencePress:u=wp,referencePressEvent:d=`sloppy`,bubbles:f,externalTree:p}=t,_=fp(p),v=Y(typeof c==`function`?c:()=>!1),y=typeof c==`function`?v:c,b=y!==!1,x=Y(()=>l),S=W.useRef(!1),C=W.useRef(!1),w=W.useRef(!1),{escapeKey:T,outsidePress:E}=Tp(f),D=W.useRef(null),k=Sf(),A=Sf(),j=Y(()=>{A.clear(),a.current.insideReactTree=!1}),N=W.useRef(!1),P=W.useRef(``),F=Y(u),I=Y(e=>{if(!r||!o||!s||e.key!==`Escape`||N.current)return;let t=a.current.floatingContext?.nodeId,i=_?Dd(_.nodesRef.current,t):[];if(!T&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let c=Tu(Cu,Ad(e)?e.nativeEvent:e);n.setOpen(!1,c),!T&&!c.isPropagationAllowed&&e.stopPropagation()}),ee=Y(()=>{a.current.insideReactTree=!0,A.start(0,j)});W.useEffect(()=>{if(!r||!o)return;a.current.__escapeKeyBubbles=T,a.current.__outsidePressBubbles=E;let e=new xf,t=new xf;function c(){e.clear(),N.current=!0}function l(){e.start(h()?5:0,()=>{N.current=!1})}function u(){w.current=!0,t.start(0,()=>{w.current=!1})}function d(){S.current=!1,C.current=!1}function f(){let e=P.current,t=e===`pen`||!e?`mouse`:e,n=x(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function p(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function v(e){let t=a.current.floatingContext?.nodeId,r=_&&Dd(_.nodesRef.current,t).some(t=>Sd(e,t.context?.elements.floating));return Sd(e,n.select(`floatingElement`))||Sd(e,n.select(`domReferenceElement`))||r}function A(e){if(p(e)){j();return}if(a.current.insideReactTree){j();return}let r=xd(e),i=`[${zf(`inert`)}]`,o=ue(r)?r.getRootNode():null,s=Array.from((g(o)?o:qd(n.select(`floatingElement`))).querySelectorAll(i)),c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>bd(e,r))))return;let l=ue(r)?r:null;for(;l&&!m(l);){let e=de(l);if(m(e)||!ue(e))break;l=e}if(s.length&&ue(r)&&!Cd(r)&&!bd(r,n.select(`floatingElement`))&&s.every(e=>!bd(l,e)))return;if(O(r)&&!(`touches`in e)){let t=m(r),n=M(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}if(v(e))return;if(f()===`intentional`&&w.current){t.clear(),w.current=!1;return}if(typeof y==`function`&&!y(e))return;let u=a.current.floatingContext?.nodeId,d=_?Dd(_.nodesRef.current,u):[];if(d.length>0){let e=!0;if(d.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,Tu(hu,e)),j()}function F(e){f()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!o||Sd(e,n.select(`floatingElement`))||Sd(e,n.select(`domReferenceElement`))||A(e)}function ee(e){if(f()!==`sloppy`||!n.select(`open`)||!o||Sd(e,n.select(`floatingElement`))||Sd(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(D.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},k.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}function L(e,t){let n=xd(e);if(!n)return;let r=_f(n,e.type,()=>{t(e),r()})}function te(e){P.current=`touch`,L(e,ee)}function R(e){k.clear(),e.type===`pointerdown`&&(P.current=e.pointerType),!(e.type===`mousedown`&&D.current&&!D.current.dismissOnMouseDown)&&L(e,e=>{e.type===`pointerdown`?F(e):A(e)})}function z(e){if(!S.current)return;let n=C.current;if(d(),f()===`intentional`){if(e.type===`pointercancel`){n&&u();return}if(!v(e)){if(n){u();return}typeof y==`function`&&!y(e)||(t.clear(),w.current=!0,j())}}}function ne(e){if(f()!==`sloppy`||!D.current||Sd(e,n.select(`floatingElement`))||Sd(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-D.current.startX),i=Math.abs(t.clientY-D.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(D.current.dismissOnTouchEnd=!0),a>10&&(A(e),k.clear(),D.current=null)}function re(e){L(e,ne)}function ie(e){f()!==`sloppy`||!D.current||Sd(e,n.select(`floatingElement`))||Sd(e,n.select(`domReferenceElement`))||(D.current.dismissOnTouchEnd&&A(e),k.clear(),D.current=null)}function B(e){L(e,ie)}let ae=qd(i),V=Mf(s&&Mf(_f(ae,`keydown`,I),_f(ae,`compositionstart`,c),_f(ae,`compositionend`,l)),b&&Mf(_f(ae,`click`,R,!0),_f(ae,`pointerdown`,R,!0),_f(ae,`pointerup`,z,!0),_f(ae,`pointercancel`,z,!0),_f(ae,`mousedown`,R,!0),_f(ae,`mouseup`,z,!0),_f(ae,`touchstart`,te,!0),_f(ae,`touchmove`,re,!0),_f(ae,`touchend`,B,!0)));return()=>{V(),e.clear(),t.clear(),d(),w.current=!1}},[a,i,s,b,y,r,o,T,E,I,j,x,_,n,k]),W.useEffect(j,[y,j]);let L=W.useMemo(()=>({onKeyDown:I,[Cp[d]]:e=>{F()&&n.setOpen(!1,Tu(mu,e.nativeEvent))},...d!==`intentional`&&{onClick(e){F()&&n.setOpen(!1,Tu(`trigger-press`,e.nativeEvent))}}}),[I,n,d,F]),te=Y(e=>{if(!r||!o||e.button!==0)return;let t=xd(e.nativeEvent);bd(n.select(`floatingElement`),t)&&(S.current||(S.current=!0,C.current=!1))}),R=Y(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&S.current&&(C.current=!0)}),z=W.useMemo(()=>({onKeyDown:I,onPointerDown:R,onMouseDown:R,onClickCapture:ee,onMouseDownCapture(e){ee(),te(e)},onPointerDownCapture(e){ee(),te(e)},onMouseUpCapture:ee,onTouchEndCapture:ee,onTouchMoveCapture:ee}),[I,ee,te,R]);return W.useMemo(()=>o?{reference:L,floating:z,trigger:L}:{},[o,L,z])}var Z=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(kl(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Dp=N((e=>{var t=oe(),n=p();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Op=N(((e,t)=>{t.exports=Dp()})),kp=[],Ap=void 0;function jp(){return Ap}function Mp(e){kp.push(e)}var Np=p(),Pp=Op(),Fp=Ll(19)?Lp:Rp;function Q(e,t,n,r,i){return Fp(e,t,n,r,i)}function Ip(e,t,n,r,i){let a=W.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Np.useSyncExternalStore)(e.subscribe,a,a)}Mp({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Np.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Lp(e,t,n,r,i){let a=jp();if(!a)return Ip(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Rp(e,t,n,r,i){return(0,Pp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var zp=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Q(this,e,t,n,r)}},Bp=class extends zp{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){W.useDebugValue(e),X(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;X(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;X(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){W.useDebugValue(e);let n=t!==void 0;X(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return W.useDebugValue(e),Q(this,this.selectors[e],t,n,r)}useContextCallback(e,t){W.useDebugValue(e);let n=Y(t??Bl);this.context[e]=n}useStateSetter(e){let t=W.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Vp={open:Z(e=>e.open),transitionStatus:Z(e=>e.transitionStatus),domReferenceElement:Z(e=>e.domReferenceElement),referenceElement:Z(e=>e.positionReference??e.referenceElement),floatingElement:Z(e=>e.floatingElement),floatingId:Z(e=>e.floatingId)},Hp=class extends Bp{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:cp(),nested:n,triggerElements:i},Vp),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Pd(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}},Up=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Wp(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=ju(),a=dp()!=null,o=hl(()=>new Hp({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Up,floatingId:i,syncOnly:!1,nested:a})).current;return X(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=ue(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Gp(e={}){let{nodeId:t,externalTree:n}=e,r=Wp(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=W.useState(null),c=W.useRef(null),l=fp(n);X(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=L({...e,elements:{...a,...o&&{reference:o}}}),d=W.useCallback(e=>{let t=ue(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=W.useState(void 0),[m,h]=W.useState(null);i.useSyncedValue(`referenceElement`,f??null);let g=ue(f)?f:null;i.useSyncedValue(`domReferenceElement`,f===void 0?a.domReference:g),i.useSyncedValue(`floatingElement`,m);let _=W.useCallback(e=>{(ue(e)||e===null)&&(c.current=e,p(e)),(ue(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!ue(e))&&u.refs.setReference(e)},[u.refs,p]),v=W.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),y=W.useMemo(()=>({...u.refs,setReference:_,setFloating:v,setPositionReference:d,domReference:c}),[u.refs,_,v,d]),b=W.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),x=i.useState(`open`),S=i.useState(`floatingId`),C=W.useMemo(()=>({...u,dataRef:i.context.dataRef,open:x,onOpenChange:i.setOpen,events:i.context.events,floatingId:S,refs:y,elements:b,nodeId:t,rootStore:i}),[u,y,b,t,i,x,S]);return X(()=>{i.context.dataRef.current.floatingContext=C;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=C)}),W.useMemo(()=>({...u,context:C,refs:y,elements:b,rootStore:i}),[u,y,b,C,i])}function Kp(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=W.useCallback(t=>qp(t,e,`reference`),t),o=W.useCallback(t=>qp(t,e,`floating`),n),s=W.useCallback(t=>qp(t,e,`item`),r),c=W.useCallback(t=>qp(t,e,`trigger`),i);return W.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function qp(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[md]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;or.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var Yp=`Escape`;function Xp(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Zp(e,t){return Xp(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Qp(e,t,n){return Xp(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function $p(e,t,n){return Xp(t,n?e===hd:e===gd,e===vd)}function em(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Yp:Xp(t,n?e===gd:e===hd,e===_d)}function tm(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{listRef:s,activeIndex:c,onNavigate:l=()=>{},enabled:u=!0,selectedIndex:d=null,allowEscape:f=!1,loopFocus:p=!1,nested:m=!1,rtl:h=!1,virtual:g=!1,focusItemOnOpen:_=`auto`,focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b=void 0,orientation:x=`vertical`,parentOrientation:S,cols:C=1,id:w,resetOnPointerLeave:T=!0,externalTree:E}=t,D=Nf(Ed(i)),k=dp(),A=fp(E);X(()=>{o.current.orientation=x},[o,x]);let j=Td(a),M=W.useRef(_),N=W.useRef(d??-1),P=W.useRef(null),F=W.useRef(!0),I=Y(e=>{l(N.current===-1?null:N.current,e)}),ee=W.useRef(I),L=W.useRef(!!i),te=W.useRef(r),R=W.useRef(!1),z=W.useRef(!1),ne=W.useRef(null),re=Nf(b),ie=Nf(r),B=Nf(d),ae=Nf(T),V=Y(()=>{function e(e){g?A?.events.emit(`virtualfocus`,e):ne.current=Vf(e,{sync:R.current,preventScroll:!0})}let t=s.current[N.current],n=z.current;t&&e(t),(R.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[N.current]||t;r&&(t||e(r),H&&(n||!F.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});X(()=>{u&&(r&&i?(N.current=d??-1,M.current&&d!=null&&(z.current=!0,I())):L.current&&(N.current=-1,ee.current()))},[u,r,i,d,I]),X(()=>{if(u){if(!r){R.current=!1;return}if(i)if(c==null){if(R.current=!1,B.current!=null)return;if(L.current&&(N.current=-1,V()),(!te.current||!L.current)&&M.current&&(P.current!=null||M.current===!0&&P.current==null)){let e=0,t=()=>{s.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(N.current=P.current==null||Qp(P.current,x,h)||m?Ld(s):Rd(s),P.current=null,I())};t()}}else Id(s.current,c)||(N.current=c,V(),z.current=!1)}},[u,r,i,c,B,m,s,x,h,I,V,re]),X(()=>{if(!u||i||!A||g||!L.current)return;let e=A.nodesRef.current,t=e.find(e=>e.id===k)?.context?.elements.floating,n=yd(qd(i)),r=e.some(e=>e.context&&bd(e.context.elements.floating,n));t&&!r&&F.current&&t.focus({preventScroll:!0})},[u,i,A,k,g]),X(()=>{ee.current=I,te.current=r,L.current=!!i}),X(()=>{r||(P.current=null,M.current=_)},[r,_]);let oe=c!=null,se=Y(e=>{if(!ie.current)return;let t=s.current.indexOf(e.currentTarget);t!==-1&&(N.current!==t||c!==t)&&(N.current=t,I(e))}),H=W.useMemo(()=>({onFocus(e){R.current=!0,se(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){R.current=!0,z.current=!1,v&&se(e)},onPointerLeave(e){if(!ie.current||!F.current||e.pointerType===`touch`)return;R.current=!0;let t=e.relatedTarget;if(!(!v||s.current.includes(t))&&ae.current&&(ne.current?.(),ne.current=null,N.current=-1,I(e),!g)){let e=D.current,t=yd(qd(e));e&&bd(e,t)&&e.focus({preventScroll:!0})}}}),[se,ie,D,v,s,I,ae,g]),ce=W.useCallback(()=>S??A?.nodesRef.current.find(e=>e.id===k)?.context?.dataRef?.current.orientation,[k,A,S]),le=Y(e=>{if(F.current=!1,R.current=!0,e.which===229||!ie.current&&e.currentTarget===D.current)return;if(m&&em(e.key,x,h,C)){Zp(e.key,ce())||kd(e),n.setOpen(!1,Tu(wu,e.nativeEvent)),O(a)&&(g?A?.events.emit(`virtualfocus`,a):a.focus());return}let t=N.current,i=Ld(s,b),o=Rd(s,b);if(j||(e.key===`Home`&&(kd(e),N.current=i,I(e)),e.key===`End`&&(kd(e),N.current=o,I(e))),C>1){let t=Array.from({length:s.current.length},()=>({width:1,height:1})),n=Vd(t,C,!1),r=n.findIndex(e=>e!=null&&!Wd(s.current,e,b)),a=n.reduce((e,t,n)=>t!=null&&!Wd(s.current,t,b)?n:e,-1),c=n[Bd(n.map(e=>e==null?null:s.current[e]),{event:e,orientation:x,loopFocus:p,rtl:h,cols:C,disabledIndices:Ud([...(typeof b==`function`?null:b)||s.current.map((e,t)=>Wd(s.current,t,b)?t:void 0),void 0],n),minIndex:r,maxIndex:a,prevIndex:Hd(N.current>o?i:N.current,t,n,C,e.key===`ArrowDown`?`bl`:e.key===(h?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(N.current=c,I(e)),x===`both`)return}if(Zp(e.key,x)){if(kd(e),r&&!g&&yd(e.currentTarget.ownerDocument)===e.currentTarget){N.current=Qp(e.key,x,h)?i:o,I(e);return}Qp(e.key,x,h)?p?t>=o?f&&t!==s.current.length?N.current=-1:(R.current=!1,N.current=i):N.current=zd(s.current,{startingIndex:t,disabledIndices:b}):N.current=Math.min(o,zd(s.current,{startingIndex:t,disabledIndices:b})):p?t<=i?f&&t!==-1?N.current=s.current.length:(R.current=!1,N.current=o):N.current=zd(s.current,{startingIndex:t,decrement:!0,disabledIndices:b}):N.current=Math.max(i,zd(s.current,{startingIndex:t,decrement:!0,disabledIndices:b})),Id(s.current,N.current)&&(N.current=-1),I(e)}}),ue=W.useMemo(()=>g&&r&&oe&&{"aria-activedescendant":`${w}-${c}`},[g,r,oe,w,c]),de=W.useMemo(()=>({"aria-orientation":x===`both`?void 0:x,...j?{}:ue,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&r&&!g){let t=xd(e.nativeEvent);if(t&&!bd(D.current,t))return;kd(e),n.setOpen(!1,Tu(Su,e.nativeEvent)),O(a)&&a.focus();return}le(e)},onPointerMove(){F.current=!0}}),[ue,le,D,x,j,n,r,g,a]),fe=W.useMemo(()=>{function e(e){_===`auto`&&jd(e.nativeEvent)&&(M.current=!g)}function t(e){M.current=_,_===`auto`&&Md(e.nativeEvent)&&(M.current=!0)}return{onKeyDown(e){let t=n.select(`open`);F.current=!1;let r=e.key.startsWith(`Arrow`),i=$p(e.key,ce(),h),a=Zp(e.key,x),o=(m?i:a)||e.key===`Enter`||e.key.trim()===``;if(g&&t)return le(e);if(!(!t&&!y&&r)){if(o){let t=Zp(e.key,ce());P.current=m&&t?null:e.key}if(m){i&&(kd(e),t?(N.current=Ld(s,re.current),I(e)):n.setOpen(!0,Tu(wu,e.nativeEvent,e.currentTarget)));return}a&&(B.current!=null&&(N.current=B.current),kd(e),!t&&y?n.setOpen(!0,Tu(wu,e.nativeEvent,e.currentTarget)):le(e),t&&I(e))}},onFocus(e){n.select(`open`)&&!g&&(N.current=-1,I(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[le,re,_,s,m,I,n,y,x,ce,h,B,g]),pe=W.useMemo(()=>({...ue,...fe}),[ue,fe]);return W.useMemo(()=>u?{reference:pe,floating:de,item:H,trigger:fe}:{},[u,pe,de,fe,H])}function nm(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,elementsRef:o,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=Sf(),m=W.useRef(``),h=W.useRef(f??s??-1),g=W.useRef(null);X(()=>{!i&&f!==null||(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[i,f,p]),X(()=>{i&&m.current===``&&(h.current=f??s??-1)},[i,f,s]);let _=Y(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),v=Y(e=>{function t(e){let t=o?.current[e];return!t||Kd(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n0&&e.key===` `&&(kd(e),_(!0)),m.current.length>0&&m.current[0]!==` `&&n(r,m.current)===-1&&e.key!==` `&&_(!1),r==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(kd(e),_(!0));let l=m.current===``;l&&(h.current=f??s??-1),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(d,()=>{m.current=``,h.current=g.current,_(!1)});let u=((l?f??s??-1:h.current)??0)+1,v=n(r,m.current,u);v===-1?e.key!==` `&&(m.current=``,_(!1)):(c?.(v),g.current=v)}),y=Y(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=bd(r,t),o=bd(i,t);a||o||(p.clear(),m.current=``,h.current=g.current,_(!1))}),b=W.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]),x=W.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return W.useMemo(()=>u?{reference:b,floating:x}:{},[u,b,x])}function rm(e){let t=W.useRef(``),n=W.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:W.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function im(e,t){let n=W.useRef(e),r=Y(t);X(()=>{n.current!==e&&r(n.current)},[e,r]),X(()=>{n.current=e},[e])}function am(e){let[t,n]=W.useState(null),r=Y((t,r)=>{e||n(r||(od?`touch`:``))});im(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=rm(r);return W.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}var om=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Bu.startingStyle]=`startingStyle`,e[e.endingStyle=Bu.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),sm=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),cm={[sm.popupOpen]:``},lm={[sm.popupOpen]:``,[sm.pressed]:``},um={[om.open]:``},dm={[om.closed]:``},fm={[om.anchorHidden]:``},pm={open(e){return e?cm:null}},mm={open(e){return e?lm:null}},hm={open(e){return e?um:dm},anchorHidden(e){return e?fm:null}};function gm(e){return Ll(19)?e:e?`true`:void 0}var _m=W.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,J.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),vm=W.createContext(void 0),ym=W.createContext(void 0),bm=W.createContext(void 0),xm=W.createContext(``);function Sm(){let e=W.useContext(vm);if(!e)throw Error(kl(22));return e}function Cm(){let e=W.useContext(ym);if(!e)throw Error(kl(23));return e}function wm(){let e=W.useContext(bm);if(!e)throw Error(kl(24));return e}function Tm(){return W.useContext(xm)}var Em=(e,t)=>Object.is(e,t);function Dm(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Om(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:Dm(t,e,n))}function km(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:Dm(e,t,n))}function Am(e,t,n){return e.filter(e=>!Dm(t,e,n))}function jm(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Mm(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function Nm(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(Mm(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Pm(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return jm(e)}function Fm(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?jm(e.value):jm(e)}var $={id:Z(e=>e.id),labelId:Z(e=>e.labelId),items:Z(e=>e.items),selectedValue:Z(e=>e.selectedValue),hasSelectionChips:Z(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:Z(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),hasNullItemLabel:Z((e,t)=>t?Nm(e.items):!1),open:Z(e=>e.open),mounted:Z(e=>e.mounted),forceMounted:Z(e=>e.forceMounted),inline:Z(e=>e.inline),activeIndex:Z(e=>e.activeIndex),selectedIndex:Z(e=>e.selectedIndex),isActive:Z((e,t)=>e.activeIndex===t),isSelected:Z((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Dm(t,e,n)):Dm(t,r,n)}),transitionStatus:Z(e=>e.transitionStatus),popupProps:Z(e=>e.popupProps),inputProps:Z(e=>e.inputProps),triggerProps:Z(e=>e.triggerProps),getItemProps:Z(e=>e.getItemProps),positionerElement:Z(e=>e.positionerElement),listElement:Z(e=>e.listElement),triggerElement:Z(e=>e.triggerElement),inputElement:Z(e=>e.inputElement),inputGroupElement:Z(e=>e.inputGroupElement),popupSide:Z(e=>e.popupSide),openMethod:Z(e=>e.openMethod),inputInsidePopup:Z(e=>e.inputInsidePopup),selectionMode:Z(e=>e.selectionMode),name:Z(e=>e.name),form:Z(e=>e.form),disabled:Z(e=>e.disabled),readOnly:Z(e=>e.readOnly),required:Z(e=>e.required),grid:Z(e=>e.grid),virtualized:Z(e=>e.virtualized),itemToStringLabel:Z(e=>e.itemToStringLabel),isItemEqualToValue:Z(e=>e.isItemEqualToValue),modal:Z(e=>e.modal),autoHighlight:Z(e=>e.autoHighlight),submitOnItemClick:Z(e=>e.submitOnItemClick)},Im=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Lm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Rm={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},zm={disabled:!1,...Rm},Bm={valid(e){return e===null?null:e?{[Im.valid]:``}:{[Im.invalid]:``}}},Vm=W.createContext({invalid:void 0,name:void 0,validityData:{state:Lm,errors:[],error:``,value:``,initialValue:null},setValidityData:Bl,disabled:void 0,touched:Rm.touched,setTouched:Bl,dirty:Rm.dirty,setDirty:Bl,filled:Rm.filled,setFilled:Bl,focused:Rm.focused,setFocused:Bl,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:zm,markedDirtyRef:{current:!1},registerFieldControl:Bl,validation:{getValidationProps:(e=Hl)=>e,getInputValidationProps:(e=Hl)=>e,inputRef:{current:null},commit:async()=>{}}});function Hm(e=!0){let t=W.useContext(Vm);if(t.setValidityData===Bl&&!e)throw Error(kl(28));return t}function Um(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=Hm(),s=W.useRef(null);s.current||=Symbol(),X(()=>{let t=s.current;if(!(!t||!n))return o(t,{controlRef:e,getValue:r,id:i,value:a}),()=>{o(t,void 0)}},[e,n,r,i,o,a])}var Wm=W.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Bl,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Gm(){return W.useContext(Wm)}var Km=W.createContext({controlId:void 0,registerControlId:Bl,labelId:void 0,setLabelId:Bl,messageIds:[],setMessageIds:Bl,getDescriptionProps:e=>e});function qm(){return W.useContext(Km)}function Jm(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=qm(),o=Mu(t),s=n?i:void 0,c=hl(()=>Symbol(`labelable-control`)),l=W.useRef(!1),u=W.useRef(t!=null),d=Y(()=>{!l.current||a===Bl||(l.current=!1,a(c.current,void 0))});return X(()=>{if(a===Bl)return;let e;if(n){let n=r?.current;e=ue(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),W.useEffect(()=>d,[d]),i??o}function Ym(e,t){return(n,r)=>{if(n==null)return!1;let i=Pm(n,t);return e.contains(i,r)}}function Xm(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=Pm(r,t),o=n==null?``:Pm(n,t);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(a,i)}}var Zm=new Map;function Qm(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${$m(e.locale)}|${JSON.stringify(t)}`,r=Zm.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=Pm(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=Pm(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=Pm(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return Zm.set(n,a),a}function $m(e){return Array.isArray(e)?e.map(e=>$m(e)).join(`,`):e==null?``:String(e)}var eh=Qm,th=Symbol(`none`),nh={value:th,index:-1};function rh(e){let{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:o,inputValue:s,open:c,defaultOpen:l=!1,selectionMode:u=`none`,onItemHighlighted:d,name:f,form:p,disabled:m=!1,readOnly:h=!1,required:g=!1,inputRef:_,grid:v=!1,items:y,filteredItems:b,filter:x,openOnInputClick:S=!0,autoHighlight:C=!1,keepHighlight:w=!1,highlightItemOnHover:T=!0,loopFocus:E=!0,itemToStringLabel:D,itemToStringValue:O,isItemEqualToValue:k=Em,virtualized:A=!1,inline:j=!1,fillInputOnItemPress:M=!0,modal:N=!1,limit:P=-1,autoComplete:F=`list`,formAutoComplete:I,locale:ee,submitOnItemClick:L=!1}=e,{clearErrors:te}=Gm(),{setDirty:R,validityData:z,shouldValidateOnChange:ne,setFilled:re,name:ie,disabled:B,setTouched:ae,setFocused:V,validationMode:oe,validation:se}=Hm(),H=Jm({id:t}),ce=eh({locale:ee}),[le,ue]=W.useState(!1),[de,fe]=W.useState(null),pe=W.useRef([]),me=W.useRef([]),he=W.useRef(null),ge=W.useRef(null),U=W.useRef(null),_e=W.useRef(null),ve=W.useRef(null),ye=W.useRef(!0),be=W.useRef(!1),xe=W.useRef(null),Se=W.useRef(null),Ce=W.useRef(null),we=W.useRef(nh),Te=W.useRef(null),Ee=W.useRef([]),De=W.useRef([]),G=B||m,Oe=ie??f,ke=u===`multiple`,K=u===`single`,Ae=s!==void 0||o!==void 0,je=y!==void 0,Me=b!==void 0,Ne;Ne=C===`always`?`always`:C?`input-change`:!1;let[Pe,Fe]=pl({controlled:i,default:ke?r??Vl:r,name:`Combobox`,state:`selectedValue`}),Ie=W.useMemo(()=>x===null?()=>!0:x===void 0?K&&!le?Xm(ce,D,Pe):Ym(ce,D):x,[x,K,Pe,le,ce,D]),Le=hl(()=>Ae?o??``:K?Pm(Pe,D):``).current,[Re,ze]=pl({controlled:s,default:Le,name:`Combobox`,state:`inputValue`}),[Be,Ve]=pl({controlled:c,default:l,name:`Combobox`,state:`open`}),He=Mm(y),Ue=de??(Re===``?``:String(Re).trim()),We=K?Pm(Pe,D):``,Ge=K&&!le&&Ue!==``&&We!==``&&We.length===Ue.length&&ce.contains(We,Ue),Ke=Ge?``:Ue,qe=je&&Me&&Ge,Je=W.useMemo(()=>y?He?y.flatMap(e=>e.items):y:Vl,[y,He]),Ye=W.useMemo(()=>{if(b&&!qe)return b;if(!y)return Vl;if(He){let e=y,t=[],n=0;for(let r of e){if(P>-1&&n>=P)break;let e=Ke===``?r.items:r.items.filter(e=>Ie(e,Ke,D));if(e.length===0)continue;let i=P>-1?P-n:1/0,a=e.slice(0,i);if(a.length>0){let e={...r,items:a};t.push(e),n+=a.length}}return t}if(Ke===``)return P>-1?Je.slice(0,P):Je;let e=[];for(let t of Je){if(P>-1&&e.length>=P)break;Ie(t,Ke,D)&&e.push(t)}return e},[b,qe,y,He,Ke,P,Ie,D,Je]),Xe=W.useMemo(()=>He?Ye.flatMap(e=>e.items):Ye,[Ye,He]),Ze=hl(()=>new zp({id:H,labelId:void 0,selectedValue:Pe,open:Be,filter:Ie,query:Ue,items:y,selectionMode:u,listRef:pe,labelsRef:me,popupRef:he,emptyRef:ve,inputRef:ge,startDismissRef:U,endDismissRef:_e,keyboardActiveRef:ye,chipsContainerRef:xe,clearRef:Se,valuesRef:Ee,allValuesRef:De,selectionEventRef:Ce,name:Oe,form:p,disabled:G,readOnly:h,required:g,grid:v,isGrouped:He,virtualized:A,openOnInputClick:S,itemToStringLabel:D,isItemEqualToValue:k,modal:N,autoHighlight:Ne,submitOnItemClick:L,hasInputValue:Ae,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:j,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,onOpenChangeComplete:n||Bl,setOpen:Bl,setInputValue:Bl,setSelectedValue:Bl,setIndices:Bl,onItemHighlighted:Bl,handleSelection:Bl,getItemProps:()=>Hl,forceMount:Bl,requestSubmit:Bl})).current,Qe=u===`none`?Re:Pe,$e=W.useMemo(()=>u===`none`?Qe:Array.isArray(Pe)?Pe.map(e=>Fm(e,O)):Fm(Pe,O),[Qe,O,u,Pe]),et=Y(d),tt=Y(n),nt=Q(Ze,$.activeIndex),rt=Q(Ze,$.selectedIndex),it=Q(Ze,$.positionerElement),at=Q(Ze,$.listElement),ot=Q(Ze,$.triggerElement),st=Q(Ze,$.inputElement),ct=Q(Ze,$.inputGroupElement),lt=Q(Ze,$.inline),ut=Q(Ze,$.inputInsidePopup),dt=Nf(ot),{mounted:ft,setMounted:pt,transitionStatus:mt}=Ku(Be),{openMethod:ht,triggerProps:gt}=am(Be),_t=Y(()=>$e);Um(ut?dt:ge,{id:H,value:Qe,getValue:_t});let vt=Y(()=>{y?me.current=Xe.map(e=>Pm(e,D)):Ze.set(`forceMounted`,!0)}),yt=W.useRef(Pe);X(()=>{Pe!==yt.current&&vt()},[vt,Pe]);let bt=Y(e=>{Ze.update(e);let t=e.type||`none`;if(e.activeIndex!==void 0)if(e.activeIndex===null)we.current!==nh&&(we.current=nh,et(void 0,Eu(t,void 0,{index:-1})));else{let n=Ee.current[e.activeIndex];we.current={value:n,index:e.activeIndex},et(n,Eu(t,void 0,{index:e.activeIndex}))}}),xt=Y((t,n)=>{if(be.current=n.reason===bu,e.onInputValueChange?.(t,n),!n.isCanceled){if(n.reason===`input-change`){let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&ue(!0),Te.current={hasQuery:e},e&&Ne&&Ze.state.activeIndex==null&&Ze.set(`activeIndex`,0)}}ze(t)}}),St=Y((t,n)=>{if(Be!==t&&(n.reason===`escape-key`&&je&&Xe.length===0&&!Ze.state.emptyRef.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(!t&&le&&(K?(lt||fe(Ue),Ue===``&&ue(!1)):ke&&(lt||ut?bt({activeIndex:null}):fe(Ue),xt(``,Tu(bu,n.event)))),Ve(t),!t&&ut&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(ae(!0),V(!1),oe===`onBlur`)))){let e=u===`none`?Re:Pe;se.commit(e)}}),Ct=Y((e,t)=>{a?.(e,t),!t.isCanceled&&(Fe(e),(u===`none`&&he.current&&M||K&&!Ze.state.inputInsidePopup)&&xt(Pm(e,D),Tu(t.reason,t.event)),K&&e!=null&&t.reason!==`input-change`&&le&&!lt&&fe(Ue))}),wt=Y((e,t)=>{let n=t;if(n===void 0){if(nt===null)return;n=Ee.current[nt]}let r=xd(e),i=Ce.current??e;Ce.current=null;let a=Tu(gu,i),o=r?.closest(`a`)?.getAttribute(`href`);if(o){o.startsWith(`#`)&&St(!1,a);return}if(ke){let e=Array.isArray(Pe)?Pe:[];if(Ct(Om(e,n,Ze.state.isItemEqualToValue)?Am(e,n,Ze.state.isItemEqualToValue):[...e,n],a),!(ge.current&&ge.current.value.trim()!==``))return;Ze.state.inputInsidePopup?xt(``,Tu(bu,a.event)):St(!1,a)}else Ct(n,a),St(!1,a)}),Tt=Y(()=>{if(!Ze.state.submitOnItemClick)return;let e=se.inputRef.current?.form??Ze.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Et=Y(()=>{if(pt(!1),tt?.(!1),ue(!1),fe(null),bt(u===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),ke&&ge.current&&ge.current.value!==``&&!be.current&&xt(``,Tu(bu)),K)if(Ze.state.inputInsidePopup)ge.current&&ge.current.value!==``&&xt(``,Tu(bu));else{let e=Pm(Pe,D);ge.current&&ge.current.value!==e&&xt(e,Tu(e===``?bu:pu))}}),Dt=W.useMemo(()=>lt&&it?{current:it.closest(`[role="dialog"]`)}:he,[lt,it]);vf({enabled:!e.actionsRef,open:Be,ref:Dt,onComplete(){Be||Et()}}),W.useImperativeHandle(e.actionsRef,()=>({unmount:Et}),[Et]),X(function(){if(Be||u===`none`)return;let e=y?Je:De.current;if(ke){let t=Array.isArray(Pe)?Pe:[],n=t[t.length-1],r=km(e,n,k);bt({selectedIndex:r===-1?null:r})}else{let t=km(e,Pe,k);bt({selectedIndex:t===-1?null:t})}},[Be,Pe,y,u,Je,ke,k,bt]),X(()=>{y&&(Ee.current=Xe,pe.current.length=Xe.length)},[y,Xe]),X(()=>{let e=Te.current;if(e&&(e.hasQuery?Ne&&Ze.set(`activeIndex`,0):Ne===`always`&&Ze.set(`activeIndex`,0),Te.current=null),!Be&&!lt)return;let t=je||Me?Xe:Ee.current,n=Ze.state.activeIndex;if(n==null){if(Ne===`always`&&t.length>0){Ze.set(`activeIndex`,0);return}we.current!==nh&&(we.current=nh,Ze.state.onItemHighlighted(void 0,Eu(pu,void 0,{index:-1})));return}if(n>=t.length){we.current!==nh&&(we.current=nh,Ze.state.onItemHighlighted(void 0,Eu(pu,void 0,{index:-1}))),Ze.set(`activeIndex`,null);return}let r=t[n],i=we.current.value,a=i!==th&&Dm(r,i,Ze.state.isItemEqualToValue);(we.current.index!==n||!a)&&(we.current={value:r,index:n},Ze.state.onItemHighlighted(r,Eu(pu,void 0,{index:n})))},[nt,Ne,Me,je,Xe,lt,Be,Ze]),X(()=>{if(u===`none`){re(String(Re)!==``);return}re(ke?Array.isArray(Pe)&&Pe.length>0:Pe!=null)},[re,u,Re,Pe,ke]),W.useEffect(()=>{je&&Ne&&Xe.length===0&&bt({activeIndex:null})},[je,Ne,Xe.length,bt]),im(Ue,()=>{!Be||Ue===``||Ue===String(Le)||ue(!0)}),im(Pe,()=>{if(u!==`none`&&(te(Oe),R(Pe!==z.initialValue),ne()?se.commit(Pe):se.commit(Pe,!0),K&&!Ae&&!ut)){let e=Pm(Pe,D);Re!==e&&xt(e,Tu(pu))}}),im(Re,()=>{u===`none`&&(te(Oe),R(Re!==z.initialValue),ne()?se.commit(Re):se.commit(Re,!0))}),im(y,()=>{if(!K||Ae||ut||le)return;let e=Pm(Pe,D);Re!==e&&xt(e,Tu(pu))});let Ot=Wp({open:lt?!0:Be,onOpenChange:St,elements:{reference:ut?ot:st,floating:it}}),kt,At;lt||(kt=v?`grid`:`listbox`,At=Be?`true`:`false`);let{getReferenceProps:jt,getFloatingProps:Mt,getItemProps:Nt}=Kp([W.useMemo(()=>{let e=st?.tagName===`INPUT`,t=st==null||e,n=t||Be,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=At,r[`aria-haspopup`]=kt,r[`aria-controls`]=Be?at?.id:void 0,r[`aria-autocomplete`]=F),{reference:r,floating:{role:`presentation`}}},[st,Be,At,kt,at?.id,F]),Sp(Ot,{enabled:!h&&!G&&S,event:`mousedown-only`,toggle:!1,touchOpenDelay:ut?0:100,reason:xu}),Ep(Ot,{enabled:!h&&!G&&!lt,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:lt?!0:void 0,outsidePress(e){let t=xd(e);return!bd(ot,t)&&!bd(Se.current,t)&&!bd(xe.current,t)&&!bd(ct,t)}}),tm(Ot,{enabled:!h&&!G,id:H,listRef:pe,activeIndex:nt,selectedIndex:rt,virtual:!0,loopFocus:E,allowEscape:E&&!Ne,focusItemOnOpen:le||u===`none`&&!Ne?!1:`auto`,focusItemOnHover:T,resetOnPointerLeave:!w,cols:v?2:1,orientation:v?`horizontal`:void 0,disabledIndices:Vl,onNavigate(e,t){!t&&!Be||mt===`ending`||bt(t?{activeIndex:e,type:ye.current?`keyboard`:`pointer`}:{activeIndex:e})}})]);yf(()=>{Ze.update({inline:j,popupProps:Mt(),inputProps:jt(),triggerProps:gt,getItemProps:Nt,setOpen:St,setInputValue:xt,setSelectedValue:Ct,setIndices:bt,onItemHighlighted:et,handleSelection:wt,forceMount:vt,requestSubmit:Tt})}),X(()=>{Ze.update({id:H,selectedValue:Pe,open:Be,mounted:ft,transitionStatus:mt,items:y,inline:j,popupProps:Mt(),inputProps:jt(),triggerProps:gt,openMethod:ht,getItemProps:Nt,selectionMode:u,name:Oe,form:p,disabled:G,readOnly:h,required:g,grid:v,isGrouped:He,virtualized:A,onOpenChangeComplete:tt,openOnInputClick:S,itemToStringLabel:D,modal:N,autoHighlight:Ne,isItemEqualToValue:k,submitOnItemClick:L,hasInputValue:Ae,requestSubmit:Tt})},[Ze,H,Pe,Be,ft,mt,y,Mt,jt,Nt,ht,gt,u,Oe,G,h,g,se,v,He,A,tt,S,D,N,k,L,Ae,j,Tt,Ne,p]);let Pt=Al(_,se.inputRef),Ft=W.useMemo(()=>({query:Ue,hasItems:je,filteredItems:Ye,flatFilteredItems:Xe}),[Ue,je,Ye,Xe]),It=W.useMemo(()=>Array.isArray(Qe)?``:Fm(Qe,O),[Qe,O]),Lt=ke&&Array.isArray(Pe)&&Pe.length>0,Rt=ke||u===`none`?void 0:Oe,zt=W.useMemo(()=>!ke||!Array.isArray(Pe)||!Oe?null:Pe.map(e=>{let t=Fm(e,O);return(0,J.jsx)(`input`,{type:`hidden`,form:p,name:Oe,value:t},t)}),[ke,Pe,p,Oe,O]),Bt=(0,J.jsxs)(W.Fragment,{children:[e.children,(0,J.jsx)(`input`,{...se.getInputValidationProps({onFocus(){if(ut){ot?.focus();return}(ge.current||ot)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=Tu(pu,e.nativeEvent);function r(){if(ke)return;if(u===`none`){R(t!==z.initialValue),xt(t,n),ne()&&se.commit(t);return}let e=Ee.current.find(e=>Fm(e,O).toLowerCase()===t.toLowerCase()||Pm(e,D).toLowerCase()===t.toLowerCase());e!=null&&(R(e!==z.initialValue),Ct?.(e,n),ne()&&se.commit(e))}y?r():(vt(),queueMicrotask(r))}}),id:H&&Rt==null?`${H}-hidden-input`:void 0,form:p,name:Rt,autoComplete:I,disabled:G,required:g&&!Lt,readOnly:h,value:It,ref:Pt,style:Rt?Lf:If,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),zt]});return(0,J.jsx)(vm.Provider,{value:Ze,children:(0,J.jsx)(ym.Provider,{value:Ot,children:(0,J.jsx)(bm.Provider,{value:Ft,children:(0,J.jsx)(xm.Provider,{value:Re,children:Bt})})})})}var ih={...mm,...Bm,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":``}:null};function ah(e){let t=e.getBoundingClientRect(),n=P(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function oh(e,t){return e??t}var sh=2,ch=W.forwardRef(function(e,t){let{render:n,className:r,nativeButton:i=!0,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:p,validation:m}=Hm(),{labelId:h}=qm(),g=Sm(),{filteredItems:_}=wm(),v=Q(g,$.selectionMode),y=Q(g,$.disabled),b=Q(g,$.readOnly),x=Q(g,$.required),S=Q(g,$.mounted),C=Q(g,$.popupSide),w=Q(g,$.positionerElement),T=Q(g,$.listElement),E=Q(g,$.triggerProps),D=Q(g,$.triggerElement),O=Q(g,$.inputInsidePopup),k=Q(g,$.id),A=Q(g,$.labelId),j=Q(g,$.open),M=Q(g,$.selectedValue),N=Q(g,$.activeIndex),P=Q(g,$.selectedIndex),F=Q(g,$.hasSelectedValue),I=Cm(),ee=Tm(),L=Sf(),te=u||y||a,R=_.length===0,z=S&&w?C:null;Jm({id:O?o:void 0});let ne=O?o??k:o,re=oh(h,A),ie=W.useRef(``);function B(e){ie.current=e.pointerType}let ae=I.useState(`domReferenceElement`);W.useEffect(()=>{O&&D&&D!==ae&&I.set(`domReferenceElement`,D)},[D,ae,I,O]);let{reference:V}=nm(I,{enabled:!j&&!b&&!y&&v===`single`,listRef:g.state.labelsRef,activeIndex:N,selectedIndex:P,onMatch(e){let t=g.state.valuesRef.current[e];t!==void 0&&g.state.setSelectedValue(t,Tu(`none`))}}),{reference:oe}=Sp(I,{enabled:!b&&!y,event:`mousedown`}),{buttonRef:se,getButtonProps:H}=Qu({native:i,disabled:te}),ce={...l,open:j,disabled:te,popupSide:z,listEmpty:R,placeholder:v===`none`?!1:!F};return su(`button`,e,{ref:[t,se,Y(e=>{g.set(`triggerElement`,e)})],state:ce,props:[E,oe,V,{id:ne,tabIndex:O?0:-1,role:O?`combobox`:void 0,"aria-expanded":j?`true`:`false`,"aria-haspopup":O?`dialog`:`listbox`,"aria-controls":j?T?.id:void 0,"aria-required":O&&x||void 0,"aria-labelledby":re,onPointerDown:B,onPointerEnter:B,onFocus(){f(!0),!(te||b)&&L.start(0,g.state.forceMount)},onBlur(e){if(!bd(w,e.relatedTarget)&&(d(!0),f(!1),p===`onBlur`)){let e=v===`none`?ee:M;m.commit(e)}},onMouseDown(e){if(te||b||(O||I.set(`domReferenceElement`,e.currentTarget),g.state.forceMount(),ie.current!==`touch`&&(g.state.inputRef.current?.focus(),O||e.preventDefault()),j))return;let t=qd(e.currentTarget);function n(e){if(!D)return;let t=xd(e),n=g.state.positionerElement,r=g.state.listElement;if(bd(D,t)||bd(n,t)||bd(r,t)||t===D)return;let i=ah(D),a=e.clientX>=i.left-sh&&e.clientX<=i.right+sh,o=e.clientY>=i.top-sh&&e.clientY<=i.bottom+sh;a&&o||g.state.setOpen(!1,Tu(`cancel-open`,e))}O&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){te||b||(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(kd(e),g.state.setOpen(!0,Tu(wu,e.nativeEvent)),g.state.inputRef.current?.focus())}},m?m.getValidationProps(c):c,H],stateAttributesMapping:ih})}),lh=W.createContext(void 0);function uh(){return W.useContext(lh)}var dh=W.createContext(void 0);function fh(e){let t=W.useContext(dh);if(t===void 0&&!e)throw Error(kl(21));return t}var ph=W.forwardRef(function(e,t){let n=Sm(),{buttonRef:r,getButtonProps:i}=Qu({native:!1});return(0,J.jsx)(`span`,{ref:Al(t,r),...i({onClick:Y(e=>{n.state.setOpen(!1,Tu(_u,e.nativeEvent,e.currentTarget))})}),"aria-label":`Dismiss`,tabIndex:void 0,style:Lf})}),mh=W.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:a,style:o,...s}=e,{state:c,disabled:l,setTouched:u,setFocused:d,validationMode:f,validation:p}=Hm(),{labelId:m}=qm(),h=uh(),g=!!fh(!0),_=Sm(),{filteredItems:v}=wm(),y=Tm(),b=Dl(),x=Q(_,$.required),S=Q(_,$.disabled),C=Q(_,$.readOnly),w=Q(_,$.name),T=Q(_,$.form),E=Q(_,$.selectionMode),D=Q(_,$.autoHighlight),O=Q(_,$.inputProps),k=Q(_,$.triggerProps),A=Q(_,$.open),j=Q(_,$.mounted),M=Q(_,$.selectedValue),N=Q(_,$.popupSide),P=Q(_,$.positionerElement),F=Q(_,$.id),I=Q(_,$.inline),ee=Q(_,$.modal),L=!!D,te=j&&P?N:null,R=l||S||i,z=v.length===0,ne=g||I,re=!ne||ee,ie=Mu(a??(ne?void 0:F)),B=oh(m,void 0),ae=g?Rm:c,[V,oe]=W.useState(null),se=W.useRef(!1),H=W.useRef(null),ce=W.useRef(!1),le=Y(e=>{let t=g||_.state.inline;t&&!_.state.hasInputValue&&_.state.setInputValue(``,Tu(pu)),_.update({inputElement:e,inputInsidePopup:t})}),ue=g||!p?s:p.getValidationProps(s),de={...ae,open:A,disabled:R,readOnly:C,popupSide:te,listEmpty:z};function fe(e){if(!h)return;let t,{highlightedChipIndex:n}=h,r=h.chipsRef.current.length;if(n!==void 0){if(e.key===`ArrowLeft`)e.preventDefault(),t=n>0?n-1:void 0;else if(e.key===`ArrowRight`)e.preventDefault(),t=n=M.length-1?M.length-2:n;t=r>=0?r:void 0,_.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`})}return t}return e.key===`ArrowLeft`&&(e.currentTarget.selectionStart??0)===0&&M.length>0?(e.preventDefault(),t=r>0?r-1:void 0):e.key===`Backspace`&&e.currentTarget.value===``&&M.length>0&&(_.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`}),e.preventDefault()),t}let pe=su(`input`,e,{state:de,ref:[t,_.state.inputRef,le],props:[O,k,{type:`text`,value:e.value??V??y,"aria-readonly":C||void 0,"aria-required":x||void 0,"aria-labelledby":B,disabled:R,readOnly:C,required:E===`none`?x:void 0,form:T,...E===`none`&&w&&{name:w},id:ie,onFocus(){if(d(!0),!I||!ce.current)return;ce.current=!1;let e=H.current;e==null||!Object.hasOwn(_.state.valuesRef.current,e)||_.state.setIndices({activeIndex:e})},onBlur(){u(!0),d(!1);let e=_.state.activeIndex;if(I&&e!==null&&D!==`always`&&(H.current=e,ce.current=!0,_.state.setIndices({activeIndex:null})),f===`onBlur`){let e=E===`none`?y:M;p.commit(e)}},onCompositionStart(e){ld||(se.current=!0,oe(e.currentTarget.value))},onCompositionEnd(e){se.current=!1;let t=e.currentTarget.value;oe(null),_.state.setInputValue(t,Tu(yu,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,n=!t||t===`insertReplacementText`,r=se.current||!n;if(se.current){let t=e.currentTarget.value;oe(t),t===``&&!_.state.openOnInputClick&&!_.state.inputInsidePopup&&_.state.setOpen(!1,Tu(bu,e.nativeEvent));let n=t.trim(),i=L&&n!==``;!C&&!R&&n&&r&&(_.state.setOpen(!0,Tu(yu,e.nativeEvent)),L||_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&_.state.activeIndex!==null&&!i&&_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`});return}_.state.setInputValue(e.currentTarget.value,Tu(yu,e.nativeEvent));let i=e.currentTarget.value===``,a=Tu(bu,e.nativeEvent);i&&!_.state.inputInsidePopup&&(E===`single`&&_.state.setSelectedValue(null,a),_.state.openOnInputClick||_.state.setOpen(!1,a));let o=e.currentTarget.value.trim();!C&&!R&&o&&r&&(_.state.setOpen(!0,Tu(yu,e.nativeEvent)),L||_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&_.state.activeIndex!==null&&!L&&_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})},onKeyDown(e){if(R||C||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;_.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=b===`rtl`;if(e.key===`Home`){kd(e);let n=sd&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){kd(e);let i=sd&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!j&&e.key===`Escape`){let t=E===`multiple`&&Array.isArray(M)?M.length===0:M===null,n=Tu(Cu,e.nativeEvent),r=E===`multiple`?[]:null;_.state.setInputValue(``,n),_.state.setSelectedValue(r,n),!t&&!_.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(h&&e.key===`Backspace`&&t.value===``&&h.highlightedChipIndex===void 0&&Array.isArray(M)&&M.length>0){let t=h.chipsRef.current.length,n=t>0?t-1:M.length-1,r=M.filter((e,t)=>t!==n);_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`}),_.state.setSelectedValue(r,Tu(pu,e.nativeEvent));return}let i=h?.highlightedChipIndex!==void 0,a=fe(e);if(h?.setHighlightedChipIndex(a),a===void 0?i&&_.state.inputRef.current?.focus():h?.chipsRef.current[a]?.focus(),e.which!==229&&e.key===`Enter`&&A){let t=_.state.activeIndex,n=e.nativeEvent;if(t===null){if(I)return;_.state.setOpen(!1,Tu(pu,n));return}kd(e);let r=_.state.listRef.current[t];r&&(_.state.selectionEventRef.current=n,r.click(),_.state.selectionEventRef.current=null)}},onPointerMove(){_.state.keyboardActiveRef.current=!1},onPointerDown(){_.state.keyboardActiveRef.current=!1}},ue],stateAttributesMapping:ih});return(0,J.jsxs)(W.Fragment,{children:[A&&re&&(0,J.jsx)(ph,{ref:_.state.startDismissRef}),pe]})}),hh={...Uu,...pm},gh=W.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:l}=Hm(),u=Sm(),d=Q(u,$.selectionMode),f=Q(u,$.disabled),p=Q(u,$.readOnly),m=Q(u,$.open),h=Q(u,$.selectedValue),g=Q(u,$.hasSelectionChips),_=Tm(),v=!1;v=d===`none`?_!==``:d===`single`?h!=null:g;let y=l||f||i,{buttonRef:b,getButtonProps:x}=Qu({native:a,disabled:y}),{mounted:S,transitionStatus:C,setMounted:w}=Ku(v),T={disabled:y,open:m,transitionStatus:C};vf({open:v,ref:u.state.clearRef,onComplete(){v||w(!1)}});let E=su(`button`,e,{state:T,ref:[t,b,u.state.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(y||p)return;let t=u.state.keyboardActiveRef;u.state.setInputValue(``,Tu(vu,e.nativeEvent)),d===`none`?u.state.setIndices({activeIndex:null,type:t.current?`keyboard`:`pointer`}):(u.state.setSelectedValue(Array.isArray(h)?[]:null,Tu(vu,e.nativeEvent)),u.state.setIndices({activeIndex:null,selectedIndex:null,type:t.current?`keyboard`:`pointer`})),u.state.inputRef.current?.focus()}},c,x],stateAttributesMapping:hh});return o||S?E:null}),_h=W.createContext(null);function vh(){return W.useContext(_h)}function yh(e){let{children:t}=e,{filteredItems:n}=wm(),r=vh(),i=r?r.items:n;return i?(0,J.jsx)(W.Fragment,{children:i.map(t)}):null}var bh=W.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=Sm(),l=Cm(),u=!!fh(!0),{filteredItems:d,hasItems:f}=wm(),p=Q(c,$.selectionMode),m=Q(c,$.grid),h=Q(c,$.popupProps),g=Q(c,$.virtualized),_=p===`multiple`,v=d.length===0,y=Y(e=>{c.set(`positionerElement`,e)}),b=Y(e=>{c.set(`listElement`,e)}),x=W.useMemo(()=>typeof o==`function`?n||=(0,J.jsx)(yh,{children:o}):o,[o]),S={empty:v},C=l.useState(`floatingId`),w=su(`div`,e,{state:S,ref:[t,b,u?null:y],props:[h,{children:x,tabIndex:-1,id:C,role:m?`grid`:`listbox`,"aria-multiselectable":_?`true`:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;kd(e);let n=e.nativeEvent,r=c.state.listRef.current[t];r&&(c.state.selectionEventRef.current=n,r.click(),c.state.selectionEventRef.current=null)}},onKeyDownCapture(){c.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.state.keyboardActiveRef.current=!1}},s]});return g?w:(0,J.jsx)(Sl,{elementsRef:c.state.listRef,labelsRef:f?void 0:c.state.labelsRef,children:w})}),xh=W.createContext(void 0);function Sh(){let e=W.useContext(xh);if(e===void 0)throw Error(kl(20));return e}var Ch=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Sm(),a=Q(i,$.mounted),o=Q(i,$.forceMounted);return a||n||o?(0,J.jsx)(xh.Provider,{value:n,children:(0,J.jsx)(sp,{ref:t,...r})}):null}),wh=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,offsetParent:d=`real`}=R(e,t)||{};if(l==null)return{};let f=E(u),p={x:n,y:r},m=C(i),h=w(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],D=d===`real`?await o.getOffsetParent?.(l):s.floating,O=s.floating[b]||a.floating[h];(!O||!await o.isElement?.(D))&&(O=s.floating[b]||a.floating[h]);let k=x/2-S/2,A=O/2-g[h]/2-1,j=Math.min(f[v],A),M=Math.min(f[y],A),N=j,P=O-g[h]-M,F=O/2-g[h]/2+k,I=T(N,F,P),ee=!c.arrow&&te(i)!=null&&F!==I&&a.reference[h]/2-(F({...wh(e),options:[e,t]}),Eh={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await H().fn(e)).data?.referenceHidden||a}}}},Dh={sideX:`left`,sideY:`top`};function Oh(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function kh(e,t,n){let{rects:r,placement:i}=e;return{side:Oh(t,_(i),n),align:te(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Ah(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,keepMounted:f=!1,floatingRootContext:p,mounted:m,collisionAvoidance:h,shiftCrossAxis:g=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:x=!1,externalTree:S}=e,[C,w]=W.useState(null);!m&&C!==null&&w(null);let T=h.side||`flip`,E=h.align||`flip`,D=h.fallbackAxisSide||`end`,O=typeof t==`function`?t:void 0,k=Y(O),A=O?k:t,j=Nf(t),M=Nf(m),N=Dl()===`rtl`,L=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[r],R=a===`center`?L:`${L}-${a}`,z=c,ie=+(r===`bottom`),ae=+(r===`top`),V=+(r===`right`),oe=+(r===`left`);typeof z==`number`?z={top:z+ie,right:z+oe,bottom:z+ae,left:z+V}:z&&={top:(z.top||0)+ie,right:(z.right||0)+oe,bottom:(z.bottom||0)+ae,left:(z.left||0)+V};let se={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:z},H=W.useRef(null),ce=Nf(i),le=Nf(o),ue=[I(e=>{let t=kh(e,r,N),n=typeof ce.current==`function`?ce.current(t):ce.current,i=typeof le.current==`function`?le.current(t):le.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,N,r])],de=E===`none`&&T!==`shift`,fe=!de&&(l||g||T===`shift`),pe=T===`none`?null:ne({...se,padding:{top:z.top+1,right:z.right+1,bottom:z.bottom+1,left:z.left+1},mainAxis:!g&&T===`flip`,crossAxis:E===`flip`?`alignment`:!1,fallbackAxisSideDirection:D}),me=de?null:B(e=>{let t=qd(e.elements.floating).documentElement;return{...se,rootBoundary:g?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:fe,limiter:l||g?void 0:F(e=>{if(!H.current)return{};let{width:t,height:n}=H.current.getBoundingClientRect(),r=b(_(e.placement)),i=r===`y`?t:n,a=r===`y`?z.left+z.right:z.top+z.bottom;return{offset:i/2+a/2}})}},[se,l,g,z,E]);T===`shift`||E===`shift`||a===`center`?ue.push(me,pe):ue.push(pe,me),ue.push(re({...se,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=P(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Th(()=>({element:H.current||qd(H.current).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=_(a),l=b(c),u=H.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,v=Math.abs(n.shift?.y||0),y=o.reference.height/2,x=typeof i==`function`?i(kh(e,r,N)):i,S=v>x,C={top:`${h}px calc(100% + ${x}px)`,bottom:`${h}px ${-x}px`,left:`calc(100% + ${x}px) ${g}px`,right:`${-x}px ${g}px`}[c],w=`${h}px ${o.reference.y+y-s}px`;return t.floating.style.setProperty(`--transform-origin`,fe&&l===`y`&&S?w:C),{}}},Eh,y),X(()=>{!m&&p&&p.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[m,p]);let he=W.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:ge,elements:U,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=Gp({rootContext:p,open:f?m:void 0,placement:R,middleware:ue,strategy:n,whileElementsMounted:f?void 0:(...e)=>ee(...e,he),nodeId:v,externalTree:S}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Dh,De=Ce?n:`fixed`,G=W.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),Oe=W.useRef(null);X(()=>{if(!m)return;let e=j.current,t=typeof e==`function`?e():e,n=(jh(t)?t.current:t)||null;n!==Oe.current&&(ge.setPositionReference(n),Oe.current=n)},[m,ge,A,j]),W.useEffect(()=>{if(!m)return;let e=j.current;typeof e!=`function`&&jh(e)&&e.current!==Oe.current&&(ge.setPositionReference(e.current),Oe.current=e.current)},[m,ge,A,j]),W.useEffect(()=>{if(f&&m&&U.domReference&&U.floating)return ee(U.domReference,U.floating,be,he)},[f,m,U,be,he]);let ke=_(xe),K=Oh(r,ke,N),Ae=te(xe)||`center`,je=!!ye.hide?.referenceHidden;X(()=>{x&&m&&Ce&&w(ke)},[x,m,Ce,ke]);let Me=W.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Ne=ye.arrow?.centerOffset!==0;return W.useMemo(()=>({positionerStyles:G,arrowStyles:Me,arrowRef:H,arrowUncentered:Ne,side:K,align:Ae,physicalSide:ke,anchorHidden:je,refs:ge,context:Se,isPositioned:Ce,update:be}),[G,Me,H,Ne,K,Ae,ke,je,ge,Se,Ce,be])}function jh(e){return e!=null&&`current`in e}function Mh(e){return e===`starting`?ep:Hl}function Nh(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),su(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Mh(r),i],stateAttributesMapping:hm})}var Ph=20;function Fh(e,t,n,r){let[i,a]=W.useState(!1);X(()=>{if(!e||!t||n==null){a(!1);return}let r=qd(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Ph)},[e,t,n]),jf(e&&(!t||i),r)}var Ih=W.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=tp,style:g,..._}=e,v=Sm(),{filteredItems:y}=wm(),b=Cm(),x=Sh(),S=Q(v,$.modal),C=Q(v,$.open),w=Q(v,$.mounted),T=Q(v,$.openMethod),E=Q(v,$.positionerElement),D=Q(v,$.triggerElement),O=Q(v,$.inputElement),k=Q(v,$.inputGroupElement),A=Q(v,$.inputInsidePopup),j=Q(v,$.transitionStatus),M=y.length===0,N=Ah({anchor:i??(A?D:k??O),floatingRootContext:b,positionMethod:a,mounted:w,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m,keepMounted:x,collisionAvoidance:h,lazyFlip:!0});Fh(C&&S,T===`touch`,E,D);let P={open:C,side:N.side,align:N.align,anchorHidden:N.anchorHidden,empty:M};X(()=>{v.set(`popupSide`,N.side)},[v,N.side]);let F=Y(e=>{v.set(`positionerElement`,e)}),I=Nh(e,P,{styles:N.positionerStyles,transitionStatus:j,props:_,refs:[t,F],hidden:!w,inert:!C});return(0,J.jsxs)(dh.Provider,{value:N,children:[w&&S&&(0,J.jsx)(_m,{inert:gm(!C),cutout:k??O??D}),I]})}),Lh={...hm,...Uu},Rh=W.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Sm(),l=fh(),u=Cm(),{filteredItems:d}=wm(),f=Q(c,$.mounted),p=Q(c,$.open),m=Q(c,$.openMethod),h=Q(c,$.transitionStatus),g=Q(c,$.inputInsidePopup),_=Q(c,$.inputElement),v=Q(c,$.modal),y=d.length===0;vf({open:p,ref:c.state.popupRef,onComplete(){p&&c.state.onOpenChangeComplete(!0)}});let b=su(`div`,e,{state:{open:p,side:l.side,align:l.align,anchorHidden:l.anchorHidden,transitionStatus:h,empty:y},ref:[t,c.state.popupRef],props:[{role:g?`dialog`:`presentation`,tabIndex:-1,onFocus(e){let t=xd(e.nativeEvent);m!==`touch`&&(bd(c.state.listElement,t)||t===e.currentTarget)&&c.state.inputRef.current?.focus()}},Mh(h),s],stateAttributesMapping:Lh}),x=a===void 0?g?e=>e===`touch`?c.state.popupRef.current:_:!1:a,S;S=o??(g?void 0:!1);let C=!g||v;return(0,J.jsx)(xp,{context:u,disabled:!f,modal:C,openInteractionType:m,initialFocus:x,returnFocus:S,getInsideElements:()=>[c.state.startDismissRef.current,c.state.endDismissRef.current],children:(0,J.jsxs)(W.Fragment,{children:[b,C&&(0,J.jsx)(ph,{ref:c.state.endDismissRef})]})})}),zh=W.createContext(void 0);function Bh(){let e=W.useContext(zh);if(!e)throw Error(kl(19));return e}var Vh=W.createContext(!1);function Hh(){return W.useContext(Vh)}var Uh=W.memo(W.forwardRef(function(e,t){let{render:n,className:r,value:i=null,index:a,disabled:o=!1,nativeButton:s=!1,style:c,...l}=e,u=W.useRef(!1),d=W.useRef(null),f=Ju({index:a,textRef:d,indexGuessBehavior:qu.GuessFromOrder}),p=Sm(),m=Hh(),{flatFilteredItems:h,hasItems:g}=wm(),_=Q(p,$.open),v=Q(p,$.selectionMode),y=Q(p,$.readOnly),b=Q(p,$.virtualized),x=Q(p,$.isItemEqualToValue),S=v!==`none`,C=a??(b?km(h,i,x):f.index),w=f.index!==-1,T=Q(p,$.id),E=Q(p,$.isActive,C),D=Q(p,$.isSelected,i),O=Q(p,$.getItemProps),k=W.useRef(null),A=T!=null&&w?`${T}-${C}`:void 0,j=D&&S;X(()=>{if(!(w&&(b||a!=null)))return;let e=p.state.listRef.current;return e[C]=k.current,()=>{delete e[C]}},[w,b,C,a,p]),X(()=>{if(!w||g)return;let e=p.state.valuesRef.current;return e[C]=i,v!==`none`&&p.state.allValuesRef.current.push(i),()=>{delete e[C]}},[w,g,C,i,p,v]),X(()=>{if(!_){u.current=!1;return}if(!w||g)return;let e=p.state.selectedValue;Dm(i,Array.isArray(e)?e[e.length-1]:e,x)&&p.set(`selectedIndex`,C)},[w,g,_,p,C,i,x]);let M={disabled:o,selected:j,highlighted:E},N=O({active:E,selected:j});N.id=void 0,N.onFocus=void 0;let{getButtonProps:P,buttonRef:F}=Qu({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function I(e){function t(){p.state.handleSelection(e,i)}p.state.submitOnItemClick?(Wu.flushSync(t),p.state.requestSubmit()):t()}let ee={id:A,role:m?`gridcell`:`option`,"aria-selected":S?j:void 0,tabIndex:void 0,onPointerDownCapture(e){u.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){o||y||I(e.nativeEvent)},onMouseUp(e){let t=u.current;u.current=!1,!(o||y||e.button!==0||t||!E)&&I(e.nativeEvent)}},L=su(`div`,e,{ref:[F,t,f.ref,k],state:M,props:[N,ee,l,P]}),te=W.useMemo(()=>({selected:j,textRef:d}),[j,d]);return(0,J.jsx)(zh.Provider,{value:te,children:L})}));function Wh(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,J.jsx)(rh,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}var Gh=W.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=Bh();return n||r?(0,J.jsx)(Kh,{...e,ref:t}):null}),Kh=W.memo(W.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=Bh(),c=W.useRef(null),{transitionStatus:l,setMounted:u}=Ku(s),d=su(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:Uu});return vf({open:s,ref:c,onComplete(){s||u(!1)}}),d}));function qh(e){let t=(0,we.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=D(`group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none dark:bg-input/30`,`h-9 min-w-0 has-[>textarea]:h-auto`,`has-[>[data-align=inline-start]]:[&>input]:pl-2`,`has-[>[data-align=inline-end]]:[&>input]:pr-2`,`has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3`,`has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3`,`has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50`,`has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Jh=x(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]`,"inline-end":`order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]`,"block-start":`order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3`,"block-end":`order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3`}},defaultVariants:{align:`inline-start`}});function Yh(e){let t=(0,we.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,align:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`inline-start`:i,o;t[4]!==a||t[5]!==n?(o=D(Jh({align:a}),n),t[4]=a,t[5]=n,t[6]=o):o=t[6];let s;return t[7]!==a||t[8]!==r||t[9]!==o?(s=(0,J.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":a,className:o,onClick:Xh,...r}),t[7]=a,t[8]=r,t[9]=o,t[10]=s):s=t[10],s}function Xh(e){e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()}var Zh=x(`flex items-center gap-2 text-sm shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5`,sm:`h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5`,"icon-xs":`size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function Qh(e){let t=(0,we.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:n,type:i,variant:a,size:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=i===void 0?`button`:i,c=a===void 0?`ghost`:a,l=o===void 0?`xs`:o,u;t[6]!==n||t[7]!==l?(u=D(Zh({size:l}),n),t[6]=n,t[7]=l,t[8]=u):u=t[8];let d;return t[9]!==r||t[10]!==l||t[11]!==u||t[12]!==s||t[13]!==c?(d=(0,J.jsx)(A,{type:s,"data-size":l,variant:c,className:u,...r}),t[9]=r,t[10]=l,t[11]=u,t[12]=s,t[13]=c,t[14]=d):d=t[14],d}function $h(e){let t=(0,we.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=D(`flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(f,{"data-slot":`input-group-control`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var eg=Wh;function tg(e){let n=(0,we.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:i,children:r,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=D(`[&_svg:not([class*='size-'])]:size-4`,i),n[4]=i,n[5]=o);let s;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,J.jsx)(t,{"data-slot":`combobox-trigger-icon`,className:`pointer-events-none size-4 text-muted-foreground`}),n[6]=s):s=n[6];let c;return n[7]!==r||n[8]!==a||n[9]!==o?(c=(0,J.jsxs)(ch,{"data-slot":`combobox-trigger`,className:o,...a,children:[r,s]}),n[7]=r,n[8]=a,n[9]=o,n[10]=c):c=n[10],c}function ng(e){let t=(0,we.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,J.jsx)(Qh,{variant:`ghost`,size:`icon-xs`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=D(n),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,J.jsx)(y,{className:`pointer-events-none`}),t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==a?(s=(0,J.jsx)(gh,{"data-slot":`combobox-clear`,render:i,className:a,...r,children:o}),t[7]=r,t[8]=a,t[9]=s):s=t[9],s}function rg(e){let t=(0,we.c)(28),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:r,children:n,disabled:a,showTrigger:o,showClear:s,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?!1:a,l=o===void 0?!0:o,u=s===void 0?!1:s,d;t[7]===r?d=t[8]:(d=D(`w-auto`,r),t[7]=r,t[8]=d);let f;t[9]===c?f=t[10]:(f=(0,J.jsx)($h,{disabled:c}),t[9]=c,t[10]=f);let p;t[11]!==i||t[12]!==f?(p=(0,J.jsx)(mh,{render:f,...i}),t[11]=i,t[12]=f,t[13]=p):p=t[13];let m;t[14]!==c||t[15]!==l?(m=l&&(0,J.jsx)(Qh,{size:`icon-xs`,variant:`ghost`,asChild:!0,"data-slot":`input-group-button`,className:`group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent`,disabled:c,children:(0,J.jsx)(tg,{})}),t[14]=c,t[15]=l,t[16]=m):m=t[16];let h;t[17]!==c||t[18]!==u?(h=u&&(0,J.jsx)(ng,{disabled:c}),t[17]=c,t[18]=u,t[19]=h):h=t[19];let g;t[20]!==m||t[21]!==h?(g=(0,J.jsxs)(Yh,{align:`inline-end`,children:[m,h]}),t[20]=m,t[21]=h,t[22]=g):g=t[22];let _;return t[23]!==n||t[24]!==d||t[25]!==p||t[26]!==g?(_=(0,J.jsxs)(qh,{className:d,children:[p,g,n]}),t[23]=n,t[24]=d,t[25]=p,t[26]=g,t[27]=_):_=t[27],_}function ig(e){let t=(0,we.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,anchor:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`bottom`:a,u=o===void 0?6:o,d=s===void 0?`start`:s,f=c===void 0?0:c,p=!!n,m;t[8]===r?m=t[9]:(m=D(`group/combobox-content relative max-h-96 w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) 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=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none 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`,r),t[8]=r,t[9]=m);let h;t[10]!==i||t[11]!==p||t[12]!==m?(h=(0,J.jsx)(Rh,{"data-slot":`combobox-content`,"data-chips":p,className:m,...i}),t[10]=i,t[11]=p,t[12]=m,t[13]=h):h=t[13];let g;return t[14]!==d||t[15]!==f||t[16]!==n||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,J.jsx)(Ch,{children:(0,J.jsx)(Ih,{side:l,sideOffset:u,align:d,alignOffset:f,anchor:n,className:`isolate z-50`,children:h})}),t[14]=d,t[15]=f,t[16]=n,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}function ag(e){let t=(0,we.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=D(`max-h-[min(calc(--spacing(96)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(bh,{"data-slot":`combobox-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function og(t){let n=(0,we.c)(11),r,i,a;n[0]===t?(r=n[1],i=n[2],a=n[3]):({className:i,children:r,...a}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=D(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,i),n[4]=i,n[5]=o);let s;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,J.jsx)(Gh,{"data-slot":`combobox-item-indicator`,render:(0,J.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`}),children:(0,J.jsx)(e,{className:`pointer-events-none size-4 pointer-coarse:size-5`})}),n[6]=s):s=n[6];let c;return n[7]!==r||n[8]!==a||n[9]!==o?(c=(0,J.jsxs)(Uh,{"data-slot":`combobox-item`,className:o,...a,children:[r,s]}),n[7]=r,n[8]=a,n[9]=o,n[10]=c):c=n[10],c}var sg=[`npm`,`pnpm`,`yarn`,`bun`];function cg(t){let r=(0,we.c)(67),{options:i,baseUrl:u,className:d,onValueChange:f}=t,p=u===void 0?``:u,{selectedManager:m,setSelectedManager:h}=s(),[g,_]=(0,W.useState)(i[0]?.value||``),[v,y]=(0,W.useState)(``),b;r[0]===v?b=r[1]:(b=e=>e.label.toLowerCase().includes(v.toLowerCase())||e.value.toLowerCase().includes(v.toLowerCase()),r[0]=v,r[1]=b);let x=i.filter(b),C;if(r[2]!==i||r[3]!==g){let e;r[5]===g?e=r[6]:(e=e=>e.value===g,r[5]=g,r[6]=e),C=i.find(e),r[2]=i,r[3]=g,r[4]=C}else C=r[4];let w=C,T={bun:`bunx --bun shadcn@latest add ${p}/r/${w?.code}.json`,npm:`npx shadcn@latest add ${p}/r/${w?.code}.json`,pnpm:`pnpm dlx shadcn@latest add ${p}/r/${w?.code}.json`,yarn:`yarn dlx shadcn@latest add ${p}/r/${w?.code}.json`},E=sg.filter(e=>T[e]),O=T[m]??``,{highlightedCode:k}=a(O,`bash`),{copy:j}=o(),[M,N]=(0,W.useState)(!1),P,F;r[7]===M?(P=r[8],F=r[9]):(P=()=>{if(M){let e=setTimeout(()=>{N(!1)},2e3);return()=>clearTimeout(e)}},F=[M],r[7]=M,r[8]=P,r[9]=F),(0,W.useEffect)(P,F);let I=async()=>{await j(O),S.success(`${m} command copied to clipboard!`),N(!0)},ee;r[10]===d?ee=r[11]:(ee=D(`group/package-manager relative min-w-0 rounded-lg border`,d),r[10]=d,r[11]=ee);let L;r[12]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,J.jsx)(c,{className:`h-4 w-4 shrink-0 text-muted-foreground`}),r[12]=L):L=r[12];let te=l,R;r[13]===h?R=r[14]:(R=e=>h(e),r[13]=h,r[14]=R);let z=E.map(ug),ne;r[15]!==te||r[16]!==m||r[17]!==R||r[18]!==z?(ne=(0,J.jsx)(`div`,{children:(0,J.jsx)(te,{value:m,onChange:R,tabs:z,tabsClassName:`p-1 bg-primary/10 shrink-0`,activeTabClassName:`text-primary-foreground`,indicatorClassName:`bg-primary`,tabClassName:`px-2 py-1 text-xs font-medium `})}),r[15]=te,r[16]=m,r[17]=R,r[18]=z,r[19]=ne):ne=r[19];let re;r[20]!==ne||r[21]!==L?(re=(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[L,ne]}),r[20]=ne,r[21]=L,r[22]=re):re=r[22];let ie=eg,B;r[23]===f?B=r[24]:(B=e=>{e&&(_(e),f?.(e))},r[23]=f,r[24]=B);let ae;r[25]!==i||r[26]!==g?(ae=i.find(e=>e.value===g)?.label||`Select option...`,r[25]=i,r[26]=g,r[27]=ae):ae=r[27];let V;r[28]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>y(e.target.value),r[28]=V):V=r[28];let oe;r[29]!==v||r[30]!==ae?(oe=(0,J.jsx)(rg,{placeholder:ae,value:v,onChange:V,showTrigger:!0,showClear:!1,className:`h-8 max-w-42 min-w-0`}),r[29]=v,r[30]=ae,r[31]=oe):oe=r[31];let se=ig,H=ag,ce=x.map(lg),le;r[32]!==H||r[33]!==ce?(le=(0,J.jsx)(H,{children:ce}),r[32]=H,r[33]=ce,r[34]=le):le=r[34];let ue;r[35]!==se||r[36]!==le?(ue=(0,J.jsx)(se,{children:le}),r[35]=se,r[36]=le,r[37]=ue):ue=r[37];let de;r[38]!==ie||r[39]!==g||r[40]!==B||r[41]!==oe||r[42]!==ue?(de=(0,J.jsxs)(ie,{value:g,onValueChange:B,children:[oe,ue]}),r[38]=ie,r[39]=g,r[40]=B,r[41]=oe,r[42]=ue,r[43]=de):de=r[43];let fe=M?`opacity-100`:`pointer-events-none opacity-0`,pe;r[44]===fe?pe=r[45]:(pe=D(`text-xs text-green-500 transition-opacity duration-200`,fe),r[44]=fe,r[45]=pe);let me;r[46]===pe?me=r[47]:(me=(0,J.jsx)(`span`,{className:pe,children:`Copied`}),r[46]=pe,r[47]=me);let he;r[48]===M?he=r[49]:(he=M?(0,J.jsx)(e,{className:`size-4`}):(0,J.jsx)(n,{className:`size-4`}),r[48]=M,r[49]=he);let ge;r[50]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,J.jsx)(`span`,{className:`sr-only`,children:`Copy`}),r[50]=ge):ge=r[50];let U;r[51]!==I||r[52]!==he?(U=(0,J.jsxs)(A,{variant:`ghost`,size:`icon`,onClick:I,className:`transition-opacity hover:opacity-100`,children:[he,ge]}),r[51]=I,r[52]=he,r[53]=U):U=r[53];let _e;r[54]!==me||r[55]!==U?(_e=(0,J.jsxs)(`div`,{className:`flex w-22 items-center justify-end gap-1`,children:[me,U]}),r[54]=me,r[55]=U,r[56]=_e):_e=r[56];let ve;r[57]!==re||r[58]!==de||r[59]!==_e?(ve=(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b bg-muted/50 px-3 py-2`,children:[re,de,_e]}),r[57]=re,r[58]=de,r[59]=_e,r[60]=ve):ve=r[60];let ye;r[61]===k?ye=r[62]:(ye=(0,J.jsx)(`div`,{className:`max-w-full min-w-0 overflow-x-auto p-3`,children:(0,J.jsx)(`pre`,{className:`m-0! w-full min-w-0 rounded-none! bg-transparent! font-mono! text-sm leading-relaxed`,children:(0,J.jsx)(`code`,{className:`pr-6`,"data-language":`bash`,suppressHydrationWarning:!0,children:(0,J.jsx)(`span`,{dangerouslySetInnerHTML:{__html:k}})})})}),r[61]=k,r[62]=ye);let be;return r[63]!==ve||r[64]!==ye||r[65]!==ee?(be=(0,J.jsxs)(`div`,{className:ee,children:[ve,ye]}),r[63]=ve,r[64]=ye,r[65]=ee,r[66]=be):be=r[66],be}function lg(e){return(0,J.jsx)(og,{value:e.value,children:e.label},e.value)}function ug(e){return{id:e,label:e}}ja.registerPlugin(nl);function dg(e){let t=(0,we.c)(28),{animations:n,categories:r}=e,{url:i}=se().props,[a,o]=(0,W.useState)(n[0]?.name??`animate-bounce`),s;t[0]===n?s=t[1]:(s=n.map(pg),t[0]=n,t[1]=s);let c=s,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,J.jsx)(V,{as:`h1`,title:`Animate.css Animations`,description:`Click any animation card to view and copy the code. 100+ +import{t as e}from"./check-BBvDdM_9.js";import{t}from"./chevron-down-DuPWSveW.js";import{t as n}from"./copy-HrVumo6t.js";import{t as r}from"./heart-BDAPM7f6.js";import{t as i}from"./main-layout-qej9zSi0.js";import{a,i as o,n as s,o as c,r as l,t as u}from"./main-registry-installer-_-xwUN0S.js";import{At as d,B as f,C as p,Ct as m,Dt as h,Et as g,Ft as _,G as v,H as y,It as b,K as x,Kt as S,Mt as C,Nt as w,Ot as T,Pt as E,Q as D,St as O,Tt as k,V as A,Wt as j,_t as M,an as N,bt as P,dt as F,ft as I,gt as ee,ht as L,jt as te,kt as R,ln as z,lt as ne,mt as re,nn as ie,pt as B,qt as ae,r as V,rn as oe,tn as se,ut as H,vt as ce,wt as le,xt as ue,yt as de}from"./app-D7MKN1zp.js";import{a as fe,n as pe,o as me,t as he}from"./card-C1ekp7Ou.js";import{c as ge,i as U,o as _e,r as ve,s as ye,t as be}from"./dialog-CM260op0.js";import{l as xe}from"./glow-stack-BaNii-nE.js";var Se=v(`Share`,[[`path`,{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`,key:`1b2hhj`}],[`polyline`,{points:`16 6 12 2 8 6`,key:`m901s6`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`15`,key:`1p0rca`}]]),Ce=v(`ThumbsUp`,[[`path`,{d:`M7 10v12`,key:`1qc93n`}],[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}]]),W=z(oe()),we=ae();function Te(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Ee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var De={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},G={duration:.5,overwrite:!1,delay:0},Oe,ke,K,Ae=1e8,je=1/Ae,Me=Math.PI*2,Ne=Me/4,Pe=0,Fe=Math.sqrt,Ie=Math.cos,Le=Math.sin,Re=function(e){return typeof e==`string`},ze=function(e){return typeof e==`function`},Be=function(e){return typeof e==`number`},Ve=function(e){return e===void 0},He=function(e){return typeof e==`object`},Ue=function(e){return e!==!1},We=function(){return typeof window<`u`},Ge=function(e){return ze(e)||Re(e)},Ke=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},qe=Array.isArray,Je=/random\([^)]+\)/g,Ye=/,\s*/g,Xe=/(?:-?\.?\d|\.)+/gi,Ze=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Qe=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,$e=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,et=/[+-]=-?[.\d]+/,tt=/[^,'"\[\]\s]+/gi,nt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,rt,it,at,ot,st={},ct={},lt,ut=function(e){return(ct=Ht(e,st))&&ci},dt=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},ft=function(e,t){return!t&&console.warn(e)},pt=function(e,t){return e&&(st[e]=t)&&ct&&(ct[e]=t)||st},mt=function(){return 0},ht={suppressEvents:!0,isStart:!0,kill:!1},gt={suppressEvents:!0,kill:!1},_t={suppressEvents:!0},vt={},yt=[],bt={},xt,St={},Ct={},wt=30,Tt=[],Et=``,Dt=function(e){var t=e[0],n,r;if(He(t)||ze(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=Tt.length;r--&&!Tt[r].targetTest(t););n=Tt[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new vr(e[r],n)))||e.splice(r,1);return e},Ot=function(e){return e._gsap||Dt(En(e))[0]._gsap},kt=function(e,t,n){return(n=e[t])&&ze(n)?e[t]():Ve(n)&&e.getAttribute&&e.getAttribute(t)||n},At=function(e,t){return(e=e.split(`,`)).forEach(t)||e},jt=function(e){return Math.round(e*1e5)/1e5||0},Mt=function(e){return Math.round(e*1e7)/1e7||0},Nt=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Pt=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ro;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},Jt=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Yt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Xt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},Zt=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Qt=function(e,t,n,r){return e._startAt&&(ke?e._startAt.revert(gt):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},$t=function e(t){return!t||t._ts&&e(t.parent)},en=function(e){return e._repeat?tn(e._tTime,e=e.duration()+e._rDelay)*e:0},tn=function(e,t){var n=Math.floor(e=Mt(e/t));return e&&n===e?n-1:n},nn=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},rn=function(e){return e._end=Mt(e._start+(e._tDur/Math.abs(e._ts||e._rts||je)||0))},an=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=Mt(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),rn(e),n._dirty||Xt(n,e)),e},on=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._startje)&&t.render(n,!0)),Xt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-je}},sn=function(e,t,n,r){return t.parent&&Yt(t),t._start=Mt((Be(n)?n:n||e!==rt?_n(e,n,t):e._time)+t._delay),t._end=Mt(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),qt(e,t,`_first`,`_last`,e._sort?`_start`:0),dn(t)||(e._recent=t),r||on(e,t),e._ts<0&&an(e,e._tTime),e},cn=function(e,t){return(st.ScrollTrigger||dt(`scrollTrigger`,t))&&st.ScrollTrigger.create(t,e)},ln=function(e,t,n,r,i){if(Dr(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!ke&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&xt!==ir.frame)return yt.push(e),e._lazy=[i,r],1},un=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},dn=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},fn=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&un(e)&&!(!e._initted&&dn(e))||(e._ts<0||e._dp._ts<0)&&!dn(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=bn(0,e._tDur,t),l=tn(s,o),e._yoyo&&l&1&&(a=1-a),l!==tn(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||ke||r||e._zTime===je||!t&&e._zTime){if(!e._initted&&ln(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?je:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&Qt(e,t,n,!0),e._onUpdate&&!n&&Un(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Un(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Yt(e,1),!n&&!ke&&(Un(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},pn=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start0&&!r&&an(e,e._tTime=e._tDur*o),e.parent&&rn(e),n||Xt(e.parent,e),e},hn=function(e){return e instanceof br?Xt(e):mn(e,e._dur)},gn={_start:0,endTime:mt,totalDuration:mt},_n=function e(t,n,r){var i=t.labels,a=t._recent||gn,o=t.duration()>=Ae?a.endTime(!1):t._dur,s,c,l;return Re(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(qe(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},vn=function(e,t,n){var r=Be(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=Ue(s.vars.inherit)&&s.parent;a.immediateRender=Ue(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Pr(t[0],a,t[i+1])},yn=function(e,t){return e||e===0?t(e):t},bn=function(e,t,n){return nt?t:n},xn=function(e,t){return!Re(e)||!(t=nt.exec(e))?``:t[1]},Sn=function(e,t,n){return yn(n,function(n){return bn(e,t,n)})},Cn=[].slice,wn=function(e,t){return e&&He(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&He(e[0]))&&!e.nodeType&&e!==it},Tn=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return Re(e)&&!t||wn(e,1)?(r=n).push.apply(r,En(e)):n.push(e)})||n},En=function(e,t,n){return K&&!t&&K.selector?K.selector(e):Re(e)&&!n&&(at||!ar())?Cn.call((t||ot).querySelectorAll(e),0):qe(e)?Tn(e,n):wn(e)?Cn.call(e,0):e?[e]:[]},Dn=function(e){return e=En(e)[0]||ft(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return En(t,n.querySelectorAll?n:n===e?ft(`Invalid scope`)||ot.createElement(`div`):e)}},On=function(e){return e.sort(function(){return .5-Math.random()})},kn=function(e){if(ze(e))return e;var t=He(e)?e:{each:e},n=pr(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return Re(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,Ae])[1],!S){for(b=-Ae;b<(b=d[S++].getBoundingClientRect().left)&&Sb&&(b=v),vf?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=xn(t.amount||t.each)||0,n=n&&f<0?fr(n):n}return f=(p[e]-p.min)/p.max||0,Mt(p.b+(n?n(f):f)*p.v)+p.u}},An=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=Mt(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Be(n)?0:xn(n))}},jn=function(e,t){var n=qe(e),r,i;return!n&&He(e)&&(r=n=e.radius||Ae,e.values?(e=En(e.values),(i=!Be(e[0]))&&(r*=r)):e=An(e.increment)),yn(t,n?ze(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=Ae,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),li?a-e:e)})},zn=function(e){return e.replace(Je,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(Ye);return Mn(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},Bn=function(e,t,n,r,i){var a=t-e,o=r-n;return yn(i,function(t){return n+((t-e)/a*o||0)})},Vn=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=Re(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(qe(t)&&!qe(n)){for(u=[],d=t.length,f=d-2,l=1;l(o=Math.abs(o))&&(s=a,i=o);return s},Un=function(e,t,n){var r=e.vars,i=r[t],a=K,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&yt.length&&Ft(),o&&(K=o),l=s?i.apply(c,s):i.call(c),K=a,l},Wn=function(e){return Yt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ke),e.progress()<1&&Un(e,`onInterrupt`),e},Gn,Kn=[],qn=function(e){if(e)if(e=!e.name&&e.default||e,We()||e.headless){var t=e.name,n=ze(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:mt,render:Ur,add:Sr,kill:Gr,modifier:Wr,rawVars:0},a={targetTest:0,get:0,getSetter:zr,aliases:{},register:0};if(ar(),e!==r){if(St[t])return;Bt(r,Bt(Wt(e,i),a)),Ht(r.prototype,Ht(i,Wt(e,a))),St[r.prop=t]=r,e.targetTest&&(Tt.push(r),vt[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}pt(t,r),e.register&&e.register(ci,r,Jr)}else Kn.push(e)},Jn=255,Yn={aqua:[0,Jn,Jn],lime:[0,Jn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Jn],navy:[0,0,128],white:[Jn,Jn,Jn],olive:[128,128,0],yellow:[Jn,Jn,0],orange:[Jn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Jn,0,0],pink:[Jn,192,203],cyan:[0,Jn,Jn],transparent:[Jn,Jn,Jn,0]},Xn=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*Jn+.5|0},Zn=function(e,t,n){var r=e?Be(e)?[e>>16,e>>8&Jn,e&Jn]:0:Yn.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Yn[e])r=Yn[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Jn,r&Jn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Jn,e&Jn]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(Xe),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Xn(s+1/3,i,a),r[1]=Xn(s,i,a),r[2]=Xn(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(Ze),n&&r.length<4&&(r[3]=1),r}else r=e.match(Xe)||Yn.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/Jn,a=r[1]/Jn,o=r[2]/Jn,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(at||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p=t&&p--},_listeners:s},d}(),ar=function(){return!rr&&ir.wake()},or={},sr=/^[\d.\-M][\d.\-,\s]/,cr=/["']/g,lr=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[lr(t[1])]:ur(e).split(`,`).map(Rt)):or._CE&&sr.test(e)?or._CE(``,e):n},fr=function(e){return function(t){return 1-e(1-t)}},pr=function(e,t){return e&&(ze(e)?e:or[e]||dr(e))||t},mr=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return At(e,function(e){for(var t in or[e]=st[e]=i,or[a=e.toLowerCase()]=n,i)or[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=or[e+`.`+t]=i[t]}),i},hr=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},gr=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/Me*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*Le((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:hr(s);return a=Me/a,c.config=function(n,r){return e(t,n,r)},c},_r=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:hr(r);return i.config=function(n){return e(t,n)},i};At(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;mr(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),or.Linear.easeNone=or.none=or.Linear.easeIn,mr(`Elastic`,gr(`in`),gr(`out`),gr()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,mn(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(ar(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(an(this,e),!n._dp||n.parent||on(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&sn(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===je||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Lt(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+en(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+en(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?tn(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-je?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?nn(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-je?0:this._rts,this.totalTime(bn(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),rn(this),Zt(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ar(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==je&&(this._tTime-=je)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=Mt(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&sn(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(Ue(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?nn(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=_t);var t=ke;return ke=e,It(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),ke=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,hn(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,hn(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(_n(this,e),Ue(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,Ue(t)),this._dur||(this._zTime=-je),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-je:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-je,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=ze(e)?e:zt,a=function(){var e=t.then;t.then=null,n&&n(),ze(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Wn(this)},e}();Bt(yr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-je,_prom:0,_ps:!1,_rts:1});var br=function(e){Ee(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=Ue(t.sortChildren),rt&&sn(t.parent||rt,Te(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&cn(Te(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return vn(0,arguments,this),this},n.from=function(e,t,n){return vn(1,arguments,this),this},n.fromTo=function(e,t,n,r){return vn(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Gt(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Pr(e,t,_n(this,n),1),this},n.call=function(e,t,n){return sn(this,Pr.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new Pr(e,n,_n(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Gt(n).immediateRender=Ue(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Gt(r).immediateRender=Ue(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:Mt(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==rt&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=Mt(o%f),o===i?(d=this._repeat,c=a):(_=Mt(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=tn(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:Mt(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Un(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=pn(this,Mt(r),Mt(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Un(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-je);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||ke&&It(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-je:je);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-je)._zTime=c>=r?1:-1,this._ts))return this._start=g,rn(this),this.render(e,t,n);this._onUpdate&&!t&&Un(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Yt(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Un(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(Be(t)||(t=_n(this,t,e)),!(e instanceof yr)){if(qe(e))return e.forEach(function(e){return n.add(e,t)}),this;if(Re(e))return this.addLabel(e,t);if(ze(e))e=Pr.delayedCall(0,e);else return this}return this===e?this:sn(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-Ae);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Pr?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return Re(e)?this.removeLabel(e):ze(e)?this.killTweensOf(e):(e.parent===this&&Jt(this,e),e===this._recent&&(this._recent=this._last),Xt(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Mt(ir.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=_n(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Pr.delayedCall(0,t||mt,n);return r.data=`isPause`,this._hasPause=1,sn(this,r,_n(this,e))},n.removePause=function(e){var t=this._first;for(e=_n(this,e);t;)t._start===e&&t.data===`isPause`&&Yt(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Tr!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=En(e),i=this._first,a=Be(t),o;i;)i instanceof Pr?Pt(i._targets,r)&&(a?(!Tr||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=_n(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Pr.to(n,Bt({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||je,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&mn(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,Bt({startAt:{time:_n(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Hn(this,_n(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Hn(this,_n(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+je)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=Mt(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Xt(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Xt(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=Ae,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,sn(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=Mt(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;mn(n,n===rt&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(rt._ts&&(Lt(rt,nn(e,rt)),xt=ir.frame),ir.frame>=wt){wt+=De.autoSleep||120;var t=rt._first;if((!t||!t._ts)&&De.autoSleep&&ir._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||ir.sleep()}}},t}(yr);Bt(br.prototype,{_lock:0,_hasPause:0,_forcing:0});var xr=function(e,t,n,r,i,a,o){var s=new Jr(this._pt,e,t,0,1,Hr,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=zn(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match($e)||[];u=$e.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Nt(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=$e.lastIndex);return s.c=c`)}),_.duration();else{for(x in y={},f)x===`ease`||x===`easeEach`||Ar(x,f[x],y,f.easeEach);for(x in y)for(D=y[x].sort(function(e,t){return e.t-t.t}),E=0,v=0;vi-je&&!o?i:ea&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=tn(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(Mt(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(ln(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c0||!s&&this._ts<0)&&Yt(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Un(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){rr||ir.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Dr(this,a),o=this._ease(a/this._dur),Or(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(an(this,0),this.parent||qt(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Wn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ke),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Tr&&Tr.vars.overwrite!==!0)._first||Wn(this),this.parent&&n!==this.timeline.totalDuration()&&mn(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?En(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Kt(r,i))return t===`all`&&(this._pt=0),Wn(this);for(s=this._op=this._op||[],t!==`all`&&(Re(t)&&(d={},At(t,function(e){return d[e]=1}),t=d),t=kr(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&Jt(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Wn(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return vn(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return vn(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return rt.killTweensOf(e,t,n)},t}(yr);Bt(Pr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),At(`staggerTo,staggerFrom,staggerFromTo`,function(e){Pr[e]=function(){var t=new br,n=Cn.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Fr=function(e,t,n){return e[t]=n},Ir=function(e,t,n){return e[t](n)},Lr=function(e,t,n,r){return e[t](r.fp,n)},Rr=function(e,t,n){return e.setAttribute(t,n)},zr=function(e,t){return ze(e[t])?Ir:Ve(e[t])&&e.setAttribute?Rr:Fr},Br=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Vr=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Hr=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Ur=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Wr=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Gr=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Jt(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Kr=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},qr=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},Jr=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Br,this.d=o||this,this.set=s||Fr,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Kr,this.m=e,this.mt=n,this.tween=t},e}();At(Et+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return vt[e]=1}),st.TweenMax=st.TweenLite=Pr,st.TimelineLite=st.TimelineMax=br,rt=new br({sortChildren:!1,defaults:G,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),De.stringFilter=nr;var Yr=[],Xr={},Zr=[],Qr=0,$r=0,ei=function(e){return(Xr[e]||Zr).map(function(e){return e()})},ti=function(){var e=Date.now(),t=[];e-Qr>2&&(ei(`matchMediaInit`),Yr.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=it.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),ei(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Qr=e,ei(`matchMedia`))},ni=function(){function e(e,t){this.selector=t&&Dn(t),this.data=[],this._r=[],this.isReverted=!1,this.id=$r++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){ze(e)&&(n=t,t=e,e=ze);var r=this,i=function(){var e=K,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=Dn(n)),K=r,a=t.apply(r,arguments),ze(a)&&r._r.push(a),K=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===ze?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=K;K=null,e(this),K=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Pr&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof br?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Pr)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Yr.length;r--;)Yr[r].id===this.id&&Yr.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),ri=function(){function e(e){this.contexts=[],this.scope=e,K&&K.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){He(e)||(e={matches:e});var r=new ni(0,n||this.scope),i=r.conditions={},a,o,s;for(o in K&&!r.selector&&(r.selector=K.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=it.matchMedia(e[o]),a&&(Yr.indexOf(r)<0&&Yr.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(ti):a.addEventListener(`change`,ti)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),ii={registerPlugin:function(){[...arguments].forEach(function(e){return qn(e)})},timeline:function(e){return new br(e)},getTweensOf:function(e,t){return rt.getTweensOf(e,t)},getProperty:function(e,t,n,r){Re(e)&&(e=En(e)[0]);var i=Ot(e||{}).get,a=n?zt:Rt;return n===`native`&&(n=``),e&&(t?a((St[t]&&St[t].get||i)(e,t,n,r)):function(t,n,r){return a((St[t]&&St[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=En(e),e.length>1){var r=e.map(function(e){return ci.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=St[t],o=Ot(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Gn._pt=0,r.init(e,n?t+n:t,Gn,0,[e]),r.render(1,r),Gn._pt&&Ur(1,Gn)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=ci.to(e,Bt((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return rt.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=pr(e.ease,G.ease)),Ut(G,e||{})},config:function(e){return Ut(De,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!St[e]&&!st[e]&&ft(t+` effect requires `+e+` plugin.`)}),Ct[t]=function(e,t,r){return n(En(e),Bt(t||{},i),r)},a&&(br.prototype[t]=function(e,n,r){return this.add(Ct[t](e,He(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){or[e]=pr(t)},parseEase:function(e,t){return arguments.length?pr(e,t):or},getById:function(e){return rt.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new br(e),r,i;for(n.smoothChildTiming=Ue(e.smoothChildTiming),rt.remove(n),n._dp=0,n._time=n._tTime=rt._time,r=rt._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Pr&&r.vars.onComplete===r._targets[0]))&&sn(n,r,r._start-r._delay),r=i;return sn(rt,n,0),n},context:function(e,t){return e?new ni(e,t):K},matchMedia:function(e){return new ri(e)},matchMediaRefresh:function(){return Yr.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||ti()},addEventListener:function(e,t){var n=Xr[e]||(Xr[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Xr[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Ln,wrapYoyo:Rn,distribute:kn,random:Mn,snap:jn,normalize:Fn,getUnit:xn,clamp:Sn,splitColor:Zn,toArray:En,selector:Dn,mapRange:Bn,pipe:Nn,unitize:Pn,interpolate:Vn,shuffle:On},install:ut,effects:Ct,ticker:ir,updateRoot:br.updateRoot,plugins:St,globalTimeline:rt,core:{PropTween:Jr,globals:pt,Tween:Pr,Timeline:br,Animation:yr,getCache:Ot,_removeLinkedListItem:Jt,reverting:function(){return ke},context:function(e){return e&&K&&(K.data.push(e),e._ctx=K),K},suppressOverwrites:function(e){return Oe=e}}};At(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return ii[e]=Pr[e]}),ir.add(br.updateRoot),Gn=ii.to({},{duration:0});var ai=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},oi=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=ai(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},si=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(Re(n)&&(r={},At(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}oi(e,n)}}}},ci=ii.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)ke?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},si(`roundProps`,An),si(`modifiers`),si(`snap`,jn))||ii;Pr.version=br.version=ci.version=`3.15.0`,lt=1,We()&&ar(),or.Power0,or.Power1,or.Power2,or.Power3,or.Power4,or.Linear,or.Quad,or.Cubic,or.Quart,or.Quint,or.Strong,or.Elastic,or.Back,or.SteppedEase,or.Bounce,or.Sine,or.Expo,or.Circ;var li,ui,di,fi,pi,mi,hi,gi=function(){return typeof window<`u`},_i={},vi=180/Math.PI,yi=Math.PI/180,bi=Math.atan2,xi=1e8,Si=/([A-Z])/g,Ci=/(left|right|width|margin|padding|x)/i,wi=/[\s,\(]\S/,Ti={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},Ei=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Di=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Oi=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},ki=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Ai=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},ji=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Mi=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Ni=function(e,t,n){return e.style[t]=n},Pi=function(e,t,n){return e.style.setProperty(t,n)},Fi=function(e,t,n){return e._gsap[t]=n},Ii=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Li=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Ri=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},zi=`transform`,Bi=zi+`Origin`,Vi=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in _i&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=Ti[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=oa(i,e)}):this.tfm[t]=o.x?o[t]:oa(i,t),t===Bi&&(this.tfm.zOrigin=o.zOrigin);else return Ti.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(zi)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Bi,n,``)),t=zi}(a||n)&&this.props.push(t,n,a[t])},Hi=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Ui=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i=0?Ji[i]:``)+e},Xi=function(){gi()&&window.document&&(li=window,ui=li.document,di=ui.documentElement,pi=Ki(`div`)||{style:{}},Ki(`div`),zi=Yi(zi),Bi=zi+`Origin`,pi.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Gi=!!Yi(`perspective`),hi=ci.core.reverting,fi=1)},Zi=function(e){var t=e.ownerSVGElement,n=Ki(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),di.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),di.removeChild(n),i},Qi=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},$i=function(e){var t,n;try{t=e.getBBox()}catch{t=Zi(e),n=1}return t&&(t.width||t.height)||n||(t=Zi(e)),t&&!t.width&&!t.x&&!t.y?{x:+Qi(e,[`x`,`cx`,`x1`])||0,y:+Qi(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},ea=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&$i(e))},ta=function(e,t){if(t){var n=e.style,r;t in _i&&t!==Bi&&(t=zi),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(Si,`-$1`).toLowerCase())):n.removeAttribute(t)}},na=function(e,t,n,r,i,a){var o=new Jr(e._pt,t,n,0,1,a?Mi:ji);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},ra={deg:1,rad:1,turn:1},ia={grid:1,flex:1},aa=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=pi.style,c=Ci.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||ra[i]||ra[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&ea(t),(p||o===`%`)&&(_i[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],jt(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===ui||!h.appendChild)&&(h=ui.body),g=h._gsap,g&&p&&g.width&&c&&g.time===ir.time&&!g.uncache)return jt(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:ta(t,n)}else (p||o===`%`)&&!ia[qi(h,`display`)]&&(s.position=qi(t,`position`)),h===t&&(s.position=`static`),h.appendChild(pi),m=pi[u],h.removeChild(pi),s.position=`absolute`;return c&&p&&(g=Ot(h),g.time=ir.time,g.width=h[u]),jt(f?m*a/d:m&&a?d/m*a:0)},oa=function(e,t,n,r){var i;return fi||Xi(),t in Ti&&t!==`transform`&&(t=Ti[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),_i[t]&&t!==`transform`?(i=va(e,r),i=t===`transformOrigin`?i.svg?i.origin:ya(qi(e,Bi))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=da[t]&&da[t](e,t,n)||qi(e,t)||kt(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?aa(e,t,i,n)+n:i},sa=function(e,t,n,r){if(!n||n===`none`){var i=Yi(t,e,1),a=i&&qi(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=qi(e,`borderTopColor`))}var o=new Jr(this._pt,e.style,t,0,1,Hr),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=qi(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=qi(e,t)||r,m?e.style[t]=m:ta(e,t)),l=[n,r],nr(l),n=l[0],r=l[1],d=n.match(Qe)||[],b=r.match(Qe)||[],b.length){for(;u=Qe.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Nt(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=Qe.lastIndex-v.length,v||(v=v||De.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=aa(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s-1;)o=i[c],_i[o]&&(s=1,o=o===`transformOrigin`?Bi:zi),ta(n,o);s&&(ta(n,zi),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,va(n,1),a.uncache=1,Hi(r)))}},da={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Jr(e._pt,t,n,0,0,ua);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},fa=[1,0,0,1,0,0],pa={},ma=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},ha=function(e){var t=qi(e,zi);return ma(t)?fa:t.substr(7).match(Ze).map(jt)},ga=function(e,t){var n=e._gsap||Ot(e),r=e.style,i=ha(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?fa:i):(i===fa&&!e.offsetParent&&e!==di&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,di.appendChild(e)),i=ha(e),s?r.display=s:ta(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):di.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},_a=function(e,t,n,r,i,a){var o=e._gsap,s=i||ga(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==fa&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=$i(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Bi]=`0px 0px`,a&&(na(a,o,`xOrigin`,c,y),na(a,o,`yOrigin`,l,b),na(a,o,`xOffset`,u,o.xOffset),na(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},va=function(e,t){var n=e._gsap||new vr(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=qi(e,Bi)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,L,te,R;return n.svg=!!(e.getCTM&&ea(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[zi]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[zi]===`none`?``:s[zi])),r.scale=r.rotate=r.translate=`none`),S=ga(e,n.svg),n.svg&&(n.uncache?(N=e.getBBox(),c=n.xOrigin-N.x+`px `+(n.yOrigin-N.y)+`px`,M=``):M=!t&&e.getAttribute(`data-svg-origin`),_a(e,M||c,!!M||n.originIsAbsolute,n.smooth!==!1,S)),b=n.xOrigin||0,x=n.yOrigin||0,S!==fa&&(E=S[0],D=S[1],O=S[2],k=S[3],l=A=S[4],u=j=S[5],S.length===6?(f=Math.sqrt(E*E+D*D),p=Math.sqrt(k*k+O*O),m=E||D?bi(D,E)*vi:0,_=O||k?bi(O,k)*vi+m:0,_&&(p*=Math.abs(Math.cos(_*yi))),n.svg&&(l-=b-(b*E+x*O),u-=x-(b*D+x*k))):(R=S[6],L=S[7],F=S[8],I=S[9],ee=S[10],te=S[11],l=S[12],u=S[13],d=S[14],C=bi(R,ee),h=C*vi,C&&(w=Math.cos(-C),T=Math.sin(-C),M=A*w+F*T,N=j*w+I*T,P=R*w+ee*T,F=A*-T+F*w,I=j*-T+I*w,ee=R*-T+ee*w,te=L*-T+te*w,A=M,j=N,R=P),C=bi(-O,ee),g=C*vi,C&&(w=Math.cos(-C),T=Math.sin(-C),M=E*w-F*T,N=D*w-I*T,P=O*w-ee*T,te=k*T+te*w,E=M,D=N,O=P),C=bi(D,E),m=C*vi,C&&(w=Math.cos(C),T=Math.sin(C),M=E*w+D*T,N=A*w+j*T,D=D*w-E*T,j=j*w-A*T,E=M,A=N),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=jt(Math.sqrt(E*E+D*D+O*O)),p=jt(Math.sqrt(j*j+R*R)),C=bi(A,j),_=Math.abs(C)>2e-4?C*vi:0,y=te?1/(te<0?-te:te):0),n.svg&&(M=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!ma(qi(e,zi)),M&&e.setAttribute(`transform`,M))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=jt(f),n.scaleY=jt(p),n.rotation=jt(m)+o,n.rotationX=jt(h)+o,n.rotationY=jt(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Bi]=ya(c)),n.xOffset=n.yOffset=0,n.force3D=De.force3D,n.renderTransform=n.svg?Ea:Gi?Ta:xa,n.uncache=0,n},ya=function(e){return(e=e.split(` `))[0]+` `+e[1]},ba=function(e,t,n){var r=xn(t);return jt(parseFloat(t)+parseFloat(aa(e,`x`,n+`px`,r)))+r},xa=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,Ta(e,t)},Sa=`0deg`,Ca=`0px`,wa=`) `,Ta=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==Sa||l!==Sa)){var x=parseFloat(l)*yi,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*yi,w=Math.cos(x),a=ba(_,a,S*w*-v),o=ba(_,o,-Math.sin(x)*-v),s=ba(_,s,C*w*-v+v)}h!==Ca&&(y+=`perspective(`+h+wa),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==Ca||o!==Ca||s!==Ca)&&(y+=s!==Ca||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+wa),c!==Sa&&(y+=`rotate(`+c+wa),l!==Sa&&(y+=`rotateY(`+l+wa),u!==Sa&&(y+=`rotateX(`+u+wa),(d!==Sa||f!==Sa)&&(y+=`skew(`+d+`, `+f+wa),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+wa),_.style[zi]=y||`translate(0, 0)`},Ea=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=yi,c*=yi,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=yi,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=jt(b),x=jt(x),S=jt(S),C=jt(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=aa(f,`x`,a,`px`),y=aa(f,`y`,o,`px`)),(p||m||h||g)&&(v=jt(v+p-(p*b+m*S)+h),y=jt(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=jt(v+r/100*w.width),y=jt(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[zi]=w)},Da=function(e,t,n,r,i){var a=360,o=Re(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?vi:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*xi)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*xi)%a-~~(s/a)*a)),e._pt=u=new Jr(e._pt,t,n,r,s,Di),u.e=c,u.u=`deg`,e._props.push(n),u},Oa=function(e,t){for(var n in t)e[n]=t[n];return e},ka=function(e,t,n){var r=Oa({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[zi]=t,o=va(n,1),ta(n,zi),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[zi],a[zi]=t,o=va(n,1),a[zi]=c),_i)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=xn(c),p=xn(l),u=f===p?parseFloat(c):aa(n,s,c,p),d=parseFloat(l),e._pt=new Jr(e._pt,o,s,u,d-u,Ei),e._pt.u=p||0,e._props.push(s));Oa(o,r)};At(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});da[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return oa(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var Aa={name:`css`,register:Xi,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;for(m in fi||Xi(),this.styles=this.styles||Wi(e),C=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(St[m]&&wr(m,t,n,r,e,i)))){if(f=typeof l,p=da[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=zn(l)),p)p(this,e,m,l,n)&&(S=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,er.lastIndex=0,er.test(c)||(h=xn(c),g=xn(l),g?h!==g&&(c=aa(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),C.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],Re(c)&&~c.indexOf(`random(`)&&(c=zn(c)),xn(c+``)||c===`auto`||(c+=De.units[m]||xn(oa(e,m))||``),(c+``).charAt(1)===`=`&&(c=oa(e,m))):c=oa(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in Ti&&(m===`autoAlpha`&&(d===1&&oa(e,`visibility`)===`hidden`&&u&&(d=0),C.push(`visibility`,0,o.visibility),na(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=Ti[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in _i,v){if(this.styles.save(m),w=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=qi(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var T=e.style.perspective;e.style.perspective=l,l=qi(e,`perspective`),T?e.style.perspective=T:ta(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||va(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new Jr(this._pt,o,zi,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new Jr(this._pt,b,`scaleY`,b.scaleY,(_?Nt(b.scaleY,_+u):u)-b.scaleY||0,Ei),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){C.push(Bi,0,o[Bi]),l=la(l),b.svg?_a(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&na(this,b,`zOrigin`,b.zOrigin,g),na(this,o,m,ya(c),ya(l)));continue}else if(m===`svgOrigin`){_a(e,l,1,x,0,this);continue}else if(m in pa){Da(this,b,m,d,_?Nt(d,_+l):l);continue}else if(m===`smoothOrigin`){na(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){ka(this,l,e);continue}}else m in o||(m=Yi(m)||m);if(v||(u||u===0)&&(d||d===0)&&!wi.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=xn(l)||(m in De.units?De.units[m]:h),h!==g&&(d=aa(e,m,c,g)),this._pt=new Jr(this._pt,v?b:o,m,d,(_?Nt(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?Ai:Ei),this._pt.u=g||0,v&&w!==l?(this._pt.b=c,this._pt.e=w,this._pt.r=ki):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=Oi);else if(m in o)sa.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){dt(m,l);continue}v||(m in o?C.push(m,0,o[m]):typeof e[m]==`function`?C.push(m,2,e[m]()):C.push(m,1,c||e[m])),a.push(m)}}S&&qr(this)},render:function(e,t){if(t.tween._time||!hi())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:oa,aliases:Ti,getSetter:function(e,t,n){var r=Ti[t];return r&&r.indexOf(`,`)<0&&(t=r),t in _i&&t!==Bi&&(e._gsap.x||oa(e,`x`))?n&&mi===n?t===`scale`?Ii:Fi:(mi=n||{})&&(t===`scale`?Li:Ri):e.style&&!Ve(e.style[t])?Ni:~t.indexOf(`-`)?Pi:zr(e,t)},core:{_removeProperty:ta,_getMatrix:ga}};ci.utils.checkPrefix=Yi,ci.core.getStyleSaver=Wi,(function(e,t,n,r){var i=At(e+`,`+t+`,`+n,function(e){_i[e]=1});At(t,function(e){De.units[e]=`deg`,pa[e]=1}),Ti[i[13]]=e+`,`+t,At(r,function(e){var t=e.split(`:`);Ti[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),At(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){De.units[e]=`px`}),ci.registerPlugin(Aa);var ja=ci.registerPlugin(Aa)||ci;ja.core.Tween;var Ma=typeof document<`u`?W.useLayoutEffect:W.useEffect,Na=e=>e&&!Array.isArray(e)&&typeof e==`object`,Pa=[],Fa={},Ia=ja,La=(e,t=Pa)=>{let n=Fa;Na(e)?(n=e,e=null,t=`dependencies`in n?n.dependencies:Pa):Na(t)&&(n=t,t=`dependencies`in n?n.dependencies:Pa),e&&typeof e!=`function`&&console.warn(`First parameter must be a function or config object`);let{scope:r,revertOnUpdate:i}=n,a=(0,W.useRef)(!1),o=(0,W.useRef)(Ia.context(()=>{},r)),s=(0,W.useRef)(e=>o.current.add(null,e)),c=t&&t.length&&!i;return c&&Ma(()=>(a.current=!0,()=>o.current.revert()),Pa),Ma(()=>{if(e&&o.current.add(e,r),!c||!a.current)return()=>o.current.revert()},t),{context:o.current,contextSafe:s.current}};La.register=e=>{Ia=e},La.headless=!0;function Ra(e,t){for(var n=0;ns?(i=r,r=e,o=a,a=c):n?r+=e:r=i+(e-i)/(c-o)*(a-o)};return{update:l,reset:function(){i=r=n?0:r,o=a=0},getVelocity:function(e){var t=o,s=i,u=io();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},So=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Co=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},wo=function(){Ja=Ba.core.globals().ScrollTrigger,Ja&&Ja.core&&oo()},To=function(e){return Ba=e||$a(),!Va&&Ba&&typeof document<`u`&&document.body&&(Ha=window,Ua=document,Wa=Ua.documentElement,Ga=Ua.body,Ya=[Ha,Ua,Wa,Ga],Ba.utils.clamp,Qa=Ba.core.context||function(){},qa=`onpointerenter`in Ga?`pointer`:`mouse`,Ka=Eo.isTouch=Ha.matchMedia&&Ha.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in Ha||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Za=Eo.eventTypes=(`ontouchstart`in Wa?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in Wa?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return eo=0},500),Va=1),Ja||wo(),Va};go.op=_o,no.cache=0;var Eo=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){Va||To(Ba)||console.warn(`Please gsap.registerPlugin(Observer)`),Ja||wo();var t=e.tolerance,n=e.dragMinimum,r=e.type,i=e.target,a=e.lineHeight,o=e.debounce,s=e.preventDefault,c=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,p=e.onDragStart,m=e.onDragEnd,h=e.onDrag,g=e.onPress,_=e.onRelease,v=e.onRight,y=e.onLeft,b=e.onUp,x=e.onDown,S=e.onChangeX,C=e.onChangeY,w=e.onChange,T=e.onToggleX,E=e.onToggleY,D=e.onHover,O=e.onHoverEnd,k=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,M=e.onGestureStart,N=e.onGestureEnd,P=e.onWheel,F=e.onEnable,I=e.onDisable,ee=e.onClick,L=e.scrollSpeed,te=e.capture,R=e.allowClicks,z=e.lockAxis,ne=e.onLockAxis;this.target=i=vo(i)||Wa,this.vars=e,u&&=Ba.utils.toArray(u),t||=1e-9,n||=0,d||=1,L||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(Ha.getComputedStyle(Ga).lineHeight)||22;var re,ie,B,ae,V,oe,se,H=this,ce=0,le=0,ue=e.passive||!s&&e.passive!==!1,de=bo(i,go),fe=bo(i,_o),pe=de(),me=fe(),he=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&Za[0]===`pointerdown`,ge=co(i),U=i.ownerDocument||Ua,_e=[0,0,0],ve=[0,0,0],ye=0,be=function(){return ye=io()},xe=function(e,t){return(H.event=e)&&u&&yo(e.target,u)||t&&he&&e.pointerType!==`touch`||A&&A(e,t)},Se=function(){H._vx.reset(),H._vy.reset(),ie.pause(),c&&c(H)},Ce=function(){var e=H.deltaX=Co(_e),n=H.deltaY=Co(ve),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(H,e,n,_e,ve),r&&(v&&H.deltaX>0&&v(H),y&&H.deltaX<0&&y(H),S&&S(H),T&&H.deltaX<0!=ce<0&&T(H),ce=H.deltaX,_e[0]=_e[1]=_e[2]=0),i&&(x&&H.deltaY>0&&x(H),b&&H.deltaY<0&&b(H),C&&C(H),E&&H.deltaY<0!=le<0&&E(H),le=H.deltaY,ve[0]=ve[1]=ve[2]=0),(ae||B)&&(k&&k(H),B&&=(p&&B===1&&p(H),h&&h(H),0),ae=!1),oe&&!(oe=!1)&&ne&&ne(H),V&&=(P(H),!1),re=0},W=function(e,t,n){_e[n]+=e,ve[n]+=t,H._vx.update(e),H._vy.update(t),o?re||=requestAnimationFrame(Ce):Ce()},we=function(e,t){z&&!se&&(H.axis=se=Math.abs(e)>Math.abs(t)?`x`:`y`,oe=!0),se!==`y`&&(_e[2]+=e,H._vx.update(e,!0)),se!==`x`&&(ve[2]+=t,H._vy.update(t,!0)),o?re||=requestAnimationFrame(Ce):Ce()},Te=function(e){if(!xe(e,1)){e=So(e,s);var t=e.clientX,r=e.clientY,i=t-H.x,a=r-H.y,o=H.isDragging;H.x=t,H.y=r,(o||(i||a)&&(Math.abs(H.startX-t)>=n||Math.abs(H.startY-r)>=n))&&(B||=o?2:1,o||(H.isDragging=!0),we(i,a))}},Ee=H.onPress=function(e){xe(e,1)||e&&e.button||(H.axis=se=null,ie.pause(),H.isPressed=!0,e=So(e),ce=le=0,H.startX=H.x=e.clientX,H.startY=H.y=e.clientY,H._vx.reset(),H._vy.reset(),lo(j?i:U,Za[1],Te,ue,!0),H.deltaX=H.deltaY=0,g&&g(H))},De=H.onRelease=function(e){if(!xe(e,1)){uo(j?i:U,Za[1],Te,!0);var t=!isNaN(H.y-H.startY),n=H.isDragging,r=n&&(Math.abs(H.x-H.startX)>3||Math.abs(H.y-H.startY)>3),a=So(e);!r&&t&&(H._vx.reset(),H._vy.reset(),s&&R&&Ba.delayedCall(.08,function(){if(io()-ye>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(U.createEvent){var t=U.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,Ha,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),H.isDragging=H.isGesturing=H.isPressed=!1,c&&n&&!j&&ie.restart(!0),B&&Ce(),m&&n&&m(H),_&&_(H,r)}},G=function(e){return e.touches&&e.touches.length>1&&(H.isGesturing=!0)&&M(e,H.isDragging)},Oe=function(){return(H.isGesturing=!1)||N(H)},ke=function(e){if(!xe(e)){var t=de(),n=fe();W((t-pe)*L,(n-me)*L,1),pe=t,me=n,c&&ie.restart(!0)}},K=function(e){if(!xe(e)){e=So(e,s),P&&(V=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?Ha.innerHeight:1)*d;W(e.deltaX*t,e.deltaY*t,0),c&&!j&&ie.restart(!0)}},Ae=function(e){if(!xe(e)){var t=e.clientX,n=e.clientY,r=t-H.x,i=n-H.y;H.x=t,H.y=n,ae=!0,c&&ie.restart(!0),(r||i)&&we(r,i)}},je=function(e){H.event=e,D(H)},Me=function(e){H.event=e,O(H)},Ne=function(e){return xe(e)||So(e,s)&&ee(H)};ie=H._dc=Ba.delayedCall(l||.25,Se).pause(),H.deltaX=H.deltaY=0,H._vx=xo(0,50,!0),H._vy=xo(0,50,!0),H.scrollX=de,H.scrollY=fe,H.isDragging=H.isGesturing=H.isPressed=!1,Qa(this),H.enable=function(e){return H.isEnabled||(lo(ge?U:i,`scroll`,mo),r.indexOf(`scroll`)>=0&&lo(ge?U:i,`scroll`,ke,ue,te),r.indexOf(`wheel`)>=0&&lo(i,`wheel`,K,ue,te),(r.indexOf(`touch`)>=0&&Ka||r.indexOf(`pointer`)>=0)&&(lo(i,Za[0],Ee,ue,te),lo(U,Za[2],De),lo(U,Za[3],De),R&&lo(i,`click`,be,!0,!0),ee&&lo(i,`click`,Ne),M&&lo(U,`gesturestart`,G),N&&lo(U,`gestureend`,Oe),D&&lo(i,qa+`enter`,je),O&&lo(i,qa+`leave`,Me),k&&lo(i,qa+`move`,Ae)),H.isEnabled=!0,H.isDragging=H.isGesturing=H.isPressed=ae=B=!1,H._vx.reset(),H._vy.reset(),pe=de(),me=fe(),e&&e.type&&Ee(e),F&&F(H)),H},H.disable=function(){H.isEnabled&&(to.filter(function(e){return e!==H&&co(e.target)}).length||uo(ge?U:i,`scroll`,mo),H.isPressed&&(H._vx.reset(),H._vy.reset(),uo(j?i:U,Za[1],Te,!0)),uo(ge?U:i,`scroll`,ke,te),uo(i,`wheel`,K,te),uo(i,Za[0],Ee,te),uo(U,Za[2],De),uo(U,Za[3],De),uo(i,`click`,be,!0),uo(i,`click`,Ne),uo(U,`gesturestart`,G),uo(U,`gestureend`,Oe),uo(i,qa+`enter`,je),uo(i,qa+`leave`,Me),uo(i,qa+`move`,Ae),H.isEnabled=H.isPressed=H.isDragging=!1,I&&I(H))},H.kill=H.revert=function(){H.disable();var e=to.indexOf(H);e>=0&&to.splice(e,1),Xa===H&&(Xa=0)},to.push(H),j&&co(i)&&(Xa=H),H.enable(f)},za(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();Eo.version=`3.15.0`,Eo.create=function(e){return new Eo(e)},Eo.register=To,Eo.getAll=function(){return to.slice()},Eo.getById=function(e){return to.filter(function(t){return t.vars.id===e})[0]},$a()&&Ba.registerPlugin(Eo);var q,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os=1,ss=Date.now,cs=ss(),ls=0,us=0,ds=function(e,t,n){var r=Ds(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},fs=function(e,t){return t&&(!Ds(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},ps=function e(){return us&&requestAnimationFrame(e)},ms=function(){return zo=1},hs=function(){return zo=0},gs=function(e){return e},_s=function(e){return Math.round(e*1e5)/1e5||0},vs=function(){return typeof window<`u`},ys=function(){return q||vs()&&(q=window.gsap)&&q.registerPlugin&&q},bs=function(e){return!!~Mo.indexOf(e)},xs=function(e){return(e===`Height`?ns:Oo[`inner`+e])||Ao[`client`+e]||jo[`client`+e]},Ss=function(e){return so(e,`getBoundingClientRect`)||(bs(e)?function(){return Yc.width=Oo.innerWidth,Yc.height=ns,Yc}:function(){return Qs(e)})},Cs=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=so(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?xs(i):e[`client`+i])||0}},ws=function(e,t){return!t||~ro.indexOf(e)?Ss(e):function(){return Yc}},Ts=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=so(e,n))?a()-Ss(e)()[i]:bs(e)?(Ao[n]||jo[n])-xs(r):e[n]-e[`offset`+r])},Es=function(e,t){for(var n=0;n0){for(e-=i,a=0;a=e)return n[a];return n[a-1]}else for(a=n.length,e+=i;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,r,i){i===void 0&&(i=.001);var a=t(n);return!r||Math.abs(a-n)n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in uc?uc[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},fc=function(e,t,n,r,i,a,o,s){var c=i.startColor,l=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=ko.createElement(`div`),m=bs(n)||so(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?jo:n.tagName===`IFRAME`?n.contentDocument.body:n,_=e.indexOf(`start`)!==-1,v=_?c:l,y=`border-color:`+v+`;font-size:`+u+`;color:`+v+`;font-weight:`+f+`;pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;`;return y+=`position:`+((h||s)&&m?`fixed;`:`absolute;`),(h||s||!m)&&(y+=(r===_o?Is:Ls)+`:`+(a+parseFloat(d))+`px;`),o&&(y+=`box-sizing:border-box;text-align:left;width:`+o.offsetWidth+`px;`),p._isStart=_,p.setAttribute(`class`,`gsap-marker-`+e+(t?` marker-`+t:``)),p.style.cssText=y,p.innerText=t||t===0?e+`-`+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p[`offset`+r.op.d2],pc(p,0,r,_),p},pc=function(e,t,n,r){var i={display:`block`},a=n[r?`os2`:`p2`],o=n[r?`p2`:`os2`];e._isFlipped=r,i[n.a+`Percent`]=r?-100:0,i[n.a]=r?`1px`:0,i[`border`+a+Ks]=1,i[`border`+o+Ks]=0,i[n.p]=t+`px`,q.set(e,i)},mc=[],hc={},gc,_c=function(){return ss()-ls>34&&(gc||=requestAnimationFrame(Bc))},vc=function(){(!Jo||!Jo.isPressed||Jo.startX>jo.clientWidth)&&(no.cache++,Jo?gc||=requestAnimationFrame(Bc):Bc(),ls||wc(`scrollStart`),ls=ss())},yc=function(){Zo=Oo.innerWidth,Xo=Oo.innerHeight},bc=function(e){no.cache++,(e===!0||!Ro&&!qo&&!ko.fullscreenElement&&!ko.webkitFullscreenElement&&(!Yo||Zo!==Oo.innerWidth||Math.abs(Oo.innerHeight-Xo)>Oo.innerHeight*.25))&&No.restart(!0)},xc={},Sc=[],Cc=function e(){return oc(nl,`scrollEnd`,e)||Ic(!0)},wc=function(e){return xc[e]&&xc[e].map(function(e){return e()})||Sc},Tc=[],Ec=function(e){for(var t=0;tt,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),Fc(!1),is=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),no.forEach(function(e){Os(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),kc(es,1),No.pause(),jc++,Ac=2,Bc(2),mc.forEach(function(e){return Os(e.vars.onRefresh)&&e.vars.onRefresh(e)}),Ac=nl.isRefreshing=!1,wc(`refresh`)},Lc=0,Rc=1,zc,Bc=function(e){if(e===2||!Ac&&!rs){nl.isUpdating=!0,zc&&zc.update(0);var t=mc.length,n=ss(),r=n-cs>=50,i=t&&mc[0].scroll();if(Rc=Lc>i?-1:1,Ac||(Lc=i),r&&(ls&&!zo&&n-ls>200&&(ls=0,wc(`scrollEnd`)),Io=cs,cs=n),Rc<0){for(Vo=t;Vo-- >0;)mc[Vo]&&mc[Vo].update(0,r);Rc=1}else for(Vo=0;Vo20),n-=n-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),a){var C=e+n,w=a._isStart;h=`scroll`+r.d2,pc(a,C,r,w&&C>20||!w&&(u?Math.max(jo[h],Ao[h]):a.parentNode[h])<=C+1),u&&(c=Qs(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+Js))}return f&&_&&(h=Qs(_),f.seek(d),g=Qs(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},Zc=/(webkit|moz|length|cssText|inset)/i,Qc=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===jo){for(a in e._stOrig=i.cssText,o=Ys(e),o)!+a&&!Zc.test(a)&&o[a]&&typeof i[a]==`string`&&a!==`0`&&(i[a]=o[a]);i.top=n,i.left=r}else i.cssText=e._stOrig;q.core.getCache(e).uncache=1,t.appendChild(e)}},$c=function(e,t,n){var r=t,i=r;return function(t){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(t=a,n&&n()),i=r,r=Math.round(t),r}},el=function(e,t,n){var r={};r[t.p]=`+=`+n,q.set(e,r)},tl=function(e,t){var n=bo(e,t),r=`_scroll`+t.p2,i=function t(i,a,o,s,c){var l=t.tween,u=a.onComplete,d={};o||=n();var f=$c(n,o,function(){l.kill(),t.tween=0});return c=s&&c||0,s||=i-o,l&&l.kill(),a[r]=i,a.inherit=!1,a.modifiers=d,d[r]=function(){return f(o+s*l.ratio+c*l.ratio*l.ratio)},a.onUpdate=function(){no.cache++,t.tween&&Bc()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=q.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ac(e,`wheel`,n.wheelHandler),nl.isTouch&&ac(e,`touchmove`,n.wheelHandler),i},nl=function(){function e(t,n){Do||e.register(q)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),$o(this),this.init(t,n)}var t=e.prototype;return t.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!us){this.update=this.refresh=this.kill=gs;return}t=Zs(Ds(t)||ks(t)||t.nodeType?{trigger:t}:t,lc);var r=t,i=r.onUpdate,a=r.toggleClass,o=r.id,s=r.onToggle,c=r.onRefresh,l=r.scrub,u=r.trigger,d=r.pin,f=r.pinSpacing,p=r.invalidateOnRefresh,m=r.anticipatePin,h=r.onScrubComplete,g=r.onSnapComplete,_=r.once,v=r.snap,y=r.pinReparent,b=r.pinSpacer,x=r.containerAnimation,S=r.fastScrollEnd,C=r.preventOverlaps,w=t.horizontal||t.containerAnimation&&t.horizontal!==!1?go:_o,T=!l&&l!==0,E=vo(t.scroller||Oo),D=q.core.getCache(E),O=bs(E),k=(`pinType`in t?t.pinType:so(E,`pinType`)||O&&`fixed`)===`fixed`,A=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],j=T&&t.toggleActions.split(` `),M=`markers`in t?t.markers:lc.markers,N=O?0:parseFloat(Ys(E)[`border`+w.p2+Ks])||0,P=this,F=t.onRefreshInit&&function(){return t.onRefreshInit(P)},I=Cs(E,O,w),ee=ws(E,O),L=0,te=0,R=0,z=bo(E,w),ne,re,ie,B,ae,V,oe,se,H,ce,le,ue,de,fe,pe,me,he,ge,U,_e,ve,ye,be,xe,Se,Ce,W,we,Te,Ee,De,G,Oe,ke,K,Ae,je,Me,Ne;if(P._startClamp=P._endClamp=!1,P._dir=w,m*=45,P.scroller=E,P.scroll=x?x.time.bind(x):z,B=z(),P.vars=t,n||=t.animation,`refreshPriority`in t&&(Go=1,t.refreshPriority===-9999&&(zc=P)),D.tweenScroll=D.tweenScroll||{top:tl(E,_o),left:tl(E,go)},P.tweenTo=ne=D.tweenScroll[w.p],P.scrubDuration=function(e){Oe=ks(e)&&e,Oe?G?G.duration(e):G=q.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:Oe,paused:!0,onComplete:function(){return h&&h(P)}}):(G&&G.progress(1).kill(),G=0)},n&&(n.vars.lazy=!1,n._initted&&!P.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),P.animation=n.pause(),n.scrollTrigger=P,P.scrubDuration(l),Ee=0,o||=n.vars.id),v&&((!As(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in jo.style&&q.set(O?[jo,Ao]:E,{scrollBehavior:`auto`}),no.forEach(function(e){return Os(e)&&e.target===(O?ko.scrollingElement||Ao:E)&&(e.smooth=!1)}),ie=Os(v.snapTo)?v.snapTo:v.snapTo===`labels`?tc(n):v.snapTo===`labelsDirectional`?rc(n):v.directional===!1?q.utils.snap(v.snapTo):function(e,t){return nc(v.snapTo)(e,ss()-te<500?0:t.direction)},ke=v.duration||{min:.1,max:2},ke=As(ke)?Fo(ke.min,ke.max):Fo(ke,ke),K=q.delayedCall(v.delay||Oe/2||.1,function(){var e=z(),t=ss()-te<500,r=ne.tween;if((t||Math.abs(P.getVelocity())<10)&&!r&&!zo&&L!==e){var i=(e-V)/fe,a=n&&!T?n.totalProgress():i,o=t?0:(a-De)/(ss()-Io)*1e3||0,s=q.utils.clamp(-i,1-i,Ns(o/2)*o/.185),c=i+(v.inertia===!1?0:s),l,u,d=v,f=d.onStart,p=d.onInterrupt,m=d.onComplete;if(l=ie(c,P),ks(l)||(l=c),u=Math.max(0,Math.round(V+l*fe)),e<=oe&&e>=V&&u!==e){if(r&&!r._initted&&r.data<=Ns(u-e))return;v.inertia===!1&&(s=l-i),ne(u,{duration:ke(Ns(Math.max(Ns(c-a),Ns(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:Ns(u-e),onInterrupt:function(){return K.restart(!0)&&p&&Ms(P,p)},onComplete:function(){P.update(),L=z(),n&&!T&&(G?G.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),Ee=De=n&&!T?n.totalProgress():P.progress,g&&g(P),m&&Ms(P,m)}},e,s*fe,u-e-s*fe),f&&Ms(P,f,ne.tween)}}else P.isActive&&L!==e&&K.restart(!0)}).pause()),o&&(hc[o]=P),u=P.trigger=vo(u||d!==!0&&d),Ne=u&&u._gsap&&u._gsap.stRevert,Ne&&=Ne(P),d=d===!0?u:vo(d),Ds(a)&&(a={targets:u,className:a}),d&&(f===!1||f===Gs||(f=!f&&d.parentNode&&d.parentNode.style&&Ys(d.parentNode).display===`flex`?!1:Ws),P.pin=d,re=q.core.getCache(d),re.spacer?pe=re.pinState:(b&&(b=vo(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),re.spacerIsNative=!!b,b&&(re.spacerState=qc(b))),re.spacer=ge=b||ko.createElement(`div`),ge.classList.add(`pin-spacer`),o&&ge.classList.add(`pin-spacer-`+o),re.pinState=pe=qc(d)),t.force3D!==!1&&q.set(d,{force3D:!0}),P.spacer=ge=re.spacer,Te=Ys(d),xe=Te[f+w.os2],_e=q.getProperty(d),ve=q.quickSetter(d,w.a,Js),Wc(d,ge,Te),he=qc(d)),M){ue=As(M)?Zs(M,cc):cc,ce=fc(`scroller-start`,o,E,w,ue,0),le=fc(`scroller-end`,o,E,w,ue,0,ce),U=ce[`offset`+w.op.d2];var Pe=vo(so(E,`content`)||E);se=this.markerStart=fc(`start`,o,Pe,w,ue,U,0,x),H=this.markerEnd=fc(`end`,o,Pe,w,ue,U,0,x),x&&(Me=q.quickSetter([se,H],w.a,Js)),!k&&!(ro.length&&so(E,`fixedMarkers`)===!0)&&(Xs(O?jo:E),q.set([ce,le],{force3D:!0}),Ce=q.quickSetter(ce,w.a,Js),we=q.quickSetter(le,w.a,Js))}if(x){var Fe=x.vars.onUpdate,Ie=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){P.update(0,0,1),Fe&&Fe.apply(x,Ie||[])})}if(P.previous=function(){return mc[mc.indexOf(P)-1]},P.next=function(){return mc[mc.indexOf(P)+1]},P.revert=function(e,t){if(!t)return P.kill(!0);var r=e!==!1||!P.enabled,i=Ro;r!==P.isReverted&&(r&&(Ae=Math.max(z(),P.scroll.rec||0),R=P.progress,je=n&&n.progress()),se&&[se,H,ce,le].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(Ro=P,P.update(r)),d&&(!y||!P.isActive)&&(r?Uc(d,ge,pe):Wc(d,ge,Ys(d),Se)),r||P.update(r),Ro=i,P.isReverted=r)},P.refresh=function(r,i,a,o){if(!((Ro||!P.enabled)&&!i)){if(d&&r&&ls){ac(e,`scrollEnd`,Cc);return}!Ac&&F&&F(P),Ro=P,ne.tween&&!a&&(ne.tween.kill(),ne.tween=0),G&&G.pause(),p&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var s=I(),l=ee(),m=x?x.duration():Ts(E,w),h=fe<=.01||!fe,g=0,_=o||0,v=As(a)?a.end:t.end,b=t.endTrigger||u,S=As(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=P.pinnedContainer=t.pinnedContainer&&vo(t.pinnedContainer,P),D=u&&Math.max(0,mc.indexOf(P))||0,A=D,j,re,ie,ue,U,ve,xe,Ce,we,Te,Ee,De,Oe;for(M&&As(a)&&(De=q.getProperty(ce,w.p),Oe=q.getProperty(le,w.p));A-- >0;)ve=mc[A],ve.end||ve.refresh(0,1)||(Ro=P),xe=ve.pin,xe&&(xe===u||xe===d||xe===C)&&!ve.isReverted&&(Te||=[],Te.unshift(ve),ve.revert(!0,!0)),ve!==mc[A]&&(D--,A--);for(Os(S)&&(S=S(P)),S=ds(S,`start`,P),V=Xc(S,u,s,w,z(),se,ce,P,l,N,k,m,x,P._startClamp&&`_startClamp`)||(d?-.001:0),Os(v)&&(v=v(P)),Ds(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(Ds(S)?S.split(` `)[0]:``)+v:(g=dc(v.substr(2),s),v=Ds(S)?S:(x?q.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,V):V)+g,b=u)),v=ds(v,`end`,P),oe=Math.max(V,Xc(v||(b?`100% 0`:m),b,s,w,z()+g,H,le,P,l,N,k,m,x,P._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)ve=mc[A]||{},xe=ve.pin,xe&&ve.start-ve._pinPush<=V&&!x&&ve.end>0&&(j=ve.end-(P._startClamp?Math.max(0,ve.start):ve.start),(xe===u&&ve.start-ve._pinPush=Ts(E,w)))j=Ys(d),ue=w===_o,ie=z(),ye=parseFloat(_e(w.a))+_,!m&&oe>1&&(Ee=(O?ko.scrollingElement||Ao:E).style,Ee={style:Ee,value:Ee[`overflow`+w.a.toUpperCase()]},O&&Ys(jo)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(Ee.style[`overflow`+w.a.toUpperCase()]=`scroll`)),Wc(d,ge,j),he=qc(d),re=Qs(d,!0),Ce=k&&bo(E,ue?go:_o)(),f?(Se=[f+w.os2,fe+_+Js],Se.t=ge,A=f===Ws?$s(d,w)+fe+_:0,A&&(Se.push(w.d,A+Js),ge.style.flexBasis!==`auto`&&(ge.style.flexBasis=A+Js)),Kc(Se),C&&mc.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&z(Ae)):(A=$s(d,w),A&&ge.style.flexBasis!==`auto`&&(ge.style.flexBasis=A+Js)),k&&(U={top:re.top+(ue?ie-V:Ce)+Js,left:re.left+(ue?Ce:ie-V)+Js,boxSizing:`border-box`,position:`fixed`},U[Rs]=U[`max`+Ks]=Math.ceil(re.width)+Js,U[zs]=U[`max`+qs]=Math.ceil(re.height)+Js,U[Gs]=U[Gs+Hs]=U[Gs+Bs]=U[Gs+Us]=U[Gs+Vs]=`0`,U[Ws]=j[Ws],U[Ws+Hs]=j[Ws+Hs],U[Ws+Bs]=j[Ws+Bs],U[Ws+Us]=j[Ws+Us],U[Ws+Vs]=j[Ws+Vs],me=Jc(pe,U,y),Ac&&z(0)),n?(we=n._initted,Ko(1),n.render(n.duration(),!0,!0),be=_e(w.a)-ye+fe+_,W=Math.abs(fe-be)>1,k&&W&&me.splice(me.length-2,2),n.render(0,!0,!0),we||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),Ko(0)):be=fe,Ee&&(Ee.value?Ee.style[`overflow`+w.a.toUpperCase()]=Ee.value:Ee.style.removeProperty(`overflow-`+w.a));else if(u&&z()&&!x)for(re=u.parentNode;re&&re!==jo;)re._pinOffset&&(V-=re._pinOffset,oe-=re._pinOffset),re=re.parentNode;Te&&Te.forEach(function(e){return e.revert(!1,!0)}),P.start=V,P.end=oe,B=ae=Ac?Ae:z(),!x&&!Ac&&(B0?mc.slice(0,t).reverse():mc.slice(t+1);return(Ds(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return P.direction>0?e.end<=V:e.start>=oe})},P.update=function(e,t,r){if(!(x&&!r&&!e)){var o=Ac===!0?Ae:P.scroll(),c=e?0:(o-V)/fe,u=c<0?0:c>1?1:c||0,p=P.progress,h,g,b,D,O,M,N,F;if(t&&(ae=B,B=x?z():o,v&&(De=Ee,Ee=n&&!T?n.totalProgress():u)),m&&d&&!Ro&&!os&&ls&&(!u&&Vo+(o-ae)/(ss()-Io)*m&&(u=.9999)),u!==p&&P.enabled){if(h=P.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,P.direction=u>p?1:-1,P.progress=u,O&&!Ro&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],F=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||F)&&(F||l||!n)&&(Os(C)?C(P):P.getTrailing(C).forEach(function(e){return e.endAnimation()})),T||(G&&!Ro&&!os?(G._dp._time-G._start!==G._time&&G.render(G._dp._time-G._start),G.resetTo?G.resetTo(`totalProgress`,u,n._tTime/n._tDur):(G.vars.totalProgress=u,G.invalidate().restart())):n&&n.totalProgress(u,!!(Ro&&(te||e)))),d){if(e&&f&&(ge.style[f+w.os2]=xe),!k)ve(_s(ye+be*u));else if(O){if(N=!e&&u>p&&oe+1>o&&o+1>=Ts(E,w),y)if(!e&&(h||N)){var I=Qs(d,!0),ee=o-V;Qc(d,jo,I.top+(w===_o?ee:0)+Js,I.left+(w===_o?0:ee)+Js)}else Qc(d,ge);Kc(h||N?me:he),W&&u<1&&h||ve(ye+(u===1&&!N?be:0))}}v&&!ne.tween&&!Ro&&!os&&K.restart(!0),a&&(M||_&&u&&(u<1||!as))&&Po(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(P),O&&!Ro?(T&&(F&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(P)),(M||!as)&&(s&&M&&Ms(P,s),A[b]&&Ms(P,A[b]),_&&(u===1?P.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&Ms(P,A[b]))),S&&!h&&Math.abs(P.getVelocity())>(ks(S)?S:2500)&&(js(P.callbackAnimation),G?G.progress(1):js(n,D===`reverse`?1:!u,1))):T&&i&&!Ro&&i(P)}if(we){var L=x?o/x.duration()*(x._caScrollDist||0):o;Ce(L+ +!!ce._isFlipped),we(L)}Me&&Me(-o/x.duration()*(x._caScrollDist||0))}},P.enable=function(t,n){P.enabled||(P.enabled=!0,ac(E,`resize`,bc),O||ac(E,`scroll`,vc),F&&ac(e,`refreshInit`,F),t!==!1&&(P.progress=R=0,B=ae=L=z()),n!==!1&&P.refresh())},P.getTween=function(e){return e&&ne?ne.tween:G},P.setPositions=function(e,t,n,r){if(x){var i=x.scrollTrigger,a=x.duration(),o=i.end-i.start;e=i.start+o*e/a,t=i.start+o*t/a}P.refresh(!1,!1,{start:fs(e,n&&!!P._startClamp),end:fs(t,n&&!!P._endClamp)},r),P.update()},P.adjustPinSpacing=function(e){if(Se&&e){var t=Se.indexOf(w.d)+1;Se[t]=parseFloat(Se[t])+e+Js,Se[1]=parseFloat(Se[1])+e+Js,Kc(Se)}},P.disable=function(t,n){if(t!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,n||G&&G.pause(),Ae=0,re&&(re.uncache=1),F&&oc(e,`refreshInit`,F),K&&(K.pause(),ne.tween&&ne.tween.kill()&&(ne.tween=0)),!O)){for(var r=mc.length;r--;)if(mc[r].scroller===E&&mc[r]!==P)return;oc(E,`resize`,bc),O||oc(E,`scroll`,vc)}},P.kill=function(e,r){P.disable(e,r),G&&!r&&G.kill(),o&&delete hc[o];var i=mc.indexOf(P);i>=0&&mc.splice(i,1),i===Vo&&Rc>0&&Vo--,i=0,mc.forEach(function(e){return e.scroller===P.scroller&&(i=1)}),i||Ac||(P.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),se&&[se,H,ce,le].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),zc===P&&(zc=0),d&&(re&&(re.uncache=1),i=0,mc.forEach(function(e){return e.pin===d&&i++}),i||(re.spacer=0)),t.onKill&&t.onKill(P)},mc.push(P),P.enable(!1,!1),Ne&&Ne(P),n&&n.add&&!fe){var Le=P.update;P.update=function(){P.update=Le,no.cache++,V||oe||P.refresh()},q.delayedCall(.01,P.update),fe=.01,V=oe=0}else P.refresh();d&&Nc()},e.register=function(t){return Do||=(q=t||ys(),vs()&&window.document&&e.enable(),us),Do},e.defaults=function(e){if(e)for(var t in e)lc[t]=e[t];return lc},e.disable=function(e,t){us=0,mc.forEach(function(n){return n[t?`kill`:`disable`](e)}),oc(Oo,`wheel`,vc),oc(ko,`scroll`,vc),clearInterval(Lo),oc(ko,`touchcancel`,gs),oc(jo,`touchstart`,gs),ic(oc,ko,`pointerdown,touchstart,mousedown`,ms),ic(oc,ko,`pointerup,touchend,mouseup`,hs),No.kill(),Es(oc);for(var n=0;n0&&r.left+i0&&r.top+i=0&&Tc.splice(t,5),Tc.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),q.core.getCache(e),$o())}}):Tc},nl.revert=function(e,t){return Oc(!e,t)},nl.create=function(e,t){return new nl(e,t)},nl.refresh=function(e){return e?bc(!0):(Do||nl.register())&&Ic(!0)},nl.update=function(e){return++no.cache&&Bc(e===!0?2:0)},nl.clearScrollMemory=kc,nl.maxScroll=function(e,t){return Ts(e,t?go:_o)},nl.getScrollFunc=function(e,t){return bo(vo(e),t?go:_o)},nl.getById=function(e){return hc[e]},nl.getAll=function(){return mc.filter(function(e){return e.vars.id!==`ScrollSmoother`})},nl.isScrolling=function(){return!!ls},nl.snapDirectional=nc,nl.addEventListener=function(e,t){var n=xc[e]||(xc[e]=[]);~n.indexOf(t)||n.push(t)},nl.removeEventListener=function(e,t){var n=xc[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},nl.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=q.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&o.progress(1)}},s;for(s in t)r[s]=s.substr(0,2)===`on`&&Os(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return Os(a)&&(a=a(),ac(nl,`refresh`,function(){return a=t.batchMax()})),Po(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push(nl.create(t))}),n};var rl=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},il=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(Eo.isTouch?` pinch-zoom`:``):`none`,t===Ao&&e(jo,n)},al={auto:1,scroll:1},ol=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||q.core.getCache(i),o=ss(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==jo&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(al[(s=Ys(i)).overflowY]||al[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!bs(i)&&(al[(s=Ys(i)).overflowY]||al[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},sl=function(e,t,n,r){return Eo.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=ol,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&ac(ko,Eo.eventTypes[0],ul,!1,!0)},onDisable:function(){return oc(ko,Eo.eventTypes[0],ul,!0)}})},cl=/(input|label|select|textarea)/i,ll,ul=function(e){var t=cl.test(e.target.tagName);(t||ll)&&(e._gsapAllow=!0,ll=t)},dl=function(e){As(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||=`wheel,touch`,e.debounce=!!e.debounce,e.id=e.id||`normalizer`;var t=e,n=t.normalizeScrollX,r=t.momentum,i=t.allowNestedScroll,a=t.onRelease,o,s,c=vo(e.target)||Ao,l=q.core.globals().ScrollSmoother,u=l&&l.get(),d=Qo&&(e.content&&vo(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=bo(c,_o),p=bo(c,go),m=1,h=(Eo.isTouch&&Oo.visualViewport?Oo.visualViewport.scale*Oo.visualViewport.width:Oo.outerWidth)/Oo.innerWidth,g=0,_=Os(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=sl(c,e.type,!0,i),x=function(){return y=!1},S=gs,C=gs,w=function(){s=Ts(c,_o),C=Fo(+!!Qo,s),n&&(S=Fo(0,Ts(c,go))),v=jc},T=function(){d._gsap.y=_s(parseFloat(d._gsap.y)+f.offset)+`px`,d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+parseFloat(d._gsap.y)+`, 0, 1)`,f.offset=f.cacheID=0},E=function(){if(y){requestAnimationFrame(x);var e=_s(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=_s((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+n+`, 0, 1)`,d._gsap.y=n+`px`,f.cacheID=no.cache,Bc()}return!0}f.offset&&T(),y=!0},D,O,k,A,j=function(){w(),D.isActive()&&D.vars.scrollY>s&&(f()>s?D.progress(1)&&f(s):D.resetTo(`scrollY`,s))};return d&&q.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return Qo&&e.type===`touchmove`&&E(e)||m>1.05&&e.type!==`touchstart`||o.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){y=!1;var e=m;m=_s((Oo.visualViewport&&Oo.visualViewport.scale||1)/h),D.pause(),e!==m&&il(c,m>1.01?!0:n?!1:`x`),O=p(),k=f(),w(),v=jc},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{no.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=rl(p,i,o,Ts(c,go)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=rl(f,i,o,Ts(c,_o)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(Qo&&D.vars.scrollY>=s||i>=s-1)&&q.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),ss()-g>1e3&&(v=0,g=ss())},e.onChange=function(e,t,r,i,a){if(jc!==v&&w(),t&&n&&p(S(i[2]===t?O+(e.startX-e.x):p()+t-i[1])),r){f.offset&&T();var o=a[2]===r,s=o?k+e.startY-e.y:f()+r-a[1],c=C(s);o&&s!==c&&(k+=c-s),f(c)}(r||t)&&Bc()},e.onEnable=function(){il(c,n?!1:`x`),nl.addEventListener(`refresh`,j),ac(Oo,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){il(c,!0),oc(Oo,`resize`,j),nl.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new Eo(e),o.iOS=Qo,Qo&&!f()&&f(1),Qo&&q.ticker.add(gs),A=o._dc,D=q.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:$c(f,f(),function(){return D.pause()})},onUpdate:Bc,onComplete:A.vars.onComplete}),o};nl.sort=function(e){if(Os(e))return mc.sort(e);var t=Oo.pageYOffset||0;return nl.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Oo.innerHeight}),mc.sort(e||function(e,t){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})},nl.observe=function(e){return new Eo(e)},nl.normalizeScroll=function(e){if(e===void 0)return Jo;if(e===!0&&Jo)return Jo.enable();if(e===!1){Jo&&Jo.kill(),Jo=e;return}var t=e instanceof Eo?e:dl(e);return Jo&&Jo.target===t.target&&Jo.kill(),bs(t.target)&&(Jo=t),t},nl.core={_getVelocityProp:xo,_inputObserver:sl,_scrollers:no,_proxies:ro,bridge:{ss:function(){ls||wc(`scrollStart`),ls=ss()},ref:function(){return Ro}}},ys()&&q.registerPlugin(nl);var J=j();function fl(t){let r=(0,we.c)(31),{code:i,language:s,className:c,variant:l,showCopyButton:u}=t,d=s===void 0?`bash`:s,f=l===void 0?`default`:l,p=u===void 0?!0:u,[m,h]=(0,W.useState)(!1),{normalizedLanguage:g,highlightedCode:_}=a(i,d),{copy:v}=o(),y;r[0]!==i||r[1]!==v?(y=async()=>{await v(i)?(h(!0),S.success(`Copied to clipboard`),setTimeout(()=>h(!1),2e3)):S.error(`Failed to copy to clipboard`)},r[0]=i,r[1]=v,r[2]=y):y=r[2];let b=y,x;r[3]===c?x=r[4]:(x=D(`group/code-block relative rounded-md border border-border bg-muted/30 text-sm`,c),r[3]=c,r[4]=x);let C;r[5]!==m||r[6]!==b||r[7]!==g||r[8]!==p||r[9]!==f?(C=f===`default`&&(0,J.jsxs)(`div`,{className:`flex h-14 items-center justify-between border-b border-border bg-muted/50 px-3 py-2`,children:[(0,J.jsx)(`span`,{className:`font-mono text-sm font-bold text-muted-foreground`,children:g}),p&&(0,J.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,J.jsx)(`span`,{className:D(`text-xs text-green-500 transition-opacity duration-200`,m?`opacity-100`:`pointer-events-none opacity-0`),children:`Copied`}),(0,J.jsxs)(A,{variant:`ghost`,size:`icon`,onClick:b,className:`transition-opacity hover:opacity-100`,children:[m?(0,J.jsx)(e,{className:`size-4 text-green-500`}):(0,J.jsx)(n,{className:`size-4`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Copy`})]})]})]}),r[5]=m,r[6]=b,r[7]=g,r[8]=p,r[9]=f,r[10]=C):C=r[10];let w;r[11]!==m||r[12]!==b||r[13]!==p||r[14]!==f?(w=f===`minimal`&&p&&(0,J.jsxs)(`div`,{className:`absolute top-2 right-2 z-10 flex items-center gap-1 opacity-0 transition-opacity group-hover/code-block:opacity-100`,children:[(0,J.jsx)(`span`,{className:D(`text-xs text-green-500 transition-opacity duration-200`,m?`opacity-100`:`pointer-events-none opacity-0`),children:`Copied`}),(0,J.jsxs)(A,{variant:`ghost`,size:`icon`,onClick:b,children:[m?(0,J.jsx)(e,{className:`size-4 text-green-500`}):(0,J.jsx)(n,{className:`size-4`}),(0,J.jsx)(`span`,{className:`sr-only`,children:`Copy`})]})]}),r[11]=m,r[12]=b,r[13]=p,r[14]=f,r[15]=w):w=r[15];let T=f===`default`?`rounded-none! p-3!`:`rounded-md! p-4!`,E;r[16]===T?E=r[17]:(E=D(`m-0! font-mono! text-sm leading-relaxed`,T),r[16]=T,r[17]=E);let O;r[18]===_?O=r[19]:(O=(0,J.jsx)(`span`,{dangerouslySetInnerHTML:{__html:_}}),r[18]=_,r[19]=O);let k;r[20]!==d||r[21]!==O?(k=(0,J.jsx)(`code`,{"data-language":d,suppressHydrationWarning:!0,children:O}),r[20]=d,r[21]=O,r[22]=k):k=r[22];let j;r[23]!==k||r[24]!==E?(j=(0,J.jsx)(`div`,{className:`overflow-x-auto`,children:(0,J.jsx)(`pre`,{className:E,children:k})}),r[23]=k,r[24]=E,r[25]=j):j=r[25];let M;return r[26]!==j||r[27]!==x||r[28]!==C||r[29]!==w?(M=(0,J.jsxs)(`div`,{className:x,children:[C,w,j]}),r[26]=j,r[27]=x,r[28]=C,r[29]=w,r[30]=M):M=r[30],M}function pl({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=W.useRef(e!==void 0),[a,o]=W.useState(t);return[i?e:a,W.useCallback(e=>{i||o(e)},[])]}var ml={};function hl(e,t){let n=W.useRef(ml);return n.current===ml&&(n.current=e(t)),n}var gl=W[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],_l=gl&&gl!==W.useLayoutEffect?gl:e=>e();function Y(e){let t=hl(vl).current;return t.next=e,_l(t.effect),t.trampoline}function vl(){let e={next:void 0,callback:yl,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function yl(){}var X=typeof document<`u`?W.useLayoutEffect:()=>{},bl=W.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function xl(){return W.useContext(bl)}function Sl(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Y(i),o=W.useRef(0),s=hl(wl).current,c=hl(Cl).current,[l,u]=W.useState(0),d=W.useRef(l),f=Y((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=Y(e=>{c.delete(e),d.current+=1,u(d.current)}),m=W.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(Tl).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);X(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),X(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),X(()=>()=>{n.current=[]},[n]),X(()=>()=>{r&&(r.current=[])},[r]);let h=Y(e=>(s.add(e),()=>{s.delete(e)}));X(()=>{s.forEach(e=>e(m))},[s,m]);let g=W.useMemo(()=>({register:f,unregister:p,subscribeMapChange:h,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,h,n,r,o]);return(0,J.jsx)(bl.Provider,{value:g,children:t})}function Cl(){return new Map}function wl(){return new Set}function Tl(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var El=W.createContext(void 0);function Dl(){return W.useContext(El)?.direction??`ltr`}function Ol(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var kl=Ol(`https://base-ui.com/production-error`,`Base UI`);function Al(e,t,n,r){let i=hl(Ml).current;return Nl(i,e,t,n,r)&&Fl(i,[e,t,n,r]),i.callback}function jl(e){let t=hl(Ml).current;return Pl(t,e)&&Fl(t,e),t.callback}function Ml(){return{callback:null,cleanup:null,refs:[]}}function Nl(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Pl(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Fl(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e{for(let e=0;e=e}function Rl(e){if(!W.isValidElement(e))return null;let t=e,n=t.props;return(Ll(19)?n?.ref:t.ref)??null}function zl(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Bl(){}var Vl=Object.freeze([]),Hl=Object.freeze({});function Ul(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Wl(e,t){return typeof e==`function`?e(t):e}function Gl(e,t){return typeof e==`function`?e(t):e}var Kl={};function ql(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Yl(t);let a=Yl(e);return t&&(a=Xl(a,t)),n&&(a=Xl(a,n)),r&&(a=Xl(a,r)),i&&(a=Xl(a,i)),a}function Jl(e){if(e.length===0)return Kl;if(e.length===1)return Yl(e[0]);let t=Yl(e[0]);for(let n=1;n=65&&i<=90&&(typeof t==`function`||t===void 0)}function eu(e){return typeof e==`function`}function tu(e,t){return eu(e)?e(t):e??Kl}function nu(e,t){return t?e?(...n)=>{let r=n[0];if(ou(r)){let i=r;iu(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:ru(t):e}function ru(e){return e&&((...t)=>{let n=t[0];return ou(n)&&iu(n),e(...t)})}function iu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function au(e,t){return t?e?t+` `+e:t:e}function ou(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function su(e,t,n={}){let r=t.render,i=cu(t,n);return n.enabled===!1?null:du(e,r,i,n.state??Hl)}function cu(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Hl,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Wl(n,a):void 0,d=l?Gl(r,a):void 0,f=l?Ul(a,c):Hl,p=l&&s?lu(s):void 0,m=l?zl(f,p)??{}:Hl;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=jl([m.ref,Rl(i),...o]):m.ref=Al(m.ref,Rl(i),o):Al(null,null)),l?(u!==void 0&&(m.className=au(m.className,u)),d!==void 0&&(m.style=zl(m.style,d)),m):Hl}function lu(e){return Array.isArray(e)?Jl(e):ql(void 0,e)}var uu=Symbol.for(`react.lazy`);function du(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=ql(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===uu&&(i=W.Children.toArray(t)[0]),W.cloneElement(i,e)}if(e&&typeof e==`string`)return fu(e,n);throw Error(kl(8))}function fu(e,t){return e===`button`?(0,W.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,W.createElement)(`img`,{alt:``,...t,key:t.key}):W.createElement(e,t)}var pu=`none`,mu=`trigger-press`,hu=`outside-press`,gu=`item-press`,_u=`close-press`,vu=`clear-press`,yu=`input-change`,bu=`input-clear`,xu=`input-press`,Su=`focus-out`,Cu=`escape-key`,wu=`list-navigation`;function Tu(e,t,n,r){let i=!1,a=!1,o=r??Hl;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Eu(e,t,n){let r=n??Hl;return{reason:e,event:t??new Event(`base-ui`),...r}}var Du={...W},Ou=0;function ku(e,t=`mui`){let[n,r]=W.useState(e),i=e||n;return W.useEffect(()=>{n??(Ou+=1,r(`${t}-${Ou}`))},[n,t]),i}var Au=Du.useId;function ju(e,t){if(Au!==void 0){let n=Au();return e??(t?`${t}-${n}`:n)}return ku(e,t)}function Mu(e){return ju(e,`base-ui`)}var Nu=[];function Pu(e){W.useEffect(e,Nu)}var Fu=null;globalThis.requestAnimationFrame;var Iu=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Lu=class e{static create(){return new e}static request(e){return Iu.request(e)}static cancel(e){return Iu.cancel(e)}currentId=Fu;request(e){this.cancel(),this.currentId=Iu.request(()=>{this.currentId=Fu,e()})}cancel=()=>{this.currentId!==Fu&&(Iu.cancel(this.currentId),this.currentId=Fu)};disposeEffect=()=>this.cancel};function Ru(){let e=hl(Lu.create).current;return Pu(e.disposeEffect),e}function zu(e){return e==null?e:`current`in e?e.current:e}var Bu=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Vu={[Bu.startingStyle]:``},Hu={[Bu.endingStyle]:``},Uu={transitionStatus(e){return e===`starting`?Vu:e===`ending`?Hu:null}},Wu=z(ie());function Gu(e,t=!1,n=!0){let r=Ru();return Y((i,a=null)=>{r.cancel();let o=zu(e);if(o==null)return;let s=o,c=()=>{Wu.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=Bu.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Ku(e,t=!1,n=!1){let[r,i]=W.useState(e&&t?`idle`:void 0),[a,o]=W.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),X(()=>{if(!e&&a&&r!==`ending`&&n){let e=Lu.request(()=>{i(`ending`)});return()=>{Lu.cancel(e)}}},[e,a,r,n]),X(()=>{if(!e||t)return;let n=Lu.request(()=>{i(void 0)});return()=>{Lu.cancel(n)}},[t,e]),X(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Lu.request(()=>{i(`idle`)});return()=>{Lu.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}var qu=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function Ju(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=xl(),f=W.useRef(-1),[p,m]=W.useState(a??(i===qu.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=W.useRef(null),g=W.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return X(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),X(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),W.useMemo(()=>({ref:g,index:p}),[p,g])}var Yu=W.createContext(void 0);function Xu(e=!1){let t=W.useContext(Yu);if(t===void 0&&!e)throw Error(kl(16));return t}function Zu(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:W.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Qu(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=W.useRef(null),s=Xu(!0),c=a??s!==void 0,{props:l}=Zu({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=W.useCallback(()=>{let e=o.current;$u(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return X(u,[u]),{getButtonProps:W.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return ql({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(iu(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=$u(a),l=!i&&ed(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(iu(e),a?.(e),e.target===e.currentTarget&&i&&c&&$u(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?void 0:{role:`button`},l,u)},[t,l,c,i]),buttonRef:Y(e=>{o.current=e,u()})}}function $u(e){return O(e)&&e.tagName===`BUTTON`}function ed(e){return!!(e?.tagName===`A`&&e?.href)}var td=typeof navigator<`u`,nd=dd(),rd=pd(),id=fd(),ad=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),od=nd.platform===`MacIntel`&&nd.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(nd.platform),sd=td&&/firefox/i.test(id),cd=td&&/apple/i.test(navigator.vendor);td&&/Edg/i.test(id);var ld=td&&/android/i.test(rd)||/android/i.test(id);td&&rd.toLowerCase().startsWith(`mac`)&&navigator.maxTouchPoints;var ud=id.includes(`jsdom/`);function dd(){if(!td)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function fd(){if(!td)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function pd(){if(!td)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var md=`data-base-ui-focusable`,hd=`ArrowLeft`,gd=`ArrowRight`,_d=`ArrowUp`,vd=`ArrowDown`;function yd(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function bd(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&g(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function xd(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Sd(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Cd(e){return e.matches(`html,body`)}function wd(e){return O(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Td(e){return e?e.getAttribute(`role`)===`combobox`&&wd(e):!1}function Ed(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Dd(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Dd(e,t.id,n)])}function Od(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function kd(e){e.preventDefault(),e.stopPropagation()}function Ad(e){return`nativeEvent`in e}function jd(e){return e.pointerType===``&&e.isTrusted?!0:ld&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Md(e){return ud?!1:!ld&&e.width===0&&e.height===0||ld&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Nd(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Pd(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function Fd(e,t,n){return Math.floor(e/t)!==n}function Id(e,t){return t<0||t>=e.length}function Ld(e,t){return zd(e.current,{disabledIndices:t})}function Rd(e,t){return zd(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function zd(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Wd(e,a,r));return a}function Bd(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:f=!1}){let p=u,m;if(t.key===`ArrowUp`?m=`up`:t.key===`ArrowDown`&&(m=`down`),m){let n=[],a=[],h=!1,g=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;g+=1;let o=e.closest(`[role="row"]`);o&&(h=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let _=!1,v=0;if(h)for(let e of n){let t=e.length;t>v&&(v=t),t!==o&&(_=!0)}let y=_&&g{if(!_||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f=n.length){if(!r||y)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Wd(e,n,s))return n}}},S=t=>{if(!y||u===-1)return;let n=u%b,i=t===`up`?-b:b,a=l-l%b,o=d(l/b)+1;for(let t=u-n+i,c=0;cl){if(!r)return;t=t<0?a:0}let i=Math.min(t+b-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Wd(e,r,s))return r}};f&&kd(t);let C=x(m)??S(m);if(C!==void 0)p=C;else if(u===-1)p=m===`up`?l:c;else if(p=zd(e,{startingIndex:u,amount:b,decrement:m===`up`,disabledIndices:s}),r){if(m===`up`&&(u-be?r:r-b,i&&(p=i(t,u,p))}m===`down`&&u+b>l&&(p=zd(e,{startingIndex:u%b-b,amount:b,disabledIndices:s}),i&&(p=i(t,u,p)))}Id(e,p)&&(p=u)}if(n===`both`){let n=d(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(f&&kd(t),u%o===o-1?r&&(p=zd(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(p=i(t,u,p))):(p=zd(e,{startingIndex:u,disabledIndices:s}),r&&Fd(p,o,n)&&(p=zd(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(p=i(t,u,p)))),Fd(p,o,n)&&(p=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(f&&kd(t),u%o===0?r&&(p=zd(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(p=i(t,u,p))):(p=zd(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Fd(p,o,n)&&(p=zd(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(p=i(t,u,p)))),Fd(p,o,n)&&(p=u));let c=d(l/o)===n;Id(e,p)&&(r&&c?(p=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:zd(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(p=i(t,u,p))):p=u)}return p}function Vd(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;rr[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Hd(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Ud(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Wd(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Kd(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Gd(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Kd(e,t=e?M(e):null){return!e||!e.isConnected||!t||Gd(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}function qd(e){return e?.ownerDocument||document}var Jd=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Yd(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return g(n)?n.host:null}function Xd(e){for(let t of Array.from(e.children))if(ce(t)===`summary`)return t;return null}function Zd(e,t){let n=Xd(t);return!!n&&(e===n||bd(n,e))}function Qd(e){let t=e?ce(e):``;return e!=null&&e.matches(Jd)&&(t!==`summary`||e.parentElement!=null&&ce(e.parentElement)===`details`&&Xd(e.parentElement)===e)&&(t!==`details`||Xd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function $d(e){if(!Qd(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Yd(t)){let n=t!==e,r=ce(t)===`slot`;if(t.hasAttribute(`inert`)||n&&ce(t)===`details`&&!t.open&&!Zd(e,t)||t.hasAttribute(`hidden`)||!r&&!ef(t,n))return!1}return!0}function ef(e,t){let n=M(e);return t?n.display!==`none`:Kd(e,n)}function tf(e){let t=e.tabIndex;if(t<0){let t=ce(e);if(t===`details`||t===`audio`||t===`video`||O(e)&&e.isContentEditable)return 0}return t}function nf(e){if(ce(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function rf(e,t){let n=nf(e);if(!n)return!0;let r=t.find(e=>{let t=nf(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=nf(e);return t?.name===n.name&&t.form===n.form})===n}function af(e){if(O(e)&&ce(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return O(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function of(e,t){af(e).forEach(e=>{Qd(e)&&t.push(e),of(e,t)})}function sf(e,t,n){af(e).forEach(e=>{O(e)&&e.matches(t)&&n.push(e),sf(e,t,n)})}function cf(e){return $d(e)&&tf(e)>=0}function lf(e){let t=[];return of(e,t),t.filter($d)}function uf(e){let t=lf(e);return t.filter(e=>tf(e)>=0&&rf(e,t))}function df(e,t){let n=uf(e),r=n.length;if(r===0)return;let i=yd(qd(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function ff(e){return df(qd(e).body,1)||e}function pf(e){return df(qd(e).body,-1)||e}function mf(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!bd(n,r)}function hf(e){uf(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function gf(e){let t=[];sf(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function _f(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function vf(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=Y(i),o=Gu(r,n,!1);W.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function yf(e){let t=W.useRef(!0);t.current&&(t.current=!1,e())}var bf=0,xf=class e{static create(){return new e}currentId=bf;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=bf,t()},e)}isStarted(){return this.currentId!==bf}clear=()=>{this.currentId!==bf&&(clearTimeout(this.currentId),this.currentId=bf)};disposeEffect=()=>this.clear};function Sf(){let e=hl(xf.create).current;return Pu(e.disposeEffect),e}var Cf={},wf={},Tf=``;function Ef(e){if(typeof document>`u`)return!1;let t=qd(e);return P(t).innerWidth-t.documentElement.clientWidth>0}function Df(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=qd(e),n=t.documentElement,r=t.body,i=k(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Of(e){let t=qd(e),n=t.documentElement,r=t.body,i=k(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function kf(e){let t=qd(e),n=t.documentElement,r=t.body,i=P(n),a=0,o=0,s=!1,c=Lu.create();if(ad&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Cf={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Tf=n.style.scrollBehavior,wf={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=k(n)?n:r;if(s=Df(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Cf),Object.assign(r.style,wf),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Tf)}function d(){u(),c.request(l)}l();let f=_f(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Af=new class{lockCount=0;restore=null;timeoutLock=xf.create();timeoutUnlock=xf.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=qd(e).documentElement,n=P(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=Bl;return}let r=od||!Ef(e);this.restore=r?Of(e):kf(e)}};function jf(e=!0,t=null){X(()=>{if(e)return Af.acquire(t)},[e,t])}function Mf(...e){return()=>{for(let t=0;t{t.current=t.next}};return t}var Ff={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},If={...Ff,position:`fixed`,top:0,left:0},Lf={...Ff,position:`absolute`},Rf=W.forwardRef(function(e,t){let[n,r]=W.useState();X(()=>{cd&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,J.jsx)(`span`,{...e,ref:t,style:If,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function zf(e){return`data-base-ui-${e}`}var Bf=0;function Vf(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Bf);let a=()=>e?.focus({preventScroll:n});if(i)return a(),Bl;let o=requestAnimationFrame(a);return Bf=o,()=>{Bf===o&&(cancelAnimationFrame(o),Bf=0)}}var Hf={inert:new WeakMap,"aria-hidden":new WeakMap},Uf=`data-base-ui-inert`,Wf={inert:new WeakSet,"aria-hidden":new WeakSet},Gf=new WeakMap,Kf=0;function qf(e){return Wf[e]}function Jf(e){return e?g(e)?e.host:Jf(e.parentNode):null}var Yf=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Jf(t);return e.contains(n)?n:null}).filter(e=>e!=null),Xf=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Zf=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{ce(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Qf(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=Yf(t,e),u=i?Yf(t,a):[],d=new Set(u),f=i?Zf(t,Xf(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Hf[o],n=qf(o);c=n,s=e;let r=Yf(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);Zf(t,Xf(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(Gf.get(e)||0)+1;Gf.set(e,t),m.push(e),t===1&&e.setAttribute(Uf,``)}),Kf+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(Gf.get(e)||0)-1;Gf.set(e,t),t||e.removeAttribute(Uf)}),--Kf,Kf||(Hf.inert=new WeakMap,Hf[`aria-hidden`]=new WeakMap,Wf.inert=new WeakSet,Wf[`aria-hidden`]=new WeakSet,Gf=new WeakMap)}}function $f(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=qd(e[0]).body;return Qf(e,o,n,r,{mark:i,markerIgnoreElements:a})}var ep={style:{transition:`none`}},tp={fallbackAxisSide:`none`},np={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},rp=W.createContext(null),ip=()=>W.useContext(rp),ap=zf(`portal`);function op(e={}){let{ref:t,container:n,componentProps:r=Hl,elementProps:i}=e,a=ju(),o=ip()?.portalNode,[s,c]=W.useState(null),[l,u]=W.useState(null),d=Y(e=>{e!==null&&u(e)}),f=W.useRef(null);X(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(le(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=su(`div`,r,{ref:[t,d],props:[{id:a,[ap]:``},i]});return{portalNode:l,portalSubtree:s&&p?Wu.createPortal(p,s):null}}var sp=W.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:o,style:s,...c}=e,{portalNode:l,portalSubtree:u}=op({container:r,ref:t,componentProps:e,elementProps:c}),d=W.useRef(null),f=W.useRef(null),p=W.useRef(null),m=W.useRef(null),[h,g]=W.useState(null),_=W.useRef(!1),v=h?.modal,y=h?.open,b=typeof o==`boolean`?o:!!h&&!h.modal&&h.open&&!!l;W.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&mf(e)&&(e.type===`focusin`?_.current&&=(gf(l),!1):(hf(l),_.current=!0))}return Mf(_f(l,`focusin`,e,!0),_f(l,`focusout`,e,!0))},[l,v]),W.useEffect(()=>{!l||y!==!1||(gf(l),_.current=!1)},[y,l]);let x=W.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,J.jsxs)(W.Fragment,{children:[u,(0,J.jsxs)(rp.Provider,{value:x,children:[b&&l&&(0,J.jsx)(Rf,{"data-type":`outside`,ref:d,onFocus:e=>{mf(e,l)?p.current?.focus():pf(h?h.domReference:null)?.focus()}}),b&&l&&(0,J.jsx)(`span`,{"aria-owns":l.id,style:np}),l&&Wu.createPortal(n,l),b&&l&&(0,J.jsx)(Rf,{"data-type":`outside`,ref:f,onFocus:e=>{mf(e,l)?m.current?.focus():(ff(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Tu(`focus-out`,e.nativeEvent)))}})]})]})});function cp(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var lp=W.createContext(null),up=W.createContext(null),dp=()=>W.useContext(lp)?.id||null,fp=e=>{let t=W.useContext(up);return e??t};function pp(e,t){let n=P(xd(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var mp=20,hp=[];function gp(){hp=hp.filter(e=>e.deref()?.isConnected)}function _p(e){gp(),e&&ce(e)!==`body`&&(hp.push(new WeakRef(e)),hp.length>mp&&(hp=hp.slice(-mp)))}function vp(){return gp(),hp[hp.length-1]?.deref()}function yp(e){return e?cf(e)?e:uf(e)[0]||e:null}function bp(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=lf(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return cf(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function xp(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=Y(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Td(_)&&S,w=W.useRef([`content`]),T=Nf(i),E=Nf(a),D=Nf(l),k=fp(p),A=ip(),j=W.useRef(!1),M=W.useRef(!1),N=W.useRef(!1),P=W.useRef(null),F=W.useRef(``),I=W.useRef(``),ee=W.useRef(null),L=W.useRef(null),te=Al(ee,f,A?.beforeInsideRef),R=Al(L,A?.afterInsideRef),z=Sf(),ne=Sf(),re=Ru(),ie=A!=null,B=Ed(v),ae=Y((e=B)=>e?uf(e):[]),V=Y(()=>m?.().filter(e=>e!=null)??[]);W.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&bd(B,yd(qd(B)))&&ae().length===0&&!C&&kd(e)}return _f(qd(B),`keydown`,e)},[r,_,B,s,w,C,ae]),W.useEffect(()=>{if(r||!g)return;let e=qd(B);function t(){N.current=!1}function n(e){let t=xd(e),n=V();N.current=!(bd(v,t)||bd(_,t)||bd(A?.portalNode,t)||n.some(e=>e===t||bd(e,t))),I.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(M.current=!0)}function i(){I.current=`keyboard`}return Mf(_f(e,`pointerdown`,n,!0),_f(e,`pointerup`,t,!0),_f(e,`pointercancel`,t,!0),_f(e,`keydown`,i,!0))},[r,v,_,B,g,A,V]),W.useEffect(()=>{if(r||!c)return;let e=qd(B);function t(){M.current=!0,ne.start(0,()=>{M.current=!1})}function n(e){let t=xd(e);cf(t)&&(P.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=xd(t);queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=V(),f=n?.hasAttribute(zf(`focus-guard`))&&[ee.current,L.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,zu(d),zu(u)].includes(n),p=!(bd(_,n)||bd(v,n)||bd(n,v)||bd(A?.portalNode,n)||l.some(e=>e===n||bd(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>bd(e,n))||f||k&&(Dd(k.nodesRef.current,a).find(e=>bd(e.context?.elements.floating,n)||bd(e.context?.elements.domReference,n))||Od(k.nodesRef.current,a).find(e=>[e.context?.elements.floating,Ed(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&B&&bp(B,w),o&&r!==_&&!Kd(i)&&yd(e)===e.body){if(O(B)&&(B.focus(),o===`popup`)){re.request(()=>{B.focus()});return}let e=ae(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||B;O(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!M.current&&(C||n!==vp())&&(j.current=!0,h.setOpen(!1,Tu(Su,t)))})}function a(){N.current||(b.current.insideReactTree=!0,z.start(0,()=>{b.current.insideReactTree=!1}))}let l=O(_)?_:null;if(!(!v&&!l))return Mf(l&&_f(l,`focusout`,i),l&&_f(l,`pointerdown`,t),v&&_f(v,`focusin`,n),v&&_f(v,`focusout`,i),v&&A&&_f(v,`focusout`,a,!0))},[r,_,v,B,s,k,A,h,c,o,ae,C,x,w,b,z,ne,re,u,d,V]),W.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${zf(`portal`)}]`)||[]),t=(k?Od(k.nodesRef.current,x()):[]).find(e=>Td(e.context?.elements.domReference||null))?.context?.elements.domReference,n=$f([v,...e,ee.current,L.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...V(),t,zu(d),zu(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=$f([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,w,A,C,k,x,u,d,V]),X(()=>{if(!g||r||!O(B))return;let e=yd(qd(B));queueMicrotask(()=>{let t=T.current,n=typeof t==`function`?t(D.current||``):t;if(n===void 0||n===!1||bd(B,e))return;let r=null,i=()=>(r??=ae(B),r[0]||B),a;a=n===!0||n===null?i():zu(n),a||=i(),Vf(a,{preventScroll:a===B})})},[r,g,B,S,ae,T,D]),X(()=>{if(r||!B)return;let e=qd(B);_p(yd(e));function t(e){if(e.open||(F.current=pp(e.nativeEvent,I.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(j.current=!0),e.reason===`outside-press`)if(e.nested)j.current=!1;else if(jd(e.nativeEvent)||Md(e.nativeEvent))j.current=!1;else{let e=!1;qd(B).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}y.on(`openchange`,t);function n(){let e=E.current,t=typeof e==`function`?e(F.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`){let e=_||vp();return e&&e.isConnected?e:null}let n=_||vp();return zu(t)||n||null}return()=>{y.off(`openchange`,t);let r=yd(e),i=V(),a=bd(v,r)||i.some(e=>e===r||bd(e,r))||k&&Dd(k.nodesRef.current,x(),!1).some(e=>bd(e.context?.elements.floating,r)),o=E.current,s=n();queueMicrotask(()=>{let t=yp(s),n=typeof o!=`boolean`;o&&!j.current&&O(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),j.current=!1})}},[r,v,B,E,b,y,k,_,x,V]),X(()=>{if(!ad||g||!v)return;let e=yd(qd(v));!O(e)||!wd(e)||bd(v,e)&&e.blur()},[g,v]),X(()=>{if(!(r||!A))return A.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,s,g,h,c,_]),X(()=>{if(!(r||!B))return bp(B,w),()=>{queueMicrotask(gp)}},[r,B,w]);let oe=!r&&(s?!C:!0)&&(ie||s);return(0,J.jsxs)(W.Fragment,{children:[oe&&(0,J.jsx)(Rf,{"data-type":`inside`,ref:te,onFocus:e=>{if(s){let e=ae();Vf(e[e.length-1])}else A?.portalNode&&(j.current=!1,mf(e,A.portalNode)?ff(_)?.focus():zu(d??A.beforeOutsideRef)?.focus())}}),n,oe&&(0,J.jsx)(Rf,{"data-type":`inside`,ref:R,onFocus:e=>{s?Vf(ae()[0]):A?.portalNode&&(c&&(j.current=!0),mf(e,A.portalNode)?pf(_)?.focus():zu(u??A.afterOutsideRef)?.focus())}})]})}function Sp(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:a=`click`,toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:c=!0,touchOpenDelay:l=0,reason:u=mu}=t,d=W.useRef(void 0),f=Ru(),p=Sf(),m=W.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current,i=e.nativeEvent,m=n.select(`open`);if(e.button!==0||a===`click`||Nd(t,!0)&&s)return;let h=r.current.openEvent,g=h?.type,_=n.select(`domReferenceElement`)!==e.currentTarget,v=m&&_||!(m&&o&&(!(h&&c)||g===`click`||g===`mousedown`)),y=xd(i);if(wd(y)){let e=Tu(u,i,y);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e);return}let b=e.currentTarget;f.request(()=>{let e=Tu(u,i,b);v&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,e)}):n.setOpen(v,e)})},onClick(e){if(a===`mousedown-only`)return;let t=d.current;if(a===`mousedown`&&t){d.current=void 0;return}if(Nd(t,!0)&&s)return;let i=n.select(`open`),f=r.current.openEvent,m=n.select(`domReferenceElement`)!==e.currentTarget,h=i&&m||!(i&&o&&(!(f&&c)||Pd(f))),g=Tu(u,e.nativeEvent,e.currentTarget);h&&t===`touch`&&l>0?p.start(l,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){d.current=void 0}}),[r,a,s,n,c,o,f,p,l,u]);return W.useMemo(()=>i?{reference:m}:Hl,[i,m])}var Cp={intentional:`onClick`,sloppy:`onPointerDown`};function wp(){return!1}function Tp(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Ep(e,t={}){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),{dataRef:a}=n.context,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`sloppy`,referencePress:u=wp,referencePressEvent:d=`sloppy`,bubbles:f,externalTree:p}=t,_=fp(p),v=Y(typeof c==`function`?c:()=>!1),y=typeof c==`function`?v:c,b=y!==!1,x=Y(()=>l),S=W.useRef(!1),C=W.useRef(!1),w=W.useRef(!1),{escapeKey:T,outsidePress:E}=Tp(f),D=W.useRef(null),k=Sf(),A=Sf(),j=Y(()=>{A.clear(),a.current.insideReactTree=!1}),N=W.useRef(!1),P=W.useRef(``),F=Y(u),I=Y(e=>{if(!r||!o||!s||e.key!==`Escape`||N.current)return;let t=a.current.floatingContext?.nodeId,i=_?Dd(_.nodesRef.current,t):[];if(!T&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let c=Tu(Cu,Ad(e)?e.nativeEvent:e);n.setOpen(!1,c),!T&&!c.isPropagationAllowed&&e.stopPropagation()}),ee=Y(()=>{a.current.insideReactTree=!0,A.start(0,j)});W.useEffect(()=>{if(!r||!o)return;a.current.__escapeKeyBubbles=T,a.current.__outsidePressBubbles=E;let e=new xf,t=new xf;function c(){e.clear(),N.current=!0}function l(){e.start(h()?5:0,()=>{N.current=!1})}function u(){w.current=!0,t.start(0,()=>{w.current=!1})}function d(){S.current=!1,C.current=!1}function f(){let e=P.current,t=e===`pen`||!e?`mouse`:e,n=x(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function p(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function v(e){let t=a.current.floatingContext?.nodeId,r=_&&Dd(_.nodesRef.current,t).some(t=>Sd(e,t.context?.elements.floating));return Sd(e,n.select(`floatingElement`))||Sd(e,n.select(`domReferenceElement`))||r}function A(e){if(p(e)){j();return}if(a.current.insideReactTree){j();return}let r=xd(e),i=`[${zf(`inert`)}]`,o=ue(r)?r.getRootNode():null,s=Array.from((g(o)?o:qd(n.select(`floatingElement`))).querySelectorAll(i)),c=n.context.triggerElements;if(r&&(c.hasElement(r)||c.hasMatchingElement(e=>bd(e,r))))return;let l=ue(r)?r:null;for(;l&&!m(l);){let e=de(l);if(m(e)||!ue(e))break;l=e}if(s.length&&ue(r)&&!Cd(r)&&!bd(r,n.select(`floatingElement`))&&s.every(e=>!bd(l,e)))return;if(O(r)&&!(`touches`in e)){let t=m(r),n=M(r),i=/auto|scroll/,a=t||i.test(n.overflowX),o=t||i.test(n.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(u||d)return}if(v(e))return;if(f()===`intentional`&&w.current){t.clear(),w.current=!1;return}if(typeof y==`function`&&!y(e))return;let u=a.current.floatingContext?.nodeId,d=_?Dd(_.nodesRef.current,u):[];if(d.length>0){let e=!0;if(d.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,Tu(hu,e)),j()}function F(e){f()!==`sloppy`||e.pointerType===`touch`||!n.select(`open`)||!o||Sd(e,n.select(`floatingElement`))||Sd(e,n.select(`domReferenceElement`))||A(e)}function ee(e){if(f()!==`sloppy`||!n.select(`open`)||!o||Sd(e,n.select(`floatingElement`))||Sd(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];t&&(D.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},k.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}function L(e,t){let n=xd(e);if(!n)return;let r=_f(n,e.type,()=>{t(e),r()})}function te(e){P.current=`touch`,L(e,ee)}function R(e){k.clear(),e.type===`pointerdown`&&(P.current=e.pointerType),!(e.type===`mousedown`&&D.current&&!D.current.dismissOnMouseDown)&&L(e,e=>{e.type===`pointerdown`?F(e):A(e)})}function z(e){if(!S.current)return;let n=C.current;if(d(),f()===`intentional`){if(e.type===`pointercancel`){n&&u();return}if(!v(e)){if(n){u();return}typeof y==`function`&&!y(e)||(t.clear(),w.current=!0,j())}}}function ne(e){if(f()!==`sloppy`||!D.current||Sd(e,n.select(`floatingElement`))||Sd(e,n.select(`domReferenceElement`)))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-D.current.startX),i=Math.abs(t.clientY-D.current.startY),a=Math.sqrt(r*r+i*i);a>5&&(D.current.dismissOnTouchEnd=!0),a>10&&(A(e),k.clear(),D.current=null)}function re(e){L(e,ne)}function ie(e){f()!==`sloppy`||!D.current||Sd(e,n.select(`floatingElement`))||Sd(e,n.select(`domReferenceElement`))||(D.current.dismissOnTouchEnd&&A(e),k.clear(),D.current=null)}function B(e){L(e,ie)}let ae=qd(i),V=Mf(s&&Mf(_f(ae,`keydown`,I),_f(ae,`compositionstart`,c),_f(ae,`compositionend`,l)),b&&Mf(_f(ae,`click`,R,!0),_f(ae,`pointerdown`,R,!0),_f(ae,`pointerup`,z,!0),_f(ae,`pointercancel`,z,!0),_f(ae,`mousedown`,R,!0),_f(ae,`mouseup`,z,!0),_f(ae,`touchstart`,te,!0),_f(ae,`touchmove`,re,!0),_f(ae,`touchend`,B,!0)));return()=>{V(),e.clear(),t.clear(),d(),w.current=!1}},[a,i,s,b,y,r,o,T,E,I,j,x,_,n,k]),W.useEffect(j,[y,j]);let L=W.useMemo(()=>({onKeyDown:I,[Cp[d]]:e=>{F()&&n.setOpen(!1,Tu(mu,e.nativeEvent))},...d!==`intentional`&&{onClick(e){F()&&n.setOpen(!1,Tu(`trigger-press`,e.nativeEvent))}}}),[I,n,d,F]),te=Y(e=>{if(!r||!o||e.button!==0)return;let t=xd(e.nativeEvent);bd(n.select(`floatingElement`),t)&&(S.current||(S.current=!0,C.current=!1))}),R=Y(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&S.current&&(C.current=!0)}),z=W.useMemo(()=>({onKeyDown:I,onPointerDown:R,onMouseDown:R,onClickCapture:ee,onMouseDownCapture(e){ee(),te(e)},onPointerDownCapture(e){ee(),te(e)},onMouseUpCapture:ee,onTouchEndCapture:ee,onTouchMoveCapture:ee}),[I,ee,te,R]);return W.useMemo(()=>o?{reference:L,floating:z,trigger:L}:{},[o,L,z])}var Z=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(kl(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Dp=N((e=>{var t=oe(),n=p();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Op=N(((e,t)=>{t.exports=Dp()})),kp=[],Ap=void 0;function jp(){return Ap}function Mp(e){kp.push(e)}var Np=p(),Pp=Op(),Fp=Ll(19)?Lp:Rp;function Q(e,t,n,r,i){return Fp(e,t,n,r,i)}function Ip(e,t,n,r,i){let a=W.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Np.useSyncExternalStore)(e.subscribe,a,a)}Mp({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Np.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Lp(e,t,n,r,i){let a=jp();if(!a)return Ip(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Rp(e,t,n,r,i){return(0,Pp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var zp=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Q(this,e,t,n,r)}},Bp=class extends zp{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){W.useDebugValue(e),X(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;X(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;X(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){W.useDebugValue(e);let n=t!==void 0;X(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return W.useDebugValue(e),Q(this,this.selectors[e],t,n,r)}useContextCallback(e,t){W.useDebugValue(e);let n=Y(t??Bl);this.context[e]=n}useStateSetter(e){let t=W.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Vp={open:Z(e=>e.open),transitionStatus:Z(e=>e.transitionStatus),domReferenceElement:Z(e=>e.domReferenceElement),referenceElement:Z(e=>e.positionReference??e.referenceElement),floatingElement:Z(e=>e.floatingElement),floatingId:Z(e=>e.floatingId)},Hp=class extends Bp{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:cp(),nested:n,triggerElements:i},Vp),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Pd(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}},Up=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Wp(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=ju(),a=dp()!=null,o=hl(()=>new Hp({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Up,floatingId:i,syncOnly:!1,nested:a})).current;return X(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=ue(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Gp(e={}){let{nodeId:t,externalTree:n}=e,r=Wp(e),i=e.rootContext||r,a={reference:i.useState(`referenceElement`),floating:i.useState(`floatingElement`),domReference:i.useState(`domReferenceElement`)},[o,s]=W.useState(null),c=W.useRef(null),l=fp(n);X(()=>{a.domReference&&(c.current=a.domReference)},[a.domReference]);let u=L({...e,elements:{...a,...o&&{reference:o}}}),d=W.useCallback(e=>{let t=ue(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),u.refs.setReference(t)},[u.refs]),[f,p]=W.useState(void 0),[m,h]=W.useState(null);i.useSyncedValue(`referenceElement`,f??null);let g=ue(f)?f:null;i.useSyncedValue(`domReferenceElement`,f===void 0?a.domReference:g),i.useSyncedValue(`floatingElement`,m);let _=W.useCallback(e=>{(ue(e)||e===null)&&(c.current=e,p(e)),(ue(u.refs.reference.current)||u.refs.reference.current===null||e!==null&&!ue(e))&&u.refs.setReference(e)},[u.refs,p]),v=W.useCallback(e=>{h(e),u.refs.setFloating(e)},[u.refs]),y=W.useMemo(()=>({...u.refs,setReference:_,setFloating:v,setPositionReference:d,domReference:c}),[u.refs,_,v,d]),b=W.useMemo(()=>({...u.elements,domReference:a.domReference}),[u.elements,a.domReference]),x=i.useState(`open`),S=i.useState(`floatingId`),C=W.useMemo(()=>({...u,dataRef:i.context.dataRef,open:x,onOpenChange:i.setOpen,events:i.context.events,floatingId:S,refs:y,elements:b,nodeId:t,rootStore:i}),[u,y,b,t,i,x,S]);return X(()=>{i.context.dataRef.current.floatingContext=C;let e=l?.nodesRef.current.find(e=>e.id===t);e&&(e.context=C)}),W.useMemo(()=>({...u,context:C,refs:y,elements:b,rootStore:i}),[u,y,b,C,i])}function Kp(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),a=W.useCallback(t=>qp(t,e,`reference`),t),o=W.useCallback(t=>qp(t,e,`floating`),n),s=W.useCallback(t=>qp(t,e,`item`),r),c=W.useCallback(t=>qp(t,e,`trigger`),i);return W.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:s,getTriggerProps:c}),[a,o,s,c])}function qp(e,t,n){let r=new Map,i=n===`item`,a={};n===`floating`&&(a.tabIndex=-1,a[md]=``);for(let t in e)i&&e&&(t===`active`||t===`selected`)||(a[t]=e[t]);for(let o=0;or.get(i)?.map(t=>t(...e)).find(e=>e!==void 0))):e[i]=a)}}var Yp=`Escape`;function Xp(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Zp(e,t){return Xp(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Qp(e,t,n){return Xp(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function $p(e,t,n){return Xp(t,n?e===hd:e===gd,e===vd)}function em(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Yp:Xp(t,n?e===gd:e===hd,e===_d)}function tm(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.useState(`open`),i=n.useState(`floatingElement`),a=n.useState(`domReferenceElement`),o=n.context.dataRef,{listRef:s,activeIndex:c,onNavigate:l=()=>{},enabled:u=!0,selectedIndex:d=null,allowEscape:f=!1,loopFocus:p=!1,nested:m=!1,rtl:h=!1,virtual:g=!1,focusItemOnOpen:_=`auto`,focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b=void 0,orientation:x=`vertical`,parentOrientation:S,cols:C=1,id:w,resetOnPointerLeave:T=!0,externalTree:E}=t,D=Nf(Ed(i)),k=dp(),A=fp(E);X(()=>{o.current.orientation=x},[o,x]);let j=Td(a),M=W.useRef(_),N=W.useRef(d??-1),P=W.useRef(null),F=W.useRef(!0),I=Y(e=>{l(N.current===-1?null:N.current,e)}),ee=W.useRef(I),L=W.useRef(!!i),te=W.useRef(r),R=W.useRef(!1),z=W.useRef(!1),ne=W.useRef(null),re=Nf(b),ie=Nf(r),B=Nf(d),ae=Nf(T),V=Y(()=>{function e(e){g?A?.events.emit(`virtualfocus`,e):ne.current=Vf(e,{sync:R.current,preventScroll:!0})}let t=s.current[N.current],n=z.current;t&&e(t),(R.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[N.current]||t;r&&(t||e(r),H&&(n||!F.current)&&r.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});X(()=>{u&&(r&&i?(N.current=d??-1,M.current&&d!=null&&(z.current=!0,I())):L.current&&(N.current=-1,ee.current()))},[u,r,i,d,I]),X(()=>{if(u){if(!r){R.current=!1;return}if(i)if(c==null){if(R.current=!1,B.current!=null)return;if(L.current&&(N.current=-1,V()),(!te.current||!L.current)&&M.current&&(P.current!=null||M.current===!0&&P.current==null)){let e=0,t=()=>{s.current[0]==null?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(N.current=P.current==null||Qp(P.current,x,h)||m?Ld(s):Rd(s),P.current=null,I())};t()}}else Id(s.current,c)||(N.current=c,V(),z.current=!1)}},[u,r,i,c,B,m,s,x,h,I,V,re]),X(()=>{if(!u||i||!A||g||!L.current)return;let e=A.nodesRef.current,t=e.find(e=>e.id===k)?.context?.elements.floating,n=yd(qd(i)),r=e.some(e=>e.context&&bd(e.context.elements.floating,n));t&&!r&&F.current&&t.focus({preventScroll:!0})},[u,i,A,k,g]),X(()=>{ee.current=I,te.current=r,L.current=!!i}),X(()=>{r||(P.current=null,M.current=_)},[r,_]);let oe=c!=null,se=Y(e=>{if(!ie.current)return;let t=s.current.indexOf(e.currentTarget);t!==-1&&(N.current!==t||c!==t)&&(N.current=t,I(e))}),H=W.useMemo(()=>({onFocus(e){R.current=!0,se(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){R.current=!0,z.current=!1,v&&se(e)},onPointerLeave(e){if(!ie.current||!F.current||e.pointerType===`touch`)return;R.current=!0;let t=e.relatedTarget;if(!(!v||s.current.includes(t))&&ae.current&&(ne.current?.(),ne.current=null,N.current=-1,I(e),!g)){let e=D.current,t=yd(qd(e));e&&bd(e,t)&&e.focus({preventScroll:!0})}}}),[se,ie,D,v,s,I,ae,g]),ce=W.useCallback(()=>S??A?.nodesRef.current.find(e=>e.id===k)?.context?.dataRef?.current.orientation,[k,A,S]),le=Y(e=>{if(F.current=!1,R.current=!0,e.which===229||!ie.current&&e.currentTarget===D.current)return;if(m&&em(e.key,x,h,C)){Zp(e.key,ce())||kd(e),n.setOpen(!1,Tu(wu,e.nativeEvent)),O(a)&&(g?A?.events.emit(`virtualfocus`,a):a.focus());return}let t=N.current,i=Ld(s,b),o=Rd(s,b);if(j||(e.key===`Home`&&(kd(e),N.current=i,I(e)),e.key===`End`&&(kd(e),N.current=o,I(e))),C>1){let t=Array.from({length:s.current.length},()=>({width:1,height:1})),n=Vd(t,C,!1),r=n.findIndex(e=>e!=null&&!Wd(s.current,e,b)),a=n.reduce((e,t,n)=>t!=null&&!Wd(s.current,t,b)?n:e,-1),c=n[Bd(n.map(e=>e==null?null:s.current[e]),{event:e,orientation:x,loopFocus:p,rtl:h,cols:C,disabledIndices:Ud([...(typeof b==`function`?null:b)||s.current.map((e,t)=>Wd(s.current,t,b)?t:void 0),void 0],n),minIndex:r,maxIndex:a,prevIndex:Hd(N.current>o?i:N.current,t,n,C,e.key===`ArrowDown`?`bl`:e.key===(h?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(N.current=c,I(e)),x===`both`)return}if(Zp(e.key,x)){if(kd(e),r&&!g&&yd(e.currentTarget.ownerDocument)===e.currentTarget){N.current=Qp(e.key,x,h)?i:o,I(e);return}Qp(e.key,x,h)?p?t>=o?f&&t!==s.current.length?N.current=-1:(R.current=!1,N.current=i):N.current=zd(s.current,{startingIndex:t,disabledIndices:b}):N.current=Math.min(o,zd(s.current,{startingIndex:t,disabledIndices:b})):p?t<=i?f&&t!==-1?N.current=s.current.length:(R.current=!1,N.current=o):N.current=zd(s.current,{startingIndex:t,decrement:!0,disabledIndices:b}):N.current=Math.max(i,zd(s.current,{startingIndex:t,decrement:!0,disabledIndices:b})),Id(s.current,N.current)&&(N.current=-1),I(e)}}),ue=W.useMemo(()=>g&&r&&oe&&{"aria-activedescendant":`${w}-${c}`},[g,r,oe,w,c]),de=W.useMemo(()=>({"aria-orientation":x===`both`?void 0:x,...j?{}:ue,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&r&&!g){let t=xd(e.nativeEvent);if(t&&!bd(D.current,t))return;kd(e),n.setOpen(!1,Tu(Su,e.nativeEvent)),O(a)&&a.focus();return}le(e)},onPointerMove(){F.current=!0}}),[ue,le,D,x,j,n,r,g,a]),fe=W.useMemo(()=>{function e(e){_===`auto`&&jd(e.nativeEvent)&&(M.current=!g)}function t(e){M.current=_,_===`auto`&&Md(e.nativeEvent)&&(M.current=!0)}return{onKeyDown(e){let t=n.select(`open`);F.current=!1;let r=e.key.startsWith(`Arrow`),i=$p(e.key,ce(),h),a=Zp(e.key,x),o=(m?i:a)||e.key===`Enter`||e.key.trim()===``;if(g&&t)return le(e);if(!(!t&&!y&&r)){if(o){let t=Zp(e.key,ce());P.current=m&&t?null:e.key}if(m){i&&(kd(e),t?(N.current=Ld(s,re.current),I(e)):n.setOpen(!0,Tu(wu,e.nativeEvent,e.currentTarget)));return}a&&(B.current!=null&&(N.current=B.current),kd(e),!t&&y?n.setOpen(!0,Tu(wu,e.nativeEvent,e.currentTarget)):le(e),t&&I(e))}},onFocus(e){n.select(`open`)&&!g&&(N.current=-1,I(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[le,re,_,s,m,I,n,y,x,ce,h,B,g]),pe=W.useMemo(()=>({...ue,...fe}),[ue,fe]);return W.useMemo(()=>u?{reference:pe,floating:de,item:H,trigger:fe}:{},[u,pe,de,fe,H])}function nm(e,t){let n=`rootStore`in e?e.rootStore:e,r=n.context.dataRef,i=n.useState(`open`),{listRef:a,elementsRef:o,activeIndex:s,onMatch:c,onTypingChange:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,p=Sf(),m=W.useRef(``),h=W.useRef(f??s??-1),g=W.useRef(null);X(()=>{!i&&f!==null||(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[i,f,p]),X(()=>{i&&m.current===``&&(h.current=f??s??-1)},[i,f,s]);let _=Y(e=>{e?r.current.typing||(r.current.typing=e,l?.(e)):r.current.typing&&(r.current.typing=e,l?.(e))}),v=Y(e=>{function t(e){let t=o?.current[e];return!t||Kd(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n0&&e.key===` `&&(kd(e),_(!0)),m.current.length>0&&m.current[0]!==` `&&n(r,m.current)===-1&&e.key!==` `&&_(!1),r==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;i&&e.key!==` `&&(kd(e),_(!0));let l=m.current===``;l&&(h.current=f??s??-1),r.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(d,()=>{m.current=``,h.current=g.current,_(!1)});let u=((l?f??s??-1:h.current)??0)+1,v=n(r,m.current,u);v===-1?e.key!==` `&&(m.current=``,_(!1)):(c?.(v),g.current=v)}),y=Y(e=>{let t=e.relatedTarget,r=n.select(`domReferenceElement`),i=n.select(`floatingElement`),a=bd(r,t),o=bd(i,t);a||o||(p.clear(),m.current=``,h.current=g.current,_(!1))}),b=W.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]),x=W.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return W.useMemo(()=>u?{reference:b,floating:x}:{},[u,b,x])}function rm(e){let t=W.useRef(``),n=W.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:W.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function im(e,t){let n=W.useRef(e),r=Y(t);X(()=>{n.current!==e&&r(n.current)},[e,r]),X(()=>{n.current=e},[e])}function am(e){let[t,n]=W.useState(null),r=Y((t,r)=>{e||n(r||(od?`touch`:``))});im(e,t=>{t&&!e&&n(null)});let{onClick:i,onPointerDown:a}=rm(r);return W.useMemo(()=>({openMethod:t,triggerProps:{onClick:i,onPointerDown:a}}),[t,i,a])}var om=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Bu.startingStyle]=`startingStyle`,e[e.endingStyle=Bu.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),sm=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),cm={[sm.popupOpen]:``},lm={[sm.popupOpen]:``,[sm.pressed]:``},um={[om.open]:``},dm={[om.closed]:``},fm={[om.anchorHidden]:``},pm={open(e){return e?cm:null}},mm={open(e){return e?lm:null}},hm={open(e){return e?um:dm},anchorHidden(e){return e?fm:null}};function gm(e){return Ll(19)?e:e?`true`:void 0}var _m=W.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,J.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),vm=W.createContext(void 0),ym=W.createContext(void 0),bm=W.createContext(void 0),xm=W.createContext(``);function Sm(){let e=W.useContext(vm);if(!e)throw Error(kl(22));return e}function Cm(){let e=W.useContext(ym);if(!e)throw Error(kl(23));return e}function wm(){let e=W.useContext(bm);if(!e)throw Error(kl(24));return e}function Tm(){return W.useContext(xm)}var Em=(e,t)=>Object.is(e,t);function Dm(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Om(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:Dm(t,e,n))}function km(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:Dm(e,t,n))}function Am(e,t,n){return e.filter(e=>!Dm(t,e,n))}function jm(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Mm(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function Nm(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(Mm(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Pm(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return jm(e)}function Fm(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?jm(e.value):jm(e)}var $={id:Z(e=>e.id),labelId:Z(e=>e.labelId),items:Z(e=>e.items),selectedValue:Z(e=>e.selectedValue),hasSelectionChips:Z(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:Z(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),hasNullItemLabel:Z((e,t)=>t?Nm(e.items):!1),open:Z(e=>e.open),mounted:Z(e=>e.mounted),forceMounted:Z(e=>e.forceMounted),inline:Z(e=>e.inline),activeIndex:Z(e=>e.activeIndex),selectedIndex:Z(e=>e.selectedIndex),isActive:Z((e,t)=>e.activeIndex===t),isSelected:Z((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Dm(t,e,n)):Dm(t,r,n)}),transitionStatus:Z(e=>e.transitionStatus),popupProps:Z(e=>e.popupProps),inputProps:Z(e=>e.inputProps),triggerProps:Z(e=>e.triggerProps),getItemProps:Z(e=>e.getItemProps),positionerElement:Z(e=>e.positionerElement),listElement:Z(e=>e.listElement),triggerElement:Z(e=>e.triggerElement),inputElement:Z(e=>e.inputElement),inputGroupElement:Z(e=>e.inputGroupElement),popupSide:Z(e=>e.popupSide),openMethod:Z(e=>e.openMethod),inputInsidePopup:Z(e=>e.inputInsidePopup),selectionMode:Z(e=>e.selectionMode),name:Z(e=>e.name),form:Z(e=>e.form),disabled:Z(e=>e.disabled),readOnly:Z(e=>e.readOnly),required:Z(e=>e.required),grid:Z(e=>e.grid),virtualized:Z(e=>e.virtualized),itemToStringLabel:Z(e=>e.itemToStringLabel),isItemEqualToValue:Z(e=>e.isItemEqualToValue),modal:Z(e=>e.modal),autoHighlight:Z(e=>e.autoHighlight),submitOnItemClick:Z(e=>e.submitOnItemClick)},Im=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Lm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Rm={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},zm={disabled:!1,...Rm},Bm={valid(e){return e===null?null:e?{[Im.valid]:``}:{[Im.invalid]:``}}},Vm=W.createContext({invalid:void 0,name:void 0,validityData:{state:Lm,errors:[],error:``,value:``,initialValue:null},setValidityData:Bl,disabled:void 0,touched:Rm.touched,setTouched:Bl,dirty:Rm.dirty,setDirty:Bl,filled:Rm.filled,setFilled:Bl,focused:Rm.focused,setFocused:Bl,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:zm,markedDirtyRef:{current:!1},registerFieldControl:Bl,validation:{getValidationProps:(e=Hl)=>e,getInputValidationProps:(e=Hl)=>e,inputRef:{current:null},commit:async()=>{}}});function Hm(e=!0){let t=W.useContext(Vm);if(t.setValidityData===Bl&&!e)throw Error(kl(28));return t}function Um(e,t){let{enabled:n=!0,getValue:r,id:i,value:a}=t,{registerFieldControl:o}=Hm(),s=W.useRef(null);s.current||=Symbol(),X(()=>{let t=s.current;if(!(!t||!n))return o(t,{controlRef:e,getValue:r,id:i,value:a}),()=>{o(t,void 0)}},[e,n,r,i,o,a])}var Wm=W.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Bl,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Gm(){return W.useContext(Wm)}var Km=W.createContext({controlId:void 0,registerControlId:Bl,labelId:void 0,setLabelId:Bl,messageIds:[],setMessageIds:Bl,getDescriptionProps:e=>e});function qm(){return W.useContext(Km)}function Jm(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=qm(),o=Mu(t),s=n?i:void 0,c=hl(()=>Symbol(`labelable-control`)),l=W.useRef(!1),u=W.useRef(t!=null),d=Y(()=>{!l.current||a===Bl||(l.current=!1,a(c.current,void 0))});return X(()=>{if(a===Bl)return;let e;if(n){let n=r?.current;e=ue(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),W.useEffect(()=>d,[d]),i??o}function Ym(e,t){return(n,r)=>{if(n==null)return!1;let i=Pm(n,t);return e.contains(i,r)}}function Xm(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=Pm(r,t),o=n==null?``:Pm(n,t);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(a,i)}}var Zm=new Map;function Qm(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${$m(e.locale)}|${JSON.stringify(t)}`,r=Zm.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=Pm(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=Pm(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=Pm(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return Zm.set(n,a),a}function $m(e){return Array.isArray(e)?e.map(e=>$m(e)).join(`,`):e==null?``:String(e)}var eh=Qm,th=Symbol(`none`),nh={value:th,index:-1};function rh(e){let{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:o,inputValue:s,open:c,defaultOpen:l=!1,selectionMode:u=`none`,onItemHighlighted:d,name:f,form:p,disabled:m=!1,readOnly:h=!1,required:g=!1,inputRef:_,grid:v=!1,items:y,filteredItems:b,filter:x,openOnInputClick:S=!0,autoHighlight:C=!1,keepHighlight:w=!1,highlightItemOnHover:T=!0,loopFocus:E=!0,itemToStringLabel:D,itemToStringValue:O,isItemEqualToValue:k=Em,virtualized:A=!1,inline:j=!1,fillInputOnItemPress:M=!0,modal:N=!1,limit:P=-1,autoComplete:F=`list`,formAutoComplete:I,locale:ee,submitOnItemClick:L=!1}=e,{clearErrors:te}=Gm(),{setDirty:R,validityData:z,shouldValidateOnChange:ne,setFilled:re,name:ie,disabled:B,setTouched:ae,setFocused:V,validationMode:oe,validation:se}=Hm(),H=Jm({id:t}),ce=eh({locale:ee}),[le,ue]=W.useState(!1),[de,fe]=W.useState(null),pe=W.useRef([]),me=W.useRef([]),he=W.useRef(null),ge=W.useRef(null),U=W.useRef(null),_e=W.useRef(null),ve=W.useRef(null),ye=W.useRef(!0),be=W.useRef(!1),xe=W.useRef(null),Se=W.useRef(null),Ce=W.useRef(null),we=W.useRef(nh),Te=W.useRef(null),Ee=W.useRef([]),De=W.useRef([]),G=B||m,Oe=ie??f,ke=u===`multiple`,K=u===`single`,Ae=s!==void 0||o!==void 0,je=y!==void 0,Me=b!==void 0,Ne;Ne=C===`always`?`always`:C?`input-change`:!1;let[Pe,Fe]=pl({controlled:i,default:ke?r??Vl:r,name:`Combobox`,state:`selectedValue`}),Ie=W.useMemo(()=>x===null?()=>!0:x===void 0?K&&!le?Xm(ce,D,Pe):Ym(ce,D):x,[x,K,Pe,le,ce,D]),Le=hl(()=>Ae?o??``:K?Pm(Pe,D):``).current,[Re,ze]=pl({controlled:s,default:Le,name:`Combobox`,state:`inputValue`}),[Be,Ve]=pl({controlled:c,default:l,name:`Combobox`,state:`open`}),He=Mm(y),Ue=de??(Re===``?``:String(Re).trim()),We=K?Pm(Pe,D):``,Ge=K&&!le&&Ue!==``&&We!==``&&We.length===Ue.length&&ce.contains(We,Ue),Ke=Ge?``:Ue,qe=je&&Me&&Ge,Je=W.useMemo(()=>y?He?y.flatMap(e=>e.items):y:Vl,[y,He]),Ye=W.useMemo(()=>{if(b&&!qe)return b;if(!y)return Vl;if(He){let e=y,t=[],n=0;for(let r of e){if(P>-1&&n>=P)break;let e=Ke===``?r.items:r.items.filter(e=>Ie(e,Ke,D));if(e.length===0)continue;let i=P>-1?P-n:1/0,a=e.slice(0,i);if(a.length>0){let e={...r,items:a};t.push(e),n+=a.length}}return t}if(Ke===``)return P>-1?Je.slice(0,P):Je;let e=[];for(let t of Je){if(P>-1&&e.length>=P)break;Ie(t,Ke,D)&&e.push(t)}return e},[b,qe,y,He,Ke,P,Ie,D,Je]),Xe=W.useMemo(()=>He?Ye.flatMap(e=>e.items):Ye,[Ye,He]),Ze=hl(()=>new zp({id:H,labelId:void 0,selectedValue:Pe,open:Be,filter:Ie,query:Ue,items:y,selectionMode:u,listRef:pe,labelsRef:me,popupRef:he,emptyRef:ve,inputRef:ge,startDismissRef:U,endDismissRef:_e,keyboardActiveRef:ye,chipsContainerRef:xe,clearRef:Se,valuesRef:Ee,allValuesRef:De,selectionEventRef:Ce,name:Oe,form:p,disabled:G,readOnly:h,required:g,grid:v,isGrouped:He,virtualized:A,openOnInputClick:S,itemToStringLabel:D,isItemEqualToValue:k,modal:N,autoHighlight:Ne,submitOnItemClick:L,hasInputValue:Ae,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:j,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,onOpenChangeComplete:n||Bl,setOpen:Bl,setInputValue:Bl,setSelectedValue:Bl,setIndices:Bl,onItemHighlighted:Bl,handleSelection:Bl,getItemProps:()=>Hl,forceMount:Bl,requestSubmit:Bl})).current,Qe=u===`none`?Re:Pe,$e=W.useMemo(()=>u===`none`?Qe:Array.isArray(Pe)?Pe.map(e=>Fm(e,O)):Fm(Pe,O),[Qe,O,u,Pe]),et=Y(d),tt=Y(n),nt=Q(Ze,$.activeIndex),rt=Q(Ze,$.selectedIndex),it=Q(Ze,$.positionerElement),at=Q(Ze,$.listElement),ot=Q(Ze,$.triggerElement),st=Q(Ze,$.inputElement),ct=Q(Ze,$.inputGroupElement),lt=Q(Ze,$.inline),ut=Q(Ze,$.inputInsidePopup),dt=Nf(ot),{mounted:ft,setMounted:pt,transitionStatus:mt}=Ku(Be),{openMethod:ht,triggerProps:gt}=am(Be),_t=Y(()=>$e);Um(ut?dt:ge,{id:H,value:Qe,getValue:_t});let vt=Y(()=>{y?me.current=Xe.map(e=>Pm(e,D)):Ze.set(`forceMounted`,!0)}),yt=W.useRef(Pe);X(()=>{Pe!==yt.current&&vt()},[vt,Pe]);let bt=Y(e=>{Ze.update(e);let t=e.type||`none`;if(e.activeIndex!==void 0)if(e.activeIndex===null)we.current!==nh&&(we.current=nh,et(void 0,Eu(t,void 0,{index:-1})));else{let n=Ee.current[e.activeIndex];we.current={value:n,index:e.activeIndex},et(n,Eu(t,void 0,{index:e.activeIndex}))}}),xt=Y((t,n)=>{if(be.current=n.reason===bu,e.onInputValueChange?.(t,n),!n.isCanceled){if(n.reason===`input-change`){let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&ue(!0),Te.current={hasQuery:e},e&&Ne&&Ze.state.activeIndex==null&&Ze.set(`activeIndex`,0)}}ze(t)}}),St=Y((t,n)=>{if(Be!==t&&(n.reason===`escape-key`&&je&&Xe.length===0&&!Ze.state.emptyRef.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(!t&&le&&(K?(lt||fe(Ue),Ue===``&&ue(!1)):ke&&(lt||ut?bt({activeIndex:null}):fe(Ue),xt(``,Tu(bu,n.event)))),Ve(t),!t&&ut&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(ae(!0),V(!1),oe===`onBlur`)))){let e=u===`none`?Re:Pe;se.commit(e)}}),Ct=Y((e,t)=>{a?.(e,t),!t.isCanceled&&(Fe(e),(u===`none`&&he.current&&M||K&&!Ze.state.inputInsidePopup)&&xt(Pm(e,D),Tu(t.reason,t.event)),K&&e!=null&&t.reason!==`input-change`&&le&&!lt&&fe(Ue))}),wt=Y((e,t)=>{let n=t;if(n===void 0){if(nt===null)return;n=Ee.current[nt]}let r=xd(e),i=Ce.current??e;Ce.current=null;let a=Tu(gu,i),o=r?.closest(`a`)?.getAttribute(`href`);if(o){o.startsWith(`#`)&&St(!1,a);return}if(ke){let e=Array.isArray(Pe)?Pe:[];if(Ct(Om(e,n,Ze.state.isItemEqualToValue)?Am(e,n,Ze.state.isItemEqualToValue):[...e,n],a),!(ge.current&&ge.current.value.trim()!==``))return;Ze.state.inputInsidePopup?xt(``,Tu(bu,a.event)):St(!1,a)}else Ct(n,a),St(!1,a)}),Tt=Y(()=>{if(!Ze.state.submitOnItemClick)return;let e=se.inputRef.current?.form??Ze.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Et=Y(()=>{if(pt(!1),tt?.(!1),ue(!1),fe(null),bt(u===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),ke&&ge.current&&ge.current.value!==``&&!be.current&&xt(``,Tu(bu)),K)if(Ze.state.inputInsidePopup)ge.current&&ge.current.value!==``&&xt(``,Tu(bu));else{let e=Pm(Pe,D);ge.current&&ge.current.value!==e&&xt(e,Tu(e===``?bu:pu))}}),Dt=W.useMemo(()=>lt&&it?{current:it.closest(`[role="dialog"]`)}:he,[lt,it]);vf({enabled:!e.actionsRef,open:Be,ref:Dt,onComplete(){Be||Et()}}),W.useImperativeHandle(e.actionsRef,()=>({unmount:Et}),[Et]),X(function(){if(Be||u===`none`)return;let e=y?Je:De.current;if(ke){let t=Array.isArray(Pe)?Pe:[],n=t[t.length-1],r=km(e,n,k);bt({selectedIndex:r===-1?null:r})}else{let t=km(e,Pe,k);bt({selectedIndex:t===-1?null:t})}},[Be,Pe,y,u,Je,ke,k,bt]),X(()=>{y&&(Ee.current=Xe,pe.current.length=Xe.length)},[y,Xe]),X(()=>{let e=Te.current;if(e&&(e.hasQuery?Ne&&Ze.set(`activeIndex`,0):Ne===`always`&&Ze.set(`activeIndex`,0),Te.current=null),!Be&&!lt)return;let t=je||Me?Xe:Ee.current,n=Ze.state.activeIndex;if(n==null){if(Ne===`always`&&t.length>0){Ze.set(`activeIndex`,0);return}we.current!==nh&&(we.current=nh,Ze.state.onItemHighlighted(void 0,Eu(pu,void 0,{index:-1})));return}if(n>=t.length){we.current!==nh&&(we.current=nh,Ze.state.onItemHighlighted(void 0,Eu(pu,void 0,{index:-1}))),Ze.set(`activeIndex`,null);return}let r=t[n],i=we.current.value,a=i!==th&&Dm(r,i,Ze.state.isItemEqualToValue);(we.current.index!==n||!a)&&(we.current={value:r,index:n},Ze.state.onItemHighlighted(r,Eu(pu,void 0,{index:n})))},[nt,Ne,Me,je,Xe,lt,Be,Ze]),X(()=>{if(u===`none`){re(String(Re)!==``);return}re(ke?Array.isArray(Pe)&&Pe.length>0:Pe!=null)},[re,u,Re,Pe,ke]),W.useEffect(()=>{je&&Ne&&Xe.length===0&&bt({activeIndex:null})},[je,Ne,Xe.length,bt]),im(Ue,()=>{!Be||Ue===``||Ue===String(Le)||ue(!0)}),im(Pe,()=>{if(u!==`none`&&(te(Oe),R(Pe!==z.initialValue),ne()?se.commit(Pe):se.commit(Pe,!0),K&&!Ae&&!ut)){let e=Pm(Pe,D);Re!==e&&xt(e,Tu(pu))}}),im(Re,()=>{u===`none`&&(te(Oe),R(Re!==z.initialValue),ne()?se.commit(Re):se.commit(Re,!0))}),im(y,()=>{if(!K||Ae||ut||le)return;let e=Pm(Pe,D);Re!==e&&xt(e,Tu(pu))});let Ot=Wp({open:lt?!0:Be,onOpenChange:St,elements:{reference:ut?ot:st,floating:it}}),kt,At;lt||(kt=v?`grid`:`listbox`,At=Be?`true`:`false`);let{getReferenceProps:jt,getFloatingProps:Mt,getItemProps:Nt}=Kp([W.useMemo(()=>{let e=st?.tagName===`INPUT`,t=st==null||e,n=t||Be,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=At,r[`aria-haspopup`]=kt,r[`aria-controls`]=Be?at?.id:void 0,r[`aria-autocomplete`]=F),{reference:r,floating:{role:`presentation`}}},[st,Be,At,kt,at?.id,F]),Sp(Ot,{enabled:!h&&!G&&S,event:`mousedown-only`,toggle:!1,touchOpenDelay:ut?0:100,reason:xu}),Ep(Ot,{enabled:!h&&!G&&!lt,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:lt?!0:void 0,outsidePress(e){let t=xd(e);return!bd(ot,t)&&!bd(Se.current,t)&&!bd(xe.current,t)&&!bd(ct,t)}}),tm(Ot,{enabled:!h&&!G,id:H,listRef:pe,activeIndex:nt,selectedIndex:rt,virtual:!0,loopFocus:E,allowEscape:E&&!Ne,focusItemOnOpen:le||u===`none`&&!Ne?!1:`auto`,focusItemOnHover:T,resetOnPointerLeave:!w,cols:v?2:1,orientation:v?`horizontal`:void 0,disabledIndices:Vl,onNavigate(e,t){!t&&!Be||mt===`ending`||bt(t?{activeIndex:e,type:ye.current?`keyboard`:`pointer`}:{activeIndex:e})}})]);yf(()=>{Ze.update({inline:j,popupProps:Mt(),inputProps:jt(),triggerProps:gt,getItemProps:Nt,setOpen:St,setInputValue:xt,setSelectedValue:Ct,setIndices:bt,onItemHighlighted:et,handleSelection:wt,forceMount:vt,requestSubmit:Tt})}),X(()=>{Ze.update({id:H,selectedValue:Pe,open:Be,mounted:ft,transitionStatus:mt,items:y,inline:j,popupProps:Mt(),inputProps:jt(),triggerProps:gt,openMethod:ht,getItemProps:Nt,selectionMode:u,name:Oe,form:p,disabled:G,readOnly:h,required:g,grid:v,isGrouped:He,virtualized:A,onOpenChangeComplete:tt,openOnInputClick:S,itemToStringLabel:D,modal:N,autoHighlight:Ne,isItemEqualToValue:k,submitOnItemClick:L,hasInputValue:Ae,requestSubmit:Tt})},[Ze,H,Pe,Be,ft,mt,y,Mt,jt,Nt,ht,gt,u,Oe,G,h,g,se,v,He,A,tt,S,D,N,k,L,Ae,j,Tt,Ne,p]);let Pt=Al(_,se.inputRef),Ft=W.useMemo(()=>({query:Ue,hasItems:je,filteredItems:Ye,flatFilteredItems:Xe}),[Ue,je,Ye,Xe]),It=W.useMemo(()=>Array.isArray(Qe)?``:Fm(Qe,O),[Qe,O]),Lt=ke&&Array.isArray(Pe)&&Pe.length>0,Rt=ke||u===`none`?void 0:Oe,zt=W.useMemo(()=>!ke||!Array.isArray(Pe)||!Oe?null:Pe.map(e=>{let t=Fm(e,O);return(0,J.jsx)(`input`,{type:`hidden`,form:p,name:Oe,value:t},t)}),[ke,Pe,p,Oe,O]),Bt=(0,J.jsxs)(W.Fragment,{children:[e.children,(0,J.jsx)(`input`,{...se.getInputValidationProps({onFocus(){if(ut){ot?.focus();return}(ge.current||ot)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=Tu(pu,e.nativeEvent);function r(){if(ke)return;if(u===`none`){R(t!==z.initialValue),xt(t,n),ne()&&se.commit(t);return}let e=Ee.current.find(e=>Fm(e,O).toLowerCase()===t.toLowerCase()||Pm(e,D).toLowerCase()===t.toLowerCase());e!=null&&(R(e!==z.initialValue),Ct?.(e,n),ne()&&se.commit(e))}y?r():(vt(),queueMicrotask(r))}}),id:H&&Rt==null?`${H}-hidden-input`:void 0,form:p,name:Rt,autoComplete:I,disabled:G,required:g&&!Lt,readOnly:h,value:It,ref:Pt,style:Rt?Lf:If,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),zt]});return(0,J.jsx)(vm.Provider,{value:Ze,children:(0,J.jsx)(ym.Provider,{value:Ot,children:(0,J.jsx)(bm.Provider,{value:Ft,children:(0,J.jsx)(xm.Provider,{value:Re,children:Bt})})})})}var ih={...mm,...Bm,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":``}:null};function ah(e){let t=e.getBoundingClientRect(),n=P(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function oh(e,t){return e??t}var sh=2,ch=W.forwardRef(function(e,t){let{render:n,className:r,nativeButton:i=!0,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:p,validation:m}=Hm(),{labelId:h}=qm(),g=Sm(),{filteredItems:_}=wm(),v=Q(g,$.selectionMode),y=Q(g,$.disabled),b=Q(g,$.readOnly),x=Q(g,$.required),S=Q(g,$.mounted),C=Q(g,$.popupSide),w=Q(g,$.positionerElement),T=Q(g,$.listElement),E=Q(g,$.triggerProps),D=Q(g,$.triggerElement),O=Q(g,$.inputInsidePopup),k=Q(g,$.id),A=Q(g,$.labelId),j=Q(g,$.open),M=Q(g,$.selectedValue),N=Q(g,$.activeIndex),P=Q(g,$.selectedIndex),F=Q(g,$.hasSelectedValue),I=Cm(),ee=Tm(),L=Sf(),te=u||y||a,R=_.length===0,z=S&&w?C:null;Jm({id:O?o:void 0});let ne=O?o??k:o,re=oh(h,A),ie=W.useRef(``);function B(e){ie.current=e.pointerType}let ae=I.useState(`domReferenceElement`);W.useEffect(()=>{O&&D&&D!==ae&&I.set(`domReferenceElement`,D)},[D,ae,I,O]);let{reference:V}=nm(I,{enabled:!j&&!b&&!y&&v===`single`,listRef:g.state.labelsRef,activeIndex:N,selectedIndex:P,onMatch(e){let t=g.state.valuesRef.current[e];t!==void 0&&g.state.setSelectedValue(t,Tu(`none`))}}),{reference:oe}=Sp(I,{enabled:!b&&!y,event:`mousedown`}),{buttonRef:se,getButtonProps:H}=Qu({native:i,disabled:te}),ce={...l,open:j,disabled:te,popupSide:z,listEmpty:R,placeholder:v===`none`?!1:!F};return su(`button`,e,{ref:[t,se,Y(e=>{g.set(`triggerElement`,e)})],state:ce,props:[E,oe,V,{id:ne,tabIndex:O?0:-1,role:O?`combobox`:void 0,"aria-expanded":j?`true`:`false`,"aria-haspopup":O?`dialog`:`listbox`,"aria-controls":j?T?.id:void 0,"aria-required":O&&x||void 0,"aria-labelledby":re,onPointerDown:B,onPointerEnter:B,onFocus(){f(!0),!(te||b)&&L.start(0,g.state.forceMount)},onBlur(e){if(!bd(w,e.relatedTarget)&&(d(!0),f(!1),p===`onBlur`)){let e=v===`none`?ee:M;m.commit(e)}},onMouseDown(e){if(te||b||(O||I.set(`domReferenceElement`,e.currentTarget),g.state.forceMount(),ie.current!==`touch`&&(g.state.inputRef.current?.focus(),O||e.preventDefault()),j))return;let t=qd(e.currentTarget);function n(e){if(!D)return;let t=xd(e),n=g.state.positionerElement,r=g.state.listElement;if(bd(D,t)||bd(n,t)||bd(r,t)||t===D)return;let i=ah(D),a=e.clientX>=i.left-sh&&e.clientX<=i.right+sh,o=e.clientY>=i.top-sh&&e.clientY<=i.bottom+sh;a&&o||g.state.setOpen(!1,Tu(`cancel-open`,e))}O&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){te||b||(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(kd(e),g.state.setOpen(!0,Tu(wu,e.nativeEvent)),g.state.inputRef.current?.focus())}},m?m.getValidationProps(c):c,H],stateAttributesMapping:ih})}),lh=W.createContext(void 0);function uh(){return W.useContext(lh)}var dh=W.createContext(void 0);function fh(e){let t=W.useContext(dh);if(t===void 0&&!e)throw Error(kl(21));return t}var ph=W.forwardRef(function(e,t){let n=Sm(),{buttonRef:r,getButtonProps:i}=Qu({native:!1});return(0,J.jsx)(`span`,{ref:Al(t,r),...i({onClick:Y(e=>{n.state.setOpen(!1,Tu(_u,e.nativeEvent,e.currentTarget))})}),"aria-label":`Dismiss`,tabIndex:void 0,style:Lf})}),mh=W.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:a,style:o,...s}=e,{state:c,disabled:l,setTouched:u,setFocused:d,validationMode:f,validation:p}=Hm(),{labelId:m}=qm(),h=uh(),g=!!fh(!0),_=Sm(),{filteredItems:v}=wm(),y=Tm(),b=Dl(),x=Q(_,$.required),S=Q(_,$.disabled),C=Q(_,$.readOnly),w=Q(_,$.name),T=Q(_,$.form),E=Q(_,$.selectionMode),D=Q(_,$.autoHighlight),O=Q(_,$.inputProps),k=Q(_,$.triggerProps),A=Q(_,$.open),j=Q(_,$.mounted),M=Q(_,$.selectedValue),N=Q(_,$.popupSide),P=Q(_,$.positionerElement),F=Q(_,$.id),I=Q(_,$.inline),ee=Q(_,$.modal),L=!!D,te=j&&P?N:null,R=l||S||i,z=v.length===0,ne=g||I,re=!ne||ee,ie=Mu(a??(ne?void 0:F)),B=oh(m,void 0),ae=g?Rm:c,[V,oe]=W.useState(null),se=W.useRef(!1),H=W.useRef(null),ce=W.useRef(!1),le=Y(e=>{let t=g||_.state.inline;t&&!_.state.hasInputValue&&_.state.setInputValue(``,Tu(pu)),_.update({inputElement:e,inputInsidePopup:t})}),ue=g||!p?s:p.getValidationProps(s),de={...ae,open:A,disabled:R,readOnly:C,popupSide:te,listEmpty:z};function fe(e){if(!h)return;let t,{highlightedChipIndex:n}=h,r=h.chipsRef.current.length;if(n!==void 0){if(e.key===`ArrowLeft`)e.preventDefault(),t=n>0?n-1:void 0;else if(e.key===`ArrowRight`)e.preventDefault(),t=n=M.length-1?M.length-2:n;t=r>=0?r:void 0,_.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`})}return t}return e.key===`ArrowLeft`&&(e.currentTarget.selectionStart??0)===0&&M.length>0?(e.preventDefault(),t=r>0?r-1:void 0):e.key===`Backspace`&&e.currentTarget.value===``&&M.length>0&&(_.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`}),e.preventDefault()),t}let pe=su(`input`,e,{state:de,ref:[t,_.state.inputRef,le],props:[O,k,{type:`text`,value:e.value??V??y,"aria-readonly":C||void 0,"aria-required":x||void 0,"aria-labelledby":B,disabled:R,readOnly:C,required:E===`none`?x:void 0,form:T,...E===`none`&&w&&{name:w},id:ie,onFocus(){if(d(!0),!I||!ce.current)return;ce.current=!1;let e=H.current;e==null||!Object.hasOwn(_.state.valuesRef.current,e)||_.state.setIndices({activeIndex:e})},onBlur(){u(!0),d(!1);let e=_.state.activeIndex;if(I&&e!==null&&D!==`always`&&(H.current=e,ce.current=!0,_.state.setIndices({activeIndex:null})),f===`onBlur`){let e=E===`none`?y:M;p.commit(e)}},onCompositionStart(e){ld||(se.current=!0,oe(e.currentTarget.value))},onCompositionEnd(e){se.current=!1;let t=e.currentTarget.value;oe(null),_.state.setInputValue(t,Tu(yu,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,n=!t||t===`insertReplacementText`,r=se.current||!n;if(se.current){let t=e.currentTarget.value;oe(t),t===``&&!_.state.openOnInputClick&&!_.state.inputInsidePopup&&_.state.setOpen(!1,Tu(bu,e.nativeEvent));let n=t.trim(),i=L&&n!==``;!C&&!R&&n&&r&&(_.state.setOpen(!0,Tu(yu,e.nativeEvent)),L||_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&_.state.activeIndex!==null&&!i&&_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`});return}_.state.setInputValue(e.currentTarget.value,Tu(yu,e.nativeEvent));let i=e.currentTarget.value===``,a=Tu(bu,e.nativeEvent);i&&!_.state.inputInsidePopup&&(E===`single`&&_.state.setSelectedValue(null,a),_.state.openOnInputClick||_.state.setOpen(!1,a));let o=e.currentTarget.value.trim();!C&&!R&&o&&r&&(_.state.setOpen(!0,Tu(yu,e.nativeEvent)),L||_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&_.state.activeIndex!==null&&!L&&_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`})},onKeyDown(e){if(R||C||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;_.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=b===`rtl`;if(e.key===`Home`){kd(e);let n=sd&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){kd(e);let i=sd&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!j&&e.key===`Escape`){let t=E===`multiple`&&Array.isArray(M)?M.length===0:M===null,n=Tu(Cu,e.nativeEvent),r=E===`multiple`?[]:null;_.state.setInputValue(``,n),_.state.setSelectedValue(r,n),!t&&!_.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(h&&e.key===`Backspace`&&t.value===``&&h.highlightedChipIndex===void 0&&Array.isArray(M)&&M.length>0){let t=h.chipsRef.current.length,n=t>0?t-1:M.length-1,r=M.filter((e,t)=>t!==n);_.state.setIndices({activeIndex:null,selectedIndex:null,type:_.state.keyboardActiveRef.current?`keyboard`:`pointer`}),_.state.setSelectedValue(r,Tu(pu,e.nativeEvent));return}let i=h?.highlightedChipIndex!==void 0,a=fe(e);if(h?.setHighlightedChipIndex(a),a===void 0?i&&_.state.inputRef.current?.focus():h?.chipsRef.current[a]?.focus(),e.which!==229&&e.key===`Enter`&&A){let t=_.state.activeIndex,n=e.nativeEvent;if(t===null){if(I)return;_.state.setOpen(!1,Tu(pu,n));return}kd(e);let r=_.state.listRef.current[t];r&&(_.state.selectionEventRef.current=n,r.click(),_.state.selectionEventRef.current=null)}},onPointerMove(){_.state.keyboardActiveRef.current=!1},onPointerDown(){_.state.keyboardActiveRef.current=!1}},ue],stateAttributesMapping:ih});return(0,J.jsxs)(W.Fragment,{children:[A&&re&&(0,J.jsx)(ph,{ref:_.state.startDismissRef}),pe]})}),hh={...Uu,...pm},gh=W.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:l}=Hm(),u=Sm(),d=Q(u,$.selectionMode),f=Q(u,$.disabled),p=Q(u,$.readOnly),m=Q(u,$.open),h=Q(u,$.selectedValue),g=Q(u,$.hasSelectionChips),_=Tm(),v=!1;v=d===`none`?_!==``:d===`single`?h!=null:g;let y=l||f||i,{buttonRef:b,getButtonProps:x}=Qu({native:a,disabled:y}),{mounted:S,transitionStatus:C,setMounted:w}=Ku(v),T={disabled:y,open:m,transitionStatus:C};vf({open:v,ref:u.state.clearRef,onComplete(){v||w(!1)}});let E=su(`button`,e,{state:T,ref:[t,b,u.state.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(y||p)return;let t=u.state.keyboardActiveRef;u.state.setInputValue(``,Tu(vu,e.nativeEvent)),d===`none`?u.state.setIndices({activeIndex:null,type:t.current?`keyboard`:`pointer`}):(u.state.setSelectedValue(Array.isArray(h)?[]:null,Tu(vu,e.nativeEvent)),u.state.setIndices({activeIndex:null,selectedIndex:null,type:t.current?`keyboard`:`pointer`})),u.state.inputRef.current?.focus()}},c,x],stateAttributesMapping:hh});return o||S?E:null}),_h=W.createContext(null);function vh(){return W.useContext(_h)}function yh(e){let{children:t}=e,{filteredItems:n}=wm(),r=vh(),i=r?r.items:n;return i?(0,J.jsx)(W.Fragment,{children:i.map(t)}):null}var bh=W.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=Sm(),l=Cm(),u=!!fh(!0),{filteredItems:d,hasItems:f}=wm(),p=Q(c,$.selectionMode),m=Q(c,$.grid),h=Q(c,$.popupProps),g=Q(c,$.virtualized),_=p===`multiple`,v=d.length===0,y=Y(e=>{c.set(`positionerElement`,e)}),b=Y(e=>{c.set(`listElement`,e)}),x=W.useMemo(()=>typeof o==`function`?n||=(0,J.jsx)(yh,{children:o}):o,[o]),S={empty:v},C=l.useState(`floatingId`),w=su(`div`,e,{state:S,ref:[t,b,u?null:y],props:[h,{children:x,tabIndex:-1,id:C,role:m?`grid`:`listbox`,"aria-multiselectable":_?`true`:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;kd(e);let n=e.nativeEvent,r=c.state.listRef.current[t];r&&(c.state.selectionEventRef.current=n,r.click(),c.state.selectionEventRef.current=null)}},onKeyDownCapture(){c.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.state.keyboardActiveRef.current=!1}},s]});return g?w:(0,J.jsx)(Sl,{elementsRef:c.state.listRef,labelsRef:f?void 0:c.state.labelsRef,children:w})}),xh=W.createContext(void 0);function Sh(){let e=W.useContext(xh);if(e===void 0)throw Error(kl(20));return e}var Ch=W.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Sm(),a=Q(i,$.mounted),o=Q(i,$.forceMounted);return a||n||o?(0,J.jsx)(xh.Provider,{value:n,children:(0,J.jsx)(sp,{ref:t,...r})}):null}),wh=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,offsetParent:d=`real`}=R(e,t)||{};if(l==null)return{};let f=E(u),p={x:n,y:r},m=C(i),h=w(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],D=d===`real`?await o.getOffsetParent?.(l):s.floating,O=s.floating[b]||a.floating[h];(!O||!await o.isElement?.(D))&&(O=s.floating[b]||a.floating[h]);let k=x/2-S/2,A=O/2-g[h]/2-1,j=Math.min(f[v],A),M=Math.min(f[y],A),N=j,P=O-g[h]-M,F=O/2-g[h]/2+k,I=T(N,F,P),ee=!c.arrow&&te(i)!=null&&F!==I&&a.reference[h]/2-(F({...wh(e),options:[e,t]}),Eh={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await H().fn(e)).data?.referenceHidden||a}}}},Dh={sideX:`left`,sideY:`top`};function Oh(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function kh(e,t,n){let{rects:r,placement:i}=e;return{side:Oh(t,_(i),n),align:te(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Ah(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,keepMounted:f=!1,floatingRootContext:p,mounted:m,collisionAvoidance:h,shiftCrossAxis:g=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:x=!1,externalTree:S}=e,[C,w]=W.useState(null);!m&&C!==null&&w(null);let T=h.side||`flip`,E=h.align||`flip`,D=h.fallbackAxisSide||`end`,O=typeof t==`function`?t:void 0,k=Y(O),A=O?k:t,j=Nf(t),M=Nf(m),N=Dl()===`rtl`,L=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[r],R=a===`center`?L:`${L}-${a}`,z=c,ie=+(r===`bottom`),ae=+(r===`top`),V=+(r===`right`),oe=+(r===`left`);typeof z==`number`?z={top:z+ie,right:z+oe,bottom:z+ae,left:z+V}:z&&={top:(z.top||0)+ie,right:(z.right||0)+oe,bottom:(z.bottom||0)+ae,left:(z.left||0)+V};let se={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:z},H=W.useRef(null),ce=Nf(i),le=Nf(o),ue=[I(e=>{let t=kh(e,r,N),n=typeof ce.current==`function`?ce.current(t):ce.current,i=typeof le.current==`function`?le.current(t):le.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[typeof i==`function`?0:i,typeof o==`function`?0:o,N,r])],de=E===`none`&&T!==`shift`,fe=!de&&(l||g||T===`shift`),pe=T===`none`?null:ne({...se,padding:{top:z.top+1,right:z.right+1,bottom:z.bottom+1,left:z.left+1},mainAxis:!g&&T===`flip`,crossAxis:E===`flip`?`alignment`:!1,fallbackAxisSideDirection:D}),me=de?null:B(e=>{let t=qd(e.elements.floating).documentElement;return{...se,rootBoundary:g?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:fe,limiter:l||g?void 0:F(e=>{if(!H.current)return{};let{width:t,height:n}=H.current.getBoundingClientRect(),r=b(_(e.placement)),i=r===`y`?t:n,a=r===`y`?z.left+z.right:z.top+z.bottom;return{offset:i/2+a/2}})}},[se,l,g,z,E]);T===`shift`||E===`shift`||a===`center`?ue.push(me,pe):ue.push(pe,me),ue.push(re({...se,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=P(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Th(()=>({element:H.current||qd(H.current).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=_(a),l=b(c),u=H.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,v=Math.abs(n.shift?.y||0),y=o.reference.height/2,x=typeof i==`function`?i(kh(e,r,N)):i,S=v>x,C={top:`${h}px calc(100% + ${x}px)`,bottom:`${h}px ${-x}px`,left:`calc(100% + ${x}px) ${g}px`,right:`${-x}px ${g}px`}[c],w=`${h}px ${o.reference.y+y-s}px`;return t.floating.style.setProperty(`--transform-origin`,fe&&l===`y`&&S?w:C),{}}},Eh,y),X(()=>{!m&&p&&p.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[m,p]);let he=W.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:ge,elements:U,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=Gp({rootContext:p,open:f?m:void 0,placement:R,middleware:ue,strategy:n,whileElementsMounted:f?void 0:(...e)=>ee(...e,he),nodeId:v,externalTree:S}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Dh,De=Ce?n:`fixed`,G=W.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),Oe=W.useRef(null);X(()=>{if(!m)return;let e=j.current,t=typeof e==`function`?e():e,n=(jh(t)?t.current:t)||null;n!==Oe.current&&(ge.setPositionReference(n),Oe.current=n)},[m,ge,A,j]),W.useEffect(()=>{if(!m)return;let e=j.current;typeof e!=`function`&&jh(e)&&e.current!==Oe.current&&(ge.setPositionReference(e.current),Oe.current=e.current)},[m,ge,A,j]),W.useEffect(()=>{if(f&&m&&U.domReference&&U.floating)return ee(U.domReference,U.floating,be,he)},[f,m,U,be,he]);let ke=_(xe),K=Oh(r,ke,N),Ae=te(xe)||`center`,je=!!ye.hide?.referenceHidden;X(()=>{x&&m&&Ce&&w(ke)},[x,m,Ce,ke]);let Me=W.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Ne=ye.arrow?.centerOffset!==0;return W.useMemo(()=>({positionerStyles:G,arrowStyles:Me,arrowRef:H,arrowUncentered:Ne,side:K,align:Ae,physicalSide:ke,anchorHidden:je,refs:ge,context:Se,isPositioned:Ce,update:be}),[G,Me,H,Ne,K,Ae,ke,je,ge,Se,Ce,be])}function jh(e){return e!=null&&`current`in e}function Mh(e){return e===`starting`?ep:Hl}function Nh(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),su(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Mh(r),i],stateAttributesMapping:hm})}var Ph=20;function Fh(e,t,n,r){let[i,a]=W.useState(!1);X(()=>{if(!e||!t||n==null){a(!1);return}let r=qd(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Ph)},[e,t,n]),jf(e&&(!t||i),r)}var Ih=W.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=tp,style:g,..._}=e,v=Sm(),{filteredItems:y}=wm(),b=Cm(),x=Sh(),S=Q(v,$.modal),C=Q(v,$.open),w=Q(v,$.mounted),T=Q(v,$.openMethod),E=Q(v,$.positionerElement),D=Q(v,$.triggerElement),O=Q(v,$.inputElement),k=Q(v,$.inputGroupElement),A=Q(v,$.inputInsidePopup),j=Q(v,$.transitionStatus),M=y.length===0,N=Ah({anchor:i??(A?D:k??O),floatingRootContext:b,positionMethod:a,mounted:w,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m,keepMounted:x,collisionAvoidance:h,lazyFlip:!0});Fh(C&&S,T===`touch`,E,D);let P={open:C,side:N.side,align:N.align,anchorHidden:N.anchorHidden,empty:M};X(()=>{v.set(`popupSide`,N.side)},[v,N.side]);let F=Y(e=>{v.set(`positionerElement`,e)}),I=Nh(e,P,{styles:N.positionerStyles,transitionStatus:j,props:_,refs:[t,F],hidden:!w,inert:!C});return(0,J.jsxs)(dh.Provider,{value:N,children:[w&&S&&(0,J.jsx)(_m,{inert:gm(!C),cutout:k??O??D}),I]})}),Lh={...hm,...Uu},Rh=W.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Sm(),l=fh(),u=Cm(),{filteredItems:d}=wm(),f=Q(c,$.mounted),p=Q(c,$.open),m=Q(c,$.openMethod),h=Q(c,$.transitionStatus),g=Q(c,$.inputInsidePopup),_=Q(c,$.inputElement),v=Q(c,$.modal),y=d.length===0;vf({open:p,ref:c.state.popupRef,onComplete(){p&&c.state.onOpenChangeComplete(!0)}});let b=su(`div`,e,{state:{open:p,side:l.side,align:l.align,anchorHidden:l.anchorHidden,transitionStatus:h,empty:y},ref:[t,c.state.popupRef],props:[{role:g?`dialog`:`presentation`,tabIndex:-1,onFocus(e){let t=xd(e.nativeEvent);m!==`touch`&&(bd(c.state.listElement,t)||t===e.currentTarget)&&c.state.inputRef.current?.focus()}},Mh(h),s],stateAttributesMapping:Lh}),x=a===void 0?g?e=>e===`touch`?c.state.popupRef.current:_:!1:a,S;S=o??(g?void 0:!1);let C=!g||v;return(0,J.jsx)(xp,{context:u,disabled:!f,modal:C,openInteractionType:m,initialFocus:x,returnFocus:S,getInsideElements:()=>[c.state.startDismissRef.current,c.state.endDismissRef.current],children:(0,J.jsxs)(W.Fragment,{children:[b,C&&(0,J.jsx)(ph,{ref:c.state.endDismissRef})]})})}),zh=W.createContext(void 0);function Bh(){let e=W.useContext(zh);if(!e)throw Error(kl(19));return e}var Vh=W.createContext(!1);function Hh(){return W.useContext(Vh)}var Uh=W.memo(W.forwardRef(function(e,t){let{render:n,className:r,value:i=null,index:a,disabled:o=!1,nativeButton:s=!1,style:c,...l}=e,u=W.useRef(!1),d=W.useRef(null),f=Ju({index:a,textRef:d,indexGuessBehavior:qu.GuessFromOrder}),p=Sm(),m=Hh(),{flatFilteredItems:h,hasItems:g}=wm(),_=Q(p,$.open),v=Q(p,$.selectionMode),y=Q(p,$.readOnly),b=Q(p,$.virtualized),x=Q(p,$.isItemEqualToValue),S=v!==`none`,C=a??(b?km(h,i,x):f.index),w=f.index!==-1,T=Q(p,$.id),E=Q(p,$.isActive,C),D=Q(p,$.isSelected,i),O=Q(p,$.getItemProps),k=W.useRef(null),A=T!=null&&w?`${T}-${C}`:void 0,j=D&&S;X(()=>{if(!(w&&(b||a!=null)))return;let e=p.state.listRef.current;return e[C]=k.current,()=>{delete e[C]}},[w,b,C,a,p]),X(()=>{if(!w||g)return;let e=p.state.valuesRef.current;return e[C]=i,v!==`none`&&p.state.allValuesRef.current.push(i),()=>{delete e[C]}},[w,g,C,i,p,v]),X(()=>{if(!_){u.current=!1;return}if(!w||g)return;let e=p.state.selectedValue;Dm(i,Array.isArray(e)?e[e.length-1]:e,x)&&p.set(`selectedIndex`,C)},[w,g,_,p,C,i,x]);let M={disabled:o,selected:j,highlighted:E},N=O({active:E,selected:j});N.id=void 0,N.onFocus=void 0;let{getButtonProps:P,buttonRef:F}=Qu({disabled:o,focusableWhenDisabled:!0,native:s,composite:!0});function I(e){function t(){p.state.handleSelection(e,i)}p.state.submitOnItemClick?(Wu.flushSync(t),p.state.requestSubmit()):t()}let ee={id:A,role:m?`gridcell`:`option`,"aria-selected":S?j:void 0,tabIndex:void 0,onPointerDownCapture(e){u.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){o||y||I(e.nativeEvent)},onMouseUp(e){let t=u.current;u.current=!1,!(o||y||e.button!==0||t||!E)&&I(e.nativeEvent)}},L=su(`div`,e,{ref:[F,t,f.ref,k],state:M,props:[N,ee,l,P]}),te=W.useMemo(()=>({selected:j,textRef:d}),[j,d]);return(0,J.jsx)(zh.Provider,{value:te,children:L})}));function Wh(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,J.jsx)(rh,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}var Gh=W.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=Bh();return n||r?(0,J.jsx)(Kh,{...e,ref:t}):null}),Kh=W.memo(W.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=Bh(),c=W.useRef(null),{transitionStatus:l,setMounted:u}=Ku(s),d=su(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:Uu});return vf({open:s,ref:c,onComplete(){s||u(!1)}}),d}));function qh(e){let t=(0,we.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=D(`group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none dark:bg-input/30`,`h-9 min-w-0 has-[>textarea]:h-auto`,`has-[>[data-align=inline-start]]:[&>input]:pl-2`,`has-[>[data-align=inline-end]]:[&>input]:pr-2`,`has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3`,`has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3`,`has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50`,`has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Jh=x(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]`,"inline-end":`order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]`,"block-start":`order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3`,"block-end":`order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3`}},defaultVariants:{align:`inline-start`}});function Yh(e){let t=(0,we.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,align:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`inline-start`:i,o;t[4]!==a||t[5]!==n?(o=D(Jh({align:a}),n),t[4]=a,t[5]=n,t[6]=o):o=t[6];let s;return t[7]!==a||t[8]!==r||t[9]!==o?(s=(0,J.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":a,className:o,onClick:Xh,...r}),t[7]=a,t[8]=r,t[9]=o,t[10]=s):s=t[10],s}function Xh(e){e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()}var Zh=x(`flex items-center gap-2 text-sm shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5`,sm:`h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5`,"icon-xs":`size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function Qh(e){let t=(0,we.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:n,type:i,variant:a,size:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=i===void 0?`button`:i,c=a===void 0?`ghost`:a,l=o===void 0?`xs`:o,u;t[6]!==n||t[7]!==l?(u=D(Zh({size:l}),n),t[6]=n,t[7]=l,t[8]=u):u=t[8];let d;return t[9]!==r||t[10]!==l||t[11]!==u||t[12]!==s||t[13]!==c?(d=(0,J.jsx)(A,{type:s,"data-size":l,variant:c,className:u,...r}),t[9]=r,t[10]=l,t[11]=u,t[12]=s,t[13]=c,t[14]=d):d=t[14],d}function $h(e){let t=(0,we.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=D(`flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(f,{"data-slot":`input-group-control`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var eg=Wh;function tg(e){let n=(0,we.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:i,children:r,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=D(`[&_svg:not([class*='size-'])]:size-4`,i),n[4]=i,n[5]=o);let s;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,J.jsx)(t,{"data-slot":`combobox-trigger-icon`,className:`pointer-events-none size-4 text-muted-foreground`}),n[6]=s):s=n[6];let c;return n[7]!==r||n[8]!==a||n[9]!==o?(c=(0,J.jsxs)(ch,{"data-slot":`combobox-trigger`,className:o,...a,children:[r,s]}),n[7]=r,n[8]=a,n[9]=o,n[10]=c):c=n[10],c}function ng(e){let t=(0,we.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,J.jsx)(Qh,{variant:`ghost`,size:`icon-xs`}),t[3]=i):i=t[3];let a;t[4]===n?a=t[5]:(a=D(n),t[4]=n,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,J.jsx)(y,{className:`pointer-events-none`}),t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==a?(s=(0,J.jsx)(gh,{"data-slot":`combobox-clear`,render:i,className:a,...r,children:o}),t[7]=r,t[8]=a,t[9]=s):s=t[9],s}function rg(e){let t=(0,we.c)(28),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:r,children:n,disabled:a,showTrigger:o,showClear:s,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?!1:a,l=o===void 0?!0:o,u=s===void 0?!1:s,d;t[7]===r?d=t[8]:(d=D(`w-auto`,r),t[7]=r,t[8]=d);let f;t[9]===c?f=t[10]:(f=(0,J.jsx)($h,{disabled:c}),t[9]=c,t[10]=f);let p;t[11]!==i||t[12]!==f?(p=(0,J.jsx)(mh,{render:f,...i}),t[11]=i,t[12]=f,t[13]=p):p=t[13];let m;t[14]!==c||t[15]!==l?(m=l&&(0,J.jsx)(Qh,{size:`icon-xs`,variant:`ghost`,asChild:!0,"data-slot":`input-group-button`,className:`group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent`,disabled:c,children:(0,J.jsx)(tg,{})}),t[14]=c,t[15]=l,t[16]=m):m=t[16];let h;t[17]!==c||t[18]!==u?(h=u&&(0,J.jsx)(ng,{disabled:c}),t[17]=c,t[18]=u,t[19]=h):h=t[19];let g;t[20]!==m||t[21]!==h?(g=(0,J.jsxs)(Yh,{align:`inline-end`,children:[m,h]}),t[20]=m,t[21]=h,t[22]=g):g=t[22];let _;return t[23]!==n||t[24]!==d||t[25]!==p||t[26]!==g?(_=(0,J.jsxs)(qh,{className:d,children:[p,g,n]}),t[23]=n,t[24]=d,t[25]=p,t[26]=g,t[27]=_):_=t[27],_}function ig(e){let t=(0,we.c)(21),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,anchor:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`bottom`:a,u=o===void 0?6:o,d=s===void 0?`start`:s,f=c===void 0?0:c,p=!!n,m;t[8]===r?m=t[9]:(m=D(`group/combobox-content relative max-h-96 w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) 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=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none 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`,r),t[8]=r,t[9]=m);let h;t[10]!==i||t[11]!==p||t[12]!==m?(h=(0,J.jsx)(Rh,{"data-slot":`combobox-content`,"data-chips":p,className:m,...i}),t[10]=i,t[11]=p,t[12]=m,t[13]=h):h=t[13];let g;return t[14]!==d||t[15]!==f||t[16]!==n||t[17]!==l||t[18]!==u||t[19]!==h?(g=(0,J.jsx)(Ch,{children:(0,J.jsx)(Ih,{side:l,sideOffset:u,align:d,alignOffset:f,anchor:n,className:`isolate z-50`,children:h})}),t[14]=d,t[15]=f,t[16]=n,t[17]=l,t[18]=u,t[19]=h,t[20]=g):g=t[20],g}function ag(e){let t=(0,we.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=D(`max-h-[min(calc(--spacing(96)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(bh,{"data-slot":`combobox-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function og(t){let n=(0,we.c)(11),r,i,a;n[0]===t?(r=n[1],i=n[2],a=n[3]):({className:i,children:r,...a}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=D(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,i),n[4]=i,n[5]=o);let s;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,J.jsx)(Gh,{"data-slot":`combobox-item-indicator`,render:(0,J.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`}),children:(0,J.jsx)(e,{className:`pointer-events-none size-4 pointer-coarse:size-5`})}),n[6]=s):s=n[6];let c;return n[7]!==r||n[8]!==a||n[9]!==o?(c=(0,J.jsxs)(Uh,{"data-slot":`combobox-item`,className:o,...a,children:[r,s]}),n[7]=r,n[8]=a,n[9]=o,n[10]=c):c=n[10],c}var sg=[`npm`,`pnpm`,`yarn`,`bun`];function cg(t){let r=(0,we.c)(67),{options:i,baseUrl:u,className:d,onValueChange:f}=t,p=u===void 0?``:u,{selectedManager:m,setSelectedManager:h}=s(),[g,_]=(0,W.useState)(i[0]?.value||``),[v,y]=(0,W.useState)(``),b;r[0]===v?b=r[1]:(b=e=>e.label.toLowerCase().includes(v.toLowerCase())||e.value.toLowerCase().includes(v.toLowerCase()),r[0]=v,r[1]=b);let x=i.filter(b),C;if(r[2]!==i||r[3]!==g){let e;r[5]===g?e=r[6]:(e=e=>e.value===g,r[5]=g,r[6]=e),C=i.find(e),r[2]=i,r[3]=g,r[4]=C}else C=r[4];let w=C,T={bun:`bunx --bun shadcn@latest add ${p}/r/${w?.code}.json`,npm:`npx shadcn@latest add ${p}/r/${w?.code}.json`,pnpm:`pnpm dlx shadcn@latest add ${p}/r/${w?.code}.json`,yarn:`yarn dlx shadcn@latest add ${p}/r/${w?.code}.json`},E=sg.filter(e=>T[e]),O=T[m]??``,{highlightedCode:k}=a(O,`bash`),{copy:j}=o(),[M,N]=(0,W.useState)(!1),P,F;r[7]===M?(P=r[8],F=r[9]):(P=()=>{if(M){let e=setTimeout(()=>{N(!1)},2e3);return()=>clearTimeout(e)}},F=[M],r[7]=M,r[8]=P,r[9]=F),(0,W.useEffect)(P,F);let I=async()=>{await j(O),S.success(`${m} command copied to clipboard!`),N(!0)},ee;r[10]===d?ee=r[11]:(ee=D(`group/package-manager relative min-w-0 rounded-lg border`,d),r[10]=d,r[11]=ee);let L;r[12]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,J.jsx)(c,{className:`h-4 w-4 shrink-0 text-muted-foreground`}),r[12]=L):L=r[12];let te=l,R;r[13]===h?R=r[14]:(R=e=>h(e),r[13]=h,r[14]=R);let z=E.map(ug),ne;r[15]!==te||r[16]!==m||r[17]!==R||r[18]!==z?(ne=(0,J.jsx)(`div`,{children:(0,J.jsx)(te,{value:m,onChange:R,tabs:z,tabsClassName:`p-1 bg-primary/10 shrink-0`,activeTabClassName:`text-primary-foreground`,indicatorClassName:`bg-primary`,tabClassName:`px-2 py-1 text-xs font-medium `})}),r[15]=te,r[16]=m,r[17]=R,r[18]=z,r[19]=ne):ne=r[19];let re;r[20]!==ne||r[21]!==L?(re=(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[L,ne]}),r[20]=ne,r[21]=L,r[22]=re):re=r[22];let ie=eg,B;r[23]===f?B=r[24]:(B=e=>{e&&(_(e),f?.(e))},r[23]=f,r[24]=B);let ae;r[25]!==i||r[26]!==g?(ae=i.find(e=>e.value===g)?.label||`Select option...`,r[25]=i,r[26]=g,r[27]=ae):ae=r[27];let V;r[28]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>y(e.target.value),r[28]=V):V=r[28];let oe;r[29]!==v||r[30]!==ae?(oe=(0,J.jsx)(rg,{placeholder:ae,value:v,onChange:V,showTrigger:!0,showClear:!1,className:`h-8 max-w-42 min-w-0`}),r[29]=v,r[30]=ae,r[31]=oe):oe=r[31];let se=ig,H=ag,ce=x.map(lg),le;r[32]!==H||r[33]!==ce?(le=(0,J.jsx)(H,{children:ce}),r[32]=H,r[33]=ce,r[34]=le):le=r[34];let ue;r[35]!==se||r[36]!==le?(ue=(0,J.jsx)(se,{children:le}),r[35]=se,r[36]=le,r[37]=ue):ue=r[37];let de;r[38]!==ie||r[39]!==g||r[40]!==B||r[41]!==oe||r[42]!==ue?(de=(0,J.jsxs)(ie,{value:g,onValueChange:B,children:[oe,ue]}),r[38]=ie,r[39]=g,r[40]=B,r[41]=oe,r[42]=ue,r[43]=de):de=r[43];let fe=M?`opacity-100`:`pointer-events-none opacity-0`,pe;r[44]===fe?pe=r[45]:(pe=D(`text-xs text-green-500 transition-opacity duration-200`,fe),r[44]=fe,r[45]=pe);let me;r[46]===pe?me=r[47]:(me=(0,J.jsx)(`span`,{className:pe,children:`Copied`}),r[46]=pe,r[47]=me);let he;r[48]===M?he=r[49]:(he=M?(0,J.jsx)(e,{className:`size-4`}):(0,J.jsx)(n,{className:`size-4`}),r[48]=M,r[49]=he);let ge;r[50]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,J.jsx)(`span`,{className:`sr-only`,children:`Copy`}),r[50]=ge):ge=r[50];let U;r[51]!==I||r[52]!==he?(U=(0,J.jsxs)(A,{variant:`ghost`,size:`icon`,onClick:I,className:`transition-opacity hover:opacity-100`,children:[he,ge]}),r[51]=I,r[52]=he,r[53]=U):U=r[53];let _e;r[54]!==me||r[55]!==U?(_e=(0,J.jsxs)(`div`,{className:`flex w-22 items-center justify-end gap-1`,children:[me,U]}),r[54]=me,r[55]=U,r[56]=_e):_e=r[56];let ve;r[57]!==re||r[58]!==de||r[59]!==_e?(ve=(0,J.jsxs)(`div`,{className:`flex items-center justify-between border-b bg-muted/50 px-3 py-2`,children:[re,de,_e]}),r[57]=re,r[58]=de,r[59]=_e,r[60]=ve):ve=r[60];let ye;r[61]===k?ye=r[62]:(ye=(0,J.jsx)(`div`,{className:`max-w-full min-w-0 overflow-x-auto p-3`,children:(0,J.jsx)(`pre`,{className:`m-0! w-full min-w-0 rounded-none! bg-transparent! font-mono! text-sm leading-relaxed`,children:(0,J.jsx)(`code`,{className:`pr-6`,"data-language":`bash`,suppressHydrationWarning:!0,children:(0,J.jsx)(`span`,{dangerouslySetInnerHTML:{__html:k}})})})}),r[61]=k,r[62]=ye);let be;return r[63]!==ve||r[64]!==ye||r[65]!==ee?(be=(0,J.jsxs)(`div`,{className:ee,children:[ve,ye]}),r[63]=ve,r[64]=ye,r[65]=ee,r[66]=be):be=r[66],be}function lg(e){return(0,J.jsx)(og,{value:e.value,children:e.label},e.value)}function ug(e){return{id:e,label:e}}ja.registerPlugin(nl);function dg(e){let t=(0,we.c)(28),{animations:n,categories:r}=e,{url:i}=se().props,[a,o]=(0,W.useState)(n[0]?.name??`animate-bounce`),s;t[0]===n?s=t[1]:(s=n.map(pg),t[0]=n,t[1]=s);let c=s,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,J.jsx)(V,{as:`h1`,title:`Animate.css Animations`,description:`Click any animation card to view and copy the code. 100+ CSS-based animations available.`}),t[2]=l):l=t[2];let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,J.jsx)(V,{as:`h2`,title:`About`,description:`is a library of CSS animations that you can use directly in your components. Simply add the animation class name to any element to animate it.`}),t[3]=d):d=t[3];let f,p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,J.jsxs)(`ul`,{className:`mb-6 list-disc pl-6 text-muted-foreground`,children:[(0,J.jsx)(`li`,{children:`100+ built-in animation types`}),(0,J.jsx)(`li`,{children:`Simple CSS class-based animations`}),(0,J.jsx)(`li`,{children:`Works with any HTML element`}),(0,J.jsx)(`li`,{children:`Fully customizable duration and timing`}),(0,J.jsx)(`li`,{children:`Repeat and loop support`}),(0,J.jsx)(`li`,{children:`Works with Tailwind CSS`})]}),p=(0,J.jsx)(`h2`,{className:`mt-8 mb-2 text-2xl font-semibold text-foreground`,children:`Installation`}),t[4]=f,t[5]=p):(f=t[4],p=t[5]);let m=i,h;t[6]!==c||t[7]!==m?(h=(0,J.jsx)(cg,{className:`my-4`,options:c,baseUrl:m,onValueChange:o}),t[6]=c,t[7]=m,t[8]=h):h=t[8];let g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,J.jsx)(`h2`,{className:`mt-8 mb-4 text-2xl font-semibold text-foreground`,children:`Usage`}),t[9]=g):g=t[9];let _;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,J.jsx)(`h3`,{className:`mb-2 text-lg font-medium text-foreground`,children:`Basic Usage`}),t[10]=_):_=t[10];let v=`
diff --git a/public/build/assets/app-CVlP31Z1.js b/public/build/assets/app-D7MKN1zp.js similarity index 94% rename from public/build/assets/app-CVlP31Z1.js rename to public/build/assets/app-D7MKN1zp.js index 172f410..125c3cf 100644 --- a/public/build/assets/app-CVlP31Z1.js +++ b/public/build/assets/app-D7MKN1zp.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/animate-css-DIxn22Sl.js","assets/main-layout-DiaP0ISn.js","assets/check-CCTwZBIw.js","assets/github-BytY2MM3.js","assets/sun-CDBr7ehg.js","assets/placeholder-pattern-CMjSLXXB.js","assets/glow-stack-DaYuOL5d.js","assets/main-registry-installer-CWpQAmy4.js","assets/copy-CgW44MFY.js","assets/chevron-down-Cx1PhGaQ.js","assets/heart-DBfrxc2y.js","assets/card-BMwhGcsv.js","assets/dialog-D1phUQb7.js","assets/confirm-password-hf93YGU9.js","assets/label-D-AkZnW_.js","assets/password-input-QL8S9D3F.js","assets/input-error-BdHD9-x4.js","assets/spinner-CoRrGFqk.js","assets/loader-circle-XO7crStb.js","assets/confirm-iDcX_7zW.js","assets/forgot-password-H3UJsxPQ.js","assets/text-link-B7waIO2E.js","assets/password-CsunKxsK.js","assets/login-B4lH5do8.js","assets/dist-CyCRNm1V.js","assets/socialite-DAGU8Gzo.js","assets/register-DvZlJMq4.js","assets/reset-password-CjTooPZv.js","assets/two-factor-challenge-CIH9e-kP.js","assets/use-two-factor-auth-B2IHMCS_.js","assets/verify-email-CBOEFMni.js","assets/verification-PIrv5pnj.js","assets/dashboard-DfTez4xA.js","assets/fonts-P-PzeNmJ.js","assets/select-DHOWe80x.js","assets/badge-BeR0IMEC.js","assets/home-C2LooHG2.js","assets/color-utils-ePYKqy3O.js","assets/glow-radial-JNwxsbej.js","assets/pricing-B924f0vZ.js","assets/subscription-BG3RHyD9.js","assets/appearance-DkF4xOip.js","assets/appearance-tabs-Bbh38TuS.js","assets/profile-CEhMOmdF.js","assets/security-CnUHyk63.js","assets/use-clipboard-C4ojyAai.js","assets/subscription-CWLd4fU4.js","assets/create-DWmMMfkI.js","assets/themes-BEIrAo01.js","assets/show-B7YwVVJB.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/animate-css-BwrG5zYQ.js","assets/main-layout-qej9zSi0.js","assets/check-BBvDdM_9.js","assets/github-Be9qoVk0.js","assets/sun-r0X8DC4y.js","assets/placeholder-pattern-DUvj6lOE.js","assets/glow-stack-BaNii-nE.js","assets/main-registry-installer-_-xwUN0S.js","assets/copy-HrVumo6t.js","assets/chevron-down-DuPWSveW.js","assets/heart-BDAPM7f6.js","assets/card-C1ekp7Ou.js","assets/dialog-CM260op0.js","assets/confirm-password-BNeZIAHY.js","assets/label-fRwP89Ez.js","assets/password-input-__9RhIwi.js","assets/input-error-CzZYqI_U.js","assets/spinner-CCI0ZpZ9.js","assets/loader-circle-YfjFJaoY.js","assets/confirm-tDhmficG.js","assets/forgot-password-B5S_AFXd.js","assets/text-link-BlYfkXNw.js","assets/password-BDtte38w.js","assets/login-00JrbYrx.js","assets/dist-D5bK512v.js","assets/socialite-BBNBBxaD.js","assets/register-DjsSoOdi.js","assets/reset-password-CoN8fAaC.js","assets/two-factor-challenge-Miwtb12I.js","assets/use-two-factor-auth-Bdh-sKJ3.js","assets/verify-email-D806-GRE.js","assets/verification-D4buixpo.js","assets/dashboard-oAHwTN2S.js","assets/fonts-CaQ0upX0.js","assets/select-DsMxFFiu.js","assets/badge-D9nNMnEq.js","assets/home-C3JgkfjT.js","assets/popover-B2UUPq8p.js","assets/color-utils-DTvyGxAC.js","assets/plus-D1KRmSaN.js","assets/glow-radial-CIe4ekoG.js","assets/pricing-BiBh6JwN.js","assets/subscription-C-u-O6PN.js","assets/appearance-8Z1L6Aly.js","assets/appearance-tabs-BOBvnqrB.js","assets/profile-CQF7e4MZ.js","assets/security-BxjNuG8g.js","assets/use-clipboard-BvQkhUu9.js","assets/subscription-DJjwwh89.js","assets/create-BmSt6sO8.js","assets/tabs-CNNfAj8l.js","assets/main-theme-card-B0GTBBPN.js","assets/themes-dmvzolUC.js","assets/show-D6Z2FFsL.js"])))=>i.map(i=>d[i]); var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);function f(e){return typeof e==`symbol`||e instanceof Symbol}var p=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)();function m(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function h(){}function g(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function _(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function v(e){if(g(e))return e;if(Array.isArray(e)||_(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function y(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function b(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var x=`[object RegExp]`,S=`[object String]`,C=`[object Number]`,w=`[object Boolean]`,T=`[object Arguments]`,E=`[object Symbol]`,ee=`[object Date]`,D=`[object Map]`,O=`[object Set]`,k=`[object Array]`,te=`[object Function]`,A=`[object ArrayBuffer]`,j=`[object Object]`,M=`[object Error]`,N=`[object DataView]`,P=`[object Uint8Array]`,ne=`[object Uint8ClampedArray]`,re=`[object Uint16Array]`,F=`[object Uint32Array]`,I=`[object BigUint64Array]`,L=`[object Int8Array]`,ie=`[object Int16Array]`,ae=`[object Int32Array]`,oe=`[object BigInt64Array]`,R=`[object Float32Array]`,se=`[object Float64Array]`;function ce(e){return p.Buffer!==void 0&&p.Buffer.isBuffer(e)}function le(e,t){return ue(e,void 0,e,new Map,t)}function ue(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(g(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;aye(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case k:case P:case ne:case re:case F:case I:case L:case ie:case ae:case oe:case R:case se:if(ce(e)!==ce(t)||e.length!==t.length)return!1;for(let i=0;i=0}var Ce={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function we(e){return e.replace(/[&<>"']/g,e=>Ce[e])}function Te(e){return e!=null&&typeof e!=`function`&&Se(e.length)}function Ee(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function De(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Oe(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Oe).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function ke(e){if(Array.isArray(e))return e.map(De);if(typeof e==`symbol`)return[e];e=Oe(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&(t.push(``),r++);r{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(b(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),de(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case C:case S:case w:{let t=new e.constructor(e?.valueOf());return de(t,e),t}case T:{let t={};return de(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Pe(e){return Ne(e)}var Fe=/^(?:0|[1-9]\d*)$/;function Ie(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e{let r=e[t];(!(Object.hasOwn(e,t)&&_e(r,n))||n===void 0&&!(t in e))&&(e[t]=n)};function Ge(e,t,n,r){if(e==null&&!Me(e))return e;let i;i=Ue(t,e)?[t]:Array.isArray(t)?t:ke(t);let a=n(Ae(e,i)),o=e;for(let t=0;tn,()=>void 0)}function qe(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=m(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function Je(e){return _(e)}function Ye(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;etypeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0,et=e=>e instanceof FormData?!0:$e(e)||typeof e==`object`&&!!e&&Object.values(e).some(e=>et(e)),tt=class extends Error{response;constructor(e){super(`HTTP error ${e.status}`),this.name=`HttpResponseError`,this.response=e}},nt=class extends Error{constructor(e=`Request was cancelled`){super(e),this.name=`HttpCancelledError`}},rt=class extends Error{constructor(e=`Network error`){super(e),this.name=`HttpNetworkError`}};function it(e){let t=new URLSearchParams;return Object.entries(e).forEach(([e,n])=>{n!=null&&(Array.isArray(n)?n.forEach(n=>t.append(`${e}[]`,String(n))):typeof n==`object`?t.append(e,JSON.stringify(n)):t.append(e,String(n)))}),t.toString()}function at(e,t,n){if(t&&!e.startsWith(`http://`)&&!e.startsWith(`https://`)&&(e=t.replace(/\/$/,``)+`/`+e.replace(/^\//,``)),n&&Object.keys(n).length>0){let t=it(n);t&&(e+=(e.includes(`?`)?`&`:`?`)+t)}return e}function ot(){return typeof window>`u`?null:window.axios?.defaults?.headers?.common?.[`X-Requested-With`]??null}function st(e,t=new FormData,n=null){for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&ct(t,n?`${n}[${r}]`:r,e[r]);return t}function ct(e,t,n){if(Array.isArray(n))return n.forEach((n,r)=>ct(e,`${t}[${r}]`,n));if(n instanceof Date)return e.append(t,n.toISOString());if(typeof File<`u`&&n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n==`boolean`)return e.append(t,n?`1`:`0`);if(typeof n==`string`)return e.append(t,n);if(typeof n==`number`)return e.append(t,`${n}`);if(n==null)return e.append(t,``);st(n,e,t)}function lt(e,t){if(e!=null)return e instanceof FormData?e:typeof e==`object`&&et(e)?st(e):typeof e==`object`||t[`Content-Type`]?.includes(`application/json`)?JSON.stringify(e):String(e)}function ut(e){let t={};return e.forEach((e,n)=>{t[n.toLowerCase()]=e}),t}function dt(e={}){let t=e.xsrfCookieName??`XSRF-TOKEN`,n=e.xsrfHeaderName??`X-XSRF-TOKEN`;function r(){if(typeof document>`u`)return null;let e=document.cookie.match(RegExp(`(^|;\\s*)`+t+`=([^;]*)`));return e?decodeURIComponent(e[2]):null}return{setXsrfCookieName(e){t=e},setXsrfHeaderName(e){n=e},async request(e){let t=at(e.url,e.baseURL,e.params),i=e.method.toUpperCase(),a={},o=ot();o&&(a[`X-Requested-With`]=o),e.data!==void 0&&![`GET`,`DELETE`].includes(i)&&!(e.data instanceof FormData)&&!et(e.data)&&(a[`Content-Type`]=`application/json`),e.headers&&Object.entries(e.headers).forEach(([e,t])=>{t!==void 0&&(a[e]=String(t))});let s=r();s&&![`GET`,`HEAD`,`OPTIONS`].includes(i)&&(a[n]=s);let c=e.signal,l,u=e.timeout??3e4;if(u>0&&!c){let e=new AbortController;c=e.signal,l=setTimeout(()=>e.abort(),u)}let d=[`GET`,`DELETE`].includes(i)?void 0:lt(e.data,a);d instanceof FormData&&delete a[`Content-Type`];try{let n=await fetch(t,{method:i,headers:a,body:d,signal:c,credentials:e.credentials??`same-origin`});l&&clearTimeout(l);let r;r=n.headers.get(`content-type`)?.includes(`application/json`)?await n.json():await n.text();let o={status:n.status,data:r,headers:ut(n.headers)};if(!n.ok)throw new tt(o);return o}catch(e){throw l&&clearTimeout(l),e instanceof tt?e:e instanceof DOMException&&e.name===`AbortError`?new nt:e instanceof TypeError?new rt(e.message):e}}}}var ft=dt(),pt=ft,mt=void 0,ht=void 0,gt=`same-origin`,_t=e=>`${e.method}:${e.baseURL??mt??``}${e.url}`,vt=e=>e.status===204&&e.headers[`precognition-success`]===`true`,yt={},bt={get:(e,t={},n={})=>St(xt(`get`,e,t,n)),post:(e,t={},n={})=>St(xt(`post`,e,t,n)),patch:(e,t={},n={})=>St(xt(`patch`,e,t,n)),put:(e,t={},n={})=>St(xt(`put`,e,t,n)),delete:(e,t={},n={})=>St(xt(`delete`,e,t,n)),useHttpClient(e){return pt=e,bt},withBaseURL(e){return mt=e,bt},withTimeout(e){return ht=e,bt},withCredentials(e){return gt=typeof e==`string`?e:e?`include`:`omit`,bt},fingerprintRequestsUsing(e){return _t=e===null?()=>null:e,bt},determineSuccessUsing(e){return vt=e,bt},withXsrfCookieName(e){return ft.setXsrfCookieName(e),bt},withXsrfHeaderName(e){return ft.setXsrfHeaderName(e),bt}},xt=(e,t,n,r)=>({url:t,method:e,...r,...[`get`,`delete`].includes(e)?{params:Ze({},n,r?.params)}:{data:Ze({},n,r?.data)}}),St=(e={})=>{let t=[Ct,Tt,Et].reduce((e,t)=>t(e),e);return(t.onBefore??(()=>!0))()===!1?Promise.resolve(null):((t.onStart??(()=>null))(),pt.request({method:t.method,url:t.url,baseURL:t.baseURL??mt,data:t.data,params:t.params,headers:t.headers,signal:t.signal,timeout:t.timeout,credentials:gt}).then(async e=>{t.precognitive&&Dt(e);let n=e.status,r=e;return t.precognitive&&t.onPrecognitionSuccess&&vt(e)&&(r=await Promise.resolve(t.onPrecognitionSuccess(e)??r)),t.onSuccess&&wt(n)&&(r=await Promise.resolve(t.onSuccess(r)??r)),(kt(t,n)??(e=>e))(r)??r},e=>{if(Ot(e))return Promise.reject(e);let n=e;return t.precognitive&&Dt(n.response),(kt(t,n.response.status)??((e,t)=>Promise.reject(t)))(n.response,n)}).finally(t.onFinish??(()=>null)))},Ct=e=>{let t=e.only??e.validate;return{...e,timeout:e.timeout??ht,precognitive:e.precognitive!==!1,fingerprint:e.fingerprint===void 0?_t(e,pt):e.fingerprint,headers:{...e.headers,Accept:`application/json`,"Content-Type":At(e),...e.precognitive===!1?{}:{Precognition:!0},...t?{"Precognition-Validate-Only":Array.from(t).join()}:{}}}},wt=e=>e>=200&&e<300,Tt=e=>typeof e.fingerprint==`string`?(yt[e.fingerprint]?.abort(),delete yt[e.fingerprint],e):e,Et=e=>typeof e.fingerprint!=`string`||e.signal||!e.precognitive?e:(yt[e.fingerprint]=new AbortController,{...e,signal:yt[e.fingerprint].signal}),Dt=e=>{if(e.headers?.precognition!==`true`)throw Error(`Did not receive a Precognition response. Ensure you have the Precognition middleware in place for the route.`)},Ot=e=>!(e instanceof tt)||typeof e.response?.status!=`number`,kt=(e,t)=>({401:e.onUnauthorized,403:e.onForbidden,404:e.onNotFound,409:e.onConflict,422:e.onValidationError,423:e.onLocked})[t],At=e=>e.headers?.[`Content-Type`]??e.headers?.[`Content-type`]??e.headers?.[`content-type`]??(et(e.data)?`multipart/form-data`:`application/json`),jt=(e,t)=>{if(!e.includes(`*`))return[e];let n=e.split(`.`),r=[``];for(let e of n)if(e===`*`){let e=[];for(let n of r){let r=n?Ae(t,n):t;if(Array.isArray(r))for(let t=0;tt?`${t}.${e}`:e);return r},Mt=(e,t)=>t.includes(`*`)?RegExp(`^`+t.replace(/\./g,`\\.`).replace(/\*/g,`[^.]+`)+`$`).test(e):e===t,Nt=(e,t)=>Object.fromEntries(Object.entries(e).filter(([e])=>!t.some(t=>Mt(e,t)))),Pt=(e,t={})=>{let n={errorsChanged:[],touchedChanged:[],validatingChanged:[],validatedChanged:[]},r=!1,i=!1,a=e=>e===i?[]:(i=e,n.validatingChanged),o=[],s=e=>{let t=[...new Set(e)];return o.length!==t.length||!t.every(e=>o.includes(e))?(o=t,n.validatedChanged):[]},c=()=>o.filter(e=>d[e]===void 0),l=[],u=e=>{let t=[...new Set(e)];return l.length!==t.length||!t.every(e=>l.includes(e))?(l=t,n.touchedChanged):[]},d={},f=e=>{let t=It(e);return xe(d,t)?[]:(d=t,n.errorsChanged)},p=e=>{let t={...d};return delete t[Lt(e)],f(t)},m=()=>Object.keys(d).length>0,h=1500,g=e=>{h=e,S.cancel(),S=x()},_=t,v=null,y=[],b=null,x=()=>qe(t=>{e({get:(e,n={},r={})=>bt.get(e,T(n),C(r,t,n)),post:(e,n={},r={})=>bt.post(e,T(n),C(r,t,n)),patch:(e,n={},r={})=>bt.patch(e,T(n),C(r,t,n)),put:(e,n={},r={})=>bt.put(e,T(n),C(r,t,n)),delete:(e,n={},r={})=>bt.delete(e,T(n),C(r,t,n))}).catch(e=>e instanceof nt||e instanceof tt&&e.response?.status===422?null:Promise.reject(e))},h,{leading:!0,trailing:!0}),S=x(),C=(e,t,n={})=>{let r={...e,...t},i=Array.from(r.only??r.validate??l);return{...t,...Ze({},e,t),only:i,timeout:r.timeout??5e3,onValidationError:(e,t)=>([...s([...o,...i]),...f(Ze(Nt({...d},i),e.data.errors))].forEach(e=>e()),r.onValidationError?r.onValidationError(e,t):Promise.reject(t)),onSuccess:e=>(s([...o,...i]).forEach(e=>e()),r.onSuccess?r.onSuccess(e):e),onPrecognitionSuccess:e=>([...s([...o,...i]),...f(Nt({...d},i))].forEach(e=>e()),r.onPrecognitionSuccess?r.onPrecognitionSuccess(e):e),onBefore:()=>{let e=l.some(e=>e.includes(`*`)),t=e?[...new Set(l.flatMap(e=>jt(e,n)))]:l;return r.onBeforeValidation&&r.onBeforeValidation({data:n,touched:t},{data:_,touched:y})===!1||(r.onBefore||(()=>!0))()===!1?!1:(e&&u(t).forEach(e=>e()),b=l,v=n,!0)},onStart:()=>{a(!0).forEach(e=>e()),(r.onStart??(()=>null))()},onFinish:()=>{a(!1).forEach(e=>e()),y=b,_=v,b=v=null,(r.onFinish??(()=>null))()}}},w=(e,t,n)=>{if(e===void 0){let e=Array.from(n?.only??n?.validate??[]);u([...l,...e]).forEach(e=>e()),S(n??{});return}if($e(t)&&!r){console.warn(`Precognition file validation is not active. Call the "validateFiles" function on your form to enable it.`);return}e=Lt(e),(e.includes(`*`)||Ae(_,e)!==t)&&(u([e,...l]).forEach(e=>e()),S(n??{}))},T=e=>r===!1?Rt(e):e,E={touched:()=>l,validate(e,t,n){return typeof e==`object`&&!(`target`in e)&&(n=e,e=t=void 0),w(e,t,n),E},touch(e){let t=Array.isArray(e)?e:[Lt(e)];return u([...l,...t]).forEach(e=>e()),E},validating:()=>i,valid:c,errors:()=>d,hasErrors:m,setErrors(e){return f(e).forEach(e=>e()),E},forgetError(e){return p(e).forEach(e=>e()),E},defaults(e){return t=e,_=e,E},reset(...e){if(e.length===0)u([]).forEach(e=>e());else{let n=[...l];e.forEach(e=>{n.includes(e)&&n.splice(n.indexOf(e),1),Ke(_,e,Ae(t,e))}),u(n).forEach(e=>e())}return E},setTimeout(e){return g(e),E},on(e,t){return n[e].push(t),E},validateFiles(){return r=!0,E},withoutFileValidation(){return r=!1,E}};return E},Ft=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:Array.isArray(e[n])?e[n][0]:e[n]}),{}),It=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:typeof e[n]==`string`?[e[n]]:e[n]}),{}),Lt=e=>typeof e==`string`?e:e.target.name,Rt=e=>{let t={...e};return Object.keys(t).forEach(e=>{let n=t[e];if(n!==null){if($e(n)){delete t[e];return}if(Array.isArray(n)){t[e]=Object.values(Rt({...n}));return}if(typeof n==`object`){t[e]=Rt(t[e]);return}}}),t},zt=`modulepreload`,Bt=function(e){return`/build/`+e},Vt={},Ht=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),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}))))}r=o(t.map(t=>{if(t=Bt(t,n),t in Vt)return;Vt[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:zt,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})},Ut=new class{config={};defaults;constructor(e){this.defaults=e}extend(e){return e&&(this.defaults={...this.defaults,...e}),this}replace(e){this.config=e}get(e){return Re(this.config,e)?Ae(this.config,e):Ae(this.defaults,e)}set(e,t){typeof e==`string`?Ke(this.config,e,t):Object.entries(e).forEach(([e,t])=>{Ke(this.config,e,t)})}}({form:{recentlySuccessfulDuration:2e3,forceIndicesArrayFormatInFormData:!0,withAllErrors:!1},prefetch:{cacheFor:3e4,hoverDelay:75}});function Wt(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function Gt(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var Kt=e=>Gt(`before`,{cancelable:!0,detail:{visit:e}}),qt=e=>Gt(`error`,{detail:{errors:e}}),Jt=e=>Gt(`networkError`,{cancelable:!0,detail:{error:e}}),Yt=e=>Gt(`finish`,{detail:{visit:e}}),Xt=e=>Gt(`httpException`,{cancelable:!0,detail:{response:e}}),Zt=e=>Gt(`beforeUpdate`,{detail:{page:e}}),Qt=e=>Gt(`navigate`,{detail:{page:e}}),$t=e=>Gt(`progress`,{detail:{progress:e}}),en=e=>Gt(`start`,{detail:{visit:e}}),tn=e=>Gt(`success`,{detail:{page:e}}),nn=(e,t)=>Gt(`prefetched`,{detail:{fetchedAt:Date.now(),response:e,visit:t}}),rn=e=>Gt(`prefetching`,{detail:{visit:e}}),an=e=>Gt(`flash`,{detail:{flash:e}}),on=class{static locationVisitKey=`inertiaLocationVisit`;static set(e,t){typeof window<`u`&&window.sessionStorage.setItem(e,JSON.stringify(t))}static get(e){if(typeof window<`u`)return JSON.parse(window.sessionStorage.getItem(e)||`null`)}static merge(e,t){let n=this.get(e);n===null?this.set(e,t):this.set(e,{...n,...t})}static remove(e){typeof window<`u`&&window.sessionStorage.removeItem(e)}static removeNested(e,t){let n=this.get(e);n!==null&&(delete n[t],this.set(e,n))}static exists(e){try{return this.get(e)!==null}catch{return!1}}static clear(){typeof window<`u`&&window.sessionStorage.clear()}},sn=async e=>{if(typeof window>`u`)throw Error(`Unable to encrypt history`);let t=fn(),n=await hn(await gn());if(!n)throw Error(`Unable to encrypt history`);return await un(t,n,e)},cn={key:`historyKey`,iv:`historyIv`},ln=async e=>{let t=fn(),n=await gn();if(!n)throw Error(`Unable to decrypt history`);return await dn(t,n,e)},un=async(e,t,n)=>{if(typeof window>`u`)throw Error(`Unable to encrypt history`);if(window.crypto.subtle===void 0)return console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve(n);let r=new TextEncoder,i=JSON.stringify(n),a=new Uint8Array(i.length*3),o=r.encodeInto(i,a);return window.crypto.subtle.encrypt({name:`AES-GCM`,iv:e},t,a.subarray(0,o.written))},dn=async(e,t,n)=>{if(window.crypto.subtle===void 0)return console.warn(`Decryption is not supported in this environment. SSL is required.`),Promise.resolve(n);let r=await window.crypto.subtle.decrypt({name:`AES-GCM`,iv:e},t,n);return JSON.parse(new TextDecoder().decode(r))},fn=()=>{let e=on.get(cn.iv);if(e)return new Uint8Array(e);let t=window.crypto.getRandomValues(new Uint8Array(12));return on.set(cn.iv,Array.from(t)),t},pn=async()=>window.crypto.subtle===void 0?(console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve(null)):window.crypto.subtle.generateKey({name:`AES-GCM`,length:256},!0,[`encrypt`,`decrypt`]),mn=async e=>{if(window.crypto.subtle===void 0)return console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve();let t=await window.crypto.subtle.exportKey(`raw`,e);on.set(cn.key,Array.from(new Uint8Array(t)))},hn=async e=>{if(e)return e;let t=await pn();return t?(await mn(t),t):null},gn=async()=>{let e=on.get(cn.key);return e?await window.crypto.subtle.importKey(`raw`,new Uint8Array(e),{name:`AES-GCM`,length:256},!0,[`encrypt`,`decrypt`]):null},_n=e=>{let t={};for(let n of Object.keys(e))e[n]!==void 0&&(t[n]=e[n]);return t},vn=(e,t,n)=>{if(e===t)return!0;for(let r in e)if(!n.includes(r)&&e[r]!==t[r]&&!yn(e[r],t[r]))return!1;for(let r in t)if(!n.includes(r)&&!(r in e))return!1;return!0},yn=(e,t)=>{switch(typeof e){case`object`:return vn(e,t,[]);case`function`:return e.toString()===t.toString();default:return e===t}},bn={ms:1,s:1e3,m:1e3*60,h:1e3*60*60,d:1e3*60*60*24},xn=e=>{if(typeof e==`number`)return e;for(let[t,n]of Object.entries(bn))if(e.endsWith(t))return parseFloat(e)*n;return parseInt(e)},Sn=new class{cached=[];inFlightRequests=[];removalTimers=[];currentUseId=null;add(e,t,{cacheFor:n,cacheTags:r}){if(this.findInFlight(e))return Promise.resolve();let i=this.findCached(e);if(!e.fresh&&i&&i.staleTimestamp>Date.now())return Promise.resolve();let[a,o]=this.extractStaleValues(n),s=new Promise((n,r)=>{t({...e,onCancel:()=>{this.remove(e),e.onCancel(),r()},onError:t=>{this.remove(e),e.onError(t),r()},onPrefetching(t){e.onPrefetching(t)},onPrefetched(t,n){e.onPrefetched(t,n)},onPrefetchResponse(e){n(e)},onPrefetchError(t){Sn.removeFromInFlight(e),r(t)}})}).then(t=>{this.remove(e);let n=t.getPageResponse();z.mergeOncePropsIntoResponse(n),this.cached.push({params:{...e},staleTimestamp:Date.now()+a,expiresAt:Date.now()+o,response:s,singleUse:o===0,timestamp:Date.now(),inFlight:!1,tags:Array.isArray(r)?r:[r]});let i=this.getShortestOncePropTtl(n);return this.scheduleForRemoval(e,i?Math.min(o,i):o),this.removeFromInFlight(e),t.handlePrefetch(),t});return this.inFlightRequests.push({params:{...e},response:s,staleTimestamp:null,inFlight:!0}),s}removeAll(){this.cached=[],this.removalTimers.forEach(e=>{clearTimeout(e.timer)}),this.removalTimers=[]}removeByTags(e){this.cached=this.cached.filter(t=>!t.tags.some(t=>e.includes(t)))}remove(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)),this.clearTimer(e)}removeFromInFlight(e){this.inFlightRequests=this.inFlightRequests.filter(t=>!this.paramsAreEqual(t.params,e))}extractStaleValues(e){let[t,n]=this.cacheForToStaleAndExpires(e);return[xn(t),xn(n)]}cacheForToStaleAndExpires(e){if(!Array.isArray(e))return[e,e];switch(e.length){case 0:return[0,0];case 1:return[e[0],e[0]];default:return[e[0],e[1]]}}clearTimer(e){let t=this.removalTimers.find(t=>this.paramsAreEqual(t.params,e));t&&(clearTimeout(t.timer),this.removalTimers=this.removalTimers.filter(e=>e!==t))}scheduleForRemoval(e,t){if(!(typeof window>`u`)&&(this.clearTimer(e),t>0)){let n=window.setTimeout(()=>this.remove(e),t);this.removalTimers.push({params:e,timer:n})}}get(e){return this.findCached(e)||this.findInFlight(e)}use(e,t){let n=`${t.url.pathname}-${Date.now()}-${Math.random().toString(36).substring(7)}`;return this.currentUseId=n,e.response.then(e=>{if(this.currentUseId===n)return e.mergeParams({...t,onPrefetched:()=>{}}),this.removeSingleUseItems(t),e.handle()})}removeSingleUseItems(e){this.cached=this.cached.filter(t=>this.paramsAreEqual(t.params,e)?!t.singleUse:!0)}findCached(e){return this.cached.find(t=>this.paramsAreEqual(t.params,e))||null}findInFlight(e){return this.inFlightRequests.find(t=>this.paramsAreEqual(t.params,e))||null}withoutPurposePrefetchHeader(e){let t=pe(e);return t.headers.Purpose===`prefetch`&&delete t.headers.Purpose,t}paramsAreEqual(e,t){return vn(this.withoutPurposePrefetchHeader(e),this.withoutPurposePrefetchHeader(t),[`showProgress`,`replace`,`prefetch`,`preserveScroll`,`preserveState`,`onBefore`,`onBeforeUpdate`,`onStart`,`onProgress`,`onFinish`,`onCancel`,`onSuccess`,`onError`,`onFlash`,`onPrefetched`,`onCancelToken`,`onPrefetching`,`async`,`viewTransition`,`optimistic`,`component`,`pageProps`])}updateCachedOncePropsFromCurrentPage(){this.cached.forEach(e=>{e.response.then(t=>{let n=t.getPageResponse();z.mergeOncePropsIntoResponse(n,{force:!0});for(let[e,t]of Object.entries(n.deferredProps??{})){let r=t.filter(e=>Ae(n.props,e)===void 0);r.length>0?n.deferredProps[e]=r:delete n.deferredProps[e]}let r=this.getShortestOncePropTtl(n);if(r===null)return;let i=e.expiresAt-Date.now(),a=Math.min(i,r);a>0?this.scheduleForRemoval(e.params,a):this.remove(e.params)})})}getShortestOncePropTtl(e){let t=Object.values(e.onceProps??{}).map(e=>e.expiresAt).filter(e=>!!e);return t.length===0?null:Math.min(...t)-Date.now()}},Cn=e=>{if(e.offsetParent===null)return!1;let t=e.getBoundingClientRect(),n=t.top=0,r=t.left=0;return n&&r},wn=e=>{let t=e=>{let t=window.getComputedStyle(e);return t.overflowY===`scroll`?!0:t.overflowY===`auto`?[`visible`,`clip`].includes(t.overflowX)?!0:r(t.maxHeight,e.style.height)||i(e,`height`):!1},n=e=>{let t=window.getComputedStyle(e);return t.overflowX===`scroll`?!0:t.overflowX===`auto`?[`visible`,`clip`].includes(t.overflowY)?!0:r(t.maxWidth,e.style.width)||i(e,`width`):!1},r=(e,t)=>!!(e&&e!==`none`&&e!==`0px`||t&&t!==`auto`&&t!==`0`),i=(e,t)=>{let n=e.parentElement;if(!n)return!1;let r=window.getComputedStyle(n);if([`flex`,`inline-flex`].includes(r.display)){let e=[`column`,`column-reverse`].includes(r.flexDirection);return t===`height`?e:!e}return[`grid`,`inline-grid`].includes(r.display)},a=e?.parentElement;for(;a;){let e=t(a)||n(a);if(window.getComputedStyle(a).display!==`contents`&&e)return a;a=a.parentElement}return null},Tn=(e,t)=>{if(!t)return e.filter(e=>Cn(e));let n=e.indexOf(t),r=[],i=[];for(let t=n;t>=0;t--){let n=e[t];if(Cn(n))r.push(n);else break}for(let t=n+1;t{window.requestAnimationFrame(()=>{t>1?En(e,t-1):e()})},Dn=e=>{if(typeof window>`u`)return null;let t=document.querySelector(`script[data-page="${e}"][type="application/json"]`);return t?.textContent?JSON.parse(t.textContent):null},On=typeof window>`u`,kn=!On&&/Firefox/i.test(window.navigator.userAgent),An=class{static save(){B.saveScrollPositions(this.getScrollRegions())}static getScrollRegions(){return Array.from(this.regions()).map(e=>({top:e.scrollTop,left:e.scrollLeft}))}static regions(){return document.querySelectorAll(`[scroll-region]`)}static scrollToTop(){if(kn&&getComputedStyle(document.documentElement).scrollBehavior===`smooth`)return En(()=>window.scrollTo(0,0),2);window.scrollTo(0,0)}static reset(){!On&&window.location.hash||this.scrollToTop(),this.regions().forEach(e=>{typeof e.scrollTo==`function`?e.scrollTo(0,0):(e.scrollTop=0,e.scrollLeft=0)}),this.save(),this.scrollToAnchor()}static scrollToAnchor(){let e=On?null:window.location.hash;e&&setTimeout(()=>{let t=document.getElementById(e.slice(1));t?t.scrollIntoView():this.scrollToTop()})}static restore(e){On||window.requestAnimationFrame(()=>{this.restoreDocument(),this.restoreScrollRegions(e)})}static restoreScrollRegions(e){On||this.regions().forEach((t,n)=>{let r=e[n];r&&(typeof t.scrollTo==`function`?t.scrollTo(r.left,r.top):(t.scrollTop=r.top,t.scrollLeft=r.left))})}static restoreDocument(){let e=B.getDocumentScrollPosition();window.scrollTo(e.left,e.top)}static onScroll(e){let t=e.target;typeof t.hasAttribute==`function`&&t.hasAttribute(`scroll-region`)&&this.save()}static onWindowScroll(){B.saveDocumentScrollPosition({top:window.scrollY,left:window.scrollX})}},jn=e=>typeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0;function Mn(e){return jn(e)||e instanceof FormData&&Array.from(e.values()).some(e=>Mn(e))||typeof e==`object`&&!!e&&Object.values(e).some(e=>Mn(e))}var Nn=e=>e instanceof FormData;function Pn(e,t=new FormData,n=null,r=`brackets`){e||={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&In(t,Fn(n,i,`indices`),e[i],r);return t}function Fn(e,t,n){return e?n===`brackets`?`${e}[]`:`${e}[${t}]`:t}function In(e,t,n,r){if(Array.isArray(n))return Array.from(n.keys()).forEach(i=>In(e,Fn(t,i.toString(),r),n[i],r));if(n instanceof Date)return e.append(t,n.toISOString());if(n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n==`boolean`)return e.append(t,n?`1`:`0`);if(typeof n==`string`)return e.append(t,n);if(typeof n==`number`)return e.append(t,`${n}`);if(n==null)return e.append(t,``);Pn(n,e,t,r)}function Ln(e){return/\[\d+\]/.test(decodeURIComponent(e.search))}function Rn(e){if(!e||e===`?`)return{};let t={};return e.replace(/^\?/,``).split(`&`).filter(Boolean).forEach(e=>{let[n,r]=Bn(e);Hn(t,Vn(n),Vn(r))}),t}function zn(e,t){let n=[];return Wn(e,``,n,t),n.length?`?`+n.join(`&`):``}function Bn(e){let t=e.indexOf(`=`);return t===-1?[e,``]:[e.substring(0,t),e.substring(t+1)]}function Vn(e){return decodeURIComponent(e.replace(/\+/g,` `))}function Hn(e,t,n){let r=Un(t);if(r.some(e=>e===`__proto__`))return;let i=e;for(;r.length>1;){let e=r.shift(),t=r[0]===``;(typeof i[e]!=`object`||i[e]===null)&&(i[e]=t?[]:{}),i=i[e]}let a=r.shift();a===``&&Array.isArray(i)?i.push(n):i[a]=n}function Un(e){let t=[],n=e.split(`[`)[0];n&&t.push(n);let r,i=/\[([^\]]*)\]/g;for(;(r=i.exec(e))!==null;)t.push(r[1]);return t}function Wn(e,t,n,r){if(e!==void 0){if(e===null){n.push(`${t}=`);return}if(Array.isArray(e)){e.forEach((e,i)=>{Wn(e,r===`indices`?`${t}[${i}]`:`${t}[]`,n,r)});return}if(typeof e==`object`){Object.keys(e).forEach(i=>{Wn(e[i],t?`${t}[${i}]`:i,n,r)});return}n.push(`${t}=${encodeURIComponent(String(e))}`)}}function Gn(e){return new URL(e.toString(),typeof window>`u`?void 0:window.location.toString())}var Kn=(e,t,n,r,i)=>{let a=typeof e==`string`?Gn(e):e;if((Mn(t)||r)&&!Nn(t)&&(Ut.get(`form.forceIndicesArrayFormatInFormData`)&&(i=`indices`),t=Pn(t,new FormData,null,i)),Nn(t))return[a,t];let[o,s]=qn(n,a,t,i);return[Gn(o),s]};function qn(e,t,n,r=`brackets`){let i=e===`get`&&!Nn(n)&&Object.keys(n).length>0,a=er(t.toString()),o=a||t.toString().startsWith(`/`)||t.toString()===``,s=!o&&!t.toString().startsWith(`#`)&&!t.toString().startsWith(`?`),c=/^[.]{1,2}([/]|$)/.test(t.toString()),l=t.toString().includes(`?`)||i,u=t.toString().includes(`#`),d=new URL(t.toString(),typeof window>`u`?`http://localhost`:window.location.toString());if(i){let e=Ln(d)?`indices`:r;d.search=zn({...Rn(d.search),...n},e)}return[[a?`${d.protocol}//${d.host}`:``,o?d.pathname:``,s?d.pathname.substring(+!c):``,l?d.search:``,u?d.hash:``].join(``),i?{}:n]}function Jn(e){return e=new URL(e.href),e.hash=``,e}var Yn=(e,t)=>{e.hash&&!t.hash&&Jn(e).href===t.href&&(t.hash=e.hash)},Xn=(e,t)=>Jn(e).href===Jn(t).href,Zn=(e,t)=>e.origin===t.origin&&e.pathname===t.pathname;function Qn(e){return typeof e==`object`&&!!e&&e!==void 0&&`url`in e&&`method`in e}function $n(e){return e.component?typeof e.component==`string`?e.component:(console.error(`The "component" property on the URL method pair received multiple components (${Object.keys(e.component).join(`, `)}), but only a single component string is supported for instant visits. Use the withComponent() method to specify which component to use.`),null):null}function er(e){return/^([a-z][a-z0-9+.-]*:)?\/\/[^/]/i.test(e)}function tr(e,t){let n=typeof e==`string`?Gn(e):e;return t?`${n.protocol}//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`}var z=new class{page;swapComponent;resolveComponent;onFlashCallback;componentId={};listeners=[];isFirstPageLoad=!0;cleared=!1;pendingDeferredProps=null;historyQuotaExceeded=!1;optimisticBaseline={};pendingOptimistics=[];optimisticCounter=0;init({initialPage:e,swapComponent:t,resolveComponent:n,onFlash:r}){return this.page={...e,flash:e.flash??{},rescuedProps:e.rescuedProps??[]},this.swapComponent=t,this.resolveComponent=n,this.onFlashCallback=r,sr.on(`historyQuotaExceeded`,()=>{this.historyQuotaExceeded=!0}),this}set(e,{replace:t=!1,preserveScroll:n=!1,preserveState:r=!1,viewTransition:i=!1}={}){Object.keys(e.deferredProps||{}).length&&(this.pendingDeferredProps={deferredProps:e.deferredProps,component:e.component,url:e.url},e.initialDeferredProps===void 0&&(e.initialDeferredProps=e.deferredProps)),this.componentId={};let a=this.componentId;return e.clearHistory&&B.clear(),this.resolve(e.component,e).then(o=>{if(a!==this.componentId)return;e.rememberedState??={};let s=typeof window>`u`,c=s?new URL(e.url):window.location,l=!s&&n?An.getScrollRegions():[];t||=Xn(Gn(e.url),c);let u={...e,flash:{}};return new Promise(e=>t?B.replaceState(u,e):B.pushState(u,e)).then(()=>{let a=!this.isTheSame(e);if(!a&&Object.keys(e.props.errors||{}).length>0&&(i=!1),this.page=e,this.cleared=!1,this.hasOnceProps()&&Sn.updateCachedOncePropsFromCurrentPage(),a&&this.fireEventsFor(`newComponent`),this.isFirstPageLoad&&this.fireEventsFor(`firstLoad`),this.isFirstPageLoad=!1,this.historyQuotaExceeded){this.historyQuotaExceeded=!1;return}return this.swap({component:o,page:e,preserveState:r,viewTransition:i}).then(()=>{n?window.requestAnimationFrame(()=>An.restoreScrollRegions(l)):An.reset(),this.pendingDeferredProps&&this.pendingDeferredProps.component===e.component&&this.pendingDeferredProps.url===e.url&&sr.fireInternalEvent(`loadDeferredProps`,this.pendingDeferredProps.deferredProps),this.pendingDeferredProps=null,t||Qt(e)})})})}setQuietly(e,{preserveState:t=!1}={}){return this.resolve(e.component,e).then(n=>(this.page=e,this.cleared=!1,B.setCurrent(e),this.swap({component:n,page:e,preserveState:t,viewTransition:!1})))}clear(){this.cleared=!0}isCleared(){return this.cleared}get(){return this.page}getWithoutFlashData(){return{...this.page,flash:{}}}hasOnceProps(){return Object.keys(this.page.onceProps??{}).length>0}merge(e){this.page={...this.page,...e}}setPropsQuietly(e){return this.page={...this.page,props:e},this.resolve(this.page.component,this.page).then(e=>this.swap({component:e,page:this.page,preserveState:!0,viewTransition:!1}))}setFlash(e){this.page={...this.page,flash:e},this.onFlashCallback?.(e)}setUrlHash(e){this.page.url.includes(e)||(this.page.url+=e)}remember(e){this.page.rememberedState=e}swap({component:e,page:t,preserveState:n,viewTransition:r}){let i=()=>this.swapComponent({component:e,page:t,preserveState:n});if(!r||!document?.startViewTransition||document.visibilityState===`hidden`)return i();let a=typeof r==`boolean`?()=>null:r;return new Promise(e=>{a(document.startViewTransition(()=>i().then(e)))})}resolve(e,t){return Promise.resolve(this.resolveComponent(e,t))}nextOptimisticId(){return++this.optimisticCounter}setBaseline(e,t){e in this.optimisticBaseline||(this.optimisticBaseline[e]=t)}updateBaseline(e,t){e in this.optimisticBaseline&&(this.optimisticBaseline[e]=t)}hasBaseline(e){return e in this.optimisticBaseline}registerOptimistic(e,t){this.pendingOptimistics.push({id:e,callback:t})}unregisterOptimistic(e){this.pendingOptimistics=this.pendingOptimistics.filter(t=>t.id!==e)}replayOptimistics(){let e=Object.keys(this.optimisticBaseline);if(e.length===0)return{};let t=pe(this.page.props);for(let n of e)t[n]=pe(this.optimisticBaseline[n]);for(let{callback:e}of this.pendingOptimistics){let n=e(pe(t));n&&Object.assign(t,n)}let n={};for(let r of e)n[r]=t[r];return n}pendingOptimisticCount(){return this.pendingOptimistics.length}clearOptimisticState(){this.optimisticBaseline={},this.pendingOptimistics=[]}isTheSame(e){return this.page.component===e.component}on(e,t){return this.listeners.push({event:e,callback:t}),()=>{this.listeners=this.listeners.filter(n=>n.event!==e&&n.callback!==t)}}fireEventsFor(e){this.listeners.filter(t=>t.event===e).forEach(e=>e.callback())}mergeOncePropsIntoResponse(e,{force:t=!1}={}){Object.entries(e.onceProps??{}).forEach(([n,r])=>{let i=this.page.onceProps?.[n];i!==void 0&&(t||Ae(e.props,r.prop)===void 0)&&(Ke(e.props,r.prop,Ae(this.page.props,i.prop)),e.onceProps[n].expiresAt=i.expiresAt)})}},nr=class{items=[];processingPromise=null;add(e){return this.items.push(e),this.process()}process(){return this.processingPromise??=this.processNext().finally(()=>{this.processingPromise=null}),this.processingPromise}processNext(){let e=this.items.shift();return e?Promise.resolve(e()).then(()=>this.processNext()):Promise.resolve()}},rr=typeof window>`u`,ir=new nr,ar=!rr&&/CriOS/.test(window.navigator.userAgent),or=class{rememberedState=`rememberedState`;scrollRegions=`scrollRegions`;preserveUrl=!1;current={};initialState=null;remember(e,t){this.replaceState({...z.getWithoutFlashData(),rememberedState:{...z.get()?.rememberedState??{},[t]:e}})}restore(e){if(!rr)return this.current[this.rememberedState]?.[e]===void 0?this.initialState?.[this.rememberedState]?.[e]:this.current[this.rememberedState]?.[e]}pushState(e,t=null){if(!rr){if(this.preserveUrl){t&&t();return}this.current=e,ir.add(()=>this.getPageData(e).then(n=>{let r=()=>this.doPushState({page:n},e.url).then(()=>t?.());return ar?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))}}clonePageProps(e){try{return structuredClone(e.props),e}catch{return{...e,props:pe(e.props)}}}getPageData(e){let t=this.clonePageProps(e);return new Promise(n=>e.encryptHistory?sn(t).then(n):n(t))}processQueue(){return ir.process()}decrypt(e=null){if(rr)return Promise.resolve(e??z.get());let t=e??window.history.state?.page;return this.decryptPageData(t).then(e=>{if(!e)throw Error(`Unable to decrypt history`);return this.initialState===null?this.initialState=e??void 0:this.current=e??{},e})}decryptPageData(e){return e instanceof ArrayBuffer?ln(e):Promise.resolve(e)}saveScrollPositions(e){ir.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!xe(this.getScrollRegions(),e))return this.doReplaceState({page:window.history.state.page,scrollRegions:e})}))}saveDocumentScrollPosition(e){ir.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!xe(this.getDocumentScrollPosition(),e))return this.doReplaceState({page:window.history.state.page,documentScrollPosition:e})}))}getScrollRegions(){return window.history.state?.scrollRegions||[]}getDocumentScrollPosition(){return window.history.state?.documentScrollPosition||{top:0,left:0}}replaceState(e,t=null){if(xe(this.current,e)){t&&t();return}let{flash:n,...r}=e;if(z.merge(r),!rr){if(this.preserveUrl){t&&t();return}this.current=e,ir.add(()=>this.getPageData(e).then(n=>{let r=()=>this.doReplaceState({page:n},e.url).then(()=>t?.());return ar?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))}}isHistoryThrottleError(e){return e instanceof Error&&e.name===`SecurityError`&&(e.message.includes(`history.pushState`)||e.message.includes(`history.replaceState`))}isQuotaExceededError(e){return e instanceof Error&&e.name===`QuotaExceededError`}withThrottleProtection(e){return Promise.resolve().then(()=>{try{return e()}catch(e){if(!this.isHistoryThrottleError(e))throw e;console.error(e.message)}})}doReplaceState(e,t){return this.withThrottleProtection(()=>{window.history.replaceState({...e,scrollRegions:e.scrollRegions??window.history.state?.scrollRegions,documentScrollPosition:e.documentScrollPosition??window.history.state?.documentScrollPosition},``,t)})}doPushState(e,t){return this.withThrottleProtection(()=>{try{window.history.pushState(e,``,t)}catch(e){if(!this.isQuotaExceededError(e))throw e;sr.fireInternalEvent(`historyQuotaExceeded`,t)}})}getState(e,t){return this.current?.[e]??t}deleteState(e){this.current[e]!==void 0&&(delete this.current[e],this.replaceState(this.current))}clearInitialState(e){this.initialState&&this.initialState[e]!==void 0&&delete this.initialState[e]}browserHasHistoryEntry(){return!rr&&!!window.history.state?.page}clear(){on.remove(cn.key),on.remove(cn.iv)}setCurrent(e){this.current=e}isValidState(e){return!!e.page}getAllState(){return this.current}};typeof window<`u`&&window.history.scrollRestoration&&(window.history.scrollRestoration=`manual`);var B=new or,sr=new class{internalListeners=[];init(){typeof window<`u`&&(window.addEventListener(`popstate`,this.handlePopstateEvent.bind(this)),window.addEventListener(`pageshow`,this.handlePageshowEvent.bind(this)),window.addEventListener(`scroll`,Wt(An.onWindowScroll.bind(An),100),!0)),typeof document<`u`&&document.addEventListener(`scroll`,Wt(An.onScroll.bind(An),100),!0)}onGlobalEvent(e,t){return this.registerListener(`inertia:${e}`,(e=>{let n=t(e);e.cancelable&&!e.defaultPrevented&&n===!1&&e.preventDefault()}))}on(e,t){return this.internalListeners.push({event:e,listener:t}),()=>{this.internalListeners=this.internalListeners.filter(e=>e.listener!==t)}}onMissingHistoryItem(){z.clear(),this.fireInternalEvent(`missingHistoryItem`)}fireInternalEvent(e,...t){this.internalListeners.filter(t=>t.event===e).forEach(e=>e.listener(...t))}registerListener(e,t){return document.addEventListener(e,t),()=>document.removeEventListener(e,t)}handlePageshowEvent(e){e.persisted&&B.decrypt().catch(()=>this.onMissingHistoryItem())}handlePopstateEvent(e){let t=e.state||null;if(t===null){let e=Gn(z.get().url);e.hash=window.location.hash,B.replaceState({...z.getWithoutFlashData(),url:e.href}),An.reset();return}if(!B.isValidState(t))return this.onMissingHistoryItem();B.decrypt(t.page).then(e=>{if(z.get().version!==e.version){this.onMissingHistoryItem();return}Qi.cancelAll({prefetch:!1}),z.setQuietly(e,{preserveState:!1}).then(()=>{An.restore(B.getScrollRegions()),Qt(z.get());let t={},n=z.get().props;for(let[r,i]of Object.entries(e.initialDeferredProps??e.deferredProps??{})){let e=i.filter(e=>Ae(n,e)===void 0);e.length>0&&(t[r]=e)}Object.keys(t).length>0&&this.fireInternalEvent(`loadDeferredProps`,t)})}).catch(()=>{this.onMissingHistoryItem()})}},cr=new class{type;constructor(){this.type=this.resolveType()}resolveType(){return typeof window>`u`?`navigate`:window.performance?.getEntriesByType(`navigation`)[0]?.type??`navigate`}get(){return this.type}isBackForward(){return this.type===`back_forward`}isReload(){return this.type===`reload`}},lr=class{static handle(){this.clearRememberedStateOnReload(),[this.handleBackForward,this.handleLocation,this.handleDefault].find(e=>e.bind(this)())}static clearRememberedStateOnReload(){cr.isReload()&&(B.deleteState(B.rememberedState),B.clearInitialState(B.rememberedState))}static handleBackForward(){if(!cr.isBackForward()||!B.browserHasHistoryEntry())return!1;let e=B.getScrollRegions();return B.decrypt().then(t=>{z.set(t,{preserveScroll:!0,preserveState:!0}).then(()=>{An.restore(e),Qt(z.get())})}).catch(()=>{sr.onMissingHistoryItem()}),!0}static handleLocation(){if(!on.exists(on.locationVisitKey))return!1;let e=on.get(on.locationVisitKey)||{};return on.remove(on.locationVisitKey),typeof window<`u`&&z.setUrlHash(window.location.hash),B.decrypt(z.get()).then(()=>{let t=B.getState(B.rememberedState,{}),n=B.getScrollRegions();z.remember(t),z.set(z.get(),{preserveScroll:e.preserveScroll,preserveState:!0}).then(()=>{e.preserveScroll&&An.restore(n),this.fireInitialEvents()})}).catch(()=>{sr.onMissingHistoryItem()}),!0}static handleDefault(){typeof window<`u`&&z.setUrlHash(window.location.hash),z.set(z.get(),{preserveScroll:!0,preserveState:!0}).then(()=>{cr.isReload()?An.restore(B.getScrollRegions()):An.scrollToAnchor(),this.fireInitialEvents()})}static fireInitialEvents(){let e=z.get();Qt(e),Object.keys(e.flash).length>0&&queueMicrotask(()=>an(e.flash))}},ur=class{id=null;throttle=!1;keepAlive=!1;cb;interval;cbCount=0;constructor(e,t,n){this.keepAlive=n.keepAlive??!1,this.cb=t,this.interval=e,(n.autoStart??!0)&&this.start()}stop(){this.id&&clearInterval(this.id)}start(){typeof window>`u`||(this.stop(),this.id=window.setInterval(()=>{(!this.throttle||this.cbCount%10==0)&&this.cb(),this.throttle&&this.cbCount++},this.interval))}isInBackground(e){this.throttle=this.keepAlive?!1:e,this.throttle&&(this.cbCount=0)}},dr=new class{polls=[];constructor(){this.setupVisibilityListener()}add(e,t,n){let r=new ur(e,t,n);return this.polls.push(r),{stop:()=>r.stop(),start:()=>r.start()}}clear(){this.polls.forEach(e=>e.stop()),this.polls=[]}setupVisibilityListener(){typeof document>`u`||document.addEventListener(`visibilitychange`,()=>{this.polls.forEach(e=>e.isInBackground(document.hidden))},!1)}},fr=new class{requestHandlers=[];responseHandlers=[];errorHandlers=[];onRequest(e){return this.requestHandlers.push(e),()=>{this.requestHandlers=this.requestHandlers.filter(t=>t!==e)}}onResponse(e){return this.responseHandlers.push(e),()=>{this.responseHandlers=this.responseHandlers.filter(t=>t!==e)}}onError(e){return this.errorHandlers.push(e),()=>{this.errorHandlers=this.errorHandlers.filter(t=>t!==e)}}async processRequest(e){let t=e;for(let e of this.requestHandlers)t=await e(t);return t}async processResponse(e){let t=e;for(let e of this.responseHandlers)t=await e(t);return t}async processError(e){for(let t of this.errorHandlers)await t(e)}},pr=class extends Error{code;url;constructor(e,t,n){super(n?`${e} (${n})`:e),this.name=`HttpError`,this.code=t,this.url=n}},mr=class extends pr{response;constructor(e,t,n){super(e,`ERR_HTTP_RESPONSE`,n),this.name=`HttpResponseError`,this.response=t}},hr=class extends pr{constructor(e=`Request was cancelled`,t){super(e,`ERR_CANCELLED`,t),this.name=`HttpCancelledError`}},gr=class extends pr{cause;constructor(e,t,n){super(e,`ERR_NETWORK`,t),this.name=`HttpNetworkError`,this.cause=n}};function _r(e){let t=document.cookie.match(RegExp(`(^|;\\s*)(`+e+`)=([^;]*)`));return t?decodeURIComponent(t[3]):null}function vr(e){let t={};return e.getAllResponseHeaders().split(`\r `).forEach(e=>{let n=e.indexOf(`:`);n>0&&(t[e.slice(0,n).toLowerCase().trim()]=e.slice(n+1).trim())}),t}function yr(e,t){if(!t.headers)return;let n=t.data instanceof FormData;Object.entries(t.headers).forEach(([t,r])=>{(t.toLowerCase()!==`content-type`||!n)&&e.setRequestHeader(t,String(r))})}function br(e,t){if(!t||Object.keys(t).length===0)return e;let[n]=qn(`get`,e,t);return n}var xr=class{xsrfCookieName;xsrfHeaderName;constructor(e={}){this.xsrfCookieName=e.xsrfCookieName??`XSRF-TOKEN`,this.xsrfHeaderName=e.xsrfHeaderName??`X-XSRF-TOKEN`}async request(e){let t=await fr.processRequest(e);try{let e=await this.doRequest(t);return await fr.processResponse(e)}catch(e){throw(e instanceof mr||e instanceof gr||e instanceof hr)&&await fr.processError(e),e}}doRequest(e){return new Promise((t,n)=>{let r=new XMLHttpRequest,i=br(e.url,e.params);r.open(e.method.toUpperCase(),i,!0);let a=_r(this.xsrfCookieName);a&&r.setRequestHeader(this.xsrfHeaderName,a);let o=null;e.data!==null&&e.data!==void 0&&(e.data instanceof FormData?o=e.data:typeof e.data==`object`?(o=JSON.stringify(e.data),!e.headers?.[`Content-Type`]&&!e.headers?.[`content-type`]&&r.setRequestHeader(`Content-Type`,`application/json`)):o=String(e.data)),yr(r,e),e.onUploadProgress&&(r.upload.onprogress=t=>{let n=t.lengthComputable?t.loaded/t.total:void 0;e.onUploadProgress({progress:n,percentage:n?Math.round(n*100):0,loaded:t.loaded,total:t.lengthComputable?t.total:void 0})}),e.signal&&e.signal.addEventListener(`abort`,()=>r.abort()),r.onabort=()=>n(new hr(`Request was cancelled`,e.url)),r.onerror=()=>n(new gr(`Network error`,e.url)),r.onload=()=>{let i={status:r.status,data:r.responseText,headers:vr(r)};r.status>=400?n(new mr(`Request failed with status ${r.status}`,i,e.url)):t(i)},r.send(o)})}},Sr=new xr;function Cr(e){return!(`request`in e)}var wr={getClient(){return Sr},setClient(e){if(!Cr(e)){Sr=e;return}Sr=new xr(e),e.xsrfCookieName&&bt.withXsrfCookieName(e.xsrfCookieName),e.xsrfHeaderName&&bt.withXsrfHeaderName(e.xsrfHeaderName)},onRequest:fr.onRequest.bind(fr),onResponse:fr.onResponse.bind(fr),onError:fr.onError.bind(fr),processRequest:fr.processRequest.bind(fr),processResponse:fr.processResponse.bind(fr),processError:fr.processError.bind(fr)},Tr=class e{callbacks=[];params;constructor(e){if(!e.prefetch)this.params=e;else{let t={onBefore:this.wrapCallback(e,`onBefore`),onBeforeUpdate:this.wrapCallback(e,`onBeforeUpdate`),onStart:this.wrapCallback(e,`onStart`),onProgress:this.wrapCallback(e,`onProgress`),onFinish:this.wrapCallback(e,`onFinish`),onCancel:this.wrapCallback(e,`onCancel`),onSuccess:this.wrapCallback(e,`onSuccess`),onError:this.wrapCallback(e,`onError`),onHttpException:this.wrapCallback(e,`onHttpException`),onNetworkError:this.wrapCallback(e,`onNetworkError`),onFlash:this.wrapCallback(e,`onFlash`),onCancelToken:this.wrapCallback(e,`onCancelToken`),onPrefetched:this.wrapCallback(e,`onPrefetched`),onPrefetching:this.wrapCallback(e,`onPrefetching`)};this.params={...e,...t,onPrefetchResponse:e.onPrefetchResponse||(()=>{}),onPrefetchError:e.onPrefetchError||(()=>{})}}}static create(t){return new e(t)}data(){return this.params.method===`get`?null:this.params.data}queryParams(){return this.params.method===`get`?this.params.data:{}}isPartial(){return this.params.only.length>0||this.params.except.length>0||this.params.reset.length>0}isPrefetch(){return this.params.prefetch===!0}isDeferredPropsRequest(){return this.params.deferredProps===!0}onCancelToken(e){this.params.onCancelToken({cancel:e})}markAsFinished(){this.params.completed=!0,this.params.cancelled=!1,this.params.interrupted=!1}markAsCancelled({cancelled:e=!0,interrupted:t=!1}){this.params.onCancel(),this.params.completed=!1,this.params.cancelled=e,this.params.interrupted=t}wasCancelledAtAll(){return this.params.cancelled||this.params.interrupted}onFinish(){this.params.onFinish(this.params)}onStart(){this.params.onStart(this.params)}onPrefetching(){this.params.onPrefetching(this.params)}onPrefetchResponse(e){this.params.onPrefetchResponse&&this.params.onPrefetchResponse(e)}onPrefetchError(e){this.params.onPrefetchError&&this.params.onPrefetchError(e)}all(){return this.params}headers(){let e={...this.params.headers};this.isPartial()&&(e[`X-Inertia-Partial-Component`]=z.get().component);let t=this.params.only.concat(this.params.reset);return t.length>0&&(e[`X-Inertia-Partial-Data`]=t.join(`,`)),this.params.except.length>0&&(e[`X-Inertia-Partial-Except`]=this.params.except.join(`,`)),this.params.reset.length>0&&(e[`X-Inertia-Reset`]=this.params.reset.join(`,`)),this.params.errorBag&&this.params.errorBag.length>0&&(e[`X-Inertia-Error-Bag`]=this.params.errorBag),e}setPreserveOptions(t){this.params.preserveScroll=e.resolvePreserveOption(this.params.preserveScroll,t),this.params.preserveState=e.resolvePreserveOption(this.params.preserveState,t)}runCallbacks(){this.callbacks.forEach(({name:e,args:t})=>{this.params[e](...t)})}merge(e){this.params={...this.params,...e}}wrapCallback(e,t){return(...n)=>{this.recordCallback(t,n),e[t](...n)}}recordCallback(e,t){this.callbacks.push({name:e,args:t})}static resolvePreserveOption(e,t){return typeof e==`function`?e(t):e===`errors`?Object.keys(t.props.errors||{}).length>0:e}},Er={createIframeAndPage(e){typeof e==`object`&&(e=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
${JSON.stringify(e)}`);let t=document.createElement(`html`);t.innerHTML=e,t.querySelectorAll(`a`).forEach(e=>e.setAttribute(`target`,`_top`));let n=document.createElement(`iframe`);return n.style.backgroundColor=`white`,n.style.borderRadius=`5px`,n.style.width=`100%`,n.style.height=`100%`,n.setAttribute(`sandbox`,`allow-scripts`),{iframe:n,page:t}},show(e){let{iframe:t,page:n}=this.createIframeAndPage(e);t.style.boxSizing=`border-box`,t.style.display=`block`;let r=document.createElement(`dialog`);r.id=`inertia-error-dialog`,Object.assign(r.style,{width:`calc(100vw - 100px)`,height:`calc(100vh - 100px)`,padding:`0`,margin:`auto`,border:`none`,backgroundColor:`transparent`});let i=document.createElement(`style`);i.textContent=` dialog#inertia-error-dialog::backdrop { @@ -95,7 +95,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r= `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{pe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?fe(n):``}function he(e,t){switch(e.tag){case 26:case 27:case 5:return fe(e.type);case 16:return fe(`Lazy`);case 13:return e.child!==t&&t!==null?fe(`Suspense Fallback`):fe(`Suspense`);case 19:return fe(`SuspenseList`);case 0:case 15:return me(e.type,!1);case 11:return me(e.type.render,!1);case 1:return me(e.type,!0);case 31:return fe(`Activity`);default:return``}}function ge(e){try{var t=``,n=null;do t+=he(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var _e=Object.prototype.hasOwnProperty,ve=t.unstable_scheduleCallback,ye=t.unstable_cancelCallback,be=t.unstable_shouldYield,xe=t.unstable_requestPaint,Se=t.unstable_now,Ce=t.unstable_getCurrentPriorityLevel,we=t.unstable_ImmediatePriority,Te=t.unstable_UserBlockingPriority,Ee=t.unstable_NormalPriority,De=t.unstable_LowPriority,Oe=t.unstable_IdlePriority,ke=t.log,Ae=t.unstable_setDisableYieldValue,je=null,Me=null;function Ne(e){if(typeof ke==`function`&&Ae(e),Me&&typeof Me.setStrictMode==`function`)try{Me.setStrictMode(je,e)}catch{}}var Pe=Math.clz32?Math.clz32:Le,Fe=Math.log,Ie=Math.LN2;function Le(e){return e>>>=0,e===0?32:31-(Fe(e)/Ie|0)|0}var Re=256,ze=262144,Be=4194304;function Ve(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function He(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ve(n))):i=Ve(o):i=Ve(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ve(n))):i=Ve(o)):i=Ve(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ue(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function We(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ge(){var e=Be;return Be<<=1,!(Be&62914560)&&(Be=4194304),e}function Ke(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Je(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),sn=!1;if(on)try{var cn={};Object.defineProperty(cn,`passive`,{get:function(){sn=!0}}),window.addEventListener(`test`,cn,cn),window.removeEventListener(`test`,cn,cn)}catch{sn=!1}var ln=null,un=null,dn=null;function fn(){if(dn)return dn;var e,t=un,n=t.length,r,i=`value`in ln?ln.value:ln.textContent,a=i.length;for(e=0;e=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=fn(),dn=un=ln=null,Zn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=yr(n)}}function xr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nt(e.document)}return t}function Cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var wr=on&&`documentMode`in document&&11>=document.documentMode,Tr=null,Er=null,Dr=null,Or=!1;function kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Or||Tr==null||Tr!==Nt(r)||(r=Tr,`selectionStart`in r&&Cr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Dr&&vr(Dr,r)||(Dr=r,r=kd(Er,`onSelect`),0>=o,i-=o,xi=1<<32-Pe(t)+i|n<m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),V&&Ci(i,m),l;if(d===null){for(;mh?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),V&&Ci(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return V&&Ci(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),V&&Ci(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Ta(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ma(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=ci(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=si(o.type,o.key,o.props,null,e.mode,c),Ma(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=di(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Ta(o),x(e,r,o,c)}if(A(o))return v(e,r,o,c);if(O(o)){if(l=O(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,ja(o),c);if(o.$$typeof===b)return x(e,r,Zi(e,o),c);Na(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Aa=0;var i=x(e,t,n,r);return ka=null,i}catch(t){if(t===ya||t===xa)throw t;var a=ri(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Fa=Pa(!0),Ia=Pa(!1),La=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function za(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Va(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Rl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ei(e),$r(e,null,n),t}return Xr(e,r,t,n),ei(e)}function Ha(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xe(e,n)}}function Ua(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Wa=!1;function Ga(){if(Wa){var e=ua;if(e!==null)throw e}}function Ka(e,t,n,r){Wa=!1;var i=e.updateQueue;La=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(J&p)===p:(r&p)===p){p!==0&&p===la&&(Wa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:La=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ql|=o,e.lanes=o,e.memoizedState=d}}function qa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function U(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=j.T,s={};j.T=s,js(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?As(e,t,pa(c,r),hu(e)):As(e,t,r,hu(e))}catch(n){As(e,t,{then:function(){},status:`rejected`,reason:n},hu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function bs(){}function xs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ss(e).queue;ys(e,a,t,N,n===null?bs:function(){return Cs(e),n(r)})}function Ss(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:N,baseState:N,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:N},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cs(e){var t=Ss(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},hu())}function ws(){return Xi(Q)}function Ts(){return ko().memoizedState}function Es(){return ko().memoizedState}function Ds(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=hu();e=Ba(n);var r=Va(t,e,n);r!==null&&(_u(r,t,n),Ha(r,t,n)),t={cache:oa()},e.payload=t;return}t=t.return}}function Os(e,t,n){var r=hu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ms(e)?Ns(t,n):(n=Zr(e,t,n,r),n!==null&&(_u(n,e,r),Ps(n,t,r)))}function ks(e,t,n){As(e,t,n,hu())}function As(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))Ns(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,_r(s,o))return Xr(e,t,i,0),zl===null&&Yr(),!1}catch{}if(n=Zr(e,t,i,r),n!==null)return _u(n,e,r),Ps(n,t,r),!0}return!1}function js(e,t,n,r){if(r={lane:2,revertLane:md(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(t)throw Error(i(479))}else t=Zr(e,n,r,2),t!==null&&_u(t,e,2)}function Ms(e){var t=e.alternate;return e===W||t!==null&&t===W}function Ns(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ps(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xe(e,n)}}var Fs={readContext:Xi,use:Mo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Fs.useEffectEvent=yo;var Is={readContext:Xi,use:Mo,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:os,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),is(4194308,4,fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return is(4194308,4,e,t)},useInsertionEffect:function(e,t){is(4,2,e,t)},useMemo:function(e,t){var n=Oo();t=t===void 0?null:t;var r=e();if(mo){Ne(!0);try{e()}finally{Ne(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Oo();if(n!==void 0){var i=n(t);if(mo){Ne(!0);try{n(t)}finally{Ne(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Os.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,n=ks.bind(null,W,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ms,useDeferredValue:function(e,t){return _s(Oo(),e,t)},useTransition:function(){var e=Wo(!1);return e=ys.bind(null,W,e.queue,!0,!1),Oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=W,a=Oo();if(V){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),zl===null)throw Error(i(349));J&127||zo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,os(Vo.bind(null,r,o,e),[e]),r.flags|=2048,ns(9,{destroy:void 0},Bo.bind(null,r,o,n,t),null),n},useId:function(){var e=Oo(),t=zl.identifierPrefix;if(V){var n=Si,r=xi;n=(r&~(1<<32-Pe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[rt]=t,o[it]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Rd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ac(t)}}return Fc(t),jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ac(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ae.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Oi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||Ni(t,!0)}else e=Wd(e).createTextNode(r),e[rt]=t,t.stateNode=e}return Fc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[rt]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fc(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ao(t),t):(ao(t),null);if(t.flags&128)throw Error(i(558))}return Fc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[rt]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fc(t),a=!1}else a=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ao(t),t):(ao(t),null)}return ao(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Nc(t,t.updateQueue),Fc(t),null);case 4:return se(),e===null&&Td(t.stateNode.containerInfo),Fc(t),null;case 10:return Wi(t.type),Fc(t),null;case 19:if(F(oo),r=t.memoizedState,r===null)return Fc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Pc(r,!1);else{if(Kl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=so(e),o!==null){for(t.flags|=128,Pc(r,!1),e=o.updateQueue,t.updateQueue=e,Nc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)oi(n,e),n=n.sibling;return I(oo,oo.current&1|2),V&&Ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Se()>ru&&(t.flags|=128,a=!0,Pc(r,!1),t.lanes=4194304)}else{if(!a)if(e=so(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Nc(t,e),Pc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!V)return Fc(t),null}else 2*Se()-r.renderingStartTime>ru&&n!==536870912&&(t.flags|=128,a=!0,Pc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Fc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Se(),e.sibling=null,n=oo.current,I(oo,a?n&1|2:n&1),V&&Ci(t,r.treeForkCount),e);case 22:case 23:return ao(t),Qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Fc(t),t.subtreeFlags&6&&(t.flags|=8192)):Fc(t),n=t.updateQueue,n!==null&&Nc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&F(ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(aa),Fc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Lc(e,t){switch(Ei(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(aa),se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return le(t),null;case 31:if(t.memoizedState!==null){if(ao(t),t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ao(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(oo),null;case 4:return se(),null;case 10:return Wi(t.type),null;case 22:case 23:return ao(t),Qa(),e!==null&&F(ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(aa),null;case 25:return null;default:return null}}function Rc(e,t){switch(Ei(t),t.tag){case 3:Wi(aa),se();break;case 26:case 27:case 5:le(t);break;case 4:se();break;case 31:t.memoizedState!==null&&ao(t);break;case 13:ao(t);break;case 19:F(oo);break;case 10:Wi(t.type);break;case 22:case 23:ao(t),Qa(),e!==null&&F(ha);break;case 24:Wi(aa)}}function zc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){qu(t,t.return,e)}}function Bc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){qu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){qu(t,t.return,e)}}function Vc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{U(t,n)}catch(t){qu(e,e.return,t)}}}function Hc(e,t,n){n.props=Us(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){qu(e,t,n)}}function Uc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){qu(e,t,n)}}function Wc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){qu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){qu(e,t,n)}else n.current=null}function Gc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){qu(e,e.return,t)}}function Kc(e,t,n){try{var r=e.stateNode;zd(r,e.type,n,t),r[it]=t}catch(t){qu(e,e.return,t)}}function qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tf(e.type)||e.tag===4}function Jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xt));else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Rd(t,r,n),t[rt]=e,t[it]=n}catch(t){qu(e,e.return,t)}}var Qc=!1,$c=!1,el=!1,tl=typeof WeakSet==`function`?WeakSet:Set,nl=null;function rl(e,t){if(e=e.containerInfo,Hd=cp,e=Sr(e),Cr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},cp=!1,nl=t;nl!==null;)if(t=nl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,nl=e;else for(;nl!==null;){switch(t=nl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Rd(o,r,n),o[rt]=e,gt(o),r=o;break a;case`link`:var s=Wf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=br(s,h),v=br(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,j.T=null,n=du,du=null;var o=su,s=lu;if(ou=0,cu=su=null,lu=0,Rl&6)throw Error(i(331));var c=Rl;if(Rl|=4,Nl(o.current),Tl(o,o.current,s,n),Rl=c,sd(0,!1),Me&&typeof Me.onPostCommitFiberRoot==`function`)try{Me.onPostCommitFiberRoot(je,o)}catch{}return!0}finally{M.p=a,j.T=r,Uu(e,t)}}function Ku(e,t,n){t=pi(n,t),t=Ys(e.stateNode,t,2),e=Va(e,t,2),e!==null&&(qe(e,2),od(e))}function qu(e,t,n){if(e.tag===3)Ku(e,e,n);else for(;t!==null;){if(t.tag===3){Ku(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(au===null||!au.has(r))){e=pi(n,e),n=Xs(2),r=Va(t,n,2),r!==null&&(Zs(n,r,t,e),qe(r,2),od(r));break}}t=t.return}}function Ju(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ll;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Wl=!0,i.add(n),e=Yu.bind(null,e,t,n),t.then(e,e))}function Yu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,zl===e&&(J&n)===n&&(Kl===4||Kl===3&&(J&62914560)===J&&300>Se()-tu?!(Rl&2)&&wu(e,0):Yl|=n,Zl===J&&(Zl=0)),od(e)}function Xu(e,t){t===0&&(t=Ge()),e=Qr(e,t),e!==null&&(qe(e,t),od(e))}function Zu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xu(e,n)}function Qu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Xu(e,n)}function $u(e,t){return ve(e,t)}var ed=null,td=null,nd=!1,rd=!1,id=!1,ad=0;function od(e){e!==td&&e.next===null&&(td===null?ed=td=e:td=td.next=e),rd=!0,nd||(nd=!0,pd())}function sd(e,t){if(!id&&rd){id=!0;do for(var n=!1,r=ed;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Pe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,fd(r,a))}else a=J,a=He(r,r===zl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ue(r,a)||(n=!0,fd(r,a));r=r.next}while(n);id=!1}}function cd(){ld()}function ld(){rd=nd=!1;var e=0;ad!==0&&Yd()&&(e=ad);for(var t=Se(),n=null,r=ed;r!==null;){var i=r.next,a=ud(r,t);a===0?(r.next=null,n===null?ed=i:n.next=i,i===null&&(td=n)):(n=r,(e!==0||a&3)&&(rd=!0)),r=i}ou!==0&&ou!==5||sd(e,!1),ad!==0&&(ad=0)}function ud(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Bd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=Ft(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ft(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ft(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ft(n.imageSizes)+`"]`)):i+=`[href="`+Ft(e)+`"]`;var a=i;switch(t){case`style`:a=Pf(e);break;case`script`:a=Lf(e)}vf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(Rf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ft(r)+`"][href="`+Ft(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Lf(e)}if(!vf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),vf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Rf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),gt(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=ht(r).hoistableStyles,a=Pf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ff(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Vf(e,n);var c=o=r.createElement(`link`);gt(c),Rd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Bf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){xf.X(e,t);var n=wf;if(n&&e){var r=ht(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0},t),(t=vf.get(i))&&Hf(e,t),a=n.createElement(`script`),gt(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=ht(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Hf(e,t),a=n.createElement(`script`),gt(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var a=(a=ae.current)?bf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Pf(n.href),n=ht(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pf(n.href);var o=ht(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Ff(e)))&&!o._p&&(s.instance=o,s.state.loading=5),vf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vf.set(e,n),o||If(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Lf(n),n=ht(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pf(e){return`href="`+Ft(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function X(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function If(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Rd(t,`link`,n),gt(t),e.head.appendChild(t))}function Lf(e){return`[src="`+Ft(e)+`"]`}function Rf(e){return`script[async]`+e}function zf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ft(n.href)+`"]`);if(r)return t.instance=r,gt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),gt(r),Rd(r,`style`,a),Bf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pf(n.href);var o=e.querySelector(Ff(a));if(o)return t.state.loading|=4,t.instance=o,gt(o),o;r=X(n),(a=vf.get(a))&&Vf(r,a),o=(e.ownerDocument||e).createElement(`link`),gt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,Bf(o,n.precedence,e),t.instance=o;case`script`:return o=Lf(n.src),(a=e.querySelector(Rf(o)))?(t.instance=a,gt(a),a):(r=n,(a=vf.get(o))&&(r=f({},n),Hf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),gt(a),Rd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Bf(r,n.precedence,e));return t.instance}function Bf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Kf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Z(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pf(r.href),a=t.querySelector(Ff(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,gt(a);return}a=t.ownerDocument||t,r=X(r),(i=vf.get(i))&&Vf(r,i),a=a.createElement(`link`),gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=aa()})),H=u(ea(),1),sa=u(na(),1),ca=oa(),la=(0,H.createContext)(null);la.displayName=`InertiaHeadContext`;var ua=la,da=ai();function fa(e,t){typeof e==`string`?da.setFor(e,t):da.set(e)}function pa(){da.reset()}var ma=(0,H.createContext)(null);ma.displayName=`InertiaPageContext`;var ha=ma;function ga(e){return typeof e==`function`||typeof e==`object`&&!!e&&`$$typeof`in e}function _a(e){if(typeof e!=`function`)return!1;let t=e;return t.length===1&&t.prototype===void 0}function va(e){return typeof e==`function`&&e.length<=1&&e.prototype===void 0}var ya=!0,ba=!1,xa=async()=>{ya=!1},Sa={shared:{},named:{}};function Ca({children:e,initialPage:t,initialComponent:n,resolveComponent:r,titleCallback:i,onHeadUpdate:a,defaultLayout:o}){let[s,c]=(0,H.useState)({component:n||null,page:{...t,flash:t.flash??{}},key:null}),l=(0,H.useMemo)(()=>Wr(typeof window>`u`,i||(e=>e),a||(()=>{})),[]),u=(0,H.useSyncExternalStore)(da.subscribe,da.get,()=>Sa);if(ba||=(Qi.init({initialPage:t,resolveComponent:r,swapComponent:async e=>xa(e),onFlash:e=>{c(t=>({...t,page:{...t.page,flash:e}}))}}),!0),(0,H.useEffect)(()=>{xa=async({component:e,page:t,preserveState:n})=>{if(ya){ya=!1;return}n||pa(),(0,sa.flushSync)(()=>c(r=>({component:e,page:t,key:n?r.key:Date.now()})))},Qi.on(`navigate`,()=>l.forceUpdate())},[]),!s.component)return(0,H.createElement)(ua.Provider,{value:l},(0,H.createElement)(ha.Provider,{value:s.page},null));let d=e||(({Component:e,props:t,key:n})=>{let r=(0,H.createElement)(e,{key:n,...t}),i,a=null,c=e.layout;if(va(c)){let e=c(t);if((0,H.isValidElement)(e))return c(r);di(e,ga)?(i=o?.(s.page.component,s.page),a=e):i=e}else ui(c,ga)?(i=o?.(s.page.component,s.page),a=c):i=c??o?.(s.page.component,s.page);let l=mi(i,ga,c&&!a?_a:void 0);return a&&(l=l.map(e=>({...e,props:{...e.props,...a}}))),l.length>0?l.reduceRight((e,n)=>(0,H.createElement)(n.component,{...t,...n.props,...u.shared,...n.name&&u.named[n.name]||{}},e),r):r});return(0,H.createElement)(ua.Provider,{value:l},(0,H.createElement)(ha.Provider,{value:s.page},d({Component:s.component,key:s.key,props:s.page.props})))}Ca.displayName=`Inertia`;async function wa({id:e=`app`,resolve:t,setup:n,title:r,progress:i={},page:a,render:o,defaults:s={},nonce:c,http:l,layout:u,strictMode:d=!1,withApp:f}={}){Ga.replace(s),c&&Ga.set(`nonce`,c),l&&wr.setClient(l);let p=typeof window>`u`,m=e=>d?(0,H.createElement)(H.StrictMode,null,e):e,h=(e,n)=>Promise.resolve(t(e,n)).then(e=>e.default||e);if(p&&!a&&!o)return async(t,i)=>{let a=[],o={initialPage:t,initialComponent:await h(t.component,t),resolveComponent:h,titleCallback:r,onHeadUpdate:e=>a=e,defaultLayout:u},s;n?s=n({el:null,App:Ca,props:o}):(s=m((0,H.createElement)(Ca,o)),f&&(s=f(s,{ssr:!0})));let c=Zi(e,t,i(s));return{head:a,body:c}};let g=a||Dn(e),_=[],v=await Promise.all([h(g.component,g),Qi.decryptHistory().catch(()=>{})]).then(([t])=>{let i={initialPage:g,initialComponent:t,resolveComponent:h,titleCallback:r,onHeadUpdate:p?e=>_=e:void 0,defaultLayout:u};if(p)return n({el:null,App:Ca,props:i});let a=document.getElementById(e);if(n)return n({el:a,App:Ca,props:i});let o=m((0,H.createElement)(Ca,i));f&&(o=f(o,{ssr:!1})),a.hasAttribute(`data-server-rendered`)?(0,ca.hydrateRoot)(a,o):(0,ca.createRoot)(a).render(o)});if(!p&&i&&Ui(i),p&&o&&v){let t=Zi(e,g,o(v));return{head:_,body:t}}}function Ta(){let e=(0,H.use)(ha);if(!e)throw Error(`usePage must be used within the Inertia component`);return e}var Ea=({children:e,data:t,rescue:n,fallback:r})=>{if(!t)throw Error("`` requires a `data` prop to be a string or array of strings");if(!r)throw Error("`` requires a `fallback` prop");let[i,a]=(0,H.useState)(!1),o=(0,H.useRef)(new Set),s=Ta(),c=s.props,l=(0,H.useMemo)(()=>Array.isArray(t)?t:[t],[t]),u=(0,H.useMemo)(()=>new Set(s.rescuedProps),[s.rescuedProps]);(0,H.useEffect)(()=>{let e=Qi.on(`start`,e=>{let t=e.detail.visit;t.preserveState===!0&&Zn(t.url,window.location)&&kr(t,l)&&(o.current.add(t),a(!0))}),t=Qi.on(`finish`,e=>{let t=e.detail.visit;o.current.has(t)&&(o.current.delete(t),a(o.current.size>0))});return()=>{e(),t(),o.current.clear()}},[l]);let d=(0,H.useMemo)(()=>l.every(e=>Ae(c,e)!==void 0),[l,c]),f=(0,H.useMemo)(()=>l.some(e=>u.has(e)),[l,u]);return d&&!f?typeof e==`function`?e({reloading:i}):e:f&&n?typeof n==`function`?n({reloading:i}):n:typeof r==`function`?r():r};Ea.displayName=`InertiaDeferred`;function Da(e){let{data:t,useDataState:n,useErrorsState:r}=e,i=typeof t==`function`,a=()=>i?t():t,o=pe(a()),s=(0,H.useRef)(!1),c=(0,H.useRef)(e.precognitionEndpoint??null),[l,u]=(0,H.useState)(pe(o)),[d,f]=n?n():(0,H.useState)(pe(o)),[p,m]=r?r():(0,H.useState)({}),[h,g]=(0,H.useState)(!1),[_,v]=(0,H.useState)(null),[y,b]=(0,H.useState)(!1),[x,S]=(0,H.useState)(!1),C=(0,H.useRef)(void 0),w=(0,H.useRef)(e=>e),T=(0,H.useRef)(!1),E=(0,H.useRef)(null),[ee,D]=(0,H.useState)(!1),[O,k]=(0,H.useState)([]),[te,A]=(0,H.useState)([]),j=(0,H.useRef)(null),M=()=>j.current??Ga.get(`form.withAllErrors`),N=(0,H.useRef)(d);(0,H.useEffect)(()=>{N.current=d}),(0,H.useEffect)(()=>(s.current=!0,()=>{s.current=!1}),[]);let P=(0,H.useCallback)(e=>{N.current=e,f(e)},[f]),ne=(0,H.useCallback)((e,t)=>{P(typeof e==`string`?Ke(pe(N.current),e,t):typeof e==`function`?e(N.current):e)},[P]),re=(0,H.useCallback)((e,t)=>{if(i)throw Error("You cannot call `defaults()` when using a function to define your form data.");T.current=!0;let n={};e===void 0?(n={...N.current},u(N.current)):u(r=>(n=typeof e==`string`?Ke(pe(r),e,t):Object.assign(pe(r),e),n)),E.current?.defaults(n)},[u]),F=(0,H.useCallback)((...e)=>{let t=pe(i?pe(a()):l);e.length===0?(i&&u(t),P(t)):(i&&u(n=>{let r=pe(n);return e.filter(e=>Re(t,e)).forEach(e=>{Ke(r,e,Ae(t,e))}),r}),P(e.filter(e=>Re(t,e)).reduce((e,n)=>Ke(e,n,Ae(t,n)),{...N.current}))),E.current?.reset(...e)},[P,l]),I=(0,H.useCallback)((e,t)=>{m(n=>{let r={...n,...typeof e==`string`?{[e]:t}:e};return E.current?.setErrors(r),r})},[m]),L=(0,H.useCallback)((...e)=>{m(t=>{let n=Object.keys(t).reduce((n,r)=>({...n,...e.length>0&&!e.includes(r)?{[r]:t[r]}:{}}),{});return E.current&&(e.length===0?E.current.setErrors({}):e.forEach(E.current.forgetError)),n})},[m]),ie=(0,H.useCallback)((...e)=>{F(...e),L(...e)},[F,L]),ae=(0,H.useCallback)(()=>{L(),b(!0),S(!0),C.current=window.setTimeout(()=>{s.current&&S(!1)},Ga.get(`form.recentlySuccessfulDuration`))},[L,b,S]),oe=(0,H.useCallback)(()=>{b(!1),S(!1),clearTimeout(C.current)},[b,S]),R=(0,H.useCallback)(()=>{g(!1),v(null)},[g,v]),se=(0,H.useCallback)(e=>{w.current=e},[]),ce=(e,t)=>(t(e),e),le=(0,H.useCallback)(e=>te.includes(e),[te]),ue=(0,H.useCallback)(e=>e in p,[p]),de=(0,H.useCallback)(e=>typeof e==`string`?O.includes(e):O.length>0,[O]),fe={data:d,isDirty:!xe(d,l),errors:p,hasErrors:Object.keys(p).length>0,processing:h,progress:_,wasSuccessful:y,recentlySuccessful:x,setData:ne,transform:se,setDefaults:re,reset:F,setError:I,clearErrors:L,resetAndClearErrors:ie},me=(e,t)=>{if(typeof e==`object`&&!(`target`in e)&&(t=e,e=void 0),e===void 0)E.current.validate(t);else{let n=Lt(e),r=w.current(N.current);E.current.validate(n,Ae(r,n),t)}return fe};return fe.withPrecognition=(...e)=>{if(c.current=Ir.createWayfinderCallback(...e),!E.current){let e=Pt(e=>{let{method:t,url:n}=c.current(),r=N.current,i=w.current(r);return e[t](n,i)},pe(l));E.current=e,e.on(`validatingChanged`,()=>{D(e.validating())}).on(`validatedChanged`,()=>{A(e.valid())}).on(`touchedChanged`,()=>{k(e.touched())}).on(`errorsChanged`,()=>{m(M()?e.errors():Ft(e.errors())),A(e.valid())})}let t=Object.assign(fe,{validating:ee,validator:()=>E.current,valid:le,invalid:ue,touched:de,withoutFileValidation:()=>ce(t,()=>E.current?.withoutFileValidation()),touch:(e,...n)=>(Array.isArray(e)?E.current?.touch(e):typeof e==`string`?E.current?.touch([e,...n]):E.current?.touch(e),t),withAllErrors:()=>ce(t,()=>j.current=!0),setValidationTimeout:e=>ce(t,()=>E.current?.setTimeout(e)),validateFiles:()=>ce(t,()=>E.current?.validateFiles()),validate:me,setErrors:e=>ce(t,()=>fe.setError(e)),forgetError:e=>ce(t,()=>fe.clearErrors(Lt(e)))});return t},c.current&&fe.withPrecognition(c.current),{form:fe,setDefaultsState:u,transformRef:w,precognitionEndpointRef:c,dataRef:N,isMounted:s,setProcessing:g,setProgress:v,markAsSuccessful:ae,clearErrors:L,setError:I,defaultsCalledInOnSuccessRef:T,resetBeforeSubmit:oe,finishProcessing:R,withAllErrors:{enabled:M,enable:()=>{j.current=!0}}}}function Oa(e,t,n){let[r,i]=(0,H.useState)(()=>{let n=Qi.restore(t);return n===void 0?e:n});return(0,H.useEffect)(()=>{let e=n?.current;if(e&&e.length>0&&typeof r==`object`&&r){let n={...r};e.forEach(e=>delete n[e]),Qi.remember(n,t)}else Qi.remember(r,t)},[r,t]),[r,i]}function ka(...e){let{rememberKey:t,data:n,precognitionEndpoint:r}=Ir.parseUseFormArguments(...e),i=pe(typeof n==`function`?n():n),a=(0,H.useRef)(null),o=(0,H.useRef)([]),s=(0,H.useRef)(null),{form:c,setDefaultsState:l,transformRef:u,precognitionEndpointRef:d,dataRef:f,isMounted:p,setProcessing:m,setProgress:h,markAsSuccessful:g,clearErrors:_,setError:v,defaultsCalledInOnSuccessRef:y,resetBeforeSubmit:b,finishProcessing:x}=Da({data:n,precognitionEndpoint:r,useDataState:t?()=>Oa(i,`${t}:data`,o):void 0,useErrorsState:t?()=>Oa({},`${t}:errors`):void 0}),S=(0,H.useCallback)((...e)=>{let{method:t,url:n,options:r}=Ir.parseSubmitArguments(e,d.current);y.current=!1;let i={...r,onCancelToken:e=>(a.current=e,r.onCancelToken?.(e)),onBefore:e=>(b(),r.onBefore?.(e)),onStart:e=>(m(!0),r.onStart?.(e)),onProgress:e=>(h(e||null),r.onProgress?.(e)),onSuccess:async e=>{p.current&&g();let t=r.onSuccess?await r.onSuccess(e):null;return p.current&&!y.current&&c.setData(e=>(l(pe(e)),e)),t},onError:e=>(p.current&&(_(),v(e)),r.onError?.(e)),onCancel:()=>r.onCancel?.(),onFinish:e=>(p.current&&x(),a.current=null,r.onFinish?.(e))};i.optimistic=i.optimistic??s.current??void 0,s.current=null;let o=u.current(f.current);t===`delete`?Qi.delete(n,{...i,data:o}):Qi[t](n,o,i)},[_,v,u]),C=(0,H.useCallback)(()=>{a.current&&a.current.cancel()},[]),w=(0,H.useMemo)(()=>({get:(e,t={})=>S(`get`,e,t),post:(e,t={})=>S(`post`,e,t),put:(e,t={})=>S(`put`,e,t),patch:(e,t={})=>S(`patch`,e,t),delete:(e,t={})=>S(`delete`,e,t)}),[S]);Object.assign(c,{submit:S,...w,cancel:C,dontRemember:(...e)=>(o.current=e,T),optimistic:e=>(s.current=e,T)});let T=c,E=c.withPrecognition;return T.withPrecognition=(...e)=>(E(...e),T),d.current,T}var Aa=e=>{typeof H.startTransition==`function`?H.startTransition(e):setTimeout(e,0)},ja=()=>void 0,Ma=(0,H.createContext)(void 0),Na=(0,H.forwardRef)(({action:e=``,method:t=`get`,headers:n={},queryStringArrayFormat:r=`brackets`,errorBag:i=null,showProgress:a=!0,transform:o=e=>e,optimistic:s,options:c={},onStart:l=ja,onProgress:u=ja,onFinish:d=ja,onBefore:f=ja,onCancel:p=ja,onSuccess:m=ja,onError:h=ja,onCancelToken:g=ja,onSubmitComplete:_=ja,disableWhileProcessing:v=!1,resetOnError:y=!1,resetOnSuccess:b=!1,setDefaultsOnSuccess:x=!1,invalidateCacheTags:S=[],validateFiles:C=!1,validationTimeout:w=1500,withAllErrors:T=null,component:E=null,instant:ee=!1,children:D,...O},k)=>{let te=()=>{let[e,t]=L();return o(t)},A=ka({}).withPrecognition(()=>M,()=>L()[0]).setValidationTimeout(w);C&&A.validateFiles(),(T??Ut.get(`form.withAllErrors`))&&A.withAllErrors(),A.transform(te);let j=(0,H.useRef)(void 0),M=(0,H.useMemo)(()=>Qn(e)?e.method:t.toLowerCase(),[e,t]),N=(0,H.useMemo)(()=>E||(ee&&Qn(e)?$n(e):null),[E,ee,e]),[P,ne]=(0,H.useState)(!1),re=(0,H.useRef)(new FormData),F=e=>new FormData(j.current,e),I=e=>Hr(F(e)),L=t=>qn(M,Qn(e)?e.url:e,I(t),r),ie=e=>{e.type===`reset`&&e.detail?.[Wi]&&e.preventDefault(),Aa(()=>ne(e.type===`reset`?!1:!xe(I(),Hr(re.current))))},ae=(...e)=>(A.clearErrors(...e),A);(0,H.useEffect)(()=>{re.current=F(),A.setDefaults(I());let e=[`input`,`change`,`reset`];return e.forEach(e=>j.current.addEventListener(e,ie)),()=>{e.forEach(e=>j.current?.removeEventListener(e,ie))}},[]),(0,H.useEffect)(()=>{A.setValidationTimeout(w)},[w]),(0,H.useEffect)(()=>{C?A.validateFiles():A.withoutFileValidation()},[C]);let oe=(...e)=>{j.current&&Xi(j.current,re.current,e),A.reset(...e)},R=(...e)=>{ae(...e),oe(...e)},se=e=>{e&&(e===!0?oe():e.length>0&&oe(...e))},ce=e=>{let[t,v]=L(e);if(e?.getAttribute(`formtarget`)===`_blank`&&M===`get`){window.open(t,`_blank`);return}let C={headers:n,queryStringArrayFormat:r,errorBag:i,showProgress:a,invalidateCacheTags:S,component:N,optimistic:s?e=>s(e,v):void 0,onCancelToken:g,onBefore:f,onStart:l,onProgress:u,onFinish:d,onCancel:p,onSuccess:(...e)=>{m(...e),_({reset:oe,defaults:le}),se(b),x===!0&&le()},onError(...e){h(...e),se(y)},...c};A.transform(()=>o(v)),A.submit(M,t,C),A.transform(te)},le=()=>{re.current=F(),ne(!1)},ue={errors:A.errors,hasErrors:A.hasErrors,processing:A.processing,progress:A.progress,wasSuccessful:A.wasSuccessful,recentlySuccessful:A.recentlySuccessful,isDirty:P,clearErrors:ae,resetAndClearErrors:R,setError:A.setError,reset:oe,submit:ce,defaults:le,getData:I,getFormData:F,validator:()=>A.validator(),validating:A.validating,valid:A.valid,invalid:A.invalid,validate:(e,t)=>A.validate(...Ir.mergeHeadersForValidation(e,t,n)),touch:A.touch,touched:A.touched};(0,H.useImperativeHandle)(k,()=>ue,[A,P,ce]);let de=(0,H.createElement)(`form`,{...O,ref:j,action:Qn(e)?e.url:e,method:M,onSubmit:e=>{e.preventDefault(),ce(e.nativeEvent.submitter)},inert:v&&A.processing},typeof D==`function`?D(ue):D);return(0,H.createElement)(Ma.Provider,{value:ue},de)});Na.displayName=`InertiaForm`;var Pa=Na,Fa=function({children:e,title:t}){let n=(0,H.use)(ua),r=(0,H.useMemo)(()=>n.createProvider(),[n]),i=typeof window>`u`;(0,H.useEffect)(()=>(r.reconnect(),r.update(d(e)),()=>{r.disconnect()}),[r,e,t]);function a(e){return typeof e.type==`string`&&[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`].indexOf(e.type)>-1}function o(e){let t=Object.keys(e.props).reduce((t,n)=>{if([`head-key`,`children`,`dangerouslySetInnerHTML`].includes(n))return t;let r=String(e.props[n]);return r===``?t+` ${n}`:t+` ${n}="${Qe(r)}"`},``);return`<${String(e.type)}${t}>`}function s(e){let{children:t}=e.props;return typeof t==`string`?t:Array.isArray(t)?t.reduce((e,t)=>e+c(t),``):``}function c(e){let t=o(e);return e.props.children&&(t+=s(e)),e.props.dangerouslySetInnerHTML&&(t+=e.props.dangerouslySetInnerHTML.__html),a(e)||(t+=``),t}function l(e){return H.cloneElement(e,{"data-inertia":e.props[`head-key`]===void 0?``:e.props[`head-key`]})}function u(e){return c(l(e))}function d(e){let n=H.Children.toArray(e).filter(e=>e).map(e=>u(e));return t&&!n.find(e=>e.startsWith(`${Qe(t)}`),n}return i&&r.update(d(e)),null},Ia=(e,t)=>e?e&&typeof e==`object`&&`current`in e?e.current:typeof e==`string`?document.querySelector(e):t:t,La=(e,t,n=null)=>e?typeof e==`function`?e(t):e:n,Ra=(0,H.forwardRef)(({data:e,buffer:t=0,as:n=`div`,manual:r=!1,manualAfter:i=0,preserveUrl:a=!1,reverse:o=!1,autoScroll:s,children:c,startElement:l,endElement:u,itemsElement:d,previous:f,next:p,loading:m,params:h={},onlyNext:g=!1,onlyPrevious:_=!1,...v},y)=>{let[b,x]=(0,H.useState)(null),S=(0,H.useCallback)(e=>x(e),[]),[C,w]=(0,H.useState)(null),T=(0,H.useCallback)(e=>w(e),[]),[E,ee]=(0,H.useState)(null),D=(0,H.useCallback)(e=>ee(e),[]),O=Ta().scrollProps?.[e],[k,te]=(0,H.useState)(!1),[A,j]=(0,H.useState)(!1),[M,N]=(0,H.useState)(0),[P,ne]=(0,H.useState)(!!O?.previousPage),[re,F]=(0,H.useState)(!!O?.nextPage),[I,L]=(0,H.useState)(null),[ie,ae]=(0,H.useState)(null),[oe,R]=(0,H.useState)(null);(0,H.useEffect)(()=>{L(l?Ia(l,b):b)},[l,b]),(0,H.useEffect)(()=>{ae(u?Ia(u,C):C)},[u,C]),(0,H.useEffect)(()=>{R(d?Ia(d,E):E)},[d,E]);let se=(0,H.useMemo)(()=>wn(oe),[oe]),ce=(0,H.useRef)({buffer:t,onlyNext:g,onlyPrevious:_,reverse:o,preserveUrl:a,params:h});ce.current={buffer:t,onlyNext:g,onlyPrevious:_,reverse:o,preserveUrl:a,params:h};let[le,ue]=(0,H.useState)(null),de=(0,H.useMemo)(()=>le?.dataManager,[le]),fe=(0,H.useMemo)(()=>le?.elementManager,[le]),pe=(0,H.useCallback)(()=>{se?se.scrollTo({top:se.scrollHeight,behavior:`instant`}):window.scrollTo({top:document.body.scrollHeight,behavior:`instant`})},[se]);(0,H.useEffect)(()=>{if(!oe)return;function t(){N(n.dataManager.getRequestCount()),ne(n.dataManager.hasPrevious()),F(n.dataManager.hasNext())}let n=ii({getPropName:()=>e,inReverseMode:()=>ce.current.reverse,shouldFetchNext:()=>!ce.current.onlyPrevious,shouldFetchPrevious:()=>!ce.current.onlyNext,shouldPreserveUrl:()=>ce.current.preserveUrl,getReloadOptions:()=>ce.current.params,getTriggerMargin:()=>ce.current.buffer,getStartElement:()=>I,getEndElement:()=>ie,getItemsElement:()=>oe,getScrollableParent:()=>se,onBeforePreviousRequest:()=>te(!0),onBeforeNextRequest:()=>j(!0),onCompletePreviousRequest:()=>{te(!1),t()},onCompleteNextRequest:()=>{j(!1),t()},onDataReset:t});ue(n);let{dataManager:r,elementManager:i}=n;return t(),i.setupObservers(),i.processServerLoadedElements(r.getLastLoadedPage()),he&&i.enableTriggers(),()=>{n.flush(),ue(null)}},[e,oe,I,ie,se]);let me=(0,H.useMemo)(()=>r||i>0&&M>=i,[r,i,M]),he=(0,H.useMemo)(()=>!me,[me]);(0,H.useEffect)(()=>{he?fe?.enableTriggers():fe?.disableTriggers()},[he,g,_,I,ie]),(0,H.useEffect)(()=>{(s===void 0?o:s)&&pe()},[se]),(0,H.useImperativeHandle)(y,()=>({fetchNext:de?.fetchNext||(()=>{}),fetchPrevious:de?.fetchPrevious||(()=>{}),hasPrevious:de?.hasPrevious||(()=>!1),hasNext:de?.hasNext||(()=>!1)}),[de]);let ge=he&&!g,_e=he&&!_,ve={loadingPrevious:k,loadingNext:A,hasPrevious:P,hasNext:re},ye={loading:k,fetch:de?.fetchPrevious??(()=>{}),autoMode:ge,manualMode:!ge,hasMore:P,...ve},be={loading:A,fetch:de?.fetchNext??(()=>{}),autoMode:_e,manualMode:!_e,hasMore:re,...ve},xe={loading:k||A,loadingPrevious:k,loadingNext:A},Se=[];return l||Se.push((0,H.createElement)(`div`,{ref:S},La(f,ye,k?La(m,ye):null))),Se.push((0,H.createElement)(n,{...v,ref:D},typeof c==`function`?c(xe):c)),u||Se.push((0,H.createElement)(`div`,{ref:T},La(p,be,A?La(m,be):null))),(0,H.createElement)(H.Fragment,{},...o?[...Se].reverse():Se)});Ra.displayName=`InertiaInfiniteScroll`;var za=Ra,Ba=()=>void 0,Va=(0,H.forwardRef)(({children:e,as:t=`a`,data:n={},href:r=``,method:i=`get`,preserveScroll:a=!1,preserveState:o=null,preserveUrl:s=!1,replace:c=!1,only:l=[],except:u=[],headers:d={},queryStringArrayFormat:f=`brackets`,async:p=!1,onClick:m=Ba,onCancelToken:h=Ba,onBefore:g=Ba,onStart:_=Ba,onProgress:v=Ba,onFinish:y=Ba,onCancel:b=Ba,onSuccess:x=Ba,onError:S=Ba,onPrefetching:C=Ba,onPrefetched:w=Ba,prefetch:T=!1,cacheFor:E=0,cacheTags:ee=[],viewTransition:D=!1,component:O=null,instant:k=!1,pageProps:te=null,...A},j)=>{let[M,N]=(0,H.useState)(0),P=(0,H.useRef)(void 0),ne=(0,H.useMemo)(()=>Qn(r)?r.method:i.toLowerCase(),[r,i]),re=(0,H.useMemo)(()=>O||(k&&Qn(r)?$n(r):null),[O,k,r]),F=(0,H.useMemo)(()=>typeof t!=`string`||t.toLowerCase()!==`a`?t:ne===`get`?t.toLowerCase():`button`,[t,ne]),I=(0,H.useMemo)(()=>qn(ne,Qn(r)?r.url:r,n,f),[r,ne,n,f]),L=(0,H.useMemo)(()=>I[0],[I]),ie=(0,H.useMemo)(()=>I[1],[I]),ae=(0,H.useMemo)(()=>({data:ie,method:ne,preserveScroll:a,preserveState:o??ne!==`get`,preserveUrl:s,replace:c,only:l,except:u,headers:d,async:p,component:re,pageProps:te}),[ie,ne,a,o,s,c,l,u,d,p,re,te]),oe=(0,H.useMemo)(()=>({...ae,viewTransition:D,onCancelToken:h,onBefore:g,onStart(e){N(e=>e+1),_(e)},onProgress:v,onFinish(e){N(e=>e-1),y(e)},onCancel:b,onSuccess:x,onError:S}),[ae,D,h,g,_,v,y,b,x,S]),R=(0,H.useMemo)(()=>T===!0?[`hover`]:T===!1?[]:Array.isArray(T)?T:[T],Array.isArray(T)?T:[T]),se=(0,H.useMemo)(()=>E===0?R.length===1&&R[0]===`click`?0:Ga.get(`prefetch.cacheFor`):E,[E,R]),ce=(0,H.useMemo)(()=>()=>{Qi.prefetch(L,{...ae,onPrefetching:C,onPrefetched:w},{cacheFor:se,cacheTags:ee})},[L,ae,C,w,se,ee]);(0,H.useEffect)(()=>()=>{clearTimeout(P.current)},[]),(0,H.useEffect)(()=>{R.includes(`mount`)&&setTimeout(()=>ce())},R);let le={onClick:e=>{m(e),gi(e)&&(e.preventDefault(),Qi.visit(L,oe))}},ue={onMouseEnter:()=>{P.current=window.setTimeout(()=>{ce()},Ga.get(`prefetch.hoverDelay`))},onMouseLeave:()=>{clearTimeout(P.current)},onClick:le.onClick},de={onMouseDown:e=>{gi(e)&&(e.preventDefault(),ce())},onKeyDown:e=>{_i(e)&&(e.preventDefault(),ce())},onMouseUp:e=>{gi(e)&&(e.preventDefault(),Qi.visit(L,oe))},onKeyUp:e=>{_i(e)&&(e.preventDefault(),Qi.visit(L,oe))},onClick:e=>{m(e),gi(e)&&e.preventDefault()}},fe=(0,H.useMemo)(()=>F===`button`?{type:`button`}:F===`a`||typeof F!=`string`?{href:L}:{},[F,L]);return(0,H.createElement)(F,{...A,...fe,ref:j,...R.includes(`hover`)?ue:R.includes(`click`)?de:le,"data-loading":M>0?``:void 0},e)});Va.displayName=`InertiaLink`;var Ha=Va;function Ua(...e){let{rememberKey:t,data:n,precognitionEndpoint:r}=Ir.parseUseFormArguments(...e),i=pe(typeof n==`function`?n():n),a=(0,H.useRef)(null),o=(0,H.useRef)([]),s=(0,H.useRef)(null),[c,l]=(0,H.useState)(null),{form:u,setDefaultsState:d,transformRef:f,dataRef:p,precognitionEndpointRef:m,isMounted:h,setProcessing:g,setProgress:_,markAsSuccessful:v,clearErrors:y,setError:b,defaultsCalledInOnSuccessRef:x,resetBeforeSubmit:S,finishProcessing:C,withAllErrors:w}=Da({data:n,precognitionEndpoint:r,useDataState:t?()=>Oa(i,`${t}:data`,o):void 0,useErrorsState:t?()=>Oa({},`${t}:errors`):void 0}),T=(0,H.useCallback)(async(e,t,n)=>{if(n.onBefore?.()===!1)return Promise.reject(Error(`Request cancelled by onBefore`));x.current=!1,h.current&&S(),a.current=new AbortController,n.onCancelToken?.({cancel:()=>a.current?.abort()}),n.optimistic=n.optimistic??s.current??void 0,s.current=null;let r;if(n.optimistic){r=pe(p.current);let e=n.optimistic(pe(r));u.setData(t=>({...t,...e}))}h.current&&g(!0),n.onStart?.();let i=f.current(p.current),o=Mn(i),c=t,m,T;if(e===`get`){let[n]=qn(e,t,i);c=n}else o?m=Pn(i):(m=JSON.stringify(i),T=`application/json`);try{let t=await wr.getClient().request({method:e,url:c,data:m,headers:{Accept:`application/json`,...T?{"Content-Type":T}:{},...n.headers},signal:a.current.signal,onUploadProgress:e=>{h.current&&_(e),n.onProgress?.(e)}}),r=t.data?JSON.parse(t.data):null;if(t.status>=200&&t.status<300)return h.current&&(v(),l(r)),n.onSuccess?.(r,t),h.current&&!x.current&&u.setData(e=>(d(pe(e)),e)),r;throw new mr(`Request failed with status ${t.status}`,t)}catch(e){if(r&&h.current&&u.setData(r),e instanceof mr){if(e.response.status===422){let t=JSON.parse(e.response.data).errors||{},r=w.enabled()?t:Ft(t);h.current&&(y(),b(r)),n.onError?.(r)}else n.onHttpException?.(e.response);throw e}throw e instanceof hr||e instanceof Error&&e.name===`AbortError`?(n.onCancel?.(),new hr(`Request was cancelled`,t)):(n.onNetworkError?.(e instanceof Error?e:Error(`Unknown error`)),e)}finally{h.current&&C(),a.current=null,n.onFinish?.()}},[y,b]),E=(0,H.useCallback)(()=>{a.current&&a.current.abort()},[]),ee=(0,H.useCallback)((...e)=>{let t=Ir.parseSubmitArguments(e,m.current);return T(t.method,t.url,t.options)},[T]),D=(0,H.useMemo)(()=>({get:async(e,t={})=>T(`get`,e,t),post:async(e,t={})=>T(`post`,e,t),put:async(e,t={})=>T(`put`,e,t),patch:async(e,t={})=>T(`patch`,e,t),delete:async(e,t={})=>T(`delete`,e,t)}),[T]);Object.assign(u,{response:c,submit:ee,...D,cancel:E,dontRemember:(...e)=>(o.current=e,O),optimistic:e=>(s.current=e,O),withAllErrors:()=>(w.enable(),O)});let O=u,k=u.withPrecognition;return O.withPrecognition=(...e)=>(k(...e),O),m.current,O}var Wa=({children:e,data:t,params:n,buffer:r,as:i,always:a,fallback:o})=>{a??=!1,i??=`div`,o??=null;let s=Ta().props,c=(0,H.useMemo)(()=>t?Array.isArray(t)?t:[t]:[],[t]),[l,u]=(0,H.useState)(()=>c.length>0&&c.every(e=>Ae(s,e)!==void 0)),[d,f]=(0,H.useState)(!1),p=(0,H.useRef)(!1),m=(0,H.useRef)(null),h=(0,H.useRef)(null),g=(0,H.useRef)(()=>({}));(0,H.useEffect)(()=>{c.length>0&&u(c.every(e=>Ae(s,e)!==void 0))},[s,c]),g.current=(0,H.useCallback)(()=>{let e={preserveErrors:!0,...n};return t&&(e.only=Array.isArray(t)?t:[t]),e},[n,t]);let _=()=>{h.current?.disconnect(),h.current=new IntersectionObserver(e=>{if(!e[0].isIntersecting||p.current||!a&&l)return;p.current=!0,f(!0);let t=g.current();Qi.reload({...t,onStart:e=>{p.current=!0,f(!0),t.onStart?.(e)},onFinish:e=>{u(!0),p.current=!1,f(!1),t.onFinish?.(e),a||h.current?.disconnect()}})},{rootMargin:`${r||0}px`}),h.current.observe(m.current)};(0,H.useEffect)(()=>{if(m.current&&!(l&&!a))return _(),()=>{h.current?.disconnect()}},[a,l,r]);let v=()=>typeof e==`function`?e({fetching:d}):e;return a||!l?(0,H.createElement)(i,{props:null,ref:m},l?v():typeof o==`function`?o():o):l?v():null};Wa.displayName=`InertiaWhenVisible`;var Ga=Ut.extend(),Ka=s((e=>{var t=ea().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return t.H.useMemoCache(e)}})),qa=s(((e,t)=>{t.exports=Ka()})),U=qa();function Ja(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Ya=e=>{switch(e){case`success`:return Qa;case`info`:return eo;case`warning`:return $a;case`error`:return to;default:return null}},Xa=Array(12).fill(0),Za=({visible:e,className:t})=>H.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},H.createElement(`div`,{className:`sonner-spinner`},Xa.map((e,t)=>H.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Qa=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),$a=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),eo=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),to=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),no=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},H.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),H.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ro=()=>{let[e,t]=H.useState(document.hidden);return H.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},io=1,ao=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:io++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],H.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(so(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||io++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},oo=(e,t)=>{let n=t?.id||io++;return ao.addToast({title:e,...t,id:n}),n},so=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,co=Object.assign(oo,{success:ao.success,info:ao.info,warning:ao.warning,error:ao.error,custom:ao.custom,message:ao.message,promise:ao.promise,dismiss:ao.dismiss,loading:ao.loading},{getHistory:()=>ao.toasts,getToasts:()=>ao.getActiveToasts()});Ja(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function W(e){return e.label!==void 0}var lo=3,uo=`24px`,fo=`16px`,po=4e3,mo=356,ho=14,go=45,_o=200;function vo(...e){return e.filter(Boolean).join(` `)}function yo(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var bo=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,ee]=H.useState(null),[D,O]=H.useState(null),[k,te]=H.useState(!1),[A,j]=H.useState(!1),[M,N]=H.useState(!1),[P,ne]=H.useState(!1),[re,F]=H.useState(!1),[I,L]=H.useState(0),[ie,ae]=H.useState(0),oe=H.useRef(n.duration||y||po),R=H.useRef(null),se=H.useRef(null),ce=c===0,le=c+1<=o,ue=n.type,de=n.dismissible!==!1,fe=n.className||``,pe=n.descriptionClassName||``,me=H.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),he=H.useMemo(()=>n.closeButton??p,[n.closeButton,p]),ge=H.useMemo(()=>n.duration||y||po,[n.duration,y]),_e=H.useRef(0),ve=H.useRef(0),ye=H.useRef(0),be=H.useRef(null),[xe,Se]=b.split(`-`),Ce=H.useMemo(()=>s.reduce((e,t,n)=>n>=me?e:e+t.height,0),[s,me]),we=ro(),Te=n.invert||t,Ee=ue===`loading`;ve.current=H.useMemo(()=>me*x+Ce,[me,Ce]),H.useEffect(()=>{oe.current=ge},[ge]),H.useEffect(()=>{te(!0)},[]),H.useEffect(()=>{let e=se.current;if(e){let t=e.getBoundingClientRect().height;return ae(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),H.useLayoutEffect(()=>{if(!k)return;let e=se.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,ae(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[k,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let De=H.useCallback(()=>{j(!0),L(ve.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},_o)},[n,d,a,ve]);H.useEffect(()=>{if(n.promise&&ue===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||we?(()=>{if(ye.current<_e.current){let e=new Date().getTime()-_e.current;oe.current-=e}ye.current=new Date().getTime()})():oe.current!==1/0&&(_e.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),De()},oe.current)),()=>clearTimeout(e)},[u,i,n,ue,we,De]),H.useEffect(()=>{n.delete&&(De(),n.onDismiss==null||n.onDismiss.call(n,n))},[De,n.delete]);function Oe(){return w?.loading?H.createElement(`div`,{className:vo(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":ue===`loading`},w.loading):H.createElement(Za,{className:vo(C?.loader,n?.classNames?.loader),visible:ue===`loading`})}let ke=n.icon||w?.[ue]||Ya(ue);return H.createElement(`li`,{tabIndex:0,ref:se,className:vo(_,fe,C?.toast,n?.classNames?.toast,C?.default,C?.[ue],n?.classNames?.[ue]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":k,"data-promise":!!n.promise,"data-swiped":re,"data-removed":A,"data-visible":le,"data-y-position":xe,"data-x-position":Se,"data-index":c,"data-front":ce,"data-swiping":M,"data-dismissible":de,"data-type":ue,"data-invert":Te,"data-swipe-out":P,"data-swipe-direction":D,"data-expanded":!!(u||S&&k),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${A?I:ve.current}px`,"--initial-height":S?`auto`:`${ie}px`,...m,...n.style},onDragEnd:()=>{N(!1),ee(null),be.current=null},onPointerDown:e=>{e.button!==2&&(Ee||!de||(R.current=new Date,L(ve.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(N(!0),be.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(P||!de)return;be.current=null;let e=Number(se.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(se.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-R.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=go||a>.11){L(ve.current),n.onDismiss==null||n.onDismiss.call(n,n),O(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),De(),ne(!0);return}else{var o,s;(o=se.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=se.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}F(!1),N(!1),ee(null)},onPointerMove:t=>{var n,r;if(!be.current||!de||window.getSelection()?.toString().length>0)return;let i=t.clientY-be.current.y,a=t.clientX-be.current.x,o=e.swipeDirections??yo(b);!E&&(Math.abs(a)>1||Math.abs(i)>1)&&ee(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&F(!0),(n=se.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=se.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},he&&!n.jsx&&ue!==`loading`?H.createElement(`button`,{"aria-label":T,"data-disabled":Ee,"data-close-button":!0,onClick:Ee||!de?()=>{}:()=>{De(),n.onDismiss==null||n.onDismiss.call(n,n)},className:vo(C?.closeButton,n?.classNames?.closeButton)},w?.close??no):null,(ue||n.icon||n.promise)&&n.icon!==null&&(w?.[ue]!==null||n.icon)?H.createElement(`div`,{"data-icon":``,className:vo(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Oe():null,n.type===`loading`?null:ke):null,H.createElement(`div`,{"data-content":``,className:vo(C?.content,n?.classNames?.content)},H.createElement(`div`,{"data-title":``,className:vo(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?H.createElement(`div`,{"data-description":``,className:vo(v,pe,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),H.isValidElement(n.cancel)?n.cancel:n.cancel&&W(n.cancel)?H.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{W(n.cancel)&&de&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),De())},className:vo(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,H.isValidElement(n.action)?n.action:n.action&&W(n.action)?H.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{W(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&De())},className:vo(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function xo(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function So(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?fo:uo;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Co=H.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=lo,toastOptions:g,dir:_=xo(),gap:v=ho,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=H.useState([]),C=H.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=H.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,E]=H.useState([]),[ee,D]=H.useState(!1),[O,k]=H.useState(!1),[te,A]=H.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),j=H.useRef(null),M=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),N=H.useRef(null),P=H.useRef(!1),ne=H.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||ao.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return H.useEffect(()=>ao.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{sa.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),H.useEffect(()=>{if(d!==`system`){A(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?A(`dark`):A(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{A(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{A(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),H.useEffect(()=>{x.length<=1&&D(!1)},[x]),H.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;D(!0),(t=j.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===j.current||j.current?.contains(document.activeElement))&&D(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),H.useEffect(()=>{if(j.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,P.current=!1)}},[j.current]),H.createElement(`section`,{ref:t,"aria-label":`${b} ${M}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?H.createElement(`ol`,{key:t,dir:_===`auto`?xo():_,tabIndex:-1,ref:j,className:c,"data-sonner-toaster":!0,"data-sonner-theme":te,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${mo}px`,"--gap":`${v}px`,...m,...So(l,u)},onBlur:e=>{P.current&&!e.currentTarget.contains(e.relatedTarget)&&(P.current=!1,N.current&&=(N.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||P.current||(P.current=!0,N.current=e.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{O||D(!1)},onDragEnd:()=>D(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||k(!0)},onPointerUp:()=>k(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>H.createElement(bo,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:O,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ne,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:E,expandByDefault:o,gap:v,expanded:ee,swipeDirections:e.swipeDirections}))):null}))});function wo(){let e=(0,U.c)(1),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,H.useEffect)(To,t)}function To(){return Qi.on(`flash`,Eo)}function Eo(e){let t=e.detail?.flash?.toast;t&&co[t.type](t.message)}var Do=new Set,Oo=`system`,ko=()=>typeof window>`u`?!1:window.matchMedia(`(prefers-color-scheme: dark)`).matches,Ao=(e,t,n=365)=>{if(typeof document>`u`)return;let r=n*24*60*60;document.cookie=`${e}=${t};path=/;max-age=${r};SameSite=Lax`},jo=()=>typeof window>`u`?`system`:localStorage.getItem(`appearance`)||`system`,Mo=e=>e===`dark`||e===`system`&&ko(),No=e=>{if(typeof document>`u`)return;let t=Mo(e);document.documentElement.classList.toggle(`dark`,t),document.documentElement.style.colorScheme=t?`dark`:`light`},Po=e=>(Do.add(e),()=>Do.delete(e)),Fo=()=>Do.forEach(e=>e()),Io=()=>typeof window>`u`?null:window.matchMedia(`(prefers-color-scheme: dark)`),Lo=()=>No(Oo);function Ro(){typeof window>`u`||(localStorage.getItem(`appearance`)||(localStorage.setItem(`appearance`,`system`),Ao(`appearance`,`system`)),Oo=jo(),No(Oo),Io()?.addEventListener(`change`,Lo))}function zo(){let e=(0,U.c)(3),t=(0,H.useSyncExternalStore)(Po,Ho,Vo),n=Mo(t)?`dark`:`light`,r=Bo,i;return e[0]!==t||e[1]!==n?(i={appearance:t,resolvedAppearance:n,updateAppearance:r},e[0]=t,e[1]=n,e[2]=i):i=e[2],i}function Bo(e){Oo=e,localStorage.setItem(`appearance`,e),Ao(`appearance`,e),No(e),Fo()}function Vo(){return`system`}function Ho(){return Oo}var Uo=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Wo=s(((e,t)=>{t.exports=Uo()})),G=Wo();function Go(e){let t=(0,U.c)(6),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let{appearance:r}=zo();wo();let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i={"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`},t[2]=i):i=t[2];let a;return t[3]!==r||t[4]!==n?(a=(0,G.jsx)(Co,{theme:r,className:`toaster group`,position:`bottom-right`,style:i,...n}),t[3]=r,t[4]=n,t[5]=a):a=t[5],a}typeof window<`u`&&window.document&&window.document.createElement;function K(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Ko(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function qo(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ko(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Xo(i,...t)]}function Xo(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Zo(e){let t=Qo(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(es);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Qo(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=ns(n),i=ts(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $o=Symbol(`radix.slottable`);function es(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===$o}function ts(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ns(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rs=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Zo(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function is(e,t){e&&sa.flushSync(()=>e.dispatchEvent(t))}function as(e){let t=H.useRef(e);return H.useEffect(()=>{t.current=e}),H.useMemo(()=>(...e)=>t.current?.(...e),[])}function os(e,t=globalThis?.document){let n=as(e);H.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var ss=`DismissableLayer`,cs=`dismissableLayer.update`,ls=`dismissableLayer.pointerDownOutside`,us=`dismissableLayer.focusOutside`,ds,fs=H.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ps=H.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=H.useContext(fs),[u,d]=H.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=H.useState({}),m=Jo(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=gs(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=_s(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return os(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),H.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ds=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),vs(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ds)}},[u,f,n,l]),H.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),vs())},[u,l]),H.useEffect(()=>{let e=()=>p({});return document.addEventListener(cs,e),()=>document.removeEventListener(cs,e)},[]),(0,G.jsx)(rs.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:K(e.onFocusCapture,S.onFocusCapture),onBlurCapture:K(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,x.onPointerDownCapture)})});ps.displayName=ss;var ms=`DismissableLayerBranch`,hs=H.forwardRef((e,t)=>{let n=H.useContext(fs),r=H.useRef(null),i=Jo(t,r);return H.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,G.jsx)(rs.div,{...e,ref:i})});hs.displayName=ms;function gs(e,t=globalThis?.document){let n=as(e),r=H.useRef(!1),i=H.useRef(()=>{});return H.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){ys(ls,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _s(e,t=globalThis?.document){let n=as(e),r=H.useRef(!1);return H.useEffect(()=>{let e=e=>{e.target&&!r.current&&ys(us,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vs(){let e=new CustomEvent(cs);document.dispatchEvent(e)}function ys(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?is(i,a):i.dispatchEvent(a)}var bs=globalThis?.document?H.useLayoutEffect:()=>{},xs=H.useId||(()=>void 0),Ss=0;function Cs(e){let[t,n]=H.useState(xs());return bs(()=>{e||n(e=>e??String(Ss++))},[e]),e||(t?`radix-${t}`:``)}var ws=[`top`,`right`,`bottom`,`left`],Ts=Math.min,Es=Math.max,Ds=Math.round,Os=Math.floor,ks=e=>({x:e,y:e}),As={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function js(e,t,n){return Es(e,Ts(t,n))}function Ms(e,t){return typeof e==`function`?e(t):e}function Ns(e){return e.split(`-`)[0]}function Ps(e){return e.split(`-`)[1]}function Fs(e){return e===`x`?`y`:`x`}function Is(e){return e===`y`?`height`:`width`}function Ls(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Rs(e){return Fs(Ls(e))}function zs(e,t,n){n===void 0&&(n=!1);let r=Ps(e),i=Rs(e),a=Is(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Js(o)),[o,Js(o)]}function Bs(e){let t=Js(e);return[Vs(e),t,Vs(t)]}function Vs(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Hs=[`left`,`right`],Us=[`right`,`left`],Ws=[`top`,`bottom`],Gs=[`bottom`,`top`];function Ks(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Us:Hs:t?Hs:Us;case`left`:case`right`:return t?Ws:Gs;default:return[]}}function qs(e,t,n,r){let i=Ps(e),a=Ks(Ns(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Vs)))),a}function Js(e){let t=Ns(e);return As[t]+e.slice(t.length)}function Ys(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xs(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ys(e)}function Zs(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 Qs(e,t,n){let{reference:r,floating:i}=e,a=Ls(t),o=Rs(t),s=Is(o),c=Ns(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}}switch(Ps(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function $s(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}=Ms(t,e),p=Xs(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Zs(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=Zs(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 ec=50,tc=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:$s},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Qs(l,r,c),f=r,p=0,m={};for(let n=0;n({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}=Ms(e,t)||{};if(l==null)return{};let d=Xs(u),f={x:n,y:r},p=Rs(i),m=Is(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=Ts(d[_],T),ee=Ts(d[v],T),D=E,O=C-h[m]-ee,k=C/2-h[m]/2+w,te=js(D,k,O),A=!c.arrow&&Ps(i)!=null&&k!==te&&a.reference[m]/2-(ke<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Ls(t))||T.every(e=>Ls(e.placement)===_?e.overflows[0]>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=Ls(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;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ic(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ac(e){return ws.some(t=>e[t]>=0)}var oc=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ms(e,t);switch(i){case`referenceHidden`:{let e=ic(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ac(e)}}}case`escaped`:{let e=ic(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ac(e)}}}default:return{}}}}},sc=new Set([`left`,`top`]);async function cc(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ns(n),s=Ps(n),c=Ls(n)===`y`,l=sc.has(o)?-1:1,u=a&&c?-1:1,d=Ms(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 lc=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 cc(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}}}}},uc=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}=Ms(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ls(Ns(i)),p=Fs(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=js(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=js(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},dc=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}=Ms(e,t),u={x:n,y:r},d=Ls(i),f=Fs(d),p=u[f],m=u[d],h=Ms(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};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;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=sc.has(Ns(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);mr&&(m=r)}return{[f]:p,[d]:m}}}},fc=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ms(e,t),u=await o.detectOverflow(t,l),d=Ns(i),f=Ps(i),p=Ls(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ts(h-u[g],v),x=Ts(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Es(u.left,0),t=Es(u.right,0),n=Es(u.top,0),r=Es(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Es(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Es(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function pc(){return typeof window<`u`}function mc(e){return _c(e)?(e.nodeName||``).toLowerCase():`#document`}function hc(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gc(e){return((_c(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function _c(e){return pc()?e instanceof Node||e instanceof hc(e).Node:!1}function vc(e){return pc()?e instanceof Element||e instanceof hc(e).Element:!1}function yc(e){return pc()?e instanceof HTMLElement||e instanceof hc(e).HTMLElement:!1}function bc(e){return!pc()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof hc(e).ShadowRoot}function xc(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Mc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Sc(e){return/^(table|td|th)$/.test(mc(e))}function Cc(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var wc=/transform|translate|scale|rotate|perspective|filter/,Tc=/paint|layout|strict|content/,Ec=e=>!!e&&e!==`none`,Dc;function Oc(e){let t=vc(e)?Mc(e):e;return Ec(t.transform)||Ec(t.translate)||Ec(t.scale)||Ec(t.rotate)||Ec(t.perspective)||!Ac()&&(Ec(t.backdropFilter)||Ec(t.filter))||wc.test(t.willChange||``)||Tc.test(t.contain||``)}function kc(e){let t=Pc(e);for(;yc(t)&&!jc(t);){if(Oc(t))return t;if(Cc(t))return null;t=Pc(t)}return null}function Ac(){return Dc??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Dc}function jc(e){return/^(html|body|#document)$/.test(mc(e))}function Mc(e){return hc(e).getComputedStyle(e)}function Nc(e){return vc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pc(e){if(mc(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||bc(e)&&e.host||gc(e);return bc(t)?t.host:t}function Fc(e){let t=Pc(e);return jc(t)?e.ownerDocument?e.ownerDocument.body:e.body:yc(t)&&xc(t)?t:Fc(t)}function Ic(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Fc(e),i=r===e.ownerDocument?.body,a=hc(r);if(i){let e=Lc(a);return t.concat(a,a.visualViewport||[],xc(r)?r:[],e&&n?Ic(e):[])}else return t.concat(r,Ic(r,[],n))}function Lc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rc(e){let t=Mc(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=yc(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ds(n)!==a||Ds(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function zc(e){return vc(e)?e:e.contextElement}function Bc(e){let t=zc(e);if(!yc(t))return ks(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Rc(t),o=(a?Ds(n.width):n.width)/r,s=(a?Ds(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Vc=ks(0);function Hc(e){let t=hc(e);return!Ac()||!t.visualViewport?Vc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hc(e)?!1:t}function Wc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=zc(e),o=ks(1);t&&(r?vc(r)&&(o=Bc(r)):o=Bc(e));let s=Uc(a,n,r)?Hc(a):ks(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){let e=hc(a),t=r&&vc(r)?hc(r):r,n=e,i=Lc(n);for(;i&&r&&t!==n;){let e=Bc(i),t=i.getBoundingClientRect(),r=Mc(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=hc(i),i=Lc(n)}}return Zs({width:u,height:d,x:c,y:l})}function Gc(e,t){let n=Nc(e).scrollLeft;return t?t.left+n:Wc(gc(e)).left+n}function Kc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Gc(e,n),y:n.top+t.scrollTop}}function qc(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=gc(r),s=t?Cc(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ks(1),u=ks(0),d=yc(r);if((d||!d&&!a)&&((mc(r)!==`body`||xc(o))&&(c=Nc(r)),d)){let e=Wc(r);l=Bc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Kc(o,c):ks(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 Jc(e){return Array.from(e.getClientRects())}function Yc(e){let t=gc(e),n=Nc(e),r=e.ownerDocument.body,i=Es(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Es(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Gc(e),s=-n.scrollTop;return Mc(r).direction===`rtl`&&(o+=Es(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Xc=25;function Zc(e,t){let n=hc(e),r=gc(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ac();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Gc(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Xc&&(a-=o)}else l<=Xc&&(a+=l);return{width:a,height:o,x:s,y:c}}function Qc(e,t){let n=Wc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=yc(e)?Bc(e):ks(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function $c(e,t,n){let r;if(t===`viewport`)r=Zc(e,n);else if(t===`document`)r=Yc(gc(e));else if(vc(t))r=Qc(t,n);else{let n=Hc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Zs(r)}function el(e,t){let n=Pc(e);return n===t||!vc(n)||jc(n)?!1:Mc(n).position===`fixed`||el(n,t)}function tl(e,t){let n=t.get(e);if(n)return n;let r=Ic(e,[],!1).filter(e=>vc(e)&&mc(e)!==`body`),i=null,a=Mc(e).position===`fixed`,o=a?Pc(e):e;for(;vc(o)&&!jc(o);){let t=Mc(o),n=Oc(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||xc(o)&&!n&&el(e,o))?r=r.filter(e=>e!==o):i=t,o=Pc(o)}return t.set(e,r),r}function nl(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Cc(t)?[]:tl(t,this._c):[].concat(n),r],o=$c(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!dl(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function pl(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=zc(e),u=i||a?[...l?Ic(l):[],...t?Ic(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?fl(l,n):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?Wc(e):null;c&&g();function g(){let t=Wc(e);h&&!dl(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 ml=lc,hl=uc,gl=rc,_l=fc,vl=oc,yl=nc,bl=dc,xl=(e,t,n)=>{let r=new Map,i={platform:ul,...n},a={...i.platform,_c:r};return tc(e,t,{...i,platform:a})},Sl=typeof document<`u`?H.useLayoutEffect:function(){};function Cl(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(!Cl(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)&&!Cl(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function wl(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tl(e,t){let n=wl(e);return Math.round(t*n)/n}function El(e){let t=H.useRef(e);return Sl(()=>{t.current=e}),t}function Dl(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]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);Cl(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),T=c!=null,E=El(c),ee=El(i),D=El(l),O=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ee.current&&(e.platform=ee.current),xl(S.current,C.current,e).then(e=>{let t={...e,isPositioned:D.current!==!1};k.current&&!Cl(w.current,t)&&(w.current=t,sa.flushSync(()=>{d(t)}))})},[f,t,n,ee,D]);Sl(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=H.useRef(!1);Sl(()=>(k.current=!0,()=>{k.current=!1}),[]),Sl(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let te=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),A=H.useMemo(()=>({reference:b,floating:x}),[b,x]),j=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=Tl(A.floating,u.x),r=Tl(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...wl(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:O,refs:te,elements:A,floatingStyles:j}),[u,O,te,A,j])}var Ol=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?{}:yl({element:r.current,padding:i}).fn(n):r?yl({element:r,padding:i}).fn(n):{}}}},kl=(e,t)=>{let n=ml(e);return{name:n.name,fn:n.fn,options:[e,t]}},Al=(e,t)=>{let n=hl(e);return{name:n.name,fn:n.fn,options:[e,t]}},jl=(e,t)=>({fn:bl(e).fn,options:[e,t]}),Ml=(e,t)=>{let n=gl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nl=(e,t)=>{let n=_l(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pl=(e,t)=>{let n=vl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fl=(e,t)=>{let n=Ol(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Il(e){let t=Ll(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(zl);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ll(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=J(n),i=q(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rl=Symbol(`radix.slottable`);function zl(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Rl}function q(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function J(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bl=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Il(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Vl=`Arrow`,Hl=H.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,G.jsx)(Bl.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,G.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Hl.displayName=Vl;var Ul=Hl;function Wl(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Gl(i,...t)]}function Gl(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Kl(e){let t=ql(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(Yl);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ql(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=Zl(n),i=Xl(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jl=Symbol(`radix.slottable`);function Yl(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Jl}function Xl(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Zl(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ql=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Kl(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function $l(e){let[t,n]=H.useState(void 0);return bs(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var eu=`Popper`,[tu,nu]=Wl(eu),[ru,iu]=tu(eu),au=e=>{let{__scopePopper:t,children:n}=e,[r,i]=H.useState(null);return(0,G.jsx)(ru,{scope:t,anchor:r,onAnchorChange:i,children:n})};au.displayName=eu;var ou=`PopperAnchor`,su=H.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=iu(ou,n),o=H.useRef(null),s=Jo(t,o),c=H.useRef(null);return H.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,G.jsx)(Ql.div,{...i,ref:s})});su.displayName=ou;var cu=`PopperContent`,[lu,uu]=tu(cu),du=H.forwardRef((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=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=iu(cu,n),[_,v]=H.useState(null),y=Jo(t,e=>v(e)),[b,x]=H.useState(null),S=$l(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},ee=Array.isArray(l)?l:[l],D=ee.length>0,O={padding:E,boundary:ee.filter(hu),altBoundary:D},{refs:k,floatingStyles:te,placement:A,isPositioned:j,middlewareData:M}=Dl({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>pl(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[kl({mainAxis:i+w,alignmentAxis:o}),c&&Al({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?jl():void 0,...O}),c&&Ml({...O}),Nl({...O,apply:({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`)}}),b&&Fl({element:b,padding:s}),gu({arrowWidth:C,arrowHeight:w}),f&&Pl({strategy:`referenceHidden`,...O})]}),[N,P]=_u(A),ne=as(m);bs(()=>{j&&ne?.()},[j,ne]);let re=M.arrow?.x,F=M.arrow?.y,I=M.arrow?.centerOffset!==0,[L,ie]=H.useState();return bs(()=>{_&&ie(window.getComputedStyle(_).zIndex)},[_]),(0,G.jsx)(`div`,{ref:k.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:j?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:L,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(` `),...M.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,G.jsx)(lu,{scope:n,placedSide:N,onArrowChange:x,arrowX:re,arrowY:F,shouldHideArrow:I,children:(0,G.jsx)(Ql.div,{"data-side":N,"data-align":P,...h,ref:y,style:{...h.style,animation:j?void 0:`none`}})})})});du.displayName=cu;var fu=`PopperArrow`,pu={top:`bottom`,right:`left`,bottom:`top`,left:`right`},mu=H.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=uu(fu,n),a=pu[i.placedSide];return(0,G.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,G.jsx)(Ul,{...r,ref:t,style:{...r.style,display:`block`}})})});mu.displayName=fu;function hu(e){return e!==null}var gu=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]=_u(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}}}});function _u(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var vu=au,yu=su,bu=du,xu=mu;function Su(e){let t=Cu(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(Tu);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Cu(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=Du(n),i=Eu(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wu=Symbol(`radix.slottable`);function Tu(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===wu}function Eu(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Du(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ou=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Su(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ku=`Portal`,Au=H.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=H.useState(!1);bs(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?sa.createPortal((0,G.jsx)(Ou.div,{...r,ref:t}),o):null});Au.displayName=ku;function ju(e,t){return H.useReducer((e,n)=>t[e][n]??e,e)}var Mu=e=>{let{present:t,children:n}=e,r=Nu(t),i=typeof n==`function`?n({present:r.isPresent}):H.Children.only(n),a=Jo(r.ref,Fu(i));return typeof n==`function`||r.isPresent?H.cloneElement(i,{ref:a}):null};Mu.displayName=`Presence`;function Nu(e){let[t,n]=H.useState(),r=H.useRef(null),i=H.useRef(e),a=H.useRef(`none`),[o,s]=ju(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return H.useEffect(()=>{let e=Pu(r.current);a.current=o===`mounted`?e:`none`},[o]),bs(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Pu(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),bs(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Pu(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Pu(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:H.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Pu(e){return e?.animationName||`none`}function Fu(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Iu(e){let t=Lu(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(Bu);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Lu(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=Hu(n),i=Vu(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ru=Symbol(`radix.slottable`);function zu(e){let t=({children:e})=>(0,G.jsx)(G.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Ru,t}function Bu(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ru}function Vu(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Hu(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Uu=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Iu(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Wu=H.useInsertionEffect||bs;function Gu({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Ku({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=H.useRef(e!==void 0);H.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,H.useCallback(t=>{if(s){let n=qu(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Ku({defaultProp:e,onChange:t}){let[n,r]=H.useState(e),i=H.useRef(n),a=H.useRef(t);return Wu(()=>{a.current=t},[t]),H.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function qu(e){return typeof e==`function`}function Ju(e){let t=Yu(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(Zu);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Yu(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=$u(n),i=Qu(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xu=Symbol(`radix.slottable`);function Zu(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Xu}function Qu(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function $u(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ed=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Ju(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),td=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`}),nd=`VisuallyHidden`,rd=H.forwardRef((e,t)=>(0,G.jsx)(ed.span,{...e,ref:t,style:{...td,...e.style}}));rd.displayName=nd;var id=rd,[ad,od]=Yo(`Tooltip`,[nu]),sd=nu(),cd=`TooltipProvider`,ld=700,ud=`tooltip.open`,[dd,fd]=ad(cd),pd=e=>{let{__scopeTooltip:t,delayDuration:n=ld,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=H.useRef(!0),s=H.useRef(!1),c=H.useRef(0);return H.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,G.jsx)(dd,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:H.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:H.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:H.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};pd.displayName=cd;var md=`Tooltip`,[hd,gd]=ad(md),_d=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=fd(md,e.__scopeTooltip),l=sd(t),[u,d]=H.useState(null),f=Cs(),p=H.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=H.useRef(!1),[_,v]=Gu({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(ud))):c.onClose(),a?.(e)},caller:md}),y=H.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=H.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=H.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=H.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return H.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,G.jsx)(vu,{...l,children:(0,G.jsx)(hd,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:H.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:H.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};_d.displayName=md;var vd=`TooltipTrigger`,yd=H.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=gd(vd,n),a=fd(vd,n),o=sd(n),s=Jo(t,H.useRef(null),i.onTriggerChange),c=H.useRef(!1),l=H.useRef(!1),u=H.useCallback(()=>c.current=!1,[]);return H.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,G.jsx)(yu,{asChild:!0,...o,children:(0,G.jsx)(Uu.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:K(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:K(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:K(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:K(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:K(e.onBlur,i.onClose),onClick:K(e.onClick,i.onClose)})})});yd.displayName=vd;var bd=`TooltipPortal`,[xd,Sd]=ad(bd,{forceMount:void 0}),Y=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=gd(bd,t);return(0,G.jsx)(xd,{scope:t,forceMount:n,children:(0,G.jsx)(Mu,{present:n||a.open,children:(0,G.jsx)(Au,{asChild:!0,container:i,children:r})})})};Y.displayName=bd;var Cd=`TooltipContent`,wd=H.forwardRef((e,t)=>{let n=Sd(Cd,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=gd(Cd,e.__scopeTooltip);return(0,G.jsx)(Mu,{present:r||o.open,children:o.disableHoverableContent?(0,G.jsx)(kd,{side:i,...a,ref:t}):(0,G.jsx)(Td,{side:i,...a,ref:t})})}),Td=H.forwardRef((e,t)=>{let n=gd(Cd,e.__scopeTooltip),r=fd(Cd,e.__scopeTooltip),i=H.useRef(null),a=Jo(t,i),[o,s]=H.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=H.useCallback(()=>{s(null),d(!1)},[d]),p=H.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Nd(r,Md(r,n.getBoundingClientRect())),a=Pd(t.getBoundingClientRect());s(Id([...i,...a])),d(!0)},[d]);return H.useEffect(()=>()=>f(),[f]),H.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),H.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Fd(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,G.jsx)(kd,{...e,ref:a})}),[Ed,Dd]=ad(md,{isInside:!1}),Od=zu(`TooltipContent`),kd=H.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=gd(Cd,n),l=sd(n),{onClose:u}=c;return H.useEffect(()=>(document.addEventListener(ud,u),()=>document.removeEventListener(ud,u)),[u]),H.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,G.jsx)(ps,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,G.jsxs)(bu,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.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,G.jsx)(Od,{children:r}),(0,G.jsx)(Ed,{scope:n,isInside:!0,children:(0,G.jsx)(id,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});wd.displayName=Cd;var Ad=`TooltipArrow`,jd=H.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=sd(n);return Dd(Ad,n).isInside?null:(0,G.jsx)(xu,{...i,...r,ref:t})});jd.displayName=Ad;function Md(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`)}}function Nd(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});break}return r}function Pd(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}]}function Fd(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Id(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),Ld(t)}function Ld(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=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)}var Rd=pd,zd=_d,Bd=yd,Vd=Y,Hd=wd,Ud=jd;function Wd(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Jd=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yd=`-`,Xd=[],Zd=`arbitrary..`,Qd=e=>{let t=tf(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return ef(e);let n=e.split(Yd);return $d(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Kd(i,t):t:i||Xd}return n[e]||Xd}}},$d=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=$d(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Yd):e.slice(t).join(Yd),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Zd+r:void 0})(),tf=e=>{let{theme:t,classGroups:n}=e;return nf(n,t)},nf=(e,t)=>{let n=Jd();for(let r in e){let i=e[r];rf(i,n,r,t)}return n},rf=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){of(e,t,n);return}if(typeof e==`function`){sf(e,t,n,r);return}cf(e,t,n,r)},of=(e,t,n)=>{let r=e===``?t:lf(t,e);r.classGroupId=n},sf=(e,t,n,r)=>{if(uf(e)){rf(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(qd(n,e))},cf=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(Yd),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,df=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ff=`!`,pf=`:`,mf=[],hf=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),gf=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return hf(t,l,c,u)};if(t){let e=t+pf,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):hf(mf,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},_f=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},vf=e=>({cache:df(e.cacheSize),parseClassName:gf(e),sortModifiers:_f(e),postfixLookupClassGroupIds:yf(e),...Qd(e)}),yf=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(bf),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ff:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},Sf=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=vf(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=xf(e,n);return i(e,a),a};return a=o,(...e)=>a(Sf(...e))},Tf=[],Ef=e=>{let t=t=>t[e]||Tf;return t.isThemeGetter=!0,t},Df=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Of=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kf=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Af=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jf=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Nf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ff=e=>kf.test(e),X=e=>!!e&&!Number.isNaN(Number(e)),If=e=>!!e&&Number.isInteger(Number(e)),Lf=e=>e.endsWith(`%`)&&X(e.slice(0,-1)),Rf=e=>Af.test(e),zf=()=>!0,Bf=e=>jf.test(e)&&!Mf.test(e),Vf=()=>!1,Hf=e=>Nf.test(e),Uf=e=>Pf.test(e),Wf=e=>!Z(e)&&!Q(e),Gf=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Kf=e=>sp(e,dp,Vf),Z=e=>Df.test(e),qf=e=>sp(e,fp,Bf),Jf=e=>sp(e,pp,X),Yf=e=>sp(e,hp,zf),Xf=e=>sp(e,mp,Vf),Zf=e=>sp(e,lp,Vf),Qf=e=>sp(e,up,Uf),$f=e=>sp(e,gp,Hf),Q=e=>Of.test(e),ep=e=>cp(e,fp),tp=e=>cp(e,mp),np=e=>cp(e,lp),rp=e=>cp(e,dp),ip=e=>cp(e,up),ap=e=>cp(e,gp,!0),op=e=>cp(e,hp,!0),sp=(e,t,n)=>{let r=Df.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},cp=(e,t,n=!1)=>{let r=Of.exec(e);return r?r[1]?t(r[1]):n:!1},lp=e=>e===`position`||e===`percentage`,up=e=>e===`image`||e===`url`,dp=e=>e===`length`||e===`size`||e===`bg-size`,fp=e=>e===`length`,pp=e=>e===`number`,mp=e=>e===`family-name`,hp=e=>e===`number`||e===`weight`,gp=e=>e===`shadow`,_p=wf(()=>{let e=Ef(`color`),t=Ef(`font`),n=Ef(`text`),r=Ef(`font-weight`),i=Ef(`tracking`),a=Ef(`leading`),o=Ef(`breakpoint`),s=Ef(`container`),c=Ef(`spacing`),l=Ef(`radius`),u=Ef(`shadow`),d=Ef(`inset-shadow`),f=Ef(`text-shadow`),p=Ef(`drop-shadow`),m=Ef(`blur`),h=Ef(`perspective`),g=Ef(`aspect`),_=Ef(`ease`),v=Ef(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Q,Z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Q,Z,c],T=()=>[Ff,`full`,`auto`,...w()],E=()=>[If,`none`,`subgrid`,Q,Z],ee=()=>[`auto`,{span:[`full`,If,Q,Z]},If,Q,Z],D=()=>[If,`auto`,Q,Z],O=()=>[`auto`,`min`,`max`,`fr`,Q,Z],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],te=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],j=()=>[Ff,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[Ff,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],N=()=>[Ff,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,Q,Z],ne=()=>[...b(),np,Zf,{position:[Q,Z]}],re=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],F=()=>[`auto`,`cover`,`contain`,rp,Kf,{size:[Q,Z]}],I=()=>[Lf,ep,qf],L=()=>[``,`none`,`full`,l,Q,Z],ie=()=>[``,X,ep,qf],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[X,Lf,np,Zf],se=()=>[``,`none`,m,Q,Z],ce=()=>[`none`,X,Q,Z],le=()=>[`none`,X,Q,Z],ue=()=>[X,Q,Z],de=()=>[Ff,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Rf],breakpoint:[Rf],color:[zf],container:[Rf],"drop-shadow":[Rf],ease:[`in`,`out`,`in-out`],font:[Wf],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Rf],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Rf],shadow:[Rf],spacing:[`px`,X],text:[Rf],"text-shadow":[Rf],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ff,Z,Q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Q,Z]}],"container-named":[Gf],columns:[{columns:[X,Z,Q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[If,`auto`,Q,Z]}],basis:[{basis:[Ff,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[X,Ff,`auto`,`initial`,`none`,Z]}],grow:[{grow:[``,X,Q,Z]}],shrink:[{shrink:[``,X,Q,Z]}],order:[{order:[If,`first`,`last`,`none`,Q,Z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...te(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...te()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...te(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...te(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...te(),`baseline`]}],"place-self":[{"place-self":[`auto`,...te()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...M()]}],"min-inline-size":[{"min-inline":[`auto`,...M()]}],"max-inline-size":[{"max-inline":[`none`,...M()]}],"block-size":[{block:[`auto`,...N()]}],"min-block-size":[{"min-block":[`auto`,...N()]}],"max-block-size":[{"max-block":[`none`,...N()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,...j()]}],"font-size":[{text:[`base`,n,ep,qf]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,op,Yf]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Lf,Z]}],"font-family":[{font:[tp,Xf,t]}],"font-features":[{"font-features":[Z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Q,Z]}],"line-clamp":[{"line-clamp":[X,`none`,Q,Jf]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Q,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Q,Z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[X,`from-font`,`auto`,Q,qf]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[X,`auto`,Q,Z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[If,Q,Z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q,Z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Q,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:F()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},If,Q,Z],radial:[``,Q,Z],conic:[If,Q,Z]},ip,Qf]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-bs":[{"border-bs":ie()}],"border-w-be":[{"border-be":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[X,Q,Z]}],"outline-w":[{outline:[``,X,ep,qf]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,ap,$f]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,ap,$f]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:ie()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[X,qf]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,ap,$f]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[X,Q,Z]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Q,Z]}],filter:[{filter:[``,`none`,Q,Z]}],blur:[{blur:se()}],brightness:[{brightness:[X,Q,Z]}],contrast:[{contrast:[X,Q,Z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ap,$f]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,X,Q,Z]}],"hue-rotate":[{"hue-rotate":[X,Q,Z]}],invert:[{invert:[``,X,Q,Z]}],saturate:[{saturate:[X,Q,Z]}],sepia:[{sepia:[``,X,Q,Z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Q,Z]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[X,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[X,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,X,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,Q,Z]}],"backdrop-invert":[{"backdrop-invert":[``,X,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[X,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[X,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":[``,X,Q,Z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Q,Z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[X,`initial`,Q,Z]}],ease:[{ease:[`linear`,`initial`,_,Q,Z]}],delay:[{delay:[X,Q,Z]}],animate:[{animate:[`none`,v,Q,Z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Q,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[Q,Z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[If,Q,Z]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Q,Z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Q,Z]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[X,ep,qf,Jf]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function $(...e){return _p(Gd(e))}function vp(e){return typeof e==`string`?e:e.url}function yp(e){let t=(0,U.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,G.jsx)(Rd,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function bp(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(zd,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function xp(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Bd,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Sp(e){let t=(0,U.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,sideOffset:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?4:a,s;t[5]===r?s=t[6]:(s=$(`bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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 z-50 max-w-sm rounded-md px-3 py-1.5 text-xs`,r),t[5]=r,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,G.jsx)(Ud,{className:`bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]`}),t[7]=c):c=t[7];let l;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==s?(l=(0,G.jsx)(Vd,{children:(0,G.jsxs)(Hd,{"data-slot":`tooltip-content`,sideOffset:o,className:s,...i,children:[n,c]})}),t[8]=n,t[9]=i,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function Cp(e){let t={},n={background:`background`,foreground:`foreground`,card:`card`,"card-foreground":`card-foreground`,popover:`popover`,"popover-foreground":`popover-foreground`,primary:`primary`,"primary-foreground":`primary-foreground`,secondary:`secondary`,"secondary-foreground":`secondary-foreground`,muted:`muted`,"muted-foreground":`muted-foreground`,accent:`accent`,"accent-foreground":`accent-foreground`,destructive:`destructive`,"destructive-foreground":`destructive-foreground`,border:`border`,input:`input`,ring:`ring`,"chart-1":`chart-1`,"chart-2":`chart-2`,"chart-3":`chart-3`,"chart-4":`chart-4`,"chart-5":`chart-5`,sidebar:`sidebar`,"sidebar-foreground":`sidebar-foreground`,"sidebar-primary":`sidebar-primary`,"sidebar-primary-foreground":`sidebar-primary-foreground`,"sidebar-accent":`sidebar-accent`,"sidebar-accent-foreground":`sidebar-accent-foreground`,"sidebar-border":`sidebar-border`,"sidebar-ring":`sidebar-ring`};for(let[r,i]of Object.entries(e)){let e=r.startsWith(`--`)?r:`--${r}`;t[e]=i;let a=e.slice(2);n[a]&&(t[`--color-${n[a]}`]=i)}return t}var wp=`color-app`,Tp=null,Ep=[],Dp=new Set;function Op(){if(typeof window>`u`)return null;try{let e=localStorage.getItem(wp);return e?JSON.parse(e):null}catch{return null}}function kp(){if(typeof window>`u`)return`light`;let e=localStorage.getItem(`appearance`);return e===`dark`?`dark`:e===`light`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Ap(){Ep.forEach(e=>{document.documentElement.style.removeProperty(e)}),Ep=[]}function jp(e,t){Ap();let n=Cp({...e.varsTheme??{},...t===`dark`?e.varsDark??{}:e.varsLight??{}});Ep=Object.keys(n),Object.entries(n).forEach(([e,t])=>{document.documentElement.style.setProperty(e,t)})}function Mp(){Dp.forEach(e=>e())}function Np(e){return Dp.add(e),()=>Dp.delete(e)}function Pp(){return Tp}function Fp(){return null}function Ip(){if(typeof window>`u`)return;let e=Op();e&&(Tp=e.name,jp(e,kp()))}function Lp(e){let t={name:e.name,varsLight:e.cssVars?.light??e.vars_light??{},varsDark:e.cssVars?.dark??e.vars_dark??{},varsTheme:e.cssVars?.theme??e.vars_theme??{}};Tp=e.name,localStorage.setItem(wp,JSON.stringify(t)),jp(t,kp()),Mp()}function Rp(){Tp=null,localStorage.removeItem(wp),Ap(),Mp()}function zp(){let e=(0,U.c)(7),t=(0,H.useSyncExternalStore)(Np,Pp,Fp),{resolvedAppearance:n}=zo(),r,i;e[0]!==n||e[1]!==t?(r=()=>{let e=Op();e&&e.name===t&&jp(e,n)},i=[n,t],e[0]=n,e[1]=t,e[2]=r,e[3]=i):(r=e[2],i=e[3]),(0,H.useEffect)(r,i);let a=t!==null,o;return e[4]!==a||e[5]!==t?(o={themeName:t,setColorTheme:Lp,clearColorTheme:Rp,isThemeActive:a},e[4]=a,e[5]=t,e[6]=o):o=e[6],o}var Bp=Symbol.for(`react.lazy`),Vp=H.use;function Hp(e){return typeof e==`object`&&!!e&&`then`in e}function Up(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Bp&&`_payload`in e&&Hp(e._payload)}function Wp(e){let t=Kp(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e;Up(r)&&typeof Vp==`function`&&(r=Vp(r._payload));let a=H.Children.toArray(r),o=a.find(Jp);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Gp=Wp(`Slot`);function Kp(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(Up(n)&&typeof Vp==`function`&&(n=Vp(n._payload)),H.isValidElement(n)){let e=Xp(n),i=Yp(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qp=Symbol(`radix.slottable`);function Jp(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===qp}function Yp(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Xp(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zp=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Qp=Gd,$p=(e,t)=>n=>{if(t?.variants==null)return Qp(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Zp(t)||Zp(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Qp(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},em=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),tm=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),nm={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},rm=(0,H.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,H.createElement)(`svg`,{ref:c,...nm,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:tm(`lucide`,i),...s},[...o.map(([e,t])=>(0,H.createElement)(e,t)),...Array.isArray(a)?a:[a]])),im=(e,t)=>{let n=(0,H.forwardRef)(({className:n,...r},i)=>(0,H.createElement)(rm,{ref:i,iconNode:t,className:tm(`lucide-${em(e)}`,n),...r}));return n.displayName=`${e}`,n},am=im(`BookOpen`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),om=im(`ChevronRight`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),sm=im(`ChevronsUpDown`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),cm=im(`FolderGit2`,[[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`path`,{d:`M18 19c-2.8 0-5-2.2-5-5v8`,key:`pkpw2h`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]),lm=im(`LayoutGrid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),um=im(`LogOut`,[[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}],[`polyline`,{points:`16 17 21 12 16 7`,key:`1gabdz`}],[`line`,{x1:`21`,x2:`9`,y1:`12`,y2:`12`,key:`1uyos4`}]]),dm=im(`PanelLeftClose`,[[`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`}]]),fm=im(`PanelLeftOpen`,[[`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`}]]),pm=im(`Settings`,[[`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`,key:`1qme2f`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),mm=im(`X`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),hm=$p(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40`,outline:`border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function gm(e){let t=(0,U.c)(14),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:n,variant:o,size:i,asChild:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a!==void 0&&a?Gp:`button`,c;t[6]!==n||t[7]!==i||t[8]!==o?(c=$(hm({variant:o,size:i,className:n})),t[6]=n,t[7]=i,t[8]=o,t[9]=c):c=t[9];let l;return t[10]!==s||t[11]!==r||t[12]!==c?(l=(0,G.jsx)(s,{"data-slot":`button`,className:c,...r}),t[10]=s,t[11]=r,t[12]=c,t[13]=l):l=t[13],l}function _m(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=$(`border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,G.jsx)(`input`,{type:i,"data-slot":`input`,className:a,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var vm=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Wp(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ym=`Separator`,bm=`horizontal`,xm=[`horizontal`,`vertical`],Sm=H.forwardRef((e,t)=>{let{decorative:n,orientation:r=bm,...i}=e,a=Cm(r)?r:bm,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,G.jsx)(vm.div,{"data-orientation":a,...o,...i,ref:t})});Sm.displayName=ym;function Cm(e){return xm.includes(e)}var wm=Sm;function Tm(e){let t=(0,U.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,orientation:i,decorative:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`horizontal`:i,s=a===void 0?!0:a,c;t[5]===n?c=t[6]:(c=$(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,n),t[5]=n,t[6]=c);let l;return t[7]!==s||t[8]!==o||t[9]!==r||t[10]!==c?(l=(0,G.jsx)(wm,{"data-slot":`separator-root`,decorative:s,orientation:o,className:c,...r}),t[7]=s,t[8]=o,t[9]=r,t[10]=c,t[11]=l):l=t[11],l}function Em(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Dm(i,...t)]}function Dm(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Om(e){let t=km(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(jm);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function km(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=Nm(n),i=Mm(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Am=Symbol(`radix.slottable`);function jm(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Am}function Mm(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Nm(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Pm(e){let t=e+`CollectionProvider`,[n,r]=Em(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=H.useRef(null),a=H.useRef(new Map).current;return(0,G.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=Om(s),l=H.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,G.jsx)(c,{ref:Jo(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Om(u),p=H.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=H.useRef(null),s=Jo(t,o),c=a(u,n);return H.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,G.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return H.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[{Provider:o,Slot:l,ItemSlot:p},m,r]}var Fm=H.createContext(void 0);function Im(e){let t=H.useContext(Fm);return e||t||`ltr`}function Lm(e,t){let n=H.createContext(t),r=e=>{let{children:t,...r}=e,i=H.useMemo(()=>r,Object.values(r));return(0,G.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=H.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function Rm(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,zm(i,...t)]}function zm(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Bm(e){let t=Vm(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(Um);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Vm(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=Gm(n),i=Wm(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hm=Symbol(`radix.slottable`);function Um(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Hm}function Wm(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Gm(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Km=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Bm(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),qm=`focusScope.autoFocusOnMount`,Jm=`focusScope.autoFocusOnUnmount`,Ym={bubbles:!1,cancelable:!0},Xm=`FocusScope`,Zm=H.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=H.useState(null),l=as(i),u=as(a),d=H.useRef(null),f=Jo(t,e=>c(e)),p=H.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;H.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:ih(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||ih(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ih(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),H.useEffect(()=>{if(s){ah.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(qm,Ym);s.addEventListener(qm,l),s.dispatchEvent(t),t.defaultPrevented||(Qm(ch(eh(s)),{select:!0}),document.activeElement===e&&ih(s))}return()=>{s.removeEventListener(qm,l),setTimeout(()=>{let t=new CustomEvent(Jm,Ym);s.addEventListener(Jm,u),s.dispatchEvent(t),t.defaultPrevented||ih(e??document.body,{select:!0}),s.removeEventListener(Jm,u),ah.remove(p)},0)}}},[s,l,u,p]);let m=H.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=$m(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ih(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ih(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,G.jsx)(Km.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});Zm.displayName=Xm;function Qm(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ih(r,{select:t}),document.activeElement!==n)return}function $m(e){let t=eh(e);return[th(t,e),th(t.reverse(),e)]}function eh(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function th(e,t){for(let n of e)if(!nh(n,{upTo:t}))return n}function nh(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function rh(e){return e instanceof HTMLInputElement&&`select`in e}function ih(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rh(e)&&t&&e.select()}}var ah=oh();function oh(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=sh(e,t),e.unshift(t)},remove(t){e=sh(e,t),e[0]?.resume()}}}function sh(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ch(e){return e.filter(e=>e.tagName!==`A`)}function lh(e){let t=uh(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(fh);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function uh(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=mh(n),i=ph(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dh=Symbol(`radix.slottable`);function fh(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===dh}function ph(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function mh(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hh=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=lh(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),gh=0;function _h(){H.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??vh()),document.body.insertAdjacentElement(`beforeend`,e[1]??vh()),gh++,()=>{gh===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),gh--}},[])}function vh(){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}var yh=function(){return yh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return qh;var t=Yh(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])}},Zh=Kh(),Qh=`data-scroll-locked`,$h=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` +`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ht(e,``+r);break;case`className`:Et(e,`class`,r);break;case`tabIndex`:Et(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Et(e,n,r);break;case`style`:Gt(e,r,o);break;case`data`:if(t!==`object`){Et(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`onScroll`:r!=null&&Y(`scroll`,e);break;case`onScrollEnd`:r!=null&&Y(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Yt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Y(`beforetoggle`,e),Y(`toggle`,e),Tt(e,`popover`,r);break;case`xlinkActuate`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Tt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&Bd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=Ft(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ft(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ft(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ft(n.imageSizes)+`"]`)):i+=`[href="`+Ft(e)+`"]`;var a=i;switch(t){case`style`:a=Pf(e);break;case`script`:a=Lf(e)}vf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(Rf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),gt(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ft(r)+`"][href="`+Ft(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Lf(e)}if(!vf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),vf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Rf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),gt(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=ht(r).hoistableStyles,a=Pf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ff(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Vf(e,n);var c=o=r.createElement(`link`);gt(c),Rd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Bf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){xf.X(e,t);var n=wf;if(n&&e){var r=ht(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0},t),(t=vf.get(i))&&Hf(e,t),a=n.createElement(`script`),gt(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=ht(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Hf(e,t),a=n.createElement(`script`),gt(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var a=(a=ae.current)?bf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Pf(n.href),n=ht(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pf(n.href);var o=ht(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Ff(e)))&&!o._p&&(s.instance=o,s.state.loading=5),vf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vf.set(e,n),o||If(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Lf(n),n=ht(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pf(e){return`href="`+Ft(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function X(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function If(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Rd(t,`link`,n),gt(t),e.head.appendChild(t))}function Lf(e){return`[src="`+Ft(e)+`"]`}function Rf(e){return`script[async]`+e}function zf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ft(n.href)+`"]`);if(r)return t.instance=r,gt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),gt(r),Rd(r,`style`,a),Bf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pf(n.href);var o=e.querySelector(Ff(a));if(o)return t.state.loading|=4,t.instance=o,gt(o),o;r=X(n),(a=vf.get(a))&&Vf(r,a),o=(e.ownerDocument||e).createElement(`link`),gt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,Bf(o,n.precedence,e),t.instance=o;case`script`:return o=Lf(n.src),(a=e.querySelector(Rf(o)))?(t.instance=a,gt(a),a):(r=n,(a=vf.get(o))&&(r=f({},n),Hf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),gt(a),Rd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Bf(r,n.precedence,e));return t.instance}function Bf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Kf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Z(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pf(r.href),a=t.querySelector(Ff(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,gt(a);return}a=t.ownerDocument||t,r=X(r),(i=vf.get(i))&&Vf(r,i),a=a.createElement(`link`),gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=aa()})),H=u(ea(),1),sa=u(na(),1),ca=oa(),la=(0,H.createContext)(null);la.displayName=`InertiaHeadContext`;var ua=la,da=ai();function fa(e,t){typeof e==`string`?da.setFor(e,t):da.set(e)}function pa(){da.reset()}var ma=(0,H.createContext)(null);ma.displayName=`InertiaPageContext`;var ha=ma;function ga(e){return typeof e==`function`||typeof e==`object`&&!!e&&`$$typeof`in e}function _a(e){if(typeof e!=`function`)return!1;let t=e;return t.length===1&&t.prototype===void 0}function va(e){return typeof e==`function`&&e.length<=1&&e.prototype===void 0}var ya=!0,ba=!1,xa=async()=>{ya=!1},Sa={shared:{},named:{}};function Ca({children:e,initialPage:t,initialComponent:n,resolveComponent:r,titleCallback:i,onHeadUpdate:a,defaultLayout:o}){let[s,c]=(0,H.useState)({component:n||null,page:{...t,flash:t.flash??{}},key:null}),l=(0,H.useMemo)(()=>Wr(typeof window>`u`,i||(e=>e),a||(()=>{})),[]),u=(0,H.useSyncExternalStore)(da.subscribe,da.get,()=>Sa);if(ba||=(Qi.init({initialPage:t,resolveComponent:r,swapComponent:async e=>xa(e),onFlash:e=>{c(t=>({...t,page:{...t.page,flash:e}}))}}),!0),(0,H.useEffect)(()=>{xa=async({component:e,page:t,preserveState:n})=>{if(ya){ya=!1;return}n||pa(),(0,sa.flushSync)(()=>c(r=>({component:e,page:t,key:n?r.key:Date.now()})))},Qi.on(`navigate`,()=>l.forceUpdate())},[]),!s.component)return(0,H.createElement)(ua.Provider,{value:l},(0,H.createElement)(ha.Provider,{value:s.page},null));let d=e||(({Component:e,props:t,key:n})=>{let r=(0,H.createElement)(e,{key:n,...t}),i,a=null,c=e.layout;if(va(c)){let e=c(t);if((0,H.isValidElement)(e))return c(r);di(e,ga)?(i=o?.(s.page.component,s.page),a=e):i=e}else ui(c,ga)?(i=o?.(s.page.component,s.page),a=c):i=c??o?.(s.page.component,s.page);let l=mi(i,ga,c&&!a?_a:void 0);return a&&(l=l.map(e=>({...e,props:{...e.props,...a}}))),l.length>0?l.reduceRight((e,n)=>(0,H.createElement)(n.component,{...t,...n.props,...u.shared,...n.name&&u.named[n.name]||{}},e),r):r});return(0,H.createElement)(ua.Provider,{value:l},(0,H.createElement)(ha.Provider,{value:s.page},d({Component:s.component,key:s.key,props:s.page.props})))}Ca.displayName=`Inertia`;async function wa({id:e=`app`,resolve:t,setup:n,title:r,progress:i={},page:a,render:o,defaults:s={},nonce:c,http:l,layout:u,strictMode:d=!1,withApp:f}={}){Ga.replace(s),c&&Ga.set(`nonce`,c),l&&wr.setClient(l);let p=typeof window>`u`,m=e=>d?(0,H.createElement)(H.StrictMode,null,e):e,h=(e,n)=>Promise.resolve(t(e,n)).then(e=>e.default||e);if(p&&!a&&!o)return async(t,i)=>{let a=[],o={initialPage:t,initialComponent:await h(t.component,t),resolveComponent:h,titleCallback:r,onHeadUpdate:e=>a=e,defaultLayout:u},s;n?s=n({el:null,App:Ca,props:o}):(s=m((0,H.createElement)(Ca,o)),f&&(s=f(s,{ssr:!0})));let c=Zi(e,t,i(s));return{head:a,body:c}};let g=a||Dn(e),_=[],v=await Promise.all([h(g.component,g),Qi.decryptHistory().catch(()=>{})]).then(([t])=>{let i={initialPage:g,initialComponent:t,resolveComponent:h,titleCallback:r,onHeadUpdate:p?e=>_=e:void 0,defaultLayout:u};if(p)return n({el:null,App:Ca,props:i});let a=document.getElementById(e);if(n)return n({el:a,App:Ca,props:i});let o=m((0,H.createElement)(Ca,i));f&&(o=f(o,{ssr:!1})),a.hasAttribute(`data-server-rendered`)?(0,ca.hydrateRoot)(a,o):(0,ca.createRoot)(a).render(o)});if(!p&&i&&Ui(i),p&&o&&v){let t=Zi(e,g,o(v));return{head:_,body:t}}}function Ta(){let e=(0,H.use)(ha);if(!e)throw Error(`usePage must be used within the Inertia component`);return e}var Ea=({children:e,data:t,rescue:n,fallback:r})=>{if(!t)throw Error("`` requires a `data` prop to be a string or array of strings");if(!r)throw Error("`` requires a `fallback` prop");let[i,a]=(0,H.useState)(!1),o=(0,H.useRef)(new Set),s=Ta(),c=s.props,l=(0,H.useMemo)(()=>Array.isArray(t)?t:[t],[t]),u=(0,H.useMemo)(()=>new Set(s.rescuedProps),[s.rescuedProps]);(0,H.useEffect)(()=>{let e=Qi.on(`start`,e=>{let t=e.detail.visit;t.preserveState===!0&&Zn(t.url,window.location)&&kr(t,l)&&(o.current.add(t),a(!0))}),t=Qi.on(`finish`,e=>{let t=e.detail.visit;o.current.has(t)&&(o.current.delete(t),a(o.current.size>0))});return()=>{e(),t(),o.current.clear()}},[l]);let d=(0,H.useMemo)(()=>l.every(e=>Ae(c,e)!==void 0),[l,c]),f=(0,H.useMemo)(()=>l.some(e=>u.has(e)),[l,u]);return d&&!f?typeof e==`function`?e({reloading:i}):e:f&&n?typeof n==`function`?n({reloading:i}):n:typeof r==`function`?r():r};Ea.displayName=`InertiaDeferred`;function Da(e){let{data:t,useDataState:n,useErrorsState:r}=e,i=typeof t==`function`,a=()=>i?t():t,o=pe(a()),s=(0,H.useRef)(!1),c=(0,H.useRef)(e.precognitionEndpoint??null),[l,u]=(0,H.useState)(pe(o)),[d,f]=n?n():(0,H.useState)(pe(o)),[p,m]=r?r():(0,H.useState)({}),[h,g]=(0,H.useState)(!1),[_,v]=(0,H.useState)(null),[y,b]=(0,H.useState)(!1),[x,S]=(0,H.useState)(!1),C=(0,H.useRef)(void 0),w=(0,H.useRef)(e=>e),T=(0,H.useRef)(!1),E=(0,H.useRef)(null),[ee,D]=(0,H.useState)(!1),[O,k]=(0,H.useState)([]),[te,A]=(0,H.useState)([]),j=(0,H.useRef)(null),M=()=>j.current??Ga.get(`form.withAllErrors`),N=(0,H.useRef)(d);(0,H.useEffect)(()=>{N.current=d}),(0,H.useEffect)(()=>(s.current=!0,()=>{s.current=!1}),[]);let P=(0,H.useCallback)(e=>{N.current=e,f(e)},[f]),ne=(0,H.useCallback)((e,t)=>{P(typeof e==`string`?Ke(pe(N.current),e,t):typeof e==`function`?e(N.current):e)},[P]),re=(0,H.useCallback)((e,t)=>{if(i)throw Error("You cannot call `defaults()` when using a function to define your form data.");T.current=!0;let n={};e===void 0?(n={...N.current},u(N.current)):u(r=>(n=typeof e==`string`?Ke(pe(r),e,t):Object.assign(pe(r),e),n)),E.current?.defaults(n)},[u]),F=(0,H.useCallback)((...e)=>{let t=pe(i?pe(a()):l);e.length===0?(i&&u(t),P(t)):(i&&u(n=>{let r=pe(n);return e.filter(e=>Re(t,e)).forEach(e=>{Ke(r,e,Ae(t,e))}),r}),P(e.filter(e=>Re(t,e)).reduce((e,n)=>Ke(e,n,Ae(t,n)),{...N.current}))),E.current?.reset(...e)},[P,l]),I=(0,H.useCallback)((e,t)=>{m(n=>{let r={...n,...typeof e==`string`?{[e]:t}:e};return E.current?.setErrors(r),r})},[m]),L=(0,H.useCallback)((...e)=>{m(t=>{let n=Object.keys(t).reduce((n,r)=>({...n,...e.length>0&&!e.includes(r)?{[r]:t[r]}:{}}),{});return E.current&&(e.length===0?E.current.setErrors({}):e.forEach(E.current.forgetError)),n})},[m]),ie=(0,H.useCallback)((...e)=>{F(...e),L(...e)},[F,L]),ae=(0,H.useCallback)(()=>{L(),b(!0),S(!0),C.current=window.setTimeout(()=>{s.current&&S(!1)},Ga.get(`form.recentlySuccessfulDuration`))},[L,b,S]),oe=(0,H.useCallback)(()=>{b(!1),S(!1),clearTimeout(C.current)},[b,S]),R=(0,H.useCallback)(()=>{g(!1),v(null)},[g,v]),se=(0,H.useCallback)(e=>{w.current=e},[]),ce=(e,t)=>(t(e),e),le=(0,H.useCallback)(e=>te.includes(e),[te]),ue=(0,H.useCallback)(e=>e in p,[p]),de=(0,H.useCallback)(e=>typeof e==`string`?O.includes(e):O.length>0,[O]),fe={data:d,isDirty:!xe(d,l),errors:p,hasErrors:Object.keys(p).length>0,processing:h,progress:_,wasSuccessful:y,recentlySuccessful:x,setData:ne,transform:se,setDefaults:re,reset:F,setError:I,clearErrors:L,resetAndClearErrors:ie},me=(e,t)=>{if(typeof e==`object`&&!(`target`in e)&&(t=e,e=void 0),e===void 0)E.current.validate(t);else{let n=Lt(e),r=w.current(N.current);E.current.validate(n,Ae(r,n),t)}return fe};return fe.withPrecognition=(...e)=>{if(c.current=Ir.createWayfinderCallback(...e),!E.current){let e=Pt(e=>{let{method:t,url:n}=c.current(),r=N.current,i=w.current(r);return e[t](n,i)},pe(l));E.current=e,e.on(`validatingChanged`,()=>{D(e.validating())}).on(`validatedChanged`,()=>{A(e.valid())}).on(`touchedChanged`,()=>{k(e.touched())}).on(`errorsChanged`,()=>{m(M()?e.errors():Ft(e.errors())),A(e.valid())})}let t=Object.assign(fe,{validating:ee,validator:()=>E.current,valid:le,invalid:ue,touched:de,withoutFileValidation:()=>ce(t,()=>E.current?.withoutFileValidation()),touch:(e,...n)=>(Array.isArray(e)?E.current?.touch(e):typeof e==`string`?E.current?.touch([e,...n]):E.current?.touch(e),t),withAllErrors:()=>ce(t,()=>j.current=!0),setValidationTimeout:e=>ce(t,()=>E.current?.setTimeout(e)),validateFiles:()=>ce(t,()=>E.current?.validateFiles()),validate:me,setErrors:e=>ce(t,()=>fe.setError(e)),forgetError:e=>ce(t,()=>fe.clearErrors(Lt(e)))});return t},c.current&&fe.withPrecognition(c.current),{form:fe,setDefaultsState:u,transformRef:w,precognitionEndpointRef:c,dataRef:N,isMounted:s,setProcessing:g,setProgress:v,markAsSuccessful:ae,clearErrors:L,setError:I,defaultsCalledInOnSuccessRef:T,resetBeforeSubmit:oe,finishProcessing:R,withAllErrors:{enabled:M,enable:()=>{j.current=!0}}}}function Oa(e,t,n){let[r,i]=(0,H.useState)(()=>{let n=Qi.restore(t);return n===void 0?e:n});return(0,H.useEffect)(()=>{let e=n?.current;if(e&&e.length>0&&typeof r==`object`&&r){let n={...r};e.forEach(e=>delete n[e]),Qi.remember(n,t)}else Qi.remember(r,t)},[r,t]),[r,i]}function ka(...e){let{rememberKey:t,data:n,precognitionEndpoint:r}=Ir.parseUseFormArguments(...e),i=pe(typeof n==`function`?n():n),a=(0,H.useRef)(null),o=(0,H.useRef)([]),s=(0,H.useRef)(null),{form:c,setDefaultsState:l,transformRef:u,precognitionEndpointRef:d,dataRef:f,isMounted:p,setProcessing:m,setProgress:h,markAsSuccessful:g,clearErrors:_,setError:v,defaultsCalledInOnSuccessRef:y,resetBeforeSubmit:b,finishProcessing:x}=Da({data:n,precognitionEndpoint:r,useDataState:t?()=>Oa(i,`${t}:data`,o):void 0,useErrorsState:t?()=>Oa({},`${t}:errors`):void 0}),S=(0,H.useCallback)((...e)=>{let{method:t,url:n,options:r}=Ir.parseSubmitArguments(e,d.current);y.current=!1;let i={...r,onCancelToken:e=>(a.current=e,r.onCancelToken?.(e)),onBefore:e=>(b(),r.onBefore?.(e)),onStart:e=>(m(!0),r.onStart?.(e)),onProgress:e=>(h(e||null),r.onProgress?.(e)),onSuccess:async e=>{p.current&&g();let t=r.onSuccess?await r.onSuccess(e):null;return p.current&&!y.current&&c.setData(e=>(l(pe(e)),e)),t},onError:e=>(p.current&&(_(),v(e)),r.onError?.(e)),onCancel:()=>r.onCancel?.(),onFinish:e=>(p.current&&x(),a.current=null,r.onFinish?.(e))};i.optimistic=i.optimistic??s.current??void 0,s.current=null;let o=u.current(f.current);t===`delete`?Qi.delete(n,{...i,data:o}):Qi[t](n,o,i)},[_,v,u]),C=(0,H.useCallback)(()=>{a.current&&a.current.cancel()},[]),w=(0,H.useMemo)(()=>({get:(e,t={})=>S(`get`,e,t),post:(e,t={})=>S(`post`,e,t),put:(e,t={})=>S(`put`,e,t),patch:(e,t={})=>S(`patch`,e,t),delete:(e,t={})=>S(`delete`,e,t)}),[S]);Object.assign(c,{submit:S,...w,cancel:C,dontRemember:(...e)=>(o.current=e,T),optimistic:e=>(s.current=e,T)});let T=c,E=c.withPrecognition;return T.withPrecognition=(...e)=>(E(...e),T),d.current,T}var Aa=e=>{typeof H.startTransition==`function`?H.startTransition(e):setTimeout(e,0)},ja=()=>void 0,Ma=(0,H.createContext)(void 0),Na=(0,H.forwardRef)(({action:e=``,method:t=`get`,headers:n={},queryStringArrayFormat:r=`brackets`,errorBag:i=null,showProgress:a=!0,transform:o=e=>e,optimistic:s,options:c={},onStart:l=ja,onProgress:u=ja,onFinish:d=ja,onBefore:f=ja,onCancel:p=ja,onSuccess:m=ja,onError:h=ja,onCancelToken:g=ja,onSubmitComplete:_=ja,disableWhileProcessing:v=!1,resetOnError:y=!1,resetOnSuccess:b=!1,setDefaultsOnSuccess:x=!1,invalidateCacheTags:S=[],validateFiles:C=!1,validationTimeout:w=1500,withAllErrors:T=null,component:E=null,instant:ee=!1,children:D,...O},k)=>{let te=()=>{let[e,t]=L();return o(t)},A=ka({}).withPrecognition(()=>M,()=>L()[0]).setValidationTimeout(w);C&&A.validateFiles(),(T??Ut.get(`form.withAllErrors`))&&A.withAllErrors(),A.transform(te);let j=(0,H.useRef)(void 0),M=(0,H.useMemo)(()=>Qn(e)?e.method:t.toLowerCase(),[e,t]),N=(0,H.useMemo)(()=>E||(ee&&Qn(e)?$n(e):null),[E,ee,e]),[P,ne]=(0,H.useState)(!1),re=(0,H.useRef)(new FormData),F=e=>new FormData(j.current,e),I=e=>Hr(F(e)),L=t=>qn(M,Qn(e)?e.url:e,I(t),r),ie=e=>{e.type===`reset`&&e.detail?.[Wi]&&e.preventDefault(),Aa(()=>ne(e.type===`reset`?!1:!xe(I(),Hr(re.current))))},ae=(...e)=>(A.clearErrors(...e),A);(0,H.useEffect)(()=>{re.current=F(),A.setDefaults(I());let e=[`input`,`change`,`reset`];return e.forEach(e=>j.current.addEventListener(e,ie)),()=>{e.forEach(e=>j.current?.removeEventListener(e,ie))}},[]),(0,H.useEffect)(()=>{A.setValidationTimeout(w)},[w]),(0,H.useEffect)(()=>{C?A.validateFiles():A.withoutFileValidation()},[C]);let oe=(...e)=>{j.current&&Xi(j.current,re.current,e),A.reset(...e)},R=(...e)=>{ae(...e),oe(...e)},se=e=>{e&&(e===!0?oe():e.length>0&&oe(...e))},ce=e=>{let[t,v]=L(e);if(e?.getAttribute(`formtarget`)===`_blank`&&M===`get`){window.open(t,`_blank`);return}let C={headers:n,queryStringArrayFormat:r,errorBag:i,showProgress:a,invalidateCacheTags:S,component:N,optimistic:s?e=>s(e,v):void 0,onCancelToken:g,onBefore:f,onStart:l,onProgress:u,onFinish:d,onCancel:p,onSuccess:(...e)=>{m(...e),_({reset:oe,defaults:le}),se(b),x===!0&&le()},onError(...e){h(...e),se(y)},...c};A.transform(()=>o(v)),A.submit(M,t,C),A.transform(te)},le=()=>{re.current=F(),ne(!1)},ue={errors:A.errors,hasErrors:A.hasErrors,processing:A.processing,progress:A.progress,wasSuccessful:A.wasSuccessful,recentlySuccessful:A.recentlySuccessful,isDirty:P,clearErrors:ae,resetAndClearErrors:R,setError:A.setError,reset:oe,submit:ce,defaults:le,getData:I,getFormData:F,validator:()=>A.validator(),validating:A.validating,valid:A.valid,invalid:A.invalid,validate:(e,t)=>A.validate(...Ir.mergeHeadersForValidation(e,t,n)),touch:A.touch,touched:A.touched};(0,H.useImperativeHandle)(k,()=>ue,[A,P,ce]);let de=(0,H.createElement)(`form`,{...O,ref:j,action:Qn(e)?e.url:e,method:M,onSubmit:e=>{e.preventDefault(),ce(e.nativeEvent.submitter)},inert:v&&A.processing},typeof D==`function`?D(ue):D);return(0,H.createElement)(Ma.Provider,{value:ue},de)});Na.displayName=`InertiaForm`;var Pa=Na,Fa=function({children:e,title:t}){let n=(0,H.use)(ua),r=(0,H.useMemo)(()=>n.createProvider(),[n]),i=typeof window>`u`;(0,H.useEffect)(()=>(r.reconnect(),r.update(d(e)),()=>{r.disconnect()}),[r,e,t]);function a(e){return typeof e.type==`string`&&[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`].indexOf(e.type)>-1}function o(e){let t=Object.keys(e.props).reduce((t,n)=>{if([`head-key`,`children`,`dangerouslySetInnerHTML`].includes(n))return t;let r=String(e.props[n]);return r===``?t+` ${n}`:t+` ${n}="${Qe(r)}"`},``);return`<${String(e.type)}${t}>`}function s(e){let{children:t}=e.props;return typeof t==`string`?t:Array.isArray(t)?t.reduce((e,t)=>e+c(t),``):``}function c(e){let t=o(e);return e.props.children&&(t+=s(e)),e.props.dangerouslySetInnerHTML&&(t+=e.props.dangerouslySetInnerHTML.__html),a(e)||(t+=``),t}function l(e){return H.cloneElement(e,{"data-inertia":e.props[`head-key`]===void 0?``:e.props[`head-key`]})}function u(e){return c(l(e))}function d(e){let n=H.Children.toArray(e).filter(e=>e).map(e=>u(e));return t&&!n.find(e=>e.startsWith(`${Qe(t)}`),n}return i&&r.update(d(e)),null},Ia=(e,t)=>e?e&&typeof e==`object`&&`current`in e?e.current:typeof e==`string`?document.querySelector(e):t:t,La=(e,t,n=null)=>e?typeof e==`function`?e(t):e:n,Ra=(0,H.forwardRef)(({data:e,buffer:t=0,as:n=`div`,manual:r=!1,manualAfter:i=0,preserveUrl:a=!1,reverse:o=!1,autoScroll:s,children:c,startElement:l,endElement:u,itemsElement:d,previous:f,next:p,loading:m,params:h={},onlyNext:g=!1,onlyPrevious:_=!1,...v},y)=>{let[b,x]=(0,H.useState)(null),S=(0,H.useCallback)(e=>x(e),[]),[C,w]=(0,H.useState)(null),T=(0,H.useCallback)(e=>w(e),[]),[E,ee]=(0,H.useState)(null),D=(0,H.useCallback)(e=>ee(e),[]),O=Ta().scrollProps?.[e],[k,te]=(0,H.useState)(!1),[A,j]=(0,H.useState)(!1),[M,N]=(0,H.useState)(0),[P,ne]=(0,H.useState)(!!O?.previousPage),[re,F]=(0,H.useState)(!!O?.nextPage),[I,L]=(0,H.useState)(null),[ie,ae]=(0,H.useState)(null),[oe,R]=(0,H.useState)(null);(0,H.useEffect)(()=>{L(l?Ia(l,b):b)},[l,b]),(0,H.useEffect)(()=>{ae(u?Ia(u,C):C)},[u,C]),(0,H.useEffect)(()=>{R(d?Ia(d,E):E)},[d,E]);let se=(0,H.useMemo)(()=>wn(oe),[oe]),ce=(0,H.useRef)({buffer:t,onlyNext:g,onlyPrevious:_,reverse:o,preserveUrl:a,params:h});ce.current={buffer:t,onlyNext:g,onlyPrevious:_,reverse:o,preserveUrl:a,params:h};let[le,ue]=(0,H.useState)(null),de=(0,H.useMemo)(()=>le?.dataManager,[le]),fe=(0,H.useMemo)(()=>le?.elementManager,[le]),pe=(0,H.useCallback)(()=>{se?se.scrollTo({top:se.scrollHeight,behavior:`instant`}):window.scrollTo({top:document.body.scrollHeight,behavior:`instant`})},[se]);(0,H.useEffect)(()=>{if(!oe)return;function t(){N(n.dataManager.getRequestCount()),ne(n.dataManager.hasPrevious()),F(n.dataManager.hasNext())}let n=ii({getPropName:()=>e,inReverseMode:()=>ce.current.reverse,shouldFetchNext:()=>!ce.current.onlyPrevious,shouldFetchPrevious:()=>!ce.current.onlyNext,shouldPreserveUrl:()=>ce.current.preserveUrl,getReloadOptions:()=>ce.current.params,getTriggerMargin:()=>ce.current.buffer,getStartElement:()=>I,getEndElement:()=>ie,getItemsElement:()=>oe,getScrollableParent:()=>se,onBeforePreviousRequest:()=>te(!0),onBeforeNextRequest:()=>j(!0),onCompletePreviousRequest:()=>{te(!1),t()},onCompleteNextRequest:()=>{j(!1),t()},onDataReset:t});ue(n);let{dataManager:r,elementManager:i}=n;return t(),i.setupObservers(),i.processServerLoadedElements(r.getLastLoadedPage()),he&&i.enableTriggers(),()=>{n.flush(),ue(null)}},[e,oe,I,ie,se]);let me=(0,H.useMemo)(()=>r||i>0&&M>=i,[r,i,M]),he=(0,H.useMemo)(()=>!me,[me]);(0,H.useEffect)(()=>{he?fe?.enableTriggers():fe?.disableTriggers()},[he,g,_,I,ie]),(0,H.useEffect)(()=>{(s===void 0?o:s)&&pe()},[se]),(0,H.useImperativeHandle)(y,()=>({fetchNext:de?.fetchNext||(()=>{}),fetchPrevious:de?.fetchPrevious||(()=>{}),hasPrevious:de?.hasPrevious||(()=>!1),hasNext:de?.hasNext||(()=>!1)}),[de]);let ge=he&&!g,_e=he&&!_,ve={loadingPrevious:k,loadingNext:A,hasPrevious:P,hasNext:re},ye={loading:k,fetch:de?.fetchPrevious??(()=>{}),autoMode:ge,manualMode:!ge,hasMore:P,...ve},be={loading:A,fetch:de?.fetchNext??(()=>{}),autoMode:_e,manualMode:!_e,hasMore:re,...ve},xe={loading:k||A,loadingPrevious:k,loadingNext:A},Se=[];return l||Se.push((0,H.createElement)(`div`,{ref:S},La(f,ye,k?La(m,ye):null))),Se.push((0,H.createElement)(n,{...v,ref:D},typeof c==`function`?c(xe):c)),u||Se.push((0,H.createElement)(`div`,{ref:T},La(p,be,A?La(m,be):null))),(0,H.createElement)(H.Fragment,{},...o?[...Se].reverse():Se)});Ra.displayName=`InertiaInfiniteScroll`;var za=Ra,Ba=()=>void 0,Va=(0,H.forwardRef)(({children:e,as:t=`a`,data:n={},href:r=``,method:i=`get`,preserveScroll:a=!1,preserveState:o=null,preserveUrl:s=!1,replace:c=!1,only:l=[],except:u=[],headers:d={},queryStringArrayFormat:f=`brackets`,async:p=!1,onClick:m=Ba,onCancelToken:h=Ba,onBefore:g=Ba,onStart:_=Ba,onProgress:v=Ba,onFinish:y=Ba,onCancel:b=Ba,onSuccess:x=Ba,onError:S=Ba,onPrefetching:C=Ba,onPrefetched:w=Ba,prefetch:T=!1,cacheFor:E=0,cacheTags:ee=[],viewTransition:D=!1,component:O=null,instant:k=!1,pageProps:te=null,...A},j)=>{let[M,N]=(0,H.useState)(0),P=(0,H.useRef)(void 0),ne=(0,H.useMemo)(()=>Qn(r)?r.method:i.toLowerCase(),[r,i]),re=(0,H.useMemo)(()=>O||(k&&Qn(r)?$n(r):null),[O,k,r]),F=(0,H.useMemo)(()=>typeof t!=`string`||t.toLowerCase()!==`a`?t:ne===`get`?t.toLowerCase():`button`,[t,ne]),I=(0,H.useMemo)(()=>qn(ne,Qn(r)?r.url:r,n,f),[r,ne,n,f]),L=(0,H.useMemo)(()=>I[0],[I]),ie=(0,H.useMemo)(()=>I[1],[I]),ae=(0,H.useMemo)(()=>({data:ie,method:ne,preserveScroll:a,preserveState:o??ne!==`get`,preserveUrl:s,replace:c,only:l,except:u,headers:d,async:p,component:re,pageProps:te}),[ie,ne,a,o,s,c,l,u,d,p,re,te]),oe=(0,H.useMemo)(()=>({...ae,viewTransition:D,onCancelToken:h,onBefore:g,onStart(e){N(e=>e+1),_(e)},onProgress:v,onFinish(e){N(e=>e-1),y(e)},onCancel:b,onSuccess:x,onError:S}),[ae,D,h,g,_,v,y,b,x,S]),R=(0,H.useMemo)(()=>T===!0?[`hover`]:T===!1?[]:Array.isArray(T)?T:[T],Array.isArray(T)?T:[T]),se=(0,H.useMemo)(()=>E===0?R.length===1&&R[0]===`click`?0:Ga.get(`prefetch.cacheFor`):E,[E,R]),ce=(0,H.useMemo)(()=>()=>{Qi.prefetch(L,{...ae,onPrefetching:C,onPrefetched:w},{cacheFor:se,cacheTags:ee})},[L,ae,C,w,se,ee]);(0,H.useEffect)(()=>()=>{clearTimeout(P.current)},[]),(0,H.useEffect)(()=>{R.includes(`mount`)&&setTimeout(()=>ce())},R);let le={onClick:e=>{m(e),gi(e)&&(e.preventDefault(),Qi.visit(L,oe))}},ue={onMouseEnter:()=>{P.current=window.setTimeout(()=>{ce()},Ga.get(`prefetch.hoverDelay`))},onMouseLeave:()=>{clearTimeout(P.current)},onClick:le.onClick},de={onMouseDown:e=>{gi(e)&&(e.preventDefault(),ce())},onKeyDown:e=>{_i(e)&&(e.preventDefault(),ce())},onMouseUp:e=>{gi(e)&&(e.preventDefault(),Qi.visit(L,oe))},onKeyUp:e=>{_i(e)&&(e.preventDefault(),Qi.visit(L,oe))},onClick:e=>{m(e),gi(e)&&e.preventDefault()}},fe=(0,H.useMemo)(()=>F===`button`?{type:`button`}:F===`a`||typeof F!=`string`?{href:L}:{},[F,L]);return(0,H.createElement)(F,{...A,...fe,ref:j,...R.includes(`hover`)?ue:R.includes(`click`)?de:le,"data-loading":M>0?``:void 0},e)});Va.displayName=`InertiaLink`;var Ha=Va;function Ua(...e){let{rememberKey:t,data:n,precognitionEndpoint:r}=Ir.parseUseFormArguments(...e),i=pe(typeof n==`function`?n():n),a=(0,H.useRef)(null),o=(0,H.useRef)([]),s=(0,H.useRef)(null),[c,l]=(0,H.useState)(null),{form:u,setDefaultsState:d,transformRef:f,dataRef:p,precognitionEndpointRef:m,isMounted:h,setProcessing:g,setProgress:_,markAsSuccessful:v,clearErrors:y,setError:b,defaultsCalledInOnSuccessRef:x,resetBeforeSubmit:S,finishProcessing:C,withAllErrors:w}=Da({data:n,precognitionEndpoint:r,useDataState:t?()=>Oa(i,`${t}:data`,o):void 0,useErrorsState:t?()=>Oa({},`${t}:errors`):void 0}),T=(0,H.useCallback)(async(e,t,n)=>{if(n.onBefore?.()===!1)return Promise.reject(Error(`Request cancelled by onBefore`));x.current=!1,h.current&&S(),a.current=new AbortController,n.onCancelToken?.({cancel:()=>a.current?.abort()}),n.optimistic=n.optimistic??s.current??void 0,s.current=null;let r;if(n.optimistic){r=pe(p.current);let e=n.optimistic(pe(r));u.setData(t=>({...t,...e}))}h.current&&g(!0),n.onStart?.();let i=f.current(p.current),o=Mn(i),c=t,m,T;if(e===`get`){let[n]=qn(e,t,i);c=n}else o?m=Pn(i):(m=JSON.stringify(i),T=`application/json`);try{let t=await wr.getClient().request({method:e,url:c,data:m,headers:{Accept:`application/json`,...T?{"Content-Type":T}:{},...n.headers},signal:a.current.signal,onUploadProgress:e=>{h.current&&_(e),n.onProgress?.(e)}}),r=t.data?JSON.parse(t.data):null;if(t.status>=200&&t.status<300)return h.current&&(v(),l(r)),n.onSuccess?.(r,t),h.current&&!x.current&&u.setData(e=>(d(pe(e)),e)),r;throw new mr(`Request failed with status ${t.status}`,t)}catch(e){if(r&&h.current&&u.setData(r),e instanceof mr){if(e.response.status===422){let t=JSON.parse(e.response.data).errors||{},r=w.enabled()?t:Ft(t);h.current&&(y(),b(r)),n.onError?.(r)}else n.onHttpException?.(e.response);throw e}throw e instanceof hr||e instanceof Error&&e.name===`AbortError`?(n.onCancel?.(),new hr(`Request was cancelled`,t)):(n.onNetworkError?.(e instanceof Error?e:Error(`Unknown error`)),e)}finally{h.current&&C(),a.current=null,n.onFinish?.()}},[y,b]),E=(0,H.useCallback)(()=>{a.current&&a.current.abort()},[]),ee=(0,H.useCallback)((...e)=>{let t=Ir.parseSubmitArguments(e,m.current);return T(t.method,t.url,t.options)},[T]),D=(0,H.useMemo)(()=>({get:async(e,t={})=>T(`get`,e,t),post:async(e,t={})=>T(`post`,e,t),put:async(e,t={})=>T(`put`,e,t),patch:async(e,t={})=>T(`patch`,e,t),delete:async(e,t={})=>T(`delete`,e,t)}),[T]);Object.assign(u,{response:c,submit:ee,...D,cancel:E,dontRemember:(...e)=>(o.current=e,O),optimistic:e=>(s.current=e,O),withAllErrors:()=>(w.enable(),O)});let O=u,k=u.withPrecognition;return O.withPrecognition=(...e)=>(k(...e),O),m.current,O}var Wa=({children:e,data:t,params:n,buffer:r,as:i,always:a,fallback:o})=>{a??=!1,i??=`div`,o??=null;let s=Ta().props,c=(0,H.useMemo)(()=>t?Array.isArray(t)?t:[t]:[],[t]),[l,u]=(0,H.useState)(()=>c.length>0&&c.every(e=>Ae(s,e)!==void 0)),[d,f]=(0,H.useState)(!1),p=(0,H.useRef)(!1),m=(0,H.useRef)(null),h=(0,H.useRef)(null),g=(0,H.useRef)(()=>({}));(0,H.useEffect)(()=>{c.length>0&&u(c.every(e=>Ae(s,e)!==void 0))},[s,c]),g.current=(0,H.useCallback)(()=>{let e={preserveErrors:!0,...n};return t&&(e.only=Array.isArray(t)?t:[t]),e},[n,t]);let _=()=>{h.current?.disconnect(),h.current=new IntersectionObserver(e=>{if(!e[0].isIntersecting||p.current||!a&&l)return;p.current=!0,f(!0);let t=g.current();Qi.reload({...t,onStart:e=>{p.current=!0,f(!0),t.onStart?.(e)},onFinish:e=>{u(!0),p.current=!1,f(!1),t.onFinish?.(e),a||h.current?.disconnect()}})},{rootMargin:`${r||0}px`}),h.current.observe(m.current)};(0,H.useEffect)(()=>{if(m.current&&!(l&&!a))return _(),()=>{h.current?.disconnect()}},[a,l,r]);let v=()=>typeof e==`function`?e({fetching:d}):e;return a||!l?(0,H.createElement)(i,{props:null,ref:m},l?v():typeof o==`function`?o():o):l?v():null};Wa.displayName=`InertiaWhenVisible`;var Ga=Ut.extend(),Ka=s((e=>{var t=ea().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return t.H.useMemoCache(e)}})),qa=s(((e,t)=>{t.exports=Ka()})),U=qa();function Ja(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Ya=e=>{switch(e){case`success`:return Qa;case`info`:return eo;case`warning`:return $a;case`error`:return to;default:return null}},Xa=Array(12).fill(0),Za=({visible:e,className:t})=>H.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},H.createElement(`div`,{className:`sonner-spinner`},Xa.map((e,t)=>H.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Qa=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),$a=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),eo=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),to=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),no=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},H.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),H.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ro=()=>{let[e,t]=H.useState(document.hidden);return H.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},io=1,ao=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:io++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],H.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(so(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||io++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},oo=(e,t)=>{let n=t?.id||io++;return ao.addToast({title:e,...t,id:n}),n},so=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,co=Object.assign(oo,{success:ao.success,info:ao.info,warning:ao.warning,error:ao.error,custom:ao.custom,message:ao.message,promise:ao.promise,dismiss:ao.dismiss,loading:ao.loading},{getHistory:()=>ao.toasts,getToasts:()=>ao.getActiveToasts()});Ja(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function W(e){return e.label!==void 0}var lo=3,uo=`24px`,fo=`16px`,po=4e3,mo=356,ho=14,go=45,_o=200;function vo(...e){return e.filter(Boolean).join(` `)}function yo(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var bo=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,ee]=H.useState(null),[D,O]=H.useState(null),[k,te]=H.useState(!1),[A,j]=H.useState(!1),[M,N]=H.useState(!1),[P,ne]=H.useState(!1),[re,F]=H.useState(!1),[I,L]=H.useState(0),[ie,ae]=H.useState(0),oe=H.useRef(n.duration||y||po),R=H.useRef(null),se=H.useRef(null),ce=c===0,le=c+1<=o,ue=n.type,de=n.dismissible!==!1,fe=n.className||``,pe=n.descriptionClassName||``,me=H.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),he=H.useMemo(()=>n.closeButton??p,[n.closeButton,p]),ge=H.useMemo(()=>n.duration||y||po,[n.duration,y]),_e=H.useRef(0),ve=H.useRef(0),ye=H.useRef(0),be=H.useRef(null),[xe,Se]=b.split(`-`),Ce=H.useMemo(()=>s.reduce((e,t,n)=>n>=me?e:e+t.height,0),[s,me]),we=ro(),Te=n.invert||t,Ee=ue===`loading`;ve.current=H.useMemo(()=>me*x+Ce,[me,Ce]),H.useEffect(()=>{oe.current=ge},[ge]),H.useEffect(()=>{te(!0)},[]),H.useEffect(()=>{let e=se.current;if(e){let t=e.getBoundingClientRect().height;return ae(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),H.useLayoutEffect(()=>{if(!k)return;let e=se.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,ae(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[k,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let De=H.useCallback(()=>{j(!0),L(ve.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},_o)},[n,d,a,ve]);H.useEffect(()=>{if(n.promise&&ue===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||we?(()=>{if(ye.current<_e.current){let e=new Date().getTime()-_e.current;oe.current-=e}ye.current=new Date().getTime()})():oe.current!==1/0&&(_e.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),De()},oe.current)),()=>clearTimeout(e)},[u,i,n,ue,we,De]),H.useEffect(()=>{n.delete&&(De(),n.onDismiss==null||n.onDismiss.call(n,n))},[De,n.delete]);function Oe(){return w?.loading?H.createElement(`div`,{className:vo(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":ue===`loading`},w.loading):H.createElement(Za,{className:vo(C?.loader,n?.classNames?.loader),visible:ue===`loading`})}let ke=n.icon||w?.[ue]||Ya(ue);return H.createElement(`li`,{tabIndex:0,ref:se,className:vo(_,fe,C?.toast,n?.classNames?.toast,C?.default,C?.[ue],n?.classNames?.[ue]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":k,"data-promise":!!n.promise,"data-swiped":re,"data-removed":A,"data-visible":le,"data-y-position":xe,"data-x-position":Se,"data-index":c,"data-front":ce,"data-swiping":M,"data-dismissible":de,"data-type":ue,"data-invert":Te,"data-swipe-out":P,"data-swipe-direction":D,"data-expanded":!!(u||S&&k),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${A?I:ve.current}px`,"--initial-height":S?`auto`:`${ie}px`,...m,...n.style},onDragEnd:()=>{N(!1),ee(null),be.current=null},onPointerDown:e=>{e.button!==2&&(Ee||!de||(R.current=new Date,L(ve.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(N(!0),be.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(P||!de)return;be.current=null;let e=Number(se.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(se.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-R.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=go||a>.11){L(ve.current),n.onDismiss==null||n.onDismiss.call(n,n),O(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),De(),ne(!0);return}else{var o,s;(o=se.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=se.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}F(!1),N(!1),ee(null)},onPointerMove:t=>{var n,r;if(!be.current||!de||window.getSelection()?.toString().length>0)return;let i=t.clientY-be.current.y,a=t.clientX-be.current.x,o=e.swipeDirections??yo(b);!E&&(Math.abs(a)>1||Math.abs(i)>1)&&ee(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&F(!0),(n=se.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=se.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},he&&!n.jsx&&ue!==`loading`?H.createElement(`button`,{"aria-label":T,"data-disabled":Ee,"data-close-button":!0,onClick:Ee||!de?()=>{}:()=>{De(),n.onDismiss==null||n.onDismiss.call(n,n)},className:vo(C?.closeButton,n?.classNames?.closeButton)},w?.close??no):null,(ue||n.icon||n.promise)&&n.icon!==null&&(w?.[ue]!==null||n.icon)?H.createElement(`div`,{"data-icon":``,className:vo(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Oe():null,n.type===`loading`?null:ke):null,H.createElement(`div`,{"data-content":``,className:vo(C?.content,n?.classNames?.content)},H.createElement(`div`,{"data-title":``,className:vo(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?H.createElement(`div`,{"data-description":``,className:vo(v,pe,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),H.isValidElement(n.cancel)?n.cancel:n.cancel&&W(n.cancel)?H.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{W(n.cancel)&&de&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),De())},className:vo(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,H.isValidElement(n.action)?n.action:n.action&&W(n.action)?H.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{W(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&De())},className:vo(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function xo(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function So(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?fo:uo;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Co=H.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=lo,toastOptions:g,dir:_=xo(),gap:v=ho,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=H.useState([]),C=H.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=H.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,E]=H.useState([]),[ee,D]=H.useState(!1),[O,k]=H.useState(!1),[te,A]=H.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),j=H.useRef(null),M=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),N=H.useRef(null),P=H.useRef(!1),ne=H.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||ao.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return H.useEffect(()=>ao.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{sa.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),H.useEffect(()=>{if(d!==`system`){A(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?A(`dark`):A(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{A(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{A(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),H.useEffect(()=>{x.length<=1&&D(!1)},[x]),H.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;D(!0),(t=j.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===j.current||j.current?.contains(document.activeElement))&&D(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),H.useEffect(()=>{if(j.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,P.current=!1)}},[j.current]),H.createElement(`section`,{ref:t,"aria-label":`${b} ${M}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?H.createElement(`ol`,{key:t,dir:_===`auto`?xo():_,tabIndex:-1,ref:j,className:c,"data-sonner-toaster":!0,"data-sonner-theme":te,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${mo}px`,"--gap":`${v}px`,...m,...So(l,u)},onBlur:e=>{P.current&&!e.currentTarget.contains(e.relatedTarget)&&(P.current=!1,N.current&&=(N.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||P.current||(P.current=!0,N.current=e.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{O||D(!1)},onDragEnd:()=>D(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||k(!0)},onPointerUp:()=>k(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>H.createElement(bo,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:O,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ne,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:E,expandByDefault:o,gap:v,expanded:ee,swipeDirections:e.swipeDirections}))):null}))});function wo(){let e=(0,U.c)(1),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,H.useEffect)(To,t)}function To(){return Qi.on(`flash`,Eo)}function Eo(e){let t=e.detail?.flash?.toast;t&&co[t.type](t.message)}var Do=new Set,Oo=`system`,ko=()=>typeof window>`u`?!1:window.matchMedia(`(prefers-color-scheme: dark)`).matches,Ao=(e,t,n=365)=>{if(typeof document>`u`)return;let r=n*24*60*60;document.cookie=`${e}=${t};path=/;max-age=${r};SameSite=Lax`},jo=()=>typeof window>`u`?`system`:localStorage.getItem(`appearance`)||`system`,Mo=e=>e===`dark`||e===`system`&&ko(),No=e=>{if(typeof document>`u`)return;let t=Mo(e);document.documentElement.classList.toggle(`dark`,t),document.documentElement.style.colorScheme=t?`dark`:`light`},Po=e=>(Do.add(e),()=>Do.delete(e)),Fo=()=>Do.forEach(e=>e()),Io=()=>typeof window>`u`?null:window.matchMedia(`(prefers-color-scheme: dark)`),Lo=()=>No(Oo);function Ro(){typeof window>`u`||(localStorage.getItem(`appearance`)||(localStorage.setItem(`appearance`,`system`),Ao(`appearance`,`system`)),Oo=jo(),No(Oo),Io()?.addEventListener(`change`,Lo))}function zo(){let e=(0,U.c)(3),t=(0,H.useSyncExternalStore)(Po,Ho,Vo),n=Mo(t)?`dark`:`light`,r=Bo,i;return e[0]!==t||e[1]!==n?(i={appearance:t,resolvedAppearance:n,updateAppearance:r},e[0]=t,e[1]=n,e[2]=i):i=e[2],i}function Bo(e){Oo=e,localStorage.setItem(`appearance`,e),Ao(`appearance`,e),No(e),Fo()}function Vo(){return`system`}function Ho(){return Oo}var Uo=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Wo=s(((e,t)=>{t.exports=Uo()})),G=Wo();function Go(e){let t=(0,U.c)(6),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let{appearance:r}=zo();wo();let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i={"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`},t[2]=i):i=t[2];let a;return t[3]!==r||t[4]!==n?(a=(0,G.jsx)(Co,{theme:r,className:`toaster group`,position:`bottom-right`,style:i,...n}),t[3]=r,t[4]=n,t[5]=a):a=t[5],a}typeof window<`u`&&window.document&&window.document.createElement;function K(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Ko(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function qo(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ko(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Xo(i,...t)]}function Xo(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Zo(e){let t=Qo(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(es);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Qo(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=ns(n),i=ts(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $o=Symbol(`radix.slottable`);function es(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===$o}function ts(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ns(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rs=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Zo(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function is(e,t){e&&sa.flushSync(()=>e.dispatchEvent(t))}function as(e){let t=H.useRef(e);return H.useEffect(()=>{t.current=e}),H.useMemo(()=>(...e)=>t.current?.(...e),[])}function os(e,t=globalThis?.document){let n=as(e);H.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var ss=`DismissableLayer`,cs=`dismissableLayer.update`,ls=`dismissableLayer.pointerDownOutside`,us=`dismissableLayer.focusOutside`,ds,fs=H.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ps=H.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=H.useContext(fs),[u,d]=H.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=H.useState({}),m=Jo(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=gs(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=_s(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return os(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),H.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ds=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),vs(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ds)}},[u,f,n,l]),H.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),vs())},[u,l]),H.useEffect(()=>{let e=()=>p({});return document.addEventListener(cs,e),()=>document.removeEventListener(cs,e)},[]),(0,G.jsx)(rs.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:K(e.onFocusCapture,S.onFocusCapture),onBlurCapture:K(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,x.onPointerDownCapture)})});ps.displayName=ss;var ms=`DismissableLayerBranch`,hs=H.forwardRef((e,t)=>{let n=H.useContext(fs),r=H.useRef(null),i=Jo(t,r);return H.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,G.jsx)(rs.div,{...e,ref:i})});hs.displayName=ms;function gs(e,t=globalThis?.document){let n=as(e),r=H.useRef(!1),i=H.useRef(()=>{});return H.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){ys(ls,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _s(e,t=globalThis?.document){let n=as(e),r=H.useRef(!1);return H.useEffect(()=>{let e=e=>{e.target&&!r.current&&ys(us,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vs(){let e=new CustomEvent(cs);document.dispatchEvent(e)}function ys(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?is(i,a):i.dispatchEvent(a)}var bs=globalThis?.document?H.useLayoutEffect:()=>{},xs=H.useId||(()=>void 0),Ss=0;function Cs(e){let[t,n]=H.useState(xs());return bs(()=>{e||n(e=>e??String(Ss++))},[e]),e||(t?`radix-${t}`:``)}var ws=[`top`,`right`,`bottom`,`left`],Ts=Math.min,Es=Math.max,Ds=Math.round,Os=Math.floor,ks=e=>({x:e,y:e}),As={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function js(e,t,n){return Es(e,Ts(t,n))}function Ms(e,t){return typeof e==`function`?e(t):e}function Ns(e){return e.split(`-`)[0]}function Ps(e){return e.split(`-`)[1]}function Fs(e){return e===`x`?`y`:`x`}function Is(e){return e===`y`?`height`:`width`}function Ls(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Rs(e){return Fs(Ls(e))}function zs(e,t,n){n===void 0&&(n=!1);let r=Ps(e),i=Rs(e),a=Is(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Js(o)),[o,Js(o)]}function Bs(e){let t=Js(e);return[Vs(e),t,Vs(t)]}function Vs(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Hs=[`left`,`right`],Us=[`right`,`left`],Ws=[`top`,`bottom`],Gs=[`bottom`,`top`];function Ks(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Us:Hs:t?Hs:Us;case`left`:case`right`:return t?Ws:Gs;default:return[]}}function qs(e,t,n,r){let i=Ps(e),a=Ks(Ns(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Vs)))),a}function Js(e){let t=Ns(e);return As[t]+e.slice(t.length)}function Ys(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xs(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ys(e)}function Zs(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 Qs(e,t,n){let{reference:r,floating:i}=e,a=Ls(t),o=Rs(t),s=Is(o),c=Ns(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}}switch(Ps(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function $s(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}=Ms(t,e),p=Xs(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Zs(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=Zs(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 ec=50,tc=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:$s},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Qs(l,r,c),f=r,p=0,m={};for(let n=0;n({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}=Ms(e,t)||{};if(l==null)return{};let d=Xs(u),f={x:n,y:r},p=Rs(i),m=Is(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=Ts(d[_],T),ee=Ts(d[v],T),D=E,O=C-h[m]-ee,k=C/2-h[m]/2+w,te=js(D,k,O),A=!c.arrow&&Ps(i)!=null&&k!==te&&a.reference[m]/2-(ke<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Ls(t))||T.every(e=>Ls(e.placement)===_?e.overflows[0]>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=Ls(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;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ic(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ac(e){return ws.some(t=>e[t]>=0)}var oc=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ms(e,t);switch(i){case`referenceHidden`:{let e=ic(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ac(e)}}}case`escaped`:{let e=ic(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ac(e)}}}default:return{}}}}},sc=new Set([`left`,`top`]);async function cc(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ns(n),s=Ps(n),c=Ls(n)===`y`,l=sc.has(o)?-1:1,u=a&&c?-1:1,d=Ms(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 lc=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 cc(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}}}}},uc=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}=Ms(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ls(Ns(i)),p=Fs(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=js(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=js(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},dc=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}=Ms(e,t),u={x:n,y:r},d=Ls(i),f=Fs(d),p=u[f],m=u[d],h=Ms(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};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;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=sc.has(Ns(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);mr&&(m=r)}return{[f]:p,[d]:m}}}},fc=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ms(e,t),u=await o.detectOverflow(t,l),d=Ns(i),f=Ps(i),p=Ls(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ts(h-u[g],v),x=Ts(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Es(u.left,0),t=Es(u.right,0),n=Es(u.top,0),r=Es(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Es(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Es(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function pc(){return typeof window<`u`}function mc(e){return _c(e)?(e.nodeName||``).toLowerCase():`#document`}function hc(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gc(e){return((_c(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function _c(e){return pc()?e instanceof Node||e instanceof hc(e).Node:!1}function vc(e){return pc()?e instanceof Element||e instanceof hc(e).Element:!1}function yc(e){return pc()?e instanceof HTMLElement||e instanceof hc(e).HTMLElement:!1}function bc(e){return!pc()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof hc(e).ShadowRoot}function xc(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Mc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Sc(e){return/^(table|td|th)$/.test(mc(e))}function Cc(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var wc=/transform|translate|scale|rotate|perspective|filter/,Tc=/paint|layout|strict|content/,Ec=e=>!!e&&e!==`none`,Dc;function Oc(e){let t=vc(e)?Mc(e):e;return Ec(t.transform)||Ec(t.translate)||Ec(t.scale)||Ec(t.rotate)||Ec(t.perspective)||!Ac()&&(Ec(t.backdropFilter)||Ec(t.filter))||wc.test(t.willChange||``)||Tc.test(t.contain||``)}function kc(e){let t=Pc(e);for(;yc(t)&&!jc(t);){if(Oc(t))return t;if(Cc(t))return null;t=Pc(t)}return null}function Ac(){return Dc??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Dc}function jc(e){return/^(html|body|#document)$/.test(mc(e))}function Mc(e){return hc(e).getComputedStyle(e)}function Nc(e){return vc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pc(e){if(mc(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||bc(e)&&e.host||gc(e);return bc(t)?t.host:t}function Fc(e){let t=Pc(e);return jc(t)?e.ownerDocument?e.ownerDocument.body:e.body:yc(t)&&xc(t)?t:Fc(t)}function Ic(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Fc(e),i=r===e.ownerDocument?.body,a=hc(r);if(i){let e=Lc(a);return t.concat(a,a.visualViewport||[],xc(r)?r:[],e&&n?Ic(e):[])}else return t.concat(r,Ic(r,[],n))}function Lc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rc(e){let t=Mc(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=yc(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ds(n)!==a||Ds(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function zc(e){return vc(e)?e:e.contextElement}function Bc(e){let t=zc(e);if(!yc(t))return ks(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Rc(t),o=(a?Ds(n.width):n.width)/r,s=(a?Ds(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Vc=ks(0);function Hc(e){let t=hc(e);return!Ac()||!t.visualViewport?Vc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hc(e)?!1:t}function Wc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=zc(e),o=ks(1);t&&(r?vc(r)&&(o=Bc(r)):o=Bc(e));let s=Uc(a,n,r)?Hc(a):ks(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){let e=hc(a),t=r&&vc(r)?hc(r):r,n=e,i=Lc(n);for(;i&&r&&t!==n;){let e=Bc(i),t=i.getBoundingClientRect(),r=Mc(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=hc(i),i=Lc(n)}}return Zs({width:u,height:d,x:c,y:l})}function Gc(e,t){let n=Nc(e).scrollLeft;return t?t.left+n:Wc(gc(e)).left+n}function Kc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Gc(e,n),y:n.top+t.scrollTop}}function qc(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=gc(r),s=t?Cc(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ks(1),u=ks(0),d=yc(r);if((d||!d&&!a)&&((mc(r)!==`body`||xc(o))&&(c=Nc(r)),d)){let e=Wc(r);l=Bc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Kc(o,c):ks(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 Jc(e){return Array.from(e.getClientRects())}function Yc(e){let t=gc(e),n=Nc(e),r=e.ownerDocument.body,i=Es(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Es(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Gc(e),s=-n.scrollTop;return Mc(r).direction===`rtl`&&(o+=Es(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Xc=25;function Zc(e,t){let n=hc(e),r=gc(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ac();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Gc(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Xc&&(a-=o)}else l<=Xc&&(a+=l);return{width:a,height:o,x:s,y:c}}function Qc(e,t){let n=Wc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=yc(e)?Bc(e):ks(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function $c(e,t,n){let r;if(t===`viewport`)r=Zc(e,n);else if(t===`document`)r=Yc(gc(e));else if(vc(t))r=Qc(t,n);else{let n=Hc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Zs(r)}function el(e,t){let n=Pc(e);return n===t||!vc(n)||jc(n)?!1:Mc(n).position===`fixed`||el(n,t)}function tl(e,t){let n=t.get(e);if(n)return n;let r=Ic(e,[],!1).filter(e=>vc(e)&&mc(e)!==`body`),i=null,a=Mc(e).position===`fixed`,o=a?Pc(e):e;for(;vc(o)&&!jc(o);){let t=Mc(o),n=Oc(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||xc(o)&&!n&&el(e,o))?r=r.filter(e=>e!==o):i=t,o=Pc(o)}return t.set(e,r),r}function nl(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Cc(t)?[]:tl(t,this._c):[].concat(n),r],o=$c(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!dl(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function pl(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=zc(e),u=i||a?[...l?Ic(l):[],...t?Ic(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?fl(l,n):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?Wc(e):null;c&&g();function g(){let t=Wc(e);h&&!dl(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 ml=lc,hl=uc,gl=rc,_l=fc,vl=oc,yl=nc,bl=dc,xl=(e,t,n)=>{let r=new Map,i={platform:ul,...n},a={...i.platform,_c:r};return tc(e,t,{...i,platform:a})},Sl=typeof document<`u`?H.useLayoutEffect:function(){};function Cl(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(!Cl(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)&&!Cl(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function wl(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tl(e,t){let n=wl(e);return Math.round(t*n)/n}function El(e){let t=H.useRef(e);return Sl(()=>{t.current=e}),t}function Dl(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]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);Cl(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),T=c!=null,E=El(c),ee=El(i),D=El(l),O=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ee.current&&(e.platform=ee.current),xl(S.current,C.current,e).then(e=>{let t={...e,isPositioned:D.current!==!1};k.current&&!Cl(w.current,t)&&(w.current=t,sa.flushSync(()=>{d(t)}))})},[f,t,n,ee,D]);Sl(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=H.useRef(!1);Sl(()=>(k.current=!0,()=>{k.current=!1}),[]),Sl(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let te=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),A=H.useMemo(()=>({reference:b,floating:x}),[b,x]),j=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=Tl(A.floating,u.x),r=Tl(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...wl(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:O,refs:te,elements:A,floatingStyles:j}),[u,O,te,A,j])}var Ol=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?{}:yl({element:r.current,padding:i}).fn(n):r?yl({element:r,padding:i}).fn(n):{}}}},kl=(e,t)=>{let n=ml(e);return{name:n.name,fn:n.fn,options:[e,t]}},Al=(e,t)=>{let n=hl(e);return{name:n.name,fn:n.fn,options:[e,t]}},jl=(e,t)=>({fn:bl(e).fn,options:[e,t]}),Ml=(e,t)=>{let n=gl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nl=(e,t)=>{let n=_l(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pl=(e,t)=>{let n=vl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fl=(e,t)=>{let n=Ol(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Il(e){let t=Ll(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(zl);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ll(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=J(n),i=q(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rl=Symbol(`radix.slottable`);function zl(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Rl}function q(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function J(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bl=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Il(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Vl=`Arrow`,Hl=H.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,G.jsx)(Bl.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,G.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Hl.displayName=Vl;var Ul=Hl;function Wl(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Gl(i,...t)]}function Gl(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Kl(e){let t=ql(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(Yl);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ql(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=Zl(n),i=Xl(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Jl=Symbol(`radix.slottable`);function Yl(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Jl}function Xl(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Zl(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ql=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Kl(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function $l(e){let[t,n]=H.useState(void 0);return bs(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var eu=`Popper`,[tu,nu]=Wl(eu),[ru,iu]=tu(eu),au=e=>{let{__scopePopper:t,children:n}=e,[r,i]=H.useState(null);return(0,G.jsx)(ru,{scope:t,anchor:r,onAnchorChange:i,children:n})};au.displayName=eu;var ou=`PopperAnchor`,su=H.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=iu(ou,n),o=H.useRef(null),s=Jo(t,o),c=H.useRef(null);return H.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,G.jsx)(Ql.div,{...i,ref:s})});su.displayName=ou;var cu=`PopperContent`,[lu,uu]=tu(cu),du=H.forwardRef((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=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=iu(cu,n),[_,v]=H.useState(null),y=Jo(t,e=>v(e)),[b,x]=H.useState(null),S=$l(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},ee=Array.isArray(l)?l:[l],D=ee.length>0,O={padding:E,boundary:ee.filter(hu),altBoundary:D},{refs:k,floatingStyles:te,placement:A,isPositioned:j,middlewareData:M}=Dl({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>pl(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[kl({mainAxis:i+w,alignmentAxis:o}),c&&Al({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?jl():void 0,...O}),c&&Ml({...O}),Nl({...O,apply:({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`)}}),b&&Fl({element:b,padding:s}),gu({arrowWidth:C,arrowHeight:w}),f&&Pl({strategy:`referenceHidden`,...O})]}),[N,P]=_u(A),ne=as(m);bs(()=>{j&&ne?.()},[j,ne]);let re=M.arrow?.x,F=M.arrow?.y,I=M.arrow?.centerOffset!==0,[L,ie]=H.useState();return bs(()=>{_&&ie(window.getComputedStyle(_).zIndex)},[_]),(0,G.jsx)(`div`,{ref:k.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:j?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:L,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(` `),...M.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,G.jsx)(lu,{scope:n,placedSide:N,onArrowChange:x,arrowX:re,arrowY:F,shouldHideArrow:I,children:(0,G.jsx)(Ql.div,{"data-side":N,"data-align":P,...h,ref:y,style:{...h.style,animation:j?void 0:`none`}})})})});du.displayName=cu;var fu=`PopperArrow`,pu={top:`bottom`,right:`left`,bottom:`top`,left:`right`},mu=H.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=uu(fu,n),a=pu[i.placedSide];return(0,G.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,G.jsx)(Ul,{...r,ref:t,style:{...r.style,display:`block`}})})});mu.displayName=fu;function hu(e){return e!==null}var gu=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]=_u(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}}}});function _u(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var vu=au,yu=su,bu=du,xu=mu;function Su(e){let t=Cu(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(Tu);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Cu(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=Du(n),i=Eu(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wu=Symbol(`radix.slottable`);function Tu(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===wu}function Eu(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Du(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ou=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Su(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ku=`Portal`,Au=H.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=H.useState(!1);bs(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?sa.createPortal((0,G.jsx)(Ou.div,{...r,ref:t}),o):null});Au.displayName=ku;function ju(e,t){return H.useReducer((e,n)=>t[e][n]??e,e)}var Mu=e=>{let{present:t,children:n}=e,r=Nu(t),i=typeof n==`function`?n({present:r.isPresent}):H.Children.only(n),a=Jo(r.ref,Fu(i));return typeof n==`function`||r.isPresent?H.cloneElement(i,{ref:a}):null};Mu.displayName=`Presence`;function Nu(e){let[t,n]=H.useState(),r=H.useRef(null),i=H.useRef(e),a=H.useRef(`none`),[o,s]=ju(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return H.useEffect(()=>{let e=Pu(r.current);a.current=o===`mounted`?e:`none`},[o]),bs(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Pu(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),bs(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=Pu(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=Pu(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:H.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function Pu(e){return e?.animationName||`none`}function Fu(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Iu(e){let t=Lu(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(Bu);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Lu(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=Hu(n),i=Vu(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ru=Symbol(`radix.slottable`);function zu(e){let t=({children:e})=>(0,G.jsx)(G.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Ru,t}function Bu(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ru}function Vu(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Hu(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Uu=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Iu(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Wu=H.useInsertionEffect||bs;function Gu({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Ku({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=H.useRef(e!==void 0);H.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,H.useCallback(t=>{if(s){let n=qu(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Ku({defaultProp:e,onChange:t}){let[n,r]=H.useState(e),i=H.useRef(n),a=H.useRef(t);return Wu(()=>{a.current=t},[t]),H.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function qu(e){return typeof e==`function`}function Ju(e){let t=Yu(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(Zu);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Yu(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=$u(n),i=Qu(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Xu=Symbol(`radix.slottable`);function Zu(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Xu}function Qu(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function $u(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ed=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Ju(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),td=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`}),nd=`VisuallyHidden`,rd=H.forwardRef((e,t)=>(0,G.jsx)(ed.span,{...e,ref:t,style:{...td,...e.style}}));rd.displayName=nd;var id=rd,[ad,od]=Yo(`Tooltip`,[nu]),sd=nu(),cd=`TooltipProvider`,ld=700,ud=`tooltip.open`,[dd,fd]=ad(cd),pd=e=>{let{__scopeTooltip:t,delayDuration:n=ld,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=H.useRef(!0),s=H.useRef(!1),c=H.useRef(0);return H.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,G.jsx)(dd,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:H.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:H.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:H.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};pd.displayName=cd;var md=`Tooltip`,[hd,gd]=ad(md),_d=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=fd(md,e.__scopeTooltip),l=sd(t),[u,d]=H.useState(null),f=Cs(),p=H.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=H.useRef(!1),[_,v]=Gu({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(ud))):c.onClose(),a?.(e)},caller:md}),y=H.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=H.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=H.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=H.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return H.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,G.jsx)(vu,{...l,children:(0,G.jsx)(hd,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:H.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:H.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};_d.displayName=md;var vd=`TooltipTrigger`,yd=H.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=gd(vd,n),a=fd(vd,n),o=sd(n),s=Jo(t,H.useRef(null),i.onTriggerChange),c=H.useRef(!1),l=H.useRef(!1),u=H.useCallback(()=>c.current=!1,[]);return H.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,G.jsx)(yu,{asChild:!0,...o,children:(0,G.jsx)(Uu.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:K(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:K(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:K(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:K(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:K(e.onBlur,i.onClose),onClick:K(e.onClick,i.onClose)})})});yd.displayName=vd;var bd=`TooltipPortal`,[xd,Sd]=ad(bd,{forceMount:void 0}),Y=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=gd(bd,t);return(0,G.jsx)(xd,{scope:t,forceMount:n,children:(0,G.jsx)(Mu,{present:n||a.open,children:(0,G.jsx)(Au,{asChild:!0,container:i,children:r})})})};Y.displayName=bd;var Cd=`TooltipContent`,wd=H.forwardRef((e,t)=>{let n=Sd(Cd,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=gd(Cd,e.__scopeTooltip);return(0,G.jsx)(Mu,{present:r||o.open,children:o.disableHoverableContent?(0,G.jsx)(kd,{side:i,...a,ref:t}):(0,G.jsx)(Td,{side:i,...a,ref:t})})}),Td=H.forwardRef((e,t)=>{let n=gd(Cd,e.__scopeTooltip),r=fd(Cd,e.__scopeTooltip),i=H.useRef(null),a=Jo(t,i),[o,s]=H.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=H.useCallback(()=>{s(null),d(!1)},[d]),p=H.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Nd(r,Md(r,n.getBoundingClientRect())),a=Pd(t.getBoundingClientRect());s(Id([...i,...a])),d(!0)},[d]);return H.useEffect(()=>()=>f(),[f]),H.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),H.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Fd(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,G.jsx)(kd,{...e,ref:a})}),[Ed,Dd]=ad(md,{isInside:!1}),Od=zu(`TooltipContent`),kd=H.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=gd(Cd,n),l=sd(n),{onClose:u}=c;return H.useEffect(()=>(document.addEventListener(ud,u),()=>document.removeEventListener(ud,u)),[u]),H.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,G.jsx)(ps,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,G.jsxs)(bu,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.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,G.jsx)(Od,{children:r}),(0,G.jsx)(Ed,{scope:n,isInside:!0,children:(0,G.jsx)(id,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});wd.displayName=Cd;var Ad=`TooltipArrow`,jd=H.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=sd(n);return Dd(Ad,n).isInside?null:(0,G.jsx)(xu,{...i,...r,ref:t})});jd.displayName=Ad;function Md(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`)}}function Nd(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});break}return r}function Pd(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}]}function Fd(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Id(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),Ld(t)}function Ld(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=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)}var Rd=pd,zd=_d,Bd=yd,Vd=Y,Hd=wd,Ud=jd;function Wd(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Jd=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yd=`-`,Xd=[],Zd=`arbitrary..`,Qd=e=>{let t=tf(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return ef(e);let n=e.split(Yd);return $d(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Kd(i,t):t:i||Xd}return n[e]||Xd}}},$d=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=$d(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Yd):e.slice(t).join(Yd),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Zd+r:void 0})(),tf=e=>{let{theme:t,classGroups:n}=e;return nf(n,t)},nf=(e,t)=>{let n=Jd();for(let r in e){let i=e[r];rf(i,n,r,t)}return n},rf=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){of(e,t,n);return}if(typeof e==`function`){sf(e,t,n,r);return}cf(e,t,n,r)},of=(e,t,n)=>{let r=e===``?t:lf(t,e);r.classGroupId=n},sf=(e,t,n,r)=>{if(uf(e)){rf(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(qd(n,e))},cf=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(Yd),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,df=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ff=`!`,pf=`:`,mf=[],hf=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),gf=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return hf(t,l,c,u)};if(t){let e=t+pf,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):hf(mf,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},_f=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},vf=e=>({cache:df(e.cacheSize),parseClassName:gf(e),sortModifiers:_f(e),postfixLookupClassGroupIds:yf(e),...Qd(e)}),yf=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(bf),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ff:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},Sf=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=vf(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=xf(e,n);return i(e,a),a};return a=o,(...e)=>a(Sf(...e))},Tf=[],Ef=e=>{let t=t=>t[e]||Tf;return t.isThemeGetter=!0,t},Df=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Of=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kf=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Af=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jf=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mf=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Nf=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pf=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ff=e=>kf.test(e),X=e=>!!e&&!Number.isNaN(Number(e)),If=e=>!!e&&Number.isInteger(Number(e)),Lf=e=>e.endsWith(`%`)&&X(e.slice(0,-1)),Rf=e=>Af.test(e),zf=()=>!0,Bf=e=>jf.test(e)&&!Mf.test(e),Vf=()=>!1,Hf=e=>Nf.test(e),Uf=e=>Pf.test(e),Wf=e=>!Z(e)&&!Q(e),Gf=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Kf=e=>sp(e,dp,Vf),Z=e=>Df.test(e),qf=e=>sp(e,fp,Bf),Jf=e=>sp(e,pp,X),Yf=e=>sp(e,hp,zf),Xf=e=>sp(e,mp,Vf),Zf=e=>sp(e,lp,Vf),Qf=e=>sp(e,up,Uf),$f=e=>sp(e,gp,Hf),Q=e=>Of.test(e),ep=e=>cp(e,fp),tp=e=>cp(e,mp),np=e=>cp(e,lp),rp=e=>cp(e,dp),ip=e=>cp(e,up),ap=e=>cp(e,gp,!0),op=e=>cp(e,hp,!0),sp=(e,t,n)=>{let r=Df.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},cp=(e,t,n=!1)=>{let r=Of.exec(e);return r?r[1]?t(r[1]):n:!1},lp=e=>e===`position`||e===`percentage`,up=e=>e===`image`||e===`url`,dp=e=>e===`length`||e===`size`||e===`bg-size`,fp=e=>e===`length`,pp=e=>e===`number`,mp=e=>e===`family-name`,hp=e=>e===`number`||e===`weight`,gp=e=>e===`shadow`,_p=wf(()=>{let e=Ef(`color`),t=Ef(`font`),n=Ef(`text`),r=Ef(`font-weight`),i=Ef(`tracking`),a=Ef(`leading`),o=Ef(`breakpoint`),s=Ef(`container`),c=Ef(`spacing`),l=Ef(`radius`),u=Ef(`shadow`),d=Ef(`inset-shadow`),f=Ef(`text-shadow`),p=Ef(`drop-shadow`),m=Ef(`blur`),h=Ef(`perspective`),g=Ef(`aspect`),_=Ef(`ease`),v=Ef(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Q,Z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Q,Z,c],T=()=>[Ff,`full`,`auto`,...w()],E=()=>[If,`none`,`subgrid`,Q,Z],ee=()=>[`auto`,{span:[`full`,If,Q,Z]},If,Q,Z],D=()=>[If,`auto`,Q,Z],O=()=>[`auto`,`min`,`max`,`fr`,Q,Z],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],te=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],j=()=>[Ff,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[Ff,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],N=()=>[Ff,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,Q,Z],ne=()=>[...b(),np,Zf,{position:[Q,Z]}],re=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],F=()=>[`auto`,`cover`,`contain`,rp,Kf,{size:[Q,Z]}],I=()=>[Lf,ep,qf],L=()=>[``,`none`,`full`,l,Q,Z],ie=()=>[``,X,ep,qf],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[X,Lf,np,Zf],se=()=>[``,`none`,m,Q,Z],ce=()=>[`none`,X,Q,Z],le=()=>[`none`,X,Q,Z],ue=()=>[X,Q,Z],de=()=>[Ff,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Rf],breakpoint:[Rf],color:[zf],container:[Rf],"drop-shadow":[Rf],ease:[`in`,`out`,`in-out`],font:[Wf],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Rf],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Rf],shadow:[Rf],spacing:[`px`,X],text:[Rf],"text-shadow":[Rf],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ff,Z,Q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Q,Z]}],"container-named":[Gf],columns:[{columns:[X,Z,Q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[If,`auto`,Q,Z]}],basis:[{basis:[Ff,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[X,Ff,`auto`,`initial`,`none`,Z]}],grow:[{grow:[``,X,Q,Z]}],shrink:[{shrink:[``,X,Q,Z]}],order:[{order:[If,`first`,`last`,`none`,Q,Z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...te(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...te()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...te(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...te(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...te(),`baseline`]}],"place-self":[{"place-self":[`auto`,...te()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...M()]}],"min-inline-size":[{"min-inline":[`auto`,...M()]}],"max-inline-size":[{"max-inline":[`none`,...M()]}],"block-size":[{block:[`auto`,...N()]}],"min-block-size":[{"min-block":[`auto`,...N()]}],"max-block-size":[{"max-block":[`none`,...N()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,...j()]}],"font-size":[{text:[`base`,n,ep,qf]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,op,Yf]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Lf,Z]}],"font-family":[{font:[tp,Xf,t]}],"font-features":[{"font-features":[Z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Q,Z]}],"line-clamp":[{"line-clamp":[X,`none`,Q,Jf]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Q,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Q,Z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[X,`from-font`,`auto`,Q,qf]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[X,`auto`,Q,Z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[If,Q,Z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q,Z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Q,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:F()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},If,Q,Z],radial:[``,Q,Z],conic:[If,Q,Z]},ip,Qf]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-bs":[{"border-bs":ie()}],"border-w-be":[{"border-be":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[X,Q,Z]}],"outline-w":[{outline:[``,X,ep,qf]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,ap,$f]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,ap,$f]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:ie()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[X,qf]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,ap,$f]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[X,Q,Z]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Q,Z]}],filter:[{filter:[``,`none`,Q,Z]}],blur:[{blur:se()}],brightness:[{brightness:[X,Q,Z]}],contrast:[{contrast:[X,Q,Z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ap,$f]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,X,Q,Z]}],"hue-rotate":[{"hue-rotate":[X,Q,Z]}],invert:[{invert:[``,X,Q,Z]}],saturate:[{saturate:[X,Q,Z]}],sepia:[{sepia:[``,X,Q,Z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Q,Z]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[X,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[X,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,X,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,Q,Z]}],"backdrop-invert":[{"backdrop-invert":[``,X,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[X,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[X,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":[``,X,Q,Z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Q,Z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[X,`initial`,Q,Z]}],ease:[{ease:[`linear`,`initial`,_,Q,Z]}],delay:[{delay:[X,Q,Z]}],animate:[{animate:[`none`,v,Q,Z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Q,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[Q,Z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[If,Q,Z]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Q,Z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Q,Z]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[X,ep,qf,Jf]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function $(...e){return _p(Gd(e))}function vp(e){return typeof e==`string`?e:e.url}function yp(e){let t=(0,U.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,G.jsx)(Rd,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function bp(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(zd,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function xp(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Bd,{"data-slot":`tooltip-trigger`,...n}),t[2]=n,t[3]=r),r}function Sp(e){let t=(0,U.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,sideOffset:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?4:a,s;t[5]===r?s=t[6]:(s=$(`bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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 z-50 max-w-sm rounded-md px-3 py-1.5 text-xs`,r),t[5]=r,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,G.jsx)(Ud,{className:`bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]`}),t[7]=c):c=t[7];let l;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==s?(l=(0,G.jsx)(Vd,{children:(0,G.jsxs)(Hd,{"data-slot":`tooltip-content`,sideOffset:o,className:s,...i,children:[n,c]})}),t[8]=n,t[9]=i,t[10]=o,t[11]=s,t[12]=l):l=t[12],l}function Cp(e){let t={},n={background:`background`,foreground:`foreground`,card:`card`,"card-foreground":`card-foreground`,popover:`popover`,"popover-foreground":`popover-foreground`,primary:`primary`,"primary-foreground":`primary-foreground`,secondary:`secondary`,"secondary-foreground":`secondary-foreground`,muted:`muted`,"muted-foreground":`muted-foreground`,accent:`accent`,"accent-foreground":`accent-foreground`,destructive:`destructive`,"destructive-foreground":`destructive-foreground`,border:`border`,input:`input`,ring:`ring`,"chart-1":`chart-1`,"chart-2":`chart-2`,"chart-3":`chart-3`,"chart-4":`chart-4`,"chart-5":`chart-5`,sidebar:`sidebar`,"sidebar-foreground":`sidebar-foreground`,"sidebar-primary":`sidebar-primary`,"sidebar-primary-foreground":`sidebar-primary-foreground`,"sidebar-accent":`sidebar-accent`,"sidebar-accent-foreground":`sidebar-accent-foreground`,"sidebar-border":`sidebar-border`,"sidebar-ring":`sidebar-ring`};for(let[r,i]of Object.entries(e)){let e=r.startsWith(`--`)?r:`--${r}`;t[e]=i;let a=e.slice(2);n[a]&&(/^(hsl|oklch|rgb|#)/i.test(i)?t[`--color-${n[a]}`]=i:t[`--color-${n[a]}`]=`hsl(${i})`)}return t}var wp=`color-app`,Tp=null,Ep=[],Dp=new Set;function Op(){if(typeof window>`u`)return null;try{let e=localStorage.getItem(wp);return e?JSON.parse(e):null}catch{return null}}function kp(){if(typeof window>`u`)return`light`;let e=localStorage.getItem(`appearance`);return e===`dark`?`dark`:e===`light`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Ap(){Ep.forEach(e=>{document.documentElement.style.removeProperty(e)}),Ep=[]}function jp(e,t){Ap();let n=Cp({...e.varsTheme??{},...t===`dark`?e.varsDark??{}:e.varsLight??{}});Ep=Object.keys(n),Object.entries(n).forEach(([e,t])=>{document.documentElement.style.setProperty(e,t)})}function Mp(){Dp.forEach(e=>e())}function Np(e){return Dp.add(e),()=>Dp.delete(e)}function Pp(){return Tp}function Fp(){return null}function Ip(){if(typeof window>`u`)return;let e=Op();e&&(Tp=e.name,jp(e,kp()))}function Lp(e){let t={name:e.name,varsLight:e.cssVars?.light??e.vars_light??{},varsDark:e.cssVars?.dark??e.vars_dark??{},varsTheme:e.cssVars?.theme??e.vars_theme??{}};Tp=e.name,localStorage.setItem(wp,JSON.stringify(t)),jp(t,kp()),Mp()}function Rp(){Tp=null,localStorage.removeItem(wp),Ap(),Mp()}function zp(){let e=(0,U.c)(7),t=(0,H.useSyncExternalStore)(Np,Pp,Fp),{resolvedAppearance:n}=zo(),r,i;e[0]!==n||e[1]!==t?(r=()=>{let e=Op();e&&e.name===t&&jp(e,n)},i=[n,t],e[0]=n,e[1]=t,e[2]=r,e[3]=i):(r=e[2],i=e[3]),(0,H.useEffect)(r,i);let a=t!==null,o;return e[4]!==a||e[5]!==t?(o={themeName:t,setColorTheme:Lp,clearColorTheme:Rp,isThemeActive:a},e[4]=a,e[5]=t,e[6]=o):o=e[6],o}var Bp=Symbol.for(`react.lazy`),Vp=H.use;function Hp(e){return typeof e==`object`&&!!e&&`then`in e}function Up(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Bp&&`_payload`in e&&Hp(e._payload)}function Wp(e){let t=Kp(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e;Up(r)&&typeof Vp==`function`&&(r=Vp(r._payload));let a=H.Children.toArray(r),o=a.find(Jp);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Gp=Wp(`Slot`);function Kp(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(Up(n)&&typeof Vp==`function`&&(n=Vp(n._payload)),H.isValidElement(n)){let e=Xp(n),i=Yp(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qp=Symbol(`radix.slottable`);function Jp(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===qp}function Yp(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Xp(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zp=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Qp=Gd,$p=(e,t)=>n=>{if(t?.variants==null)return Qp(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Zp(t)||Zp(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Qp(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},em=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),tm=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),nm={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},rm=(0,H.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,H.createElement)(`svg`,{ref:c,...nm,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:tm(`lucide`,i),...s},[...o.map(([e,t])=>(0,H.createElement)(e,t)),...Array.isArray(a)?a:[a]])),im=(e,t)=>{let n=(0,H.forwardRef)(({className:n,...r},i)=>(0,H.createElement)(rm,{ref:i,iconNode:t,className:tm(`lucide-${em(e)}`,n),...r}));return n.displayName=`${e}`,n},am=im(`BookOpen`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),om=im(`ChevronRight`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),sm=im(`ChevronsUpDown`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),cm=im(`FolderGit2`,[[`path`,{d:`M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`path`,{d:`M18 19c-2.8 0-5-2.2-5-5v8`,key:`pkpw2h`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]),lm=im(`LayoutGrid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),um=im(`LogOut`,[[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}],[`polyline`,{points:`16 17 21 12 16 7`,key:`1gabdz`}],[`line`,{x1:`21`,x2:`9`,y1:`12`,y2:`12`,key:`1uyos4`}]]),dm=im(`PanelLeftClose`,[[`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`}]]),fm=im(`PanelLeftOpen`,[[`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`}]]),pm=im(`Settings`,[[`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`,key:`1qme2f`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),mm=im(`X`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),hm=$p(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40`,outline:`border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function gm(e){let t=(0,U.c)(14),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:n,variant:o,size:i,asChild:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a!==void 0&&a?Gp:`button`,c;t[6]!==n||t[7]!==i||t[8]!==o?(c=$(hm({variant:o,size:i,className:n})),t[6]=n,t[7]=i,t[8]=o,t[9]=c):c=t[9];let l;return t[10]!==s||t[11]!==r||t[12]!==c?(l=(0,G.jsx)(s,{"data-slot":`button`,className:c,...r}),t[10]=s,t[11]=r,t[12]=c,t[13]=l):l=t[13],l}function _m(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=$(`border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,G.jsx)(`input`,{type:i,"data-slot":`input`,className:a,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}var vm=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Wp(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ym=`Separator`,bm=`horizontal`,xm=[`horizontal`,`vertical`],Sm=H.forwardRef((e,t)=>{let{decorative:n,orientation:r=bm,...i}=e,a=Cm(r)?r:bm,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,G.jsx)(vm.div,{"data-orientation":a,...o,...i,ref:t})});Sm.displayName=ym;function Cm(e){return xm.includes(e)}var wm=Sm;function Tm(e){let t=(0,U.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,orientation:i,decorative:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`horizontal`:i,s=a===void 0?!0:a,c;t[5]===n?c=t[6]:(c=$(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,n),t[5]=n,t[6]=c);let l;return t[7]!==s||t[8]!==o||t[9]!==r||t[10]!==c?(l=(0,G.jsx)(wm,{"data-slot":`separator-root`,decorative:s,orientation:o,className:c,...r}),t[7]=s,t[8]=o,t[9]=r,t[10]=c,t[11]=l):l=t[11],l}function Em(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Dm(i,...t)]}function Dm(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Om(e){let t=km(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(jm);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function km(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=Nm(n),i=Mm(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Am=Symbol(`radix.slottable`);function jm(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Am}function Mm(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Nm(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Pm(e){let t=e+`CollectionProvider`,[n,r]=Em(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=H.useRef(null),a=H.useRef(new Map).current;return(0,G.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=Om(s),l=H.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,G.jsx)(c,{ref:Jo(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Om(u),p=H.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=H.useRef(null),s=Jo(t,o),c=a(u,n);return H.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,G.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return H.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[{Provider:o,Slot:l,ItemSlot:p},m,r]}var Fm=H.createContext(void 0);function Im(e){let t=H.useContext(Fm);return e||t||`ltr`}function Lm(e,t){let n=H.createContext(t),r=e=>{let{children:t,...r}=e,i=H.useMemo(()=>r,Object.values(r));return(0,G.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=H.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function Rm(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,zm(i,...t)]}function zm(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Bm(e){let t=Vm(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(Um);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Vm(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=Gm(n),i=Wm(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hm=Symbol(`radix.slottable`);function Um(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Hm}function Wm(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Gm(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Km=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Bm(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),qm=`focusScope.autoFocusOnMount`,Jm=`focusScope.autoFocusOnUnmount`,Ym={bubbles:!1,cancelable:!0},Xm=`FocusScope`,Zm=H.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=H.useState(null),l=as(i),u=as(a),d=H.useRef(null),f=Jo(t,e=>c(e)),p=H.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;H.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:ih(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||ih(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ih(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),H.useEffect(()=>{if(s){ah.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(qm,Ym);s.addEventListener(qm,l),s.dispatchEvent(t),t.defaultPrevented||(Qm(ch(eh(s)),{select:!0}),document.activeElement===e&&ih(s))}return()=>{s.removeEventListener(qm,l),setTimeout(()=>{let t=new CustomEvent(Jm,Ym);s.addEventListener(Jm,u),s.dispatchEvent(t),t.defaultPrevented||ih(e??document.body,{select:!0}),s.removeEventListener(Jm,u),ah.remove(p)},0)}}},[s,l,u,p]);let m=H.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=$m(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ih(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ih(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,G.jsx)(Km.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});Zm.displayName=Xm;function Qm(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ih(r,{select:t}),document.activeElement!==n)return}function $m(e){let t=eh(e);return[th(t,e),th(t.reverse(),e)]}function eh(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function th(e,t){for(let n of e)if(!nh(n,{upTo:t}))return n}function nh(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function rh(e){return e instanceof HTMLInputElement&&`select`in e}function ih(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rh(e)&&t&&e.select()}}var ah=oh();function oh(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=sh(e,t),e.unshift(t)},remove(t){e=sh(e,t),e[0]?.resume()}}}function sh(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ch(e){return e.filter(e=>e.tagName!==`A`)}function lh(e){let t=uh(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(fh);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function uh(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=mh(n),i=ph(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dh=Symbol(`radix.slottable`);function fh(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===dh}function ph(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function mh(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hh=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=lh(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),gh=0;function _h(){H.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??vh()),document.body.insertAdjacentElement(`beforeend`,e[1]??vh()),gh++,()=>{gh===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),gh--}},[])}function vh(){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}var yh=function(){return yh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return qh;var t=Yh(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])}},Zh=Kh(),Qh=`data-scroll-locked`,$h=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` .${wh} { overflow: hidden ${r}; padding-right: ${s}px ${r}; @@ -139,4 +139,4 @@ Error generating stack: `+e.message+` If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return H.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},h_=`DialogDescriptionWarning`,g_=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${p_(h_).contentName}}.`;return H.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},__=Hg,v_=Wg,y_=Jg,b_=Xg,x_=e_,S_=a_,C_=s_,w_=l_,T_=s((e=>{var t=ea();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),E_=s(((e,t)=>{t.exports=T_()})),D_=E_();function O_(){return(0,D_.useSyncExternalStore)(k_,()=>!0,()=>!1)}function k_(){return()=>{}}function A_(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,j_(i,...t)]}function j_(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function M_(e){let t=N_(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(F_);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function N_(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=L_(n),i=I_(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P_=Symbol(`radix.slottable`);function F_(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===P_}function I_(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function L_(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var R_=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=M_(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function z_(e,t){e&&sa.flushSync(()=>e.dispatchEvent(t))}function B_(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,V_(i,...t)]}function V_(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function H_(e){let t=U_(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(G_);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function U_(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=q_(n),i=K_(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var W_=Symbol(`radix.slottable`);function G_(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===W_}function K_(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function q_(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var J_=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=H_(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Y_=`rovingFocusGroup.onEntryFocus`,X_={bubbles:!1,cancelable:!0},Z_=`RovingFocusGroup`,[Q_,$_,ev]=Pm(Z_),[tv,nv]=B_(Z_,[ev]),[rv,iv]=tv(Z_),av=H.forwardRef((e,t)=>(0,G.jsx)(Q_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,G.jsx)(Q_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,G.jsx)(ov,{...e,ref:t})})}));av.displayName=Z_;var ov=H.forwardRef((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=H.useRef(null),p=Jo(t,f),m=Im(a),[h,g]=Gu({prop:o,defaultProp:s??null,onChange:c,caller:Z_}),[_,v]=H.useState(!1),y=as(l),b=$_(n),x=H.useRef(!1),[S,C]=H.useState(0);return H.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Y_,y),()=>e.removeEventListener(Y_,y)},[y]),(0,G.jsx)(rv,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:H.useCallback(e=>g(e),[g]),onItemShiftTab:H.useCallback(()=>v(!0),[]),onFocusableItemAdd:H.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:H.useCallback(()=>C(e=>e-1),[]),children:(0,G.jsx)(J_.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:K(e.onMouseDown,()=>{x.current=!0}),onFocus:K(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Y_,X_);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);fv([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:K(e.onBlur,()=>v(!1))})})}),sv=`RovingFocusGroupItem`,cv=H.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Cs(),l=a||c,u=iv(sv,n),d=u.currentTabStopId===l,f=$_(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return H.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,G.jsx)(Q_.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,G.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=dv(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?pv(n,r+1):n.slice(r+1)}setTimeout(()=>fv(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});cv.displayName=sv;var lv={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function uv(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function dv(e,t,n){let r=uv(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return lv[r]}function fv(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function pv(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var mv=av,hv=cv,gv=[`Enter`,` `],_v=[`ArrowDown`,`PageUp`,`Home`],vv=[`ArrowUp`,`PageDown`,`End`],yv=[..._v,...vv],bv={ltr:[...gv,`ArrowRight`],rtl:[...gv,`ArrowLeft`]},xv={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Sv=`Menu`,[Cv,wv,Tv]=Pm(Sv),[Ev,Dv]=A_(Sv,[Tv,nu,nv]),Ov=nu(),kv=nv(),[Av,jv]=Ev(Sv),[Mv,Nv]=Ev(Sv),Pv=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Ov(t),[c,l]=H.useState(null),u=H.useRef(!1),d=as(a),f=Im(i);return H.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;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})}},[]),(0,G.jsx)(vu,{...s,children:(0,G.jsx)(Av,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,G.jsx)(Mv,{scope:t,onClose:H.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};Pv.displayName=Sv;var Fv=`MenuAnchor`,Iv=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Ov(n);return(0,G.jsx)(yu,{...i,...r,ref:t})});Iv.displayName=Fv;var Lv=`MenuPortal`,[Rv,zv]=Ev(Lv,{forceMount:void 0}),Bv=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=jv(Lv,t);return(0,G.jsx)(Rv,{scope:t,forceMount:n,children:(0,G.jsx)(Mu,{present:n||a.open,children:(0,G.jsx)(Au,{asChild:!0,container:i,children:r})})})};Bv.displayName=Lv;var Vv=`MenuContent`,[Hv,Uv]=Ev(Vv),Wv=H.forwardRef((e,t)=>{let n=zv(Vv,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=jv(Vv,e.__scopeMenu),o=Nv(Vv,e.__scopeMenu);return(0,G.jsx)(Cv.Provider,{scope:e.__scopeMenu,children:(0,G.jsx)(Mu,{present:r||a.open,children:(0,G.jsx)(Cv.Slot,{scope:e.__scopeMenu,children:o.modal?(0,G.jsx)(Gv,{...i,ref:t}):(0,G.jsx)(Kv,{...i,ref:t})})})})}),Gv=H.forwardRef((e,t)=>{let n=jv(Vv,e.__scopeMenu),r=H.useRef(null),i=Jo(t,r);return H.useEffect(()=>{let e=r.current;if(e)return Ig(e)},[]),(0,G.jsx)(Jv,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:K(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Kv=H.forwardRef((e,t)=>{let n=jv(Vv,e.__scopeMenu);return(0,G.jsx)(Jv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),qv=M_(`MenuContent.ScrollLock`),Jv=H.forwardRef((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=jv(Vv,n),_=Nv(Vv,n),v=Ov(n),y=kv(n),b=wv(n),[x,S]=H.useState(null),C=H.useRef(null),w=Jo(t,C,g.onContentChange),T=H.useRef(0),E=H.useRef(``),ee=H.useRef(0),D=H.useRef(null),O=H.useRef(`right`),k=H.useRef(0),te=m?Dg:H.Fragment,A=m?{as:qv,allowPinchZoom:!0}:void 0,j=e=>{let t=E.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=My(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){E.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};H.useEffect(()=>()=>window.clearTimeout(T.current),[]),_h();let M=H.useCallback(e=>O.current===D.current?.side&&Py(e,D.current?.area),[]);return(0,G.jsx)(Hv,{scope:n,searchRef:E,onItemEnter:H.useCallback(e=>{M(e)&&e.preventDefault()},[M]),onItemLeave:H.useCallback(e=>{M(e)||(C.current?.focus(),S(null))},[M]),onTriggerLeave:H.useCallback(e=>{M(e)&&e.preventDefault()},[M]),pointerGraceTimerRef:ee,onPointerGraceIntentChange:H.useCallback(e=>{D.current=e},[]),children:(0,G.jsx)(te,{...A,children:(0,G.jsx)(Zm,{asChild:!0,trapped:i,onMountAutoFocus:K(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,G.jsx)(ps,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,G.jsx)(mv,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:K(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,G.jsx)(bu,{role:`menu`,"aria-orientation":`vertical`,"data-state":Dy(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,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&&j(e.key));let i=C.current;if(e.target!==i||!yv.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);vv.includes(e.key)&&a.reverse(),Ay(a)}),onBlur:K(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),E.current=``)}),onPointerMove:K(e.onPointerMove,Fy(e=>{let t=e.target,n=k.current!==e.clientX;e.currentTarget.contains(t)&&n&&(O.current=e.clientX>k.current?`right`:`left`,k.current=e.clientX)}))})})})})})})});Wv.displayName=Vv;var Yv=`MenuGroup`,Xv=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(R_.div,{role:`group`,...r,ref:t})});Xv.displayName=Yv;var Zv=`MenuLabel`,Qv=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(R_.div,{...r,ref:t})});Qv.displayName=Zv;var $v=`MenuItem`,ey=`menu.itemSelect`,ty=H.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=H.useRef(null),o=Nv($v,e.__scopeMenu),s=Uv($v,e.__scopeMenu),c=Jo(t,a),l=H.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(ey,{bubbles:!0,cancelable:!0});e.addEventListener(ey,e=>r?.(e),{once:!0}),z_(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,G.jsx)(ny,{...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=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||gv.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ty.displayName=$v;var ny=H.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Uv($v,n),s=kv(n),c=H.useRef(null),l=Jo(t,c),[u,d]=H.useState(!1),[f,p]=H.useState(``);return H.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,G.jsx)(Cv.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,G.jsx)(hv,{asChild:!0,...s,focusable:!r,children:(0,G.jsx)(R_.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,Fy(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:K(e.onPointerLeave,Fy(e=>o.onItemLeave(e))),onFocus:K(e.onFocus,()=>d(!0)),onBlur:K(e.onBlur,()=>d(!1))})})})}),ry=`MenuCheckboxItem`,iy=H.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,G.jsx)(fy,{scope:e.__scopeMenu,checked:n,children:(0,G.jsx)(ty,{role:`menuitemcheckbox`,"aria-checked":Oy(n)?`mixed`:n,...i,ref:t,"data-state":ky(n),onSelect:K(i.onSelect,()=>r?.(Oy(n)?!0:!n),{checkForDefaultPrevented:!1})})})});iy.displayName=ry;var ay=`MenuRadioGroup`,[oy,sy]=Ev(ay,{value:void 0,onValueChange:()=>{}}),cy=H.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=as(r);return(0,G.jsx)(oy,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,G.jsx)(Xv,{...i,ref:t})})});cy.displayName=ay;var ly=`MenuRadioItem`,uy=H.forwardRef((e,t)=>{let{value:n,...r}=e,i=sy(ly,e.__scopeMenu),a=n===i.value;return(0,G.jsx)(fy,{scope:e.__scopeMenu,checked:a,children:(0,G.jsx)(ty,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":ky(a),onSelect:K(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});uy.displayName=ly;var dy=`MenuItemIndicator`,[fy,py]=Ev(dy,{checked:!1}),my=H.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=py(dy,n);return(0,G.jsx)(Mu,{present:r||Oy(a.checked)||a.checked===!0,children:(0,G.jsx)(R_.span,{...i,ref:t,"data-state":ky(a.checked)})})});my.displayName=dy;var hy=`MenuSeparator`,gy=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(R_.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});gy.displayName=hy;var _y=`MenuArrow`,vy=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Ov(n);return(0,G.jsx)(xu,{...i,...r,ref:t})});vy.displayName=_y;var yy=`MenuSub`,[by,xy]=Ev(yy),Sy=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=jv(yy,t),o=Ov(t),[s,c]=H.useState(null),[l,u]=H.useState(null),d=as(i);return H.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,G.jsx)(vu,{...o,children:(0,G.jsx)(Av,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,G.jsx)(by,{scope:t,contentId:Cs(),triggerId:Cs(),trigger:s,onTriggerChange:c,children:n})})})};Sy.displayName=yy;var Cy=`MenuSubTrigger`,wy=H.forwardRef((e,t)=>{let n=jv(Cy,e.__scopeMenu),r=Nv(Cy,e.__scopeMenu),i=xy(Cy,e.__scopeMenu),a=Uv(Cy,e.__scopeMenu),o=H.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=H.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return H.useEffect(()=>u,[u]),H.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,G.jsx)(Iv,{asChild:!0,...l,children:(0,G.jsx)(ny,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Dy(n.open),...e,ref:qo(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:K(e.onPointerMove,Fy(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:K(e.onPointerLeave,Fy(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:K(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||bv[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});wy.displayName=Cy;var Ty=`MenuSubContent`,Ey=H.forwardRef((e,t)=>{let n=zv(Vv,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=jv(Vv,e.__scopeMenu),o=Nv(Vv,e.__scopeMenu),s=xy(Ty,e.__scopeMenu),c=H.useRef(null),l=Jo(t,c);return(0,G.jsx)(Cv.Provider,{scope:e.__scopeMenu,children:(0,G.jsx)(Mu,{present:r||a.open,children:(0,G.jsx)(Cv.Slot,{scope:e.__scopeMenu,children:(0,G.jsx)(Jv,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:K(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:K(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:K(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=xv[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Ey.displayName=Ty;function Dy(e){return e?`open`:`closed`}function Oy(e){return e===`indeterminate`}function ky(e){return Oy(e)?`indeterminate`:e?`checked`:`unchecked`}function Ay(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function jy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function My(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=jy(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}function Ny(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Py(e,t){return t?Ny({x:e.clientX,y:e.clientY},t):!1}function Fy(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Iy=Pv,Ly=Iv,Ry=Bv,zy=Wv,By=Xv,Vy=Qv,Hy=ty,Uy=iy,Wy=cy,Gy=uy,Ky=my,qy=gy,Jy=vy,Yy=wy,Xy=Ey;function Zy(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Qy(i,...t)]}function Qy(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function $y(e){let t=eb(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(nb);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function eb(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=ib(n),i=rb(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tb=Symbol(`radix.slottable`);function nb(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===tb}function rb(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ib(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ab=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=$y(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ob=`DropdownMenu`,[sb,cb]=Zy(ob,[Dv]),lb=Dv(),[ub,db]=sb(ob),fb=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=lb(t),l=H.useRef(null),[u,d]=Gu({prop:i,defaultProp:a??!1,onChange:o,caller:ob});return(0,G.jsx)(ub,{scope:t,triggerId:Cs(),triggerRef:l,contentId:Cs(),open:u,onOpenChange:d,onOpenToggle:H.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,G.jsx)(Iy,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};fb.displayName=ob;var pb=`DropdownMenuTrigger`,mb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=db(pb,n),o=lb(n);return(0,G.jsx)(Ly,{asChild:!0,...o,children:(0,G.jsx)(ab.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:qo(t,a.triggerRef),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())})})})});mb.displayName=pb;var hb=`DropdownMenuPortal`,gb=e=>{let{__scopeDropdownMenu:t,...n}=e,r=lb(t);return(0,G.jsx)(Ry,{...r,...n})};gb.displayName=hb;var _b=`DropdownMenuContent`,vb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=db(_b,n),a=lb(n),o=H.useRef(!1);return(0,G.jsx)(zy,{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)`}})});vb.displayName=_b;var yb=`DropdownMenuGroup`,bb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(By,{...i,...r,ref:t})});bb.displayName=yb;var xb=`DropdownMenuLabel`,Sb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Vy,{...i,...r,ref:t})});Sb.displayName=xb;var Cb=`DropdownMenuItem`,wb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Hy,{...i,...r,ref:t})});wb.displayName=Cb;var Tb=`DropdownMenuCheckboxItem`,Eb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Uy,{...i,...r,ref:t})});Eb.displayName=Tb;var Db=`DropdownMenuRadioGroup`,Ob=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Wy,{...i,...r,ref:t})});Ob.displayName=Db;var kb=`DropdownMenuRadioItem`,Ab=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Gy,{...i,...r,ref:t})});Ab.displayName=kb;var jb=`DropdownMenuItemIndicator`,Mb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Ky,{...i,...r,ref:t})});Mb.displayName=jb;var Nb=`DropdownMenuSeparator`,Pb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(qy,{...i,...r,ref:t})});Pb.displayName=Nb;var Fb=`DropdownMenuArrow`,Ib=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Jy,{...i,...r,ref:t})});Ib.displayName=Fb;var Lb=`DropdownMenuSubTrigger`,Rb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Yy,{...i,...r,ref:t})});Rb.displayName=Lb;var zb=`DropdownMenuSubContent`,Bb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Xy,{...i,...r,ref:t,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)`}})});Bb.displayName=zb;var Vb=fb,Hb=mb,Ub=gb,Wb=vb,Gb=bb,Kb=Sb,qb=wb,Jb=Pb;function Yb(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(__,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function Xb(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(v_,{"data-slot":`sheet-trigger`,...n}),t[2]=n,t[3]=r),r}function Zb(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(y_,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function Qb(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(b_,{"data-slot":`sheet-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function $b(e){let t=(0,U.c)(20),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(Qb,{}),t[6]=l):l=t[6];let u=s===`right`&&`inset-y-0 right-0 h-full w-4/5 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,d=s===`left`&&`inset-y-0 left-0 h-full w-4/5 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,f=s===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,p=s===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,m;t[7]!==r||t[8]!==u||t[9]!==d||t[10]!==f||t[11]!==p?(m=$(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,u,d,f,p,r),t[7]=r,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m):m=t[12];let h;t[13]===c?h=t[14]:(h=c&&(0,G.jsxs)(w_,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,G.jsx)(mm,{className:`size-4`}),(0,G.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[13]=c,t[14]=h);let g;return t[15]!==n||t[16]!==i||t[17]!==m||t[18]!==h?(g=(0,G.jsxs)(Zb,{children:[l,(0,G.jsxs)(x_,{"data-slot":`sheet-content`,className:m,...i,children:[n,h]})]}),t[15]=n,t[16]=i,t[17]=m,t[18]=h,t[19]=g):g=t[19],g}function ex(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`flex flex-col gap-1.5 p-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sheet-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function tx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`font-semibold text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(S_,{"data-slot":`sheet-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function nx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`text-sm text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(C_,{"data-slot":`sheet-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var rx=typeof window>`u`?void 0:window.matchMedia(`(max-width: 767px)`);function ix(e){return rx?(rx.addEventListener(`change`,e),()=>{rx.removeEventListener(`change`,e)}):()=>{}}function ax(){return rx?.matches??!1}function ox(){return!1}function sx(){return(0,H.useSyncExternalStore)(ix,ax,ox)}var cx=`sidebar_state`,lx=3600*24*7,ux=`16rem`,dx=`18rem`,fx=`3rem`,px=`b`,mx=H.createContext(null);function hx(){let e=H.useContext(mx);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function gx(e){let t=(0,U.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=sx(),[d,f]=H.useState(!1),[p,m]=H.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${cx}=${t}; path=/; max-age=${lx}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(vx):_(_x),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===px&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),H.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===s?T=t[25]:(T={"--sidebar-width":ux,"--sidebar-width-icon":fx,...s},t[24]=s,t[25]=T);let E=T,ee;t[26]===r?ee=t[27]:(ee=$(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,r),t[26]=r,t[27]=ee);let D;t[28]!==n||t[29]!==a||t[30]!==E||t[31]!==ee?(D=(0,G.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:E,className:ee,...a,children:n}),t[28]=n,t[29]=a,t[30]=E,t[31]=ee,t[32]=D):D=t[32];let O;return t[33]!==w||t[34]!==D?(O=(0,G.jsx)(mx.Provider,{value:w,children:D}),t[33]=w,t[34]=D,t[35]=O):O=t[35],O}function _x(e){return!e}function vx(e){return!e}function yx(e){let t=(0,U.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offcanvas`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=hx();if(u===`none`){let e;t[7]===r?e=t[8]:(e=$(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar`,className:e,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsxs)(ex,{className:`sr-only`,children:[(0,G.jsx)(tx,{children:`Sidebar`}),(0,G.jsx)(nx,{children:`Displays the mobile sidebar.`})]}),t[13]=e):e=t[13];let r;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(r={"--sidebar-width":dx},t[14]=r):r=t[14];let a;t[15]===n?a=t[16]:(a=(0,G.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=a);let o;t[17]!==c||t[18]!==a?(o=(0,G.jsx)($b,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:r,side:c,children:a}),t[17]=c,t[18]=a,t[19]=o):o=t[19];let s;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==o?(s=(0,G.jsxs)(Yb,{open:p,onOpenChange:m,...i,children:[e,o]}),t[20]=p,t[21]=i,t[22]=m,t[23]=o,t[24]=s):s=t[24],s}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=$(`relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,G.jsx)(`div`,{className:_}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=$(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,G.jsx)(`div`,{"data-sidebar":`sidebar`,className:`bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,G.jsx)(`div`,{className:x,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,G.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":f,"data-collapsible":h,"data-variant":l,"data-side":c,"data-slot":`sidebar`,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function bx(e){let t=(0,U.c)(18),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a,isMobile:o,state:s}=hx(),c;t[4]===n?c=t[5]:(c=$(`h-7 w-7`,n),t[4]=n,t[5]=c);let l;t[6]!==r||t[7]!==a?(l=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=l):l=t[8];let u;t[9]!==o||t[10]!==s?(u=o||s===`collapsed`?(0,G.jsx)(fm,{}):(0,G.jsx)(dm,{}),t[9]=o,t[10]=s,t[11]=u):u=t[11];let d;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(`span`,{className:`sr-only`,children:`Toggle sidebar`}),t[12]=d):d=t[12];let f;return t[13]!==i||t[14]!==c||t[15]!==l||t[16]!==u?(f=(0,G.jsxs)(gm,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:c,onClick:l,...i,children:[u,d]}),t[13]=i,t[14]=c,t[15]=l,t[16]=u,t[17]=f):f=t[17],f}function xx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`bg-background relative flex max-w-full min-h-svh flex-1 flex-col`,`peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`main`,{"data-slot":`sidebar-inset`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Sx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Cx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function wx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Tx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`relative flex w-full min-w-0 flex-col p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ex(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,asChild:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i!==void 0&&i?Gp:`div`,o;t[4]===n?o=t[5]:(o=$(`text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 group-data-[collapsible=icon]:select-none group-data-[collapsible=icon]:pointer-events-none`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,G.jsx)(a,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:o,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}function Dx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`w-full text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ox(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`flex w-full min-w-0 flex-col gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function kx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Ax=$p(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function jx(e){let t=(0,U.c)(28),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({asChild:i,isActive:a,variant:o,size:s,tooltip:c,className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=i===void 0?!1:i,u=a===void 0?!1:a,d=o===void 0?`default`:o,f=s===void 0?`default`:s,p=l?Gp:`button`,{isMobile:m,state:h}=hx(),g;t[8]!==n||t[9]!==f||t[10]!==d?(g=$(Ax({variant:d,size:f}),n),t[8]=n,t[9]=f,t[10]=d,t[11]=g):g=t[11];let _;t[12]!==p||t[13]!==u||t[14]!==r||t[15]!==f||t[16]!==g?(_=(0,G.jsx)(p,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":f,"data-active":u,className:g,...r}),t[12]=p,t[13]=u,t[14]=r,t[15]=f,t[16]=g,t[17]=_):_=t[17];let v=_;if(!c)return v;if(typeof c==`string`){let e;t[18]===c?e=t[19]:(e={children:c},t[18]=c,t[19]=e),c=e}let y;t[20]===v?y=t[21]:(y=(0,G.jsx)(xp,{asChild:!0,children:v}),t[20]=v,t[21]=y);let b=h!==`collapsed`||m,x;t[22]!==b||t[23]!==c?(x=(0,G.jsx)(Sp,{side:`right`,align:`center`,hidden:b,...c}),t[22]=b,t[23]=c,t[24]=x):x=t[24];let S;return t[25]!==y||t[26]!==x?(S=(0,G.jsxs)(bp,{children:[y,x]}),t[25]=y,t[26]=x,t[27]=S):S=t[27],S}function Mx(e){let t=(0,U.c)(10),n,r,i;if(t[0]===e?(n=t[1],r=t[2],i=t[3]):({variant:i,children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i),(i===void 0?`sidebar`:i)===`sidebar`){let e;return t[4]!==n||t[5]!==r?(e=(0,G.jsx)(xx,{...r,children:n}),t[4]=n,t[5]=r,t[6]=e):e=t[6],e}let a;return t[7]!==n||t[8]!==r?(a=(0,G.jsx)(`main`,{className:`mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl`,...r,children:n}),t[7]=n,t[8]=r,t[9]=a):a=t[9],a}function Nx(e){let t=(0,U.c)(5),{children:n,variant:r}=e,i=r===void 0?`sidebar`:r,a=Ta().props.sidebarOpen;if(i===`header`){let e;return t[0]===n?e=t[1]:(e=(0,G.jsx)(`div`,{className:`flex min-h-screen w-full flex-col`,children:n}),t[0]=n,t[1]=e),e}let o;return t[2]!==n||t[3]!==a?(o=(0,G.jsx)(gx,{defaultOpen:a,children:n}),t[2]=n,t[3]=a,t[4]=o):o=t[4],o}function Px(e){let t=(0,U.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M17.2 5.63325L8.6 0.855469L0 5.63325V32.1434L16.2 41.1434L32.4 32.1434V23.699L40 19.4767V9.85547L31.4 5.07769L22.8 9.85547V18.2999L17.2 21.411V5.63325ZM38 18.2999L32.4 21.411V15.2545L38 12.1434V18.2999ZM36.9409 10.4439L31.4 13.5221L25.8591 10.4439L31.4 7.36561L36.9409 10.4439ZM24.8 18.2999V12.1434L30.4 15.2545V21.411L24.8 18.2999ZM23.8 20.0323L29.3409 23.1105L16.2 30.411L10.6591 27.3328L23.8 20.0323ZM7.6 27.9212L15.2 32.1434V38.2999L2 30.9666V7.92116L7.6 11.0323V27.9212ZM8.6 9.29991L3.05913 6.22165L8.6 3.14339L14.1409 6.22165L8.6 9.29991ZM30.4 24.8101L17.2 32.1434V38.2999L30.4 30.9666V24.8101ZM9.6 11.0323L15.2 7.92117V22.5221L9.6 25.6333V11.0323Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,G.jsx)(`svg`,{...e,viewBox:`0 0 40 42`,xmlns:`http://www.w3.org/2000/svg`,children:n}),t[1]=e,t[2]=r),r}function Fx(){let e=(0,U.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,G.jsx)(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground`,children:(0,G.jsx)(Px,{className:`size-5 fill-current text-white dark:text-black`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsxs)(G.Fragment,{children:[t,(0,G.jsx)(`div`,{className:`ml-1 grid flex-1 text-left text-sm`,children:(0,G.jsx)(`span`,{className:`mb-0.5 truncate leading-tight font-semibold`,children:`Laravel Starter Kit`})})]}),e[1]=n):n=e[1],n}function Ix(e){let t=(0,U.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({items:r,className:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=`group-data-[collapsible=icon]:p-0 ${n||``}`,o;t[4]===r?o=t[5]:(o=r.map(Lx),t[4]=r,t[5]=o);let s;t[6]===o?s=t[7]:(s=(0,G.jsx)(Dx,{children:(0,G.jsx)(Ox,{children:o})}),t[6]=o,t[7]=s);let c;return t[8]!==i||t[9]!==a||t[10]!==s?(c=(0,G.jsx)(Tx,{...i,className:a,children:s}),t[8]=i,t[9]=a,t[10]=s,t[11]=c):c=t[11],c}function Lx(e){return(0,G.jsx)(kx,{children:(0,G.jsx)(jx,{asChild:!0,className:`text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100`,children:(0,G.jsxs)(`a`,{href:vp(e.href),target:`_blank`,rel:`noopener noreferrer`,children:[e.icon&&(0,G.jsx)(e.icon,{className:`h-5 w-5`}),(0,G.jsx)(`span`,{children:e.title})]})})},e.title)}function Rx(){let e=(0,U.c)(13),t=Ta(),n;e[0]===t.url?n=e[1]:(n=new URL(t.url,typeof window<`u`?window.location.origin:`http://localhost`),e[0]=t.url,e[1]=n);let r=n.pathname,i;e[2]===r?i=e[3]:(i=(e,t,n)=>{let i=n===void 0?!1:n,a=t??r,o=vp(e),s=e=>i?a.startsWith(e):e===a;if(!o.startsWith(`http`))return s(o);try{return s(new URL(o).pathname)}catch{return!1}},e[2]=r,e[3]=i);let a=i,o;e[4]===a?o=e[5]:(o=(e,t)=>a(e,t,!0),e[4]=a,e[5]=o);let s=o,c;e[6]===a?c=e[7]:(c=(e,t,n)=>{let r=n===void 0?null:n;return a(e)?t:r},e[6]=a,e[7]=c);let l=c,u;return e[8]!==r||e[9]!==s||e[10]!==a||e[11]!==l?(u={currentUrl:r,isCurrentUrl:a,isCurrentOrParentUrl:s,whenCurrentUrl:l},e[8]=r,e[9]=s,e[10]=a,e[11]=l,e[12]=u):u=e[12],u}function zx(e){let t=(0,U.c)(10),{items:n}=e,r;t[0]===n?r=t[1]:(r=n===void 0?[]:n,t[0]=n,t[1]=r);let i=r,{isCurrentUrl:a}=Rx(),o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,G.jsx)(Ex,{children:`Platform`}),t[2]=o):o=t[2];let s;if(t[3]!==a||t[4]!==i){let e;t[6]===a?e=t[7]:(e=e=>(0,G.jsx)(kx,{children:(0,G.jsx)(jx,{asChild:!0,isActive:a(e.href),tooltip:{children:e.title},children:(0,G.jsxs)(Ha,{href:e.href,prefetch:!0,children:[e.icon&&(0,G.jsx)(e.icon,{}),(0,G.jsx)(`span`,{children:e.title})]})})},e.title),t[6]=a,t[7]=e),s=i.map(e),t[3]=a,t[4]=i,t[5]=s}else s=t[5];let c;return t[8]===s?c=t[9]:(c=(0,G.jsxs)(Tx,{className:`px-2 py-0`,children:[o,(0,G.jsx)(Ox,{children:s})]}),t[8]=s,t[9]=c),c}function Bx(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Vb,{"data-slot":`dropdown-menu`,...n}),t[2]=n,t[3]=r),r}function Vx(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Hb,{"data-slot":`dropdown-menu-trigger`,...n}),t[2]=n,t[3]=r),r}function Hx(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,sideOffset:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?4:i,o;t[4]===n?o=t[5]:(o=$(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,n),t[4]=n,t[5]=o);let s;return t[6]!==r||t[7]!==a||t[8]!==o?(s=(0,G.jsx)(Ub,{children:(0,G.jsx)(Wb,{"data-slot":`dropdown-menu-content`,sideOffset:a,className:o,...r})}),t[6]=r,t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function Ux(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Gb,{"data-slot":`dropdown-menu-group`,...n}),t[2]=n,t[3]=r),r}function Wx(e){let t=(0,U.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,inset:r,variant:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s;t[5]===n?s=t[6]:(s=$(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,n),t[5]=n,t[6]=s);let c;return t[7]!==r||t[8]!==i||t[9]!==s||t[10]!==o?(c=(0,G.jsx)(qb,{"data-slot":`dropdown-menu-item`,"data-inset":r,"data-variant":o,className:s,...i}),t[7]=r,t[8]=i,t[9]=s,t[10]=o,t[11]=c):c=t[11],c}function Gx(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,inset:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=$(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==i||t[8]!==a?(o=(0,G.jsx)(Kb,{"data-slot":`dropdown-menu-label`,"data-inset":r,className:a,...i}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function Kx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`bg-border -mx-1 my-1 h-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Jb,{"data-slot":`dropdown-menu-separator`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function qx(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Jx(i,...t)]}function Jx(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Yx=`Avatar`,[Xx,Zx]=qx(Yx),[Qx,$x]=Xx(Yx),eS=H.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=H.useState(`idle`);return(0,G.jsx)(Qx,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,G.jsx)(vm.span,{...r,ref:t})})});eS.displayName=Yx;var tS=`AvatarImage`,nS=H.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=$x(tS,n),s=oS(r,a),c=as(e=>{i(e),o.onImageLoadingStatusChange(e)});return bs(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,G.jsx)(vm.img,{...a,ref:t,src:r}):null});nS.displayName=tS;var rS=`AvatarFallback`,iS=H.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=$x(rS,n),[o,s]=H.useState(r===void 0);return H.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,G.jsx)(vm.span,{...i,ref:t}):null});iS.displayName=rS;function aS(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function oS(e,{referrerPolicy:t,crossOrigin:n}){let r=O_(),i=H.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=H.useState(()=>aS(a,e));return bs(()=>{s(aS(a,e))},[a,e]),bs(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var sS=eS,cS=nS,lS=iS;function uS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(sS,{"data-slot":`avatar`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function dS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`aspect-square size-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(cS,{"data-slot":`avatar-image`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function fS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`bg-muted flex size-full items-center justify-center rounded-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(lS,{"data-slot":`avatar-fallback`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function pS(){return mS}function mS(e){let t=e.trim().split(` `);return t.length===0?``:t.length===1?t[0].charAt(0).toUpperCase():`${t[0].charAt(0)}${t[t.length-1].charAt(0)}`.toUpperCase()}function hS(e){let t=(0,U.c)(22),{user:n,showEmail:r}=e,i=r===void 0?!1:r,a=pS(),o;t[0]!==n.avatar||t[1]!==n.name?(o=(0,G.jsx)(dS,{src:n.avatar,alt:n.name}),t[0]=n.avatar,t[1]=n.name,t[2]=o):o=t[2];let s;t[3]!==a||t[4]!==n.name?(s=a(n.name),t[3]=a,t[4]=n.name,t[5]=s):s=t[5];let c;t[6]===s?c=t[7]:(c=(0,G.jsx)(fS,{className:`rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white`,children:s}),t[6]=s,t[7]=c);let l;t[8]!==o||t[9]!==c?(l=(0,G.jsxs)(uS,{className:`h-8 w-8 overflow-hidden rounded-full`,children:[o,c]}),t[8]=o,t[9]=c,t[10]=l):l=t[10];let u;t[11]===n.name?u=t[12]:(u=(0,G.jsx)(`span`,{className:`truncate font-medium`,children:n.name}),t[11]=n.name,t[12]=u);let d;t[13]!==i||t[14]!==n.email?(d=i&&(0,G.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:n.email}),t[13]=i,t[14]=n.email,t[15]=d):d=t[15];let f;t[16]!==u||t[17]!==d?(f=(0,G.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[u,d]}),t[16]=u,t[17]=d,t[18]=f):f=t[18];let p;return t[19]!==l||t[20]!==f?(p=(0,G.jsxs)(G.Fragment,{children:[l,f]}),t[19]=l,t[20]=f,t[21]=p):p=t[21],p}function gS(){return _S}function _S(){document.body.style.removeProperty(`pointer-events`)}var vS=()=>({}),yS=e=>e===!0?`1`:e===!1?`0`:e.toString(),bS=(e,t,n)=>{Object.entries(e).forEach(([e,r])=>{if(r===void 0)return;let i=`${t}[${e}]`;Array.isArray(r)?r.forEach(e=>n.append(`${i}[]`,yS(e))):typeof r==`object`&&r?bS(r,i,n):[`string`,`number`,`boolean`].includes(typeof r)&&n.set(i,yS(r))})},xS=(e,t)=>{let n=new Set;e.forEach((e,r)=>{(r===t||r.startsWith(`${t}[`))&&n.add(r)}),n.forEach(t=>e.delete(t))},SS=e=>{if(!e||!e.query&&!e.mergeQuery)return``;let t=e.query??e.mergeQuery,n=e.mergeQuery!==void 0,r=new URLSearchParams(n&&typeof window<`u`?window.location.search:``);for(let e in t){let i=t[e];n&&xS(r,e),i!=null&&(Array.isArray(i)?i.forEach(t=>{r.append(`${e}[]`,t.toString())}):typeof i==`object`?bS(i,e,r):r.set(e,yS(i)))}let i=r.toString();return i.length>0?`?${i}`:``},CS=e=>{let t={...e??{}},n=vS();for(let e in n)t[e]===void 0&&n[e]!==void 0&&(t[e]=n[e]);return t},wS=e=>({url:wS.url(e),method:`get`});wS.definition={methods:[`get`,`head`],url:`/login`},wS.url=e=>wS.definition.url+SS(e),wS.get=e=>({url:wS.url(e),method:`get`}),wS.head=e=>({url:wS.url(e),method:`head`});var TS=e=>({action:wS.url(e),method:`get`});TS.get=e=>({action:wS.url(e),method:`get`}),TS.head=e=>({action:wS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),wS.form=TS;var ES=e=>({url:ES.url(e),method:`post`});ES.definition={methods:[`post`],url:`/logout`},ES.url=e=>ES.definition.url+SS(e),ES.post=e=>({url:ES.url(e),method:`post`});var DS=e=>({action:ES.url(e),method:`post`});DS.post=e=>({action:ES.url(e),method:`post`}),ES.form=DS;var OS=e=>({url:OS.url(e),method:`get`});OS.definition={methods:[`get`,`head`],url:`/register`},OS.url=e=>OS.definition.url+SS(e),OS.get=e=>({url:OS.url(e),method:`get`}),OS.head=e=>({url:OS.url(e),method:`head`});var kS=e=>({action:OS.url(e),method:`get`});kS.get=e=>({action:OS.url(e),method:`get`}),kS.head=e=>({action:OS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),OS.form=kS;var AS=e=>({url:AS.url(e),method:`get`});AS.definition={methods:[`get`,`head`],url:`/`},AS.url=e=>AS.definition.url+SS(e),AS.get=e=>({url:AS.url(e),method:`get`}),AS.head=e=>({url:AS.url(e),method:`head`});var jS=e=>({action:AS.url(e),method:`get`});jS.get=e=>({action:AS.url(e),method:`get`}),jS.head=e=>({action:AS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),AS.form=jS;var MS=e=>({url:MS.url(e),method:`get`});MS.definition={methods:[`get`,`head`],url:`/pricing`},MS.url=e=>MS.definition.url+SS(e),MS.get=e=>({url:MS.url(e),method:`get`}),MS.head=e=>({url:MS.url(e),method:`head`});var NS=e=>({action:MS.url(e),method:`get`});NS.get=e=>({action:MS.url(e),method:`get`}),NS.head=e=>({action:MS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),MS.form=NS;var PS=e=>({url:PS.url(e),method:`get`});PS.definition={methods:[`get`,`head`],url:`/dashboard`},PS.url=e=>PS.definition.url+SS(e),PS.get=e=>({url:PS.url(e),method:`get`}),PS.head=e=>({url:PS.url(e),method:`head`});var FS=e=>({action:PS.url(e),method:`get`});FS.get=e=>({action:PS.url(e),method:`get`}),FS.head=e=>({action:PS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),PS.form=FS;var IS=e=>({url:IS.url(e),method:`get`});IS.definition={methods:[`get`,`head`],url:`/settings/profile`},IS.url=e=>IS.definition.url+SS(e),IS.get=e=>({url:IS.url(e),method:`get`}),IS.head=e=>({url:IS.url(e),method:`head`});var LS=e=>({action:IS.url(e),method:`get`});LS.get=e=>({action:IS.url(e),method:`get`}),LS.head=e=>({action:IS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),IS.form=LS;var RS=e=>({url:RS.url(e),method:`patch`});RS.definition={methods:[`patch`],url:`/settings/profile`},RS.url=e=>RS.definition.url+SS(e),RS.patch=e=>({url:RS.url(e),method:`patch`});var zS=e=>({action:RS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`});zS.patch=e=>({action:RS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),RS.form=zS;var BS=e=>({url:BS.url(e),method:`delete`});BS.definition={methods:[`delete`],url:`/settings/profile`},BS.url=e=>BS.definition.url+SS(e),BS.delete=e=>({url:BS.url(e),method:`delete`});var VS=e=>({action:BS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`});VS.delete=e=>({action:BS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),BS.form=VS,Object.assign(IS,IS),Object.assign(RS,RS),Object.assign(BS,BS);function HS(e){let t=(0,U.c)(18),{user:n}=e,r=gS(),i;t[0]===r?i=t[1]:(i=()=>{r(),Qi.flushAll()},t[0]=r,t[1]=i);let a=i,o;t[2]===n?o=t[3]:(o=(0,G.jsx)(Gx,{className:`p-0 font-normal`,children:(0,G.jsx)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-left text-sm`,children:(0,G.jsx)(hS,{user:n,showEmail:!0})})}),t[2]=n,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,G.jsx)(Kx,{}),t[4]=s):s=t[4];let c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=IS(),t[5]=c):c=t[5];let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(pm,{className:`mr-2`}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=(0,G.jsx)(Ux,{children:(0,G.jsx)(Wx,{asChild:!0,children:(0,G.jsxs)(Ha,{className:`block w-full cursor-pointer`,href:c,prefetch:!0,onClick:r,children:[l,`Settings`]})})}),t[7]=r,t[8]=u);let d;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(Kx,{}),t[9]=d):d=t[9];let f;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(f=ES(),t[10]=f):f=t[10];let p;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,G.jsx)(um,{className:`mr-2`}),t[11]=p):p=t[11];let m;t[12]===a?m=t[13]:(m=(0,G.jsx)(Wx,{asChild:!0,children:(0,G.jsxs)(Ha,{className:`block w-full cursor-pointer`,href:f,as:`button`,onClick:a,"data-test":`logout-button`,children:[p,`Log out`]})}),t[12]=a,t[13]=m);let h;return t[14]!==m||t[15]!==o||t[16]!==u?(h=(0,G.jsxs)(G.Fragment,{children:[o,s,u,d,m]}),t[14]=m,t[15]=o,t[16]=u,t[17]=h):h=t[17],h}function US(){let e=(0,U.c)(13),{auth:t}=Ta().props,{state:n}=hx(),r=sx();if(!t.user)return null;let i;e[0]===t.user?i=e[1]:(i=(0,G.jsx)(hS,{user:t.user}),e[0]=t.user,e[1]=i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,G.jsx)(sm,{className:`ml-auto size-4`}),e[2]=a):a=e[2];let o;e[3]===i?o=e[4]:(o=(0,G.jsx)(Vx,{asChild:!0,children:(0,G.jsxs)(jx,{size:`lg`,className:`group text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent`,"data-test":`sidebar-menu-button`,children:[i,a]})}),e[3]=i,e[4]=o);let s=r?`bottom`:n===`collapsed`?`left`:`bottom`,c;e[5]===t.user?c=e[6]:(c=(0,G.jsx)(HS,{user:t.user}),e[5]=t.user,e[6]=c);let l;e[7]!==s||e[8]!==c?(l=(0,G.jsx)(Hx,{className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,align:`end`,side:s,children:c}),e[7]=s,e[8]=c,e[9]=l):l=e[9];let u;return e[10]!==o||e[11]!==l?(u=(0,G.jsx)(Ox,{children:(0,G.jsx)(kx,{children:(0,G.jsxs)(Bx,{children:[o,l]})})}),e[10]=o,e[11]=l,e[12]=u):u=e[12],u}var WS=[{title:`Dashboard`,href:PS(),icon:lm}],GS=[{title:`Repository`,href:`https://github.com/laravel/react-starter-kit`,icon:cm},{title:`Documentation`,href:`https://laravel.com/docs/starter-kits#react`,icon:am}];function KS(){let e=(0,U.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=PS(),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsx)(Sx,{children:(0,G.jsx)(Ox,{children:(0,G.jsx)(kx,{children:(0,G.jsx)(jx,{size:`lg`,asChild:!0,children:(0,G.jsx)(Ha,{href:t,prefetch:!0,children:(0,G.jsx)(Fx,{})})})})})}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,G.jsx)(wx,{children:(0,G.jsx)(zx,{items:WS})}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsxs)(yx,{collapsible:`icon`,variant:`inset`,children:[n,r,(0,G.jsxs)(Cx,{children:[(0,G.jsx)(Ix,{items:GS,className:`mt-auto`}),(0,G.jsx)(US,{})]})]}),e[3]=i):i=e[3],i}function qS(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,...n}),t[2]=n,t[3]=r),r}function JS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function YS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`inline-flex items-center gap-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function XS(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({asChild:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n?Gp:`a`,o;t[4]===r?o=t[5]:(o=$(`hover:text-foreground transition-colors`,r),t[4]=r,t[5]=o);let s;return t[6]!==a||t[7]!==i||t[8]!==o?(s=(0,G.jsx)(a,{"data-slot":`breadcrumb-link`,className:o,...i}),t[6]=a,t[7]=i,t[8]=o,t[9]=s):s=t[9],s}function ZS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`text-foreground font-normal`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function QS(e){let t=(0,U.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=$(`[&>svg]:size-3.5`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=n??(0,G.jsx)(om,{}),t[6]=n,t[7]=o);let s;return t[8]!==i||t[9]!==a||t[10]!==o?(s=(0,G.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:a,...i,children:o}),t[8]=i,t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function $S(e){let t=(0,U.c)(4),{breadcrumbs:n}=e,r;t[0]===n?r=t[1]:(r=n.length>0&&(0,G.jsx)(qS,{children:(0,G.jsx)(JS,{children:n.map((e,t)=>{let r=t===n.length-1;return(0,G.jsxs)(H.Fragment,{children:[(0,G.jsx)(YS,{children:r?(0,G.jsx)(ZS,{children:e.title}):(0,G.jsx)(XS,{asChild:!0,children:(0,G.jsx)(Ha,{href:e.href,children:e.title})})}),!r&&(0,G.jsx)(QS,{})]},t)})})}),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,G.jsx)(G.Fragment,{children:r}),t[2]=r,t[3]=i),i}function eC(e){let t=(0,U.c)(5),{breadcrumbs:n}=e,r;t[0]===n?r=t[1]:(r=n===void 0?[]:n,t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,G.jsx)(bx,{className:`-ml-1`}),t[2]=a):a=t[2];let o;return t[3]===i?o=t[4]:(o=(0,G.jsx)(`header`,{className:`flex h-16 shrink-0 items-center gap-2 border-b border-sidebar-border/50 px-6 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 md:px-4`,children:(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[a,(0,G.jsx)($S,{breadcrumbs:i})]})}),t[3]=i,t[4]=o),o}function tC(e){let t=(0,U.c)(8),{children:n,breadcrumbs:r}=e,i;t[0]===r?i=t[1]:(i=r===void 0?[]:r,t[0]=r,t[1]=i);let a=i,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,G.jsx)(KS,{}),t[2]=o):o=t[2];let s;t[3]===a?s=t[4]:(s=(0,G.jsx)(eC,{breadcrumbs:a}),t[3]=a,t[4]=s);let c;return t[5]!==n||t[6]!==s?(c=(0,G.jsxs)(Nx,{variant:`sidebar`,children:[o,(0,G.jsxs)(Mx,{variant:`sidebar`,className:`overflow-x-hidden`,children:[s,n]})]}),t[5]=n,t[6]=s,t[7]=c):c=t[7],c}function nC(e){let t=(0,U.c)(5),{breadcrumbs:n,children:r}=e,i;t[0]===n?i=t[1]:(i=n===void 0?[]:n,t[0]=n,t[1]=i);let a=i,o;return t[2]!==a||t[3]!==r?(o=(0,G.jsx)(tC,{breadcrumbs:a,children:r}),t[2]=a,t[3]=r,t[4]=o):o=t[4],o}function rC(e){let t=(0,U.c)(17),{children:n,title:r,description:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=AS(),t[0]=a):a=t[0];let o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,G.jsx)(`div`,{className:`mb-1 flex h-9 w-9 items-center justify-center rounded-md`,children:(0,G.jsx)(Px,{className:`size-9 fill-current text-[var(--foreground)] dark:text-white`})}),t[1]=o):o=t[1];let s;t[2]===r?s=t[3]:(s=(0,G.jsxs)(Ha,{href:a,className:`flex flex-col items-center gap-2 font-medium`,children:[o,(0,G.jsx)(`span`,{className:`sr-only`,children:r})]}),t[2]=r,t[3]=s);let c;t[4]===r?c=t[5]:(c=(0,G.jsx)(`h1`,{className:`text-xl font-medium`,children:r}),t[4]=r,t[5]=c);let l;t[6]===i?l=t[7]:(l=(0,G.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:i}),t[6]=i,t[7]=l);let u;t[8]!==c||t[9]!==l?(u=(0,G.jsxs)(`div`,{className:`space-y-2 text-center`,children:[c,l]}),t[8]=c,t[9]=l,t[10]=u):u=t[10];let d;t[11]!==s||t[12]!==u?(d=(0,G.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[s,u]}),t[11]=s,t[12]=u,t[13]=d):d=t[13];let f;return t[14]!==n||t[15]!==d?(f=(0,G.jsx)(`div`,{className:`flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10`,children:(0,G.jsx)(`div`,{className:`w-full max-w-sm`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[d,n]})})}),t[14]=n,t[15]=d,t[16]=f):f=t[16],f}function iC(e){let t=(0,U.c)(4),{title:n,description:r,children:i}=e,a=n===void 0?``:n,o=r===void 0?``:r,s;return t[0]!==i||t[1]!==o||t[2]!==a?(s=(0,G.jsx)(rC,{title:a,description:o,children:i}),t[0]=i,t[1]=o,t[2]=a,t[3]=s):s=t[3],s}function aC(e){let t=(0,U.c)(10),{title:n,description:r,variant:i,as:a}=e,o=i===void 0?`default`:i,s=a===void 0?`h1`:a,c=o===`small`?``:`mb-8 space-y-0.5`,l=o===`small`?`mb-0.5 text-base font-medium`:`text-xl font-semibold tracking-tight`,u;t[0]!==s||t[1]!==l||t[2]!==n?(u=(0,G.jsx)(s,{className:l,children:n}),t[0]=s,t[1]=l,t[2]=n,t[3]=u):u=t[3];let d;t[4]===r?d=t[5]:(d=r&&(0,G.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:r}),t[4]=r,t[5]=d);let f;return t[6]!==c||t[7]!==u||t[8]!==d?(f=(0,G.jsxs)(`header`,{className:c,children:[u,d]}),t[6]=c,t[7]=u,t[8]=d,t[9]=f):f=t[9],f}var oC=e=>({url:oC.url(e),method:`get`});oC.definition={methods:[`get`,`head`],url:`/settings/appearance`},oC.url=e=>oC.definition.url+SS(e),oC.get=e=>({url:oC.url(e),method:`get`}),oC.head=e=>({url:oC.url(e),method:`head`});var sC=e=>({action:oC.url(e),method:`get`});sC.get=e=>({action:oC.url(e),method:`get`}),sC.head=e=>({action:oC.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),oC.form=sC,Object.assign(oC,oC);var cC=e=>({url:cC.url(e),method:`get`});cC.definition={methods:[`get`,`head`],url:`/settings/security`},cC.url=e=>cC.definition.url+SS(e),cC.get=e=>({url:cC.url(e),method:`get`}),cC.head=e=>({url:cC.url(e),method:`head`});var lC=e=>({action:cC.url(e),method:`get`});lC.get=e=>({action:cC.url(e),method:`get`}),lC.head=e=>({action:cC.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),cC.form=lC,Object.assign(cC,cC);var uC=[{title:`Profile`,href:IS(),icon:null},{title:`Security`,href:cC(),icon:null},{title:`Appearance`,href:oC(),icon:null}];function dC(e){let t=(0,U.c)(11),{children:n}=e,{isCurrentOrParentUrl:r}=Rx(),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(aC,{title:`Settings`,description:`Manage your profile and account settings`}),t[0]=i):i=t[0];let a;t[1]===r?a=t[2]:(a=uC.map((e,t)=>(0,G.jsx)(gm,{size:`sm`,variant:`ghost`,asChild:!0,className:$(`w-full justify-start`,{"bg-muted":r(e.href)}),children:(0,G.jsxs)(Ha,{href:e.href,children:[e.icon&&(0,G.jsx)(e.icon,{className:`h-4 w-4`}),e.title]})},`${vp(e.href)}-${t}`)),t[1]=r,t[2]=a);let o;t[3]===a?o=t[4]:(o=(0,G.jsx)(`aside`,{className:`w-full max-w-xl lg:w-48`,children:(0,G.jsx)(`nav`,{className:`flex flex-col space-y-1 space-x-0`,"aria-label":`Settings`,children:a})}),t[3]=a,t[4]=o);let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,G.jsx)(Tm,{className:`my-6 lg:hidden`}),t[5]=s):s=t[5];let c;t[6]===n?c=t[7]:(c=(0,G.jsx)(`div`,{className:`flex-1 md:max-w-2xl`,children:(0,G.jsx)(`section`,{className:`max-w-xl space-y-12`,children:n})}),t[6]=n,t[7]=c);let l;return t[8]!==o||t[9]!==c?(l=(0,G.jsxs)(`div`,{className:`px-4 py-6`,children:[i,(0,G.jsxs)(`div`,{className:`flex flex-col lg:flex-row lg:space-x-12`,children:[o,s,c]})]}),t[8]=o,t[9]=c,t[10]=l):l=t[10],l}var fC=`ui designbycode`;wa({resolve:async(e,t)=>{let n=Object.assign({"./pages/animate-css/index.tsx":()=>Ht(()=>import(`./animate-css-DIxn22Sl.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),"./pages/auth/confirm-password.tsx":()=>Ht(()=>import(`./confirm-password-hf93YGU9.js`),__vite__mapDeps([13,14,15,16,17,18,19])),"./pages/auth/forgot-password.tsx":()=>Ht(()=>import(`./forgot-password-H3UJsxPQ.js`),__vite__mapDeps([20,14,18,16,21,22,19])),"./pages/auth/login.tsx":()=>Ht(()=>import(`./login-B4lH5do8.js`),__vite__mapDeps([23,14,24,2,25,15,3,16,21,17,18,22,19])),"./pages/auth/register.tsx":()=>Ht(()=>import(`./register-DvZlJMq4.js`),__vite__mapDeps([26,14,25,15,3,16,21,17,18])),"./pages/auth/reset-password.tsx":()=>Ht(()=>import(`./reset-password-CjTooPZv.js`),__vite__mapDeps([27,14,15,16,17,18,22,19])),"./pages/auth/two-factor-challenge.tsx":()=>Ht(()=>import(`./two-factor-challenge-CIH9e-kP.js`),__vite__mapDeps([28,29,16])),"./pages/auth/verify-email.tsx":()=>Ht(()=>import(`./verify-email-CBOEFMni.js`),__vite__mapDeps([30,21,17,18,31])),"./pages/dashboard.tsx":()=>Ht(()=>import(`./dashboard-DfTez4xA.js`),__vite__mapDeps([32,5])),"./pages/fonts/index.tsx":()=>Ht(()=>import(`./fonts-P-PzeNmJ.js`),__vite__mapDeps([33,34,24,2,9,1,3,4,5,6,7,8,35,11])),"./pages/home.tsx":()=>Ht(()=>import(`./home-C2LooHG2.js`),__vite__mapDeps([36,37,1,2,3,4,5,6,10,38])),"./pages/pricing.tsx":()=>Ht(()=>import(`./pricing-B924f0vZ.js`),__vite__mapDeps([39,1,2,3,4,5,6,11,40])),"./pages/settings/appearance.tsx":()=>Ht(()=>import(`./appearance-DkF4xOip.js`),__vite__mapDeps([41,42,4])),"./pages/settings/profile.tsx":()=>Ht(()=>import(`./profile-CEhMOmdF.js`),__vite__mapDeps([43,14,15,16,12,31])),"./pages/settings/security.tsx":()=>Ht(()=>import(`./security-CnUHyk63.js`),__vite__mapDeps([44,14,29,2,8,15,16,45,11,12,17,18])),"./pages/settings/subscription.tsx":()=>Ht(()=>import(`./subscription-CWLd4fU4.js`),__vite__mapDeps([46,11,40])),"./pages/themes/create.tsx":()=>Ht(()=>import(`./create-DWmMMfkI.js`),__vite__mapDeps([47,14,1,2,3,4,5,6,18,11])),"./pages/themes/index.tsx":()=>Ht(()=>import(`./themes-BEIrAo01.js`),__vite__mapDeps([48,34,24,2,9,1,3,4,5,6,38,11])),"./pages/themes/show.tsx":()=>Ht(()=>import(`./show-B7YwVVJB.js`),__vite__mapDeps([49,14,37,2,8,10,42,4,45,35,11,5,6]))}),r=await(n[`./pages/${e}.tsx`]||n[`./pages/${e}.jsx`]||n[`./Pages/${e}.tsx`]||n[`./Pages/${e}.jsx`])?.();if(!r)throw Error(`Page not found: ${e}`);return r.default??r},title:e=>e?`${e} - ${fC}`:fC,layout:e=>{switch(!0){case e===`welcome`:return null;case e.startsWith(`auth/`):return iC;case e.startsWith(`settings/`):return[nC,dC];default:return nC}},strictMode:!0,withApp(e){return(0,G.jsxs)(yp,{delayDuration:0,children:[(0,G.jsx)(`div`,{children:e}),(0,G.jsx)(Go,{})]})},progress:{color:`var(--primary)`}}),Ro(),Ip();export{td as $,ka as $t,S_ as A,Os as At,_m as B,as as Bt,E_ as C,jc as Ct,b_ as D,Ac as Dt,C_ as E,bc as Et,Zm as F,Ns as Ft,im as G,zo as Gt,mm as H,Jo as Ht,Im as I,Ls as It,Rp as J,Pa as Jt,$p as K,co as Kt,Pm as L,Cs as Lt,Ig as M,Rs as Mt,Dg as N,Is as Nt,y_ as O,js as Ot,_h as P,Xs as Pt,$ as Q,fa as Qt,Tm as R,bs as Rt,nv as S,yc as St,x_ as T,xc as Tt,pm as U,K as Ut,gm as V,qo as Vt,om as W,Wo as Wt,zp as X,za as Xt,Lp as Y,Fa as Yt,Cp as Z,Ha as Zt,ex as _,Mc as _t,PS as a,s as an,bu as at,hv as b,hc as bt,ES as c,d as cn,$l as ct,CS as d,jl as dt,Ua as en,Gu as et,SS as f,kl as ft,nx as g,pl as gt,$b as h,Dl as ht,IS as i,Qi as in,xu as it,v_ as j,Ps as jt,__ as k,Ms as kt,MS as l,u as ln,Ml as lt,Yb as m,Nl as mt,oC as n,na as nn,Au as nt,AS as o,o as on,vu as ot,sx as p,Al as pt,Gp as q,qa as qt,aC as r,ea as rn,yu as rt,wS as s,c as sn,nu as st,cC as t,Ta as tn,Mu as tt,OS as u,Pl as ut,tx as v,mc as vt,w_ as w,_c as wt,mv as x,vc as xt,Xb as y,Pc as yt,vm as z,ps as zt}; \ No newline at end of file +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return H.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},h_=`DialogDescriptionWarning`,g_=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${p_(h_).contentName}}.`;return H.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},__=Hg,v_=Wg,y_=Jg,b_=Xg,x_=e_,S_=a_,C_=s_,w_=l_,T_=s((e=>{var t=ea();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),E_=s(((e,t)=>{t.exports=T_()})),D_=E_();function O_(){return(0,D_.useSyncExternalStore)(k_,()=>!0,()=>!1)}function k_(){return()=>{}}function A_(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,j_(i,...t)]}function j_(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function M_(e){let t=N_(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(F_);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function N_(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=L_(n),i=I_(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P_=Symbol(`radix.slottable`);function F_(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===P_}function I_(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function L_(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var R_=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=M_(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function z_(e,t){e&&sa.flushSync(()=>e.dispatchEvent(t))}function B_(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,V_(i,...t)]}function V_(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function H_(e){let t=U_(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(G_);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function U_(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=q_(n),i=K_(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var W_=Symbol(`radix.slottable`);function G_(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===W_}function K_(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function q_(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var J_=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=H_(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Y_=`rovingFocusGroup.onEntryFocus`,X_={bubbles:!1,cancelable:!0},Z_=`RovingFocusGroup`,[Q_,$_,ev]=Pm(Z_),[tv,nv]=B_(Z_,[ev]),[rv,iv]=tv(Z_),av=H.forwardRef((e,t)=>(0,G.jsx)(Q_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,G.jsx)(Q_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,G.jsx)(ov,{...e,ref:t})})}));av.displayName=Z_;var ov=H.forwardRef((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=H.useRef(null),p=Jo(t,f),m=Im(a),[h,g]=Gu({prop:o,defaultProp:s??null,onChange:c,caller:Z_}),[_,v]=H.useState(!1),y=as(l),b=$_(n),x=H.useRef(!1),[S,C]=H.useState(0);return H.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Y_,y),()=>e.removeEventListener(Y_,y)},[y]),(0,G.jsx)(rv,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:H.useCallback(e=>g(e),[g]),onItemShiftTab:H.useCallback(()=>v(!0),[]),onFocusableItemAdd:H.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:H.useCallback(()=>C(e=>e-1),[]),children:(0,G.jsx)(J_.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:K(e.onMouseDown,()=>{x.current=!0}),onFocus:K(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Y_,X_);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);fv([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:K(e.onBlur,()=>v(!1))})})}),sv=`RovingFocusGroupItem`,cv=H.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Cs(),l=a||c,u=iv(sv,n),d=u.currentTabStopId===l,f=$_(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return H.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,G.jsx)(Q_.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,G.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=dv(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?pv(n,r+1):n.slice(r+1)}setTimeout(()=>fv(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});cv.displayName=sv;var lv={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function uv(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function dv(e,t,n){let r=uv(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return lv[r]}function fv(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function pv(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var mv=av,hv=cv,gv=[`Enter`,` `],_v=[`ArrowDown`,`PageUp`,`Home`],vv=[`ArrowUp`,`PageDown`,`End`],yv=[..._v,...vv],bv={ltr:[...gv,`ArrowRight`],rtl:[...gv,`ArrowLeft`]},xv={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},Sv=`Menu`,[Cv,wv,Tv]=Pm(Sv),[Ev,Dv]=A_(Sv,[Tv,nu,nv]),Ov=nu(),kv=nv(),[Av,jv]=Ev(Sv),[Mv,Nv]=Ev(Sv),Pv=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Ov(t),[c,l]=H.useState(null),u=H.useRef(!1),d=as(a),f=Im(i);return H.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;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})}},[]),(0,G.jsx)(vu,{...s,children:(0,G.jsx)(Av,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,G.jsx)(Mv,{scope:t,onClose:H.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};Pv.displayName=Sv;var Fv=`MenuAnchor`,Iv=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Ov(n);return(0,G.jsx)(yu,{...i,...r,ref:t})});Iv.displayName=Fv;var Lv=`MenuPortal`,[Rv,zv]=Ev(Lv,{forceMount:void 0}),Bv=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=jv(Lv,t);return(0,G.jsx)(Rv,{scope:t,forceMount:n,children:(0,G.jsx)(Mu,{present:n||a.open,children:(0,G.jsx)(Au,{asChild:!0,container:i,children:r})})})};Bv.displayName=Lv;var Vv=`MenuContent`,[Hv,Uv]=Ev(Vv),Wv=H.forwardRef((e,t)=>{let n=zv(Vv,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=jv(Vv,e.__scopeMenu),o=Nv(Vv,e.__scopeMenu);return(0,G.jsx)(Cv.Provider,{scope:e.__scopeMenu,children:(0,G.jsx)(Mu,{present:r||a.open,children:(0,G.jsx)(Cv.Slot,{scope:e.__scopeMenu,children:o.modal?(0,G.jsx)(Gv,{...i,ref:t}):(0,G.jsx)(Kv,{...i,ref:t})})})})}),Gv=H.forwardRef((e,t)=>{let n=jv(Vv,e.__scopeMenu),r=H.useRef(null),i=Jo(t,r);return H.useEffect(()=>{let e=r.current;if(e)return Ig(e)},[]),(0,G.jsx)(Jv,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:K(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Kv=H.forwardRef((e,t)=>{let n=jv(Vv,e.__scopeMenu);return(0,G.jsx)(Jv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),qv=M_(`MenuContent.ScrollLock`),Jv=H.forwardRef((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=jv(Vv,n),_=Nv(Vv,n),v=Ov(n),y=kv(n),b=wv(n),[x,S]=H.useState(null),C=H.useRef(null),w=Jo(t,C,g.onContentChange),T=H.useRef(0),E=H.useRef(``),ee=H.useRef(0),D=H.useRef(null),O=H.useRef(`right`),k=H.useRef(0),te=m?Dg:H.Fragment,A=m?{as:qv,allowPinchZoom:!0}:void 0,j=e=>{let t=E.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=My(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){E.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};H.useEffect(()=>()=>window.clearTimeout(T.current),[]),_h();let M=H.useCallback(e=>O.current===D.current?.side&&Py(e,D.current?.area),[]);return(0,G.jsx)(Hv,{scope:n,searchRef:E,onItemEnter:H.useCallback(e=>{M(e)&&e.preventDefault()},[M]),onItemLeave:H.useCallback(e=>{M(e)||(C.current?.focus(),S(null))},[M]),onTriggerLeave:H.useCallback(e=>{M(e)&&e.preventDefault()},[M]),pointerGraceTimerRef:ee,onPointerGraceIntentChange:H.useCallback(e=>{D.current=e},[]),children:(0,G.jsx)(te,{...A,children:(0,G.jsx)(Zm,{asChild:!0,trapped:i,onMountAutoFocus:K(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,G.jsx)(ps,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,G.jsx)(mv,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:K(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,G.jsx)(bu,{role:`menu`,"aria-orientation":`vertical`,"data-state":Dy(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,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&&j(e.key));let i=C.current;if(e.target!==i||!yv.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);vv.includes(e.key)&&a.reverse(),Ay(a)}),onBlur:K(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),E.current=``)}),onPointerMove:K(e.onPointerMove,Fy(e=>{let t=e.target,n=k.current!==e.clientX;e.currentTarget.contains(t)&&n&&(O.current=e.clientX>k.current?`right`:`left`,k.current=e.clientX)}))})})})})})})});Wv.displayName=Vv;var Yv=`MenuGroup`,Xv=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(R_.div,{role:`group`,...r,ref:t})});Xv.displayName=Yv;var Zv=`MenuLabel`,Qv=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(R_.div,{...r,ref:t})});Qv.displayName=Zv;var $v=`MenuItem`,ey=`menu.itemSelect`,ty=H.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=H.useRef(null),o=Nv($v,e.__scopeMenu),s=Uv($v,e.__scopeMenu),c=Jo(t,a),l=H.useRef(!1),u=()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(ey,{bubbles:!0,cancelable:!0});e.addEventListener(ey,e=>r?.(e),{once:!0}),z_(e,t),t.defaultPrevented?l.current=!1:o.onClose()}};return(0,G.jsx)(ny,{...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=>{let t=s.searchRef.current!==``;n||t&&e.key===` `||gv.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ty.displayName=$v;var ny=H.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Uv($v,n),s=kv(n),c=H.useRef(null),l=Jo(t,c),[u,d]=H.useState(!1),[f,p]=H.useState(``);return H.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,G.jsx)(Cv.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,G.jsx)(hv,{asChild:!0,...s,focusable:!r,children:(0,G.jsx)(R_.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,Fy(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:K(e.onPointerLeave,Fy(e=>o.onItemLeave(e))),onFocus:K(e.onFocus,()=>d(!0)),onBlur:K(e.onBlur,()=>d(!1))})})})}),ry=`MenuCheckboxItem`,iy=H.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,G.jsx)(fy,{scope:e.__scopeMenu,checked:n,children:(0,G.jsx)(ty,{role:`menuitemcheckbox`,"aria-checked":Oy(n)?`mixed`:n,...i,ref:t,"data-state":ky(n),onSelect:K(i.onSelect,()=>r?.(Oy(n)?!0:!n),{checkForDefaultPrevented:!1})})})});iy.displayName=ry;var ay=`MenuRadioGroup`,[oy,sy]=Ev(ay,{value:void 0,onValueChange:()=>{}}),cy=H.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=as(r);return(0,G.jsx)(oy,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,G.jsx)(Xv,{...i,ref:t})})});cy.displayName=ay;var ly=`MenuRadioItem`,uy=H.forwardRef((e,t)=>{let{value:n,...r}=e,i=sy(ly,e.__scopeMenu),a=n===i.value;return(0,G.jsx)(fy,{scope:e.__scopeMenu,checked:a,children:(0,G.jsx)(ty,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":ky(a),onSelect:K(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});uy.displayName=ly;var dy=`MenuItemIndicator`,[fy,py]=Ev(dy,{checked:!1}),my=H.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=py(dy,n);return(0,G.jsx)(Mu,{present:r||Oy(a.checked)||a.checked===!0,children:(0,G.jsx)(R_.span,{...i,ref:t,"data-state":ky(a.checked)})})});my.displayName=dy;var hy=`MenuSeparator`,gy=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,G.jsx)(R_.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});gy.displayName=hy;var _y=`MenuArrow`,vy=H.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=Ov(n);return(0,G.jsx)(xu,{...i,...r,ref:t})});vy.displayName=_y;var yy=`MenuSub`,[by,xy]=Ev(yy),Sy=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=jv(yy,t),o=Ov(t),[s,c]=H.useState(null),[l,u]=H.useState(null),d=as(i);return H.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,G.jsx)(vu,{...o,children:(0,G.jsx)(Av,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,G.jsx)(by,{scope:t,contentId:Cs(),triggerId:Cs(),trigger:s,onTriggerChange:c,children:n})})})};Sy.displayName=yy;var Cy=`MenuSubTrigger`,wy=H.forwardRef((e,t)=>{let n=jv(Cy,e.__scopeMenu),r=Nv(Cy,e.__scopeMenu),i=xy(Cy,e.__scopeMenu),a=Uv(Cy,e.__scopeMenu),o=H.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=H.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return H.useEffect(()=>u,[u]),H.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]),(0,G.jsx)(Iv,{asChild:!0,...l,children:(0,G.jsx)(ny,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Dy(n.open),...e,ref:qo(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:K(e.onPointerMove,Fy(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:K(e.onPointerLeave,Fy(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:K(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||bv[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});wy.displayName=Cy;var Ty=`MenuSubContent`,Ey=H.forwardRef((e,t)=>{let n=zv(Vv,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=jv(Vv,e.__scopeMenu),o=Nv(Vv,e.__scopeMenu),s=xy(Ty,e.__scopeMenu),c=H.useRef(null),l=Jo(t,c);return(0,G.jsx)(Cv.Provider,{scope:e.__scopeMenu,children:(0,G.jsx)(Mu,{present:r||a.open,children:(0,G.jsx)(Cv.Slot,{scope:e.__scopeMenu,children:(0,G.jsx)(Jv,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:l,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:K(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:K(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:K(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=xv[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Ey.displayName=Ty;function Dy(e){return e?`open`:`closed`}function Oy(e){return e===`indeterminate`}function ky(e){return Oy(e)?`indeterminate`:e?`checked`:`unchecked`}function Ay(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function jy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function My(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=jy(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}function Ny(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Py(e,t){return t?Ny({x:e.clientX,y:e.clientY},t):!1}function Fy(e){return t=>t.pointerType===`mouse`?e(t):void 0}var Iy=Pv,Ly=Iv,Ry=Bv,zy=Wv,By=Xv,Vy=Qv,Hy=ty,Uy=iy,Wy=cy,Gy=uy,Ky=my,qy=gy,Jy=vy,Yy=wy,Xy=Ey;function Zy(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Qy(i,...t)]}function Qy(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function $y(e){let t=eb(e),n=H.forwardRef((e,n)=>{let{children:r,...i}=e,a=H.Children.toArray(r),o=a.find(nb);if(o){let e=o.props.children,r=a.map(t=>t===o?H.Children.count(e)>1?H.Children.only(null):H.isValidElement(e)?e.props.children:null:t);return(0,G.jsx)(t,{...i,ref:n,children:H.isValidElement(e)?H.cloneElement(e,void 0,r):null})}return(0,G.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function eb(e){let t=H.forwardRef((e,t)=>{let{children:n,...r}=e;if(H.isValidElement(n)){let e=ib(n),i=rb(r,n.props);return n.type!==H.Fragment&&(i.ref=t?qo(t,e):e),H.cloneElement(n,i)}return H.Children.count(n)>1?H.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tb=Symbol(`radix.slottable`);function nb(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===tb}function rb(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ib(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ab=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=$y(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ob=`DropdownMenu`,[sb,cb]=Zy(ob,[Dv]),lb=Dv(),[ub,db]=sb(ob),fb=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=lb(t),l=H.useRef(null),[u,d]=Gu({prop:i,defaultProp:a??!1,onChange:o,caller:ob});return(0,G.jsx)(ub,{scope:t,triggerId:Cs(),triggerRef:l,contentId:Cs(),open:u,onOpenChange:d,onOpenToggle:H.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,G.jsx)(Iy,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};fb.displayName=ob;var pb=`DropdownMenuTrigger`,mb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=db(pb,n),o=lb(n);return(0,G.jsx)(Ly,{asChild:!0,...o,children:(0,G.jsx)(ab.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:qo(t,a.triggerRef),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())})})})});mb.displayName=pb;var hb=`DropdownMenuPortal`,gb=e=>{let{__scopeDropdownMenu:t,...n}=e,r=lb(t);return(0,G.jsx)(Ry,{...r,...n})};gb.displayName=hb;var _b=`DropdownMenuContent`,vb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=db(_b,n),a=lb(n),o=H.useRef(!1);return(0,G.jsx)(zy,{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)`}})});vb.displayName=_b;var yb=`DropdownMenuGroup`,bb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(By,{...i,...r,ref:t})});bb.displayName=yb;var xb=`DropdownMenuLabel`,Sb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Vy,{...i,...r,ref:t})});Sb.displayName=xb;var Cb=`DropdownMenuItem`,wb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Hy,{...i,...r,ref:t})});wb.displayName=Cb;var Tb=`DropdownMenuCheckboxItem`,Eb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Uy,{...i,...r,ref:t})});Eb.displayName=Tb;var Db=`DropdownMenuRadioGroup`,Ob=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Wy,{...i,...r,ref:t})});Ob.displayName=Db;var kb=`DropdownMenuRadioItem`,Ab=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Gy,{...i,...r,ref:t})});Ab.displayName=kb;var jb=`DropdownMenuItemIndicator`,Mb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Ky,{...i,...r,ref:t})});Mb.displayName=jb;var Nb=`DropdownMenuSeparator`,Pb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(qy,{...i,...r,ref:t})});Pb.displayName=Nb;var Fb=`DropdownMenuArrow`,Ib=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Jy,{...i,...r,ref:t})});Ib.displayName=Fb;var Lb=`DropdownMenuSubTrigger`,Rb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Yy,{...i,...r,ref:t})});Rb.displayName=Lb;var zb=`DropdownMenuSubContent`,Bb=H.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=lb(n);return(0,G.jsx)(Xy,{...i,...r,ref:t,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)`}})});Bb.displayName=zb;var Vb=fb,Hb=mb,Ub=gb,Wb=vb,Gb=bb,Kb=Sb,qb=wb,Jb=Pb;function Yb(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(__,{"data-slot":`sheet`,...n}),t[2]=n,t[3]=r),r}function Xb(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(v_,{"data-slot":`sheet-trigger`,...n}),t[2]=n,t[3]=r),r}function Zb(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(y_,{"data-slot":`sheet-portal`,...n}),t[2]=n,t[3]=r),r}function Qb(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(b_,{"data-slot":`sheet-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function $b(e){let t=(0,U.c)(20),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`right`:a,c=o===void 0?!0:o,l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(Qb,{}),t[6]=l):l=t[6];let u=s===`right`&&`inset-y-0 right-0 h-full w-4/5 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,d=s===`left`&&`inset-y-0 left-0 h-full w-4/5 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,f=s===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,p=s===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,m;t[7]!==r||t[8]!==u||t[9]!==d||t[10]!==f||t[11]!==p?(m=$(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,u,d,f,p,r),t[7]=r,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m):m=t[12];let h;t[13]===c?h=t[14]:(h=c&&(0,G.jsxs)(w_,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,G.jsx)(mm,{className:`size-4`}),(0,G.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[13]=c,t[14]=h);let g;return t[15]!==n||t[16]!==i||t[17]!==m||t[18]!==h?(g=(0,G.jsxs)(Zb,{children:[l,(0,G.jsxs)(x_,{"data-slot":`sheet-content`,className:m,...i,children:[n,h]})]}),t[15]=n,t[16]=i,t[17]=m,t[18]=h,t[19]=g):g=t[19],g}function ex(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`flex flex-col gap-1.5 p-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sheet-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function tx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`font-semibold text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(S_,{"data-slot":`sheet-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function nx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`text-sm text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(C_,{"data-slot":`sheet-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var rx=typeof window>`u`?void 0:window.matchMedia(`(max-width: 767px)`);function ix(e){return rx?(rx.addEventListener(`change`,e),()=>{rx.removeEventListener(`change`,e)}):()=>{}}function ax(){return rx?.matches??!1}function ox(){return!1}function sx(){return(0,H.useSyncExternalStore)(ix,ax,ox)}var cx=`sidebar_state`,lx=3600*24*7,ux=`16rem`,dx=`18rem`,fx=`3rem`,px=`b`,mx=H.createContext(null);function hx(){let e=H.useContext(mx);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function gx(e){let t=(0,U.c)(36),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=c===void 0?!0:c,u=sx(),[d,f]=H.useState(!1),[p,m]=H.useState(l),h=i??p,g;t[8]!==h||t[9]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${cx}=${t}; path=/; max-age=${lx}`},t[8]=h,t[9]=o,t[10]=g):g=t[10];let _=g,v;t[11]!==u||t[12]!==_?(v=()=>u?f(vx):_(_x),t[11]=u,t[12]=_,t[13]=v):v=t[13];let y=v,b,x;t[14]===y?(b=t[15],x=t[16]):(b=()=>{let e=e=>{e.key===px&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[14]=y,t[15]=b,t[16]=x),H.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[17]!==u||t[18]!==h||t[19]!==d||t[20]!==_||t[21]!==S||t[22]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[17]=u,t[18]=h,t[19]=d,t[20]=_,t[21]=S,t[22]=y,t[23]=C):C=t[23];let w=C,T;t[24]===s?T=t[25]:(T={"--sidebar-width":ux,"--sidebar-width-icon":fx,...s},t[24]=s,t[25]=T);let E=T,ee;t[26]===r?ee=t[27]:(ee=$(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,r),t[26]=r,t[27]=ee);let D;t[28]!==n||t[29]!==a||t[30]!==E||t[31]!==ee?(D=(0,G.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:E,className:ee,...a,children:n}),t[28]=n,t[29]=a,t[30]=E,t[31]=ee,t[32]=D):D=t[32];let O;return t[33]!==w||t[34]!==D?(O=(0,G.jsx)(mx.Provider,{value:w,children:D}),t[33]=w,t[34]=D,t[35]=O):O=t[35],O}function _x(e){return!e}function vx(e){return!e}function yx(e){let t=(0,U.c)(46),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({side:a,variant:o,collapsible:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=a===void 0?`left`:a,l=o===void 0?`sidebar`:o,u=s===void 0?`offcanvas`:s,{isMobile:d,state:f,openMobile:p,setOpenMobile:m}=hx();if(u===`none`){let e;t[7]===r?e=t[8]:(e=$(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,r),t[7]=r,t[8]=e);let a;return t[9]!==n||t[10]!==i||t[11]!==e?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar`,className:e,...i,children:n}),t[9]=n,t[10]=i,t[11]=e,t[12]=a):a=t[12],a}if(d){let e;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsxs)(ex,{className:`sr-only`,children:[(0,G.jsx)(tx,{children:`Sidebar`}),(0,G.jsx)(nx,{children:`Displays the mobile sidebar.`})]}),t[13]=e):e=t[13];let r;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(r={"--sidebar-width":dx},t[14]=r):r=t[14];let a;t[15]===n?a=t[16]:(a=(0,G.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[15]=n,t[16]=a);let o;t[17]!==c||t[18]!==a?(o=(0,G.jsx)($b,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:r,side:c,children:a}),t[17]=c,t[18]=a,t[19]=o):o=t[19];let s;return t[20]!==p||t[21]!==i||t[22]!==m||t[23]!==o?(s=(0,G.jsxs)(Yb,{open:p,onOpenChange:m,...i,children:[e,o]}),t[20]=p,t[21]=i,t[22]=m,t[23]=o,t[24]=s):s=t[24],s}let h=f===`collapsed`?u:``,g=l===`floating`||l===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,_;t[25]===g?_=t[26]:(_=$(`relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,g),t[25]=g,t[26]=_);let v;t[27]===_?v=t[28]:(v=(0,G.jsx)(`div`,{className:_}),t[27]=_,t[28]=v);let y=c===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,b=l===`floating`||l===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[29]!==r||t[30]!==y||t[31]!==b?(x=$(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,y,b,r),t[29]=r,t[30]=y,t[31]=b,t[32]=x):x=t[32];let S;t[33]===n?S=t[34]:(S=(0,G.jsx)(`div`,{"data-sidebar":`sidebar`,className:`bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm`,children:n}),t[33]=n,t[34]=S);let C;t[35]!==i||t[36]!==x||t[37]!==S?(C=(0,G.jsx)(`div`,{className:x,...i,children:S}),t[35]=i,t[36]=x,t[37]=S,t[38]=C):C=t[38];let w;return t[39]!==c||t[40]!==f||t[41]!==C||t[42]!==h||t[43]!==v||t[44]!==l?(w=(0,G.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":f,"data-collapsible":h,"data-variant":l,"data-side":c,"data-slot":`sidebar`,children:[v,C]}),t[39]=c,t[40]=f,t[41]=C,t[42]=h,t[43]=v,t[44]=l,t[45]=w):w=t[45],w}function bx(e){let t=(0,U.c)(18),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,onClick:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let{toggleSidebar:a,isMobile:o,state:s}=hx(),c;t[4]===n?c=t[5]:(c=$(`h-7 w-7`,n),t[4]=n,t[5]=c);let l;t[6]!==r||t[7]!==a?(l=e=>{r?.(e),a()},t[6]=r,t[7]=a,t[8]=l):l=t[8];let u;t[9]!==o||t[10]!==s?(u=o||s===`collapsed`?(0,G.jsx)(fm,{}):(0,G.jsx)(dm,{}),t[9]=o,t[10]=s,t[11]=u):u=t[11];let d;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(`span`,{className:`sr-only`,children:`Toggle sidebar`}),t[12]=d):d=t[12];let f;return t[13]!==i||t[14]!==c||t[15]!==l||t[16]!==u?(f=(0,G.jsxs)(gm,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon`,className:c,onClick:l,...i,children:[u,d]}),t[13]=i,t[14]=c,t[15]=l,t[16]=u,t[17]=f):f=t[17],f}function xx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`bg-background relative flex max-w-full min-h-svh flex-1 flex-col`,`peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`main`,{"data-slot":`sidebar-inset`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Sx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Cx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`flex flex-col gap-2 p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function wx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Tx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`relative flex w-full min-w-0 flex-col p-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ex(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,asChild:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i!==void 0&&i?Gp:`div`,o;t[4]===n?o=t[5]:(o=$(`text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 group-data-[collapsible=icon]:select-none group-data-[collapsible=icon]:pointer-events-none`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,G.jsx)(a,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:o,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}function Dx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`w-full text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ox(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`flex w-full min-w-0 flex-col gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function kx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`group/menu-item relative`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Ax=$p(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function jx(e){let t=(0,U.c)(28),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({asChild:i,isActive:a,variant:o,size:s,tooltip:c,className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=i===void 0?!1:i,u=a===void 0?!1:a,d=o===void 0?`default`:o,f=s===void 0?`default`:s,p=l?Gp:`button`,{isMobile:m,state:h}=hx(),g;t[8]!==n||t[9]!==f||t[10]!==d?(g=$(Ax({variant:d,size:f}),n),t[8]=n,t[9]=f,t[10]=d,t[11]=g):g=t[11];let _;t[12]!==p||t[13]!==u||t[14]!==r||t[15]!==f||t[16]!==g?(_=(0,G.jsx)(p,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":f,"data-active":u,className:g,...r}),t[12]=p,t[13]=u,t[14]=r,t[15]=f,t[16]=g,t[17]=_):_=t[17];let v=_;if(!c)return v;if(typeof c==`string`){let e;t[18]===c?e=t[19]:(e={children:c},t[18]=c,t[19]=e),c=e}let y;t[20]===v?y=t[21]:(y=(0,G.jsx)(xp,{asChild:!0,children:v}),t[20]=v,t[21]=y);let b=h!==`collapsed`||m,x;t[22]!==b||t[23]!==c?(x=(0,G.jsx)(Sp,{side:`right`,align:`center`,hidden:b,...c}),t[22]=b,t[23]=c,t[24]=x):x=t[24];let S;return t[25]!==y||t[26]!==x?(S=(0,G.jsxs)(bp,{children:[y,x]}),t[25]=y,t[26]=x,t[27]=S):S=t[27],S}function Mx(e){let t=(0,U.c)(10),n,r,i;if(t[0]===e?(n=t[1],r=t[2],i=t[3]):({variant:i,children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i),(i===void 0?`sidebar`:i)===`sidebar`){let e;return t[4]!==n||t[5]!==r?(e=(0,G.jsx)(xx,{...r,children:n}),t[4]=n,t[5]=r,t[6]=e):e=t[6],e}let a;return t[7]!==n||t[8]!==r?(a=(0,G.jsx)(`main`,{className:`mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl`,...r,children:n}),t[7]=n,t[8]=r,t[9]=a):a=t[9],a}function Nx(e){let t=(0,U.c)(5),{children:n,variant:r}=e,i=r===void 0?`sidebar`:r,a=Ta().props.sidebarOpen;if(i===`header`){let e;return t[0]===n?e=t[1]:(e=(0,G.jsx)(`div`,{className:`flex min-h-screen w-full flex-col`,children:n}),t[0]=n,t[1]=e),e}let o;return t[2]!==n||t[3]!==a?(o=(0,G.jsx)(gx,{defaultOpen:a,children:n}),t[2]=n,t[3]=a,t[4]=o):o=t[4],o}function Px(e){let t=(0,U.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M17.2 5.63325L8.6 0.855469L0 5.63325V32.1434L16.2 41.1434L32.4 32.1434V23.699L40 19.4767V9.85547L31.4 5.07769L22.8 9.85547V18.2999L17.2 21.411V5.63325ZM38 18.2999L32.4 21.411V15.2545L38 12.1434V18.2999ZM36.9409 10.4439L31.4 13.5221L25.8591 10.4439L31.4 7.36561L36.9409 10.4439ZM24.8 18.2999V12.1434L30.4 15.2545V21.411L24.8 18.2999ZM23.8 20.0323L29.3409 23.1105L16.2 30.411L10.6591 27.3328L23.8 20.0323ZM7.6 27.9212L15.2 32.1434V38.2999L2 30.9666V7.92116L7.6 11.0323V27.9212ZM8.6 9.29991L3.05913 6.22165L8.6 3.14339L14.1409 6.22165L8.6 9.29991ZM30.4 24.8101L17.2 32.1434V38.2999L30.4 30.9666V24.8101ZM9.6 11.0323L15.2 7.92117V22.5221L9.6 25.6333V11.0323Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,G.jsx)(`svg`,{...e,viewBox:`0 0 40 42`,xmlns:`http://www.w3.org/2000/svg`,children:n}),t[1]=e,t[2]=r),r}function Fx(){let e=(0,U.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,G.jsx)(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground`,children:(0,G.jsx)(Px,{className:`size-5 fill-current text-white dark:text-black`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsxs)(G.Fragment,{children:[t,(0,G.jsx)(`div`,{className:`ml-1 grid flex-1 text-left text-sm`,children:(0,G.jsx)(`span`,{className:`mb-0.5 truncate leading-tight font-semibold`,children:`Laravel Starter Kit`})})]}),e[1]=n):n=e[1],n}function Ix(e){let t=(0,U.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({items:r,className:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=`group-data-[collapsible=icon]:p-0 ${n||``}`,o;t[4]===r?o=t[5]:(o=r.map(Lx),t[4]=r,t[5]=o);let s;t[6]===o?s=t[7]:(s=(0,G.jsx)(Dx,{children:(0,G.jsx)(Ox,{children:o})}),t[6]=o,t[7]=s);let c;return t[8]!==i||t[9]!==a||t[10]!==s?(c=(0,G.jsx)(Tx,{...i,className:a,children:s}),t[8]=i,t[9]=a,t[10]=s,t[11]=c):c=t[11],c}function Lx(e){return(0,G.jsx)(kx,{children:(0,G.jsx)(jx,{asChild:!0,className:`text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100`,children:(0,G.jsxs)(`a`,{href:vp(e.href),target:`_blank`,rel:`noopener noreferrer`,children:[e.icon&&(0,G.jsx)(e.icon,{className:`h-5 w-5`}),(0,G.jsx)(`span`,{children:e.title})]})})},e.title)}function Rx(){let e=(0,U.c)(13),t=Ta(),n;e[0]===t.url?n=e[1]:(n=new URL(t.url,typeof window<`u`?window.location.origin:`http://localhost`),e[0]=t.url,e[1]=n);let r=n.pathname,i;e[2]===r?i=e[3]:(i=(e,t,n)=>{let i=n===void 0?!1:n,a=t??r,o=vp(e),s=e=>i?a.startsWith(e):e===a;if(!o.startsWith(`http`))return s(o);try{return s(new URL(o).pathname)}catch{return!1}},e[2]=r,e[3]=i);let a=i,o;e[4]===a?o=e[5]:(o=(e,t)=>a(e,t,!0),e[4]=a,e[5]=o);let s=o,c;e[6]===a?c=e[7]:(c=(e,t,n)=>{let r=n===void 0?null:n;return a(e)?t:r},e[6]=a,e[7]=c);let l=c,u;return e[8]!==r||e[9]!==s||e[10]!==a||e[11]!==l?(u={currentUrl:r,isCurrentUrl:a,isCurrentOrParentUrl:s,whenCurrentUrl:l},e[8]=r,e[9]=s,e[10]=a,e[11]=l,e[12]=u):u=e[12],u}function zx(e){let t=(0,U.c)(10),{items:n}=e,r;t[0]===n?r=t[1]:(r=n===void 0?[]:n,t[0]=n,t[1]=r);let i=r,{isCurrentUrl:a}=Rx(),o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,G.jsx)(Ex,{children:`Platform`}),t[2]=o):o=t[2];let s;if(t[3]!==a||t[4]!==i){let e;t[6]===a?e=t[7]:(e=e=>(0,G.jsx)(kx,{children:(0,G.jsx)(jx,{asChild:!0,isActive:a(e.href),tooltip:{children:e.title},children:(0,G.jsxs)(Ha,{href:e.href,prefetch:!0,children:[e.icon&&(0,G.jsx)(e.icon,{}),(0,G.jsx)(`span`,{children:e.title})]})})},e.title),t[6]=a,t[7]=e),s=i.map(e),t[3]=a,t[4]=i,t[5]=s}else s=t[5];let c;return t[8]===s?c=t[9]:(c=(0,G.jsxs)(Tx,{className:`px-2 py-0`,children:[o,(0,G.jsx)(Ox,{children:s})]}),t[8]=s,t[9]=c),c}function Bx(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Vb,{"data-slot":`dropdown-menu`,...n}),t[2]=n,t[3]=r),r}function Vx(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Hb,{"data-slot":`dropdown-menu-trigger`,...n}),t[2]=n,t[3]=r),r}function Hx(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,sideOffset:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?4:i,o;t[4]===n?o=t[5]:(o=$(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md`,n),t[4]=n,t[5]=o);let s;return t[6]!==r||t[7]!==a||t[8]!==o?(s=(0,G.jsx)(Ub,{children:(0,G.jsx)(Wb,{"data-slot":`dropdown-menu-content`,sideOffset:a,className:o,...r})}),t[6]=r,t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function Ux(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Gb,{"data-slot":`dropdown-menu-group`,...n}),t[2]=n,t[3]=r),r}function Wx(e){let t=(0,U.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,inset:r,variant:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s;t[5]===n?s=t[6]:(s=$(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,n),t[5]=n,t[6]=s);let c;return t[7]!==r||t[8]!==i||t[9]!==s||t[10]!==o?(c=(0,G.jsx)(qb,{"data-slot":`dropdown-menu-item`,"data-inset":r,"data-variant":o,className:s,...i}),t[7]=r,t[8]=i,t[9]=s,t[10]=o,t[11]=c):c=t[11],c}function Gx(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,inset:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=$(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==i||t[8]!==a?(o=(0,G.jsx)(Kb,{"data-slot":`dropdown-menu-label`,"data-inset":r,className:a,...i}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function Kx(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`bg-border -mx-1 my-1 h-px`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Jb,{"data-slot":`dropdown-menu-separator`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function qx(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,G.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=H.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>H.createContext(e));return function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Jx(i,...t)]}function Jx(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Yx=`Avatar`,[Xx,Zx]=qx(Yx),[Qx,$x]=Xx(Yx),eS=H.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=H.useState(`idle`);return(0,G.jsx)(Qx,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,G.jsx)(vm.span,{...r,ref:t})})});eS.displayName=Yx;var tS=`AvatarImage`,nS=H.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=$x(tS,n),s=oS(r,a),c=as(e=>{i(e),o.onImageLoadingStatusChange(e)});return bs(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,G.jsx)(vm.img,{...a,ref:t,src:r}):null});nS.displayName=tS;var rS=`AvatarFallback`,iS=H.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=$x(rS,n),[o,s]=H.useState(r===void 0);return H.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,G.jsx)(vm.span,{...i,ref:t}):null});iS.displayName=rS;function aS(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function oS(e,{referrerPolicy:t,crossOrigin:n}){let r=O_(),i=H.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=H.useState(()=>aS(a,e));return bs(()=>{s(aS(a,e))},[a,e]),bs(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var sS=eS,cS=nS,lS=iS;function uS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(sS,{"data-slot":`avatar`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function dS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`aspect-square size-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(cS,{"data-slot":`avatar-image`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function fS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`bg-muted flex size-full items-center justify-center rounded-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(lS,{"data-slot":`avatar-fallback`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function pS(){return mS}function mS(e){let t=e.trim().split(` `);return t.length===0?``:t.length===1?t[0].charAt(0).toUpperCase():`${t[0].charAt(0)}${t[t.length-1].charAt(0)}`.toUpperCase()}function hS(e){let t=(0,U.c)(22),{user:n,showEmail:r}=e,i=r===void 0?!1:r,a=pS(),o;t[0]!==n.avatar||t[1]!==n.name?(o=(0,G.jsx)(dS,{src:n.avatar,alt:n.name}),t[0]=n.avatar,t[1]=n.name,t[2]=o):o=t[2];let s;t[3]!==a||t[4]!==n.name?(s=a(n.name),t[3]=a,t[4]=n.name,t[5]=s):s=t[5];let c;t[6]===s?c=t[7]:(c=(0,G.jsx)(fS,{className:`rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white`,children:s}),t[6]=s,t[7]=c);let l;t[8]!==o||t[9]!==c?(l=(0,G.jsxs)(uS,{className:`h-8 w-8 overflow-hidden rounded-full`,children:[o,c]}),t[8]=o,t[9]=c,t[10]=l):l=t[10];let u;t[11]===n.name?u=t[12]:(u=(0,G.jsx)(`span`,{className:`truncate font-medium`,children:n.name}),t[11]=n.name,t[12]=u);let d;t[13]!==i||t[14]!==n.email?(d=i&&(0,G.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:n.email}),t[13]=i,t[14]=n.email,t[15]=d):d=t[15];let f;t[16]!==u||t[17]!==d?(f=(0,G.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[u,d]}),t[16]=u,t[17]=d,t[18]=f):f=t[18];let p;return t[19]!==l||t[20]!==f?(p=(0,G.jsxs)(G.Fragment,{children:[l,f]}),t[19]=l,t[20]=f,t[21]=p):p=t[21],p}function gS(){return _S}function _S(){document.body.style.removeProperty(`pointer-events`)}var vS=()=>({}),yS=e=>e===!0?`1`:e===!1?`0`:e.toString(),bS=(e,t,n)=>{Object.entries(e).forEach(([e,r])=>{if(r===void 0)return;let i=`${t}[${e}]`;Array.isArray(r)?r.forEach(e=>n.append(`${i}[]`,yS(e))):typeof r==`object`&&r?bS(r,i,n):[`string`,`number`,`boolean`].includes(typeof r)&&n.set(i,yS(r))})},xS=(e,t)=>{let n=new Set;e.forEach((e,r)=>{(r===t||r.startsWith(`${t}[`))&&n.add(r)}),n.forEach(t=>e.delete(t))},SS=e=>{if(!e||!e.query&&!e.mergeQuery)return``;let t=e.query??e.mergeQuery,n=e.mergeQuery!==void 0,r=new URLSearchParams(n&&typeof window<`u`?window.location.search:``);for(let e in t){let i=t[e];n&&xS(r,e),i!=null&&(Array.isArray(i)?i.forEach(t=>{r.append(`${e}[]`,t.toString())}):typeof i==`object`?bS(i,e,r):r.set(e,yS(i)))}let i=r.toString();return i.length>0?`?${i}`:``},CS=e=>{let t={...e??{}},n=vS();for(let e in n)t[e]===void 0&&n[e]!==void 0&&(t[e]=n[e]);return t},wS=e=>({url:wS.url(e),method:`get`});wS.definition={methods:[`get`,`head`],url:`/login`},wS.url=e=>wS.definition.url+SS(e),wS.get=e=>({url:wS.url(e),method:`get`}),wS.head=e=>({url:wS.url(e),method:`head`});var TS=e=>({action:wS.url(e),method:`get`});TS.get=e=>({action:wS.url(e),method:`get`}),TS.head=e=>({action:wS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),wS.form=TS;var ES=e=>({url:ES.url(e),method:`post`});ES.definition={methods:[`post`],url:`/logout`},ES.url=e=>ES.definition.url+SS(e),ES.post=e=>({url:ES.url(e),method:`post`});var DS=e=>({action:ES.url(e),method:`post`});DS.post=e=>({action:ES.url(e),method:`post`}),ES.form=DS;var OS=e=>({url:OS.url(e),method:`get`});OS.definition={methods:[`get`,`head`],url:`/register`},OS.url=e=>OS.definition.url+SS(e),OS.get=e=>({url:OS.url(e),method:`get`}),OS.head=e=>({url:OS.url(e),method:`head`});var kS=e=>({action:OS.url(e),method:`get`});kS.get=e=>({action:OS.url(e),method:`get`}),kS.head=e=>({action:OS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),OS.form=kS;var AS=e=>({url:AS.url(e),method:`get`});AS.definition={methods:[`get`,`head`],url:`/`},AS.url=e=>AS.definition.url+SS(e),AS.get=e=>({url:AS.url(e),method:`get`}),AS.head=e=>({url:AS.url(e),method:`head`});var jS=e=>({action:AS.url(e),method:`get`});jS.get=e=>({action:AS.url(e),method:`get`}),jS.head=e=>({action:AS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),AS.form=jS;var MS=e=>({url:MS.url(e),method:`get`});MS.definition={methods:[`get`,`head`],url:`/pricing`},MS.url=e=>MS.definition.url+SS(e),MS.get=e=>({url:MS.url(e),method:`get`}),MS.head=e=>({url:MS.url(e),method:`head`});var NS=e=>({action:MS.url(e),method:`get`});NS.get=e=>({action:MS.url(e),method:`get`}),NS.head=e=>({action:MS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),MS.form=NS;var PS=e=>({url:PS.url(e),method:`get`});PS.definition={methods:[`get`,`head`],url:`/dashboard`},PS.url=e=>PS.definition.url+SS(e),PS.get=e=>({url:PS.url(e),method:`get`}),PS.head=e=>({url:PS.url(e),method:`head`});var FS=e=>({action:PS.url(e),method:`get`});FS.get=e=>({action:PS.url(e),method:`get`}),FS.head=e=>({action:PS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),PS.form=FS;var IS=e=>({url:IS.url(e),method:`get`});IS.definition={methods:[`get`,`head`],url:`/settings/profile`},IS.url=e=>IS.definition.url+SS(e),IS.get=e=>({url:IS.url(e),method:`get`}),IS.head=e=>({url:IS.url(e),method:`head`});var LS=e=>({action:IS.url(e),method:`get`});LS.get=e=>({action:IS.url(e),method:`get`}),LS.head=e=>({action:IS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),IS.form=LS;var RS=e=>({url:RS.url(e),method:`patch`});RS.definition={methods:[`patch`],url:`/settings/profile`},RS.url=e=>RS.definition.url+SS(e),RS.patch=e=>({url:RS.url(e),method:`patch`});var zS=e=>({action:RS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`});zS.patch=e=>({action:RS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),RS.form=zS;var BS=e=>({url:BS.url(e),method:`delete`});BS.definition={methods:[`delete`],url:`/settings/profile`},BS.url=e=>BS.definition.url+SS(e),BS.delete=e=>({url:BS.url(e),method:`delete`});var VS=e=>({action:BS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`});VS.delete=e=>({action:BS.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),BS.form=VS,Object.assign(IS,IS),Object.assign(RS,RS),Object.assign(BS,BS);function HS(e){let t=(0,U.c)(18),{user:n}=e,r=gS(),i;t[0]===r?i=t[1]:(i=()=>{r(),Qi.flushAll()},t[0]=r,t[1]=i);let a=i,o;t[2]===n?o=t[3]:(o=(0,G.jsx)(Gx,{className:`p-0 font-normal`,children:(0,G.jsx)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-left text-sm`,children:(0,G.jsx)(hS,{user:n,showEmail:!0})})}),t[2]=n,t[3]=o);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,G.jsx)(Kx,{}),t[4]=s):s=t[4];let c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=IS(),t[5]=c):c=t[5];let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,G.jsx)(pm,{className:`mr-2`}),t[6]=l):l=t[6];let u;t[7]===r?u=t[8]:(u=(0,G.jsx)(Ux,{children:(0,G.jsx)(Wx,{asChild:!0,children:(0,G.jsxs)(Ha,{className:`block w-full cursor-pointer`,href:c,prefetch:!0,onClick:r,children:[l,`Settings`]})})}),t[7]=r,t[8]=u);let d;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(Kx,{}),t[9]=d):d=t[9];let f;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(f=ES(),t[10]=f):f=t[10];let p;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,G.jsx)(um,{className:`mr-2`}),t[11]=p):p=t[11];let m;t[12]===a?m=t[13]:(m=(0,G.jsx)(Wx,{asChild:!0,children:(0,G.jsxs)(Ha,{className:`block w-full cursor-pointer`,href:f,as:`button`,onClick:a,"data-test":`logout-button`,children:[p,`Log out`]})}),t[12]=a,t[13]=m);let h;return t[14]!==m||t[15]!==o||t[16]!==u?(h=(0,G.jsxs)(G.Fragment,{children:[o,s,u,d,m]}),t[14]=m,t[15]=o,t[16]=u,t[17]=h):h=t[17],h}function US(){let e=(0,U.c)(13),{auth:t}=Ta().props,{state:n}=hx(),r=sx();if(!t.user)return null;let i;e[0]===t.user?i=e[1]:(i=(0,G.jsx)(hS,{user:t.user}),e[0]=t.user,e[1]=i);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,G.jsx)(sm,{className:`ml-auto size-4`}),e[2]=a):a=e[2];let o;e[3]===i?o=e[4]:(o=(0,G.jsx)(Vx,{asChild:!0,children:(0,G.jsxs)(jx,{size:`lg`,className:`group text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent`,"data-test":`sidebar-menu-button`,children:[i,a]})}),e[3]=i,e[4]=o);let s=r?`bottom`:n===`collapsed`?`left`:`bottom`,c;e[5]===t.user?c=e[6]:(c=(0,G.jsx)(HS,{user:t.user}),e[5]=t.user,e[6]=c);let l;e[7]!==s||e[8]!==c?(l=(0,G.jsx)(Hx,{className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,align:`end`,side:s,children:c}),e[7]=s,e[8]=c,e[9]=l):l=e[9];let u;return e[10]!==o||e[11]!==l?(u=(0,G.jsx)(Ox,{children:(0,G.jsx)(kx,{children:(0,G.jsxs)(Bx,{children:[o,l]})})}),e[10]=o,e[11]=l,e[12]=u):u=e[12],u}var WS=[{title:`Dashboard`,href:PS(),icon:lm}],GS=[{title:`Repository`,href:`https://github.com/laravel/react-starter-kit`,icon:cm},{title:`Documentation`,href:`https://laravel.com/docs/starter-kits#react`,icon:am}];function KS(){let e=(0,U.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=PS(),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsx)(Sx,{children:(0,G.jsx)(Ox,{children:(0,G.jsx)(kx,{children:(0,G.jsx)(jx,{size:`lg`,asChild:!0,children:(0,G.jsx)(Ha,{href:t,prefetch:!0,children:(0,G.jsx)(Fx,{})})})})})}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,G.jsx)(wx,{children:(0,G.jsx)(zx,{items:WS})}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsxs)(yx,{collapsible:`icon`,variant:`inset`,children:[n,r,(0,G.jsxs)(Cx,{children:[(0,G.jsx)(Ix,{items:GS,className:`mt-auto`}),(0,G.jsx)(US,{})]})]}),e[3]=i):i=e[3],i}function qS(e){let t=(0,U.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,...n}),t[2]=n,t[3]=r),r}function JS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function YS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`inline-flex items-center gap-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function XS(e){let t=(0,U.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({asChild:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n?Gp:`a`,o;t[4]===r?o=t[5]:(o=$(`hover:text-foreground transition-colors`,r),t[4]=r,t[5]=o);let s;return t[6]!==a||t[7]!==i||t[8]!==o?(s=(0,G.jsx)(a,{"data-slot":`breadcrumb-link`,className:o,...i}),t[6]=a,t[7]=i,t[8]=o,t[9]=s):s=t[9],s}function ZS(e){let t=(0,U.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=$(`text-foreground font-normal`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function QS(e){let t=(0,U.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=$(`[&>svg]:size-3.5`,r),t[4]=r,t[5]=a);let o;t[6]===n?o=t[7]:(o=n??(0,G.jsx)(om,{}),t[6]=n,t[7]=o);let s;return t[8]!==i||t[9]!==a||t[10]!==o?(s=(0,G.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:a,...i,children:o}),t[8]=i,t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function $S(e){let t=(0,U.c)(4),{breadcrumbs:n}=e,r;t[0]===n?r=t[1]:(r=n.length>0&&(0,G.jsx)(qS,{children:(0,G.jsx)(JS,{children:n.map((e,t)=>{let r=t===n.length-1;return(0,G.jsxs)(H.Fragment,{children:[(0,G.jsx)(YS,{children:r?(0,G.jsx)(ZS,{children:e.title}):(0,G.jsx)(XS,{asChild:!0,children:(0,G.jsx)(Ha,{href:e.href,children:e.title})})}),!r&&(0,G.jsx)(QS,{})]},t)})})}),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,G.jsx)(G.Fragment,{children:r}),t[2]=r,t[3]=i),i}function eC(e){let t=(0,U.c)(5),{breadcrumbs:n}=e,r;t[0]===n?r=t[1]:(r=n===void 0?[]:n,t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,G.jsx)(bx,{className:`-ml-1`}),t[2]=a):a=t[2];let o;return t[3]===i?o=t[4]:(o=(0,G.jsx)(`header`,{className:`flex h-16 shrink-0 items-center gap-2 border-b border-sidebar-border/50 px-6 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 md:px-4`,children:(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[a,(0,G.jsx)($S,{breadcrumbs:i})]})}),t[3]=i,t[4]=o),o}function tC(e){let t=(0,U.c)(8),{children:n,breadcrumbs:r}=e,i;t[0]===r?i=t[1]:(i=r===void 0?[]:r,t[0]=r,t[1]=i);let a=i,o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,G.jsx)(KS,{}),t[2]=o):o=t[2];let s;t[3]===a?s=t[4]:(s=(0,G.jsx)(eC,{breadcrumbs:a}),t[3]=a,t[4]=s);let c;return t[5]!==n||t[6]!==s?(c=(0,G.jsxs)(Nx,{variant:`sidebar`,children:[o,(0,G.jsxs)(Mx,{variant:`sidebar`,className:`overflow-x-hidden`,children:[s,n]})]}),t[5]=n,t[6]=s,t[7]=c):c=t[7],c}function nC(e){let t=(0,U.c)(5),{breadcrumbs:n,children:r}=e,i;t[0]===n?i=t[1]:(i=n===void 0?[]:n,t[0]=n,t[1]=i);let a=i,o;return t[2]!==a||t[3]!==r?(o=(0,G.jsx)(tC,{breadcrumbs:a,children:r}),t[2]=a,t[3]=r,t[4]=o):o=t[4],o}function rC(e){let t=(0,U.c)(17),{children:n,title:r,description:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=AS(),t[0]=a):a=t[0];let o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,G.jsx)(`div`,{className:`mb-1 flex h-9 w-9 items-center justify-center rounded-md`,children:(0,G.jsx)(Px,{className:`size-9 fill-current text-[var(--foreground)] dark:text-white`})}),t[1]=o):o=t[1];let s;t[2]===r?s=t[3]:(s=(0,G.jsxs)(Ha,{href:a,className:`flex flex-col items-center gap-2 font-medium`,children:[o,(0,G.jsx)(`span`,{className:`sr-only`,children:r})]}),t[2]=r,t[3]=s);let c;t[4]===r?c=t[5]:(c=(0,G.jsx)(`h1`,{className:`text-xl font-medium`,children:r}),t[4]=r,t[5]=c);let l;t[6]===i?l=t[7]:(l=(0,G.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:i}),t[6]=i,t[7]=l);let u;t[8]!==c||t[9]!==l?(u=(0,G.jsxs)(`div`,{className:`space-y-2 text-center`,children:[c,l]}),t[8]=c,t[9]=l,t[10]=u):u=t[10];let d;t[11]!==s||t[12]!==u?(d=(0,G.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[s,u]}),t[11]=s,t[12]=u,t[13]=d):d=t[13];let f;return t[14]!==n||t[15]!==d?(f=(0,G.jsx)(`div`,{className:`flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10`,children:(0,G.jsx)(`div`,{className:`w-full max-w-sm`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-8`,children:[d,n]})})}),t[14]=n,t[15]=d,t[16]=f):f=t[16],f}function iC(e){let t=(0,U.c)(4),{title:n,description:r,children:i}=e,a=n===void 0?``:n,o=r===void 0?``:r,s;return t[0]!==i||t[1]!==o||t[2]!==a?(s=(0,G.jsx)(rC,{title:a,description:o,children:i}),t[0]=i,t[1]=o,t[2]=a,t[3]=s):s=t[3],s}function aC(e){let t=(0,U.c)(10),{title:n,description:r,variant:i,as:a}=e,o=i===void 0?`default`:i,s=a===void 0?`h1`:a,c=o===`small`?``:`mb-8 space-y-0.5`,l=o===`small`?`mb-0.5 text-base font-medium`:`text-xl font-semibold tracking-tight`,u;t[0]!==s||t[1]!==l||t[2]!==n?(u=(0,G.jsx)(s,{className:l,children:n}),t[0]=s,t[1]=l,t[2]=n,t[3]=u):u=t[3];let d;t[4]===r?d=t[5]:(d=r&&(0,G.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:r}),t[4]=r,t[5]=d);let f;return t[6]!==c||t[7]!==u||t[8]!==d?(f=(0,G.jsxs)(`header`,{className:c,children:[u,d]}),t[6]=c,t[7]=u,t[8]=d,t[9]=f):f=t[9],f}var oC=e=>({url:oC.url(e),method:`get`});oC.definition={methods:[`get`,`head`],url:`/settings/appearance`},oC.url=e=>oC.definition.url+SS(e),oC.get=e=>({url:oC.url(e),method:`get`}),oC.head=e=>({url:oC.url(e),method:`head`});var sC=e=>({action:oC.url(e),method:`get`});sC.get=e=>({action:oC.url(e),method:`get`}),sC.head=e=>({action:oC.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),oC.form=sC,Object.assign(oC,oC);var cC=e=>({url:cC.url(e),method:`get`});cC.definition={methods:[`get`,`head`],url:`/settings/security`},cC.url=e=>cC.definition.url+SS(e),cC.get=e=>({url:cC.url(e),method:`get`}),cC.head=e=>({url:cC.url(e),method:`head`});var lC=e=>({action:cC.url(e),method:`get`});lC.get=e=>({action:cC.url(e),method:`get`}),lC.head=e=>({action:cC.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),cC.form=lC,Object.assign(cC,cC);var uC=[{title:`Profile`,href:IS(),icon:null},{title:`Security`,href:cC(),icon:null},{title:`Appearance`,href:oC(),icon:null}];function dC(e){let t=(0,U.c)(11),{children:n}=e,{isCurrentOrParentUrl:r}=Rx(),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(aC,{title:`Settings`,description:`Manage your profile and account settings`}),t[0]=i):i=t[0];let a;t[1]===r?a=t[2]:(a=uC.map((e,t)=>(0,G.jsx)(gm,{size:`sm`,variant:`ghost`,asChild:!0,className:$(`w-full justify-start`,{"bg-muted":r(e.href)}),children:(0,G.jsxs)(Ha,{href:e.href,children:[e.icon&&(0,G.jsx)(e.icon,{className:`h-4 w-4`}),e.title]})},`${vp(e.href)}-${t}`)),t[1]=r,t[2]=a);let o;t[3]===a?o=t[4]:(o=(0,G.jsx)(`aside`,{className:`w-full max-w-xl lg:w-48`,children:(0,G.jsx)(`nav`,{className:`flex flex-col space-y-1 space-x-0`,"aria-label":`Settings`,children:a})}),t[3]=a,t[4]=o);let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,G.jsx)(Tm,{className:`my-6 lg:hidden`}),t[5]=s):s=t[5];let c;t[6]===n?c=t[7]:(c=(0,G.jsx)(`div`,{className:`flex-1 md:max-w-2xl`,children:(0,G.jsx)(`section`,{className:`max-w-xl space-y-12`,children:n})}),t[6]=n,t[7]=c);let l;return t[8]!==o||t[9]!==c?(l=(0,G.jsxs)(`div`,{className:`px-4 py-6`,children:[i,(0,G.jsxs)(`div`,{className:`flex flex-col lg:flex-row lg:space-x-12`,children:[o,s,c]})]}),t[8]=o,t[9]=c,t[10]=l):l=t[10],l}var fC=`Laravel`;wa({resolve:async(e,t)=>{let n=Object.assign({"./pages/animate-css/index.tsx":()=>Ht(()=>import(`./animate-css-BwrG5zYQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),"./pages/auth/confirm-password.tsx":()=>Ht(()=>import(`./confirm-password-BNeZIAHY.js`),__vite__mapDeps([13,14,15,16,17,18,19])),"./pages/auth/forgot-password.tsx":()=>Ht(()=>import(`./forgot-password-B5S_AFXd.js`),__vite__mapDeps([20,14,18,16,21,22,19])),"./pages/auth/login.tsx":()=>Ht(()=>import(`./login-00JrbYrx.js`),__vite__mapDeps([23,14,24,2,25,15,3,16,21,17,18,22,19])),"./pages/auth/register.tsx":()=>Ht(()=>import(`./register-DjsSoOdi.js`),__vite__mapDeps([26,14,25,15,3,16,21,17,18])),"./pages/auth/reset-password.tsx":()=>Ht(()=>import(`./reset-password-CoN8fAaC.js`),__vite__mapDeps([27,14,15,16,17,18,22,19])),"./pages/auth/two-factor-challenge.tsx":()=>Ht(()=>import(`./two-factor-challenge-Miwtb12I.js`),__vite__mapDeps([28,29,16])),"./pages/auth/verify-email.tsx":()=>Ht(()=>import(`./verify-email-D806-GRE.js`),__vite__mapDeps([30,21,17,18,31])),"./pages/dashboard.tsx":()=>Ht(()=>import(`./dashboard-oAHwTN2S.js`),__vite__mapDeps([32,5])),"./pages/fonts/index.tsx":()=>Ht(()=>import(`./fonts-CaQ0upX0.js`),__vite__mapDeps([33,34,24,2,9,1,3,4,5,6,7,8,35,11])),"./pages/home.tsx":()=>Ht(()=>import(`./home-C3JgkfjT.js`),__vite__mapDeps([36,37,38,1,2,3,4,5,6,10,39,40])),"./pages/pricing.tsx":()=>Ht(()=>import(`./pricing-BiBh6JwN.js`),__vite__mapDeps([41,1,2,3,4,5,6,11,42])),"./pages/settings/appearance.tsx":()=>Ht(()=>import(`./appearance-8Z1L6Aly.js`),__vite__mapDeps([43,44,4])),"./pages/settings/profile.tsx":()=>Ht(()=>import(`./profile-CQF7e4MZ.js`),__vite__mapDeps([45,14,15,16,12,31])),"./pages/settings/security.tsx":()=>Ht(()=>import(`./security-BxjNuG8g.js`),__vite__mapDeps([46,14,29,2,8,15,16,47,11,12,17,18])),"./pages/settings/subscription.tsx":()=>Ht(()=>import(`./subscription-DJjwwh89.js`),__vite__mapDeps([48,11,42])),"./pages/themes/create.tsx":()=>Ht(()=>import(`./create-BmSt6sO8.js`),__vite__mapDeps([49,14,37,50,38,1,2,3,4,5,6,18,11,51,40])),"./pages/themes/index.tsx":()=>Ht(()=>import(`./themes-dmvzolUC.js`),__vite__mapDeps([52,34,24,2,9,1,3,4,5,6,39,51,11,40])),"./pages/themes/show.tsx":()=>Ht(()=>import(`./show-D6Z2FFsL.js`),__vite__mapDeps([53,14,50,38,2,8,10,44,4,47,35,11,5,6]))}),r=await(n[`./pages/${e}.tsx`]||n[`./pages/${e}.jsx`]||n[`./Pages/${e}.tsx`]||n[`./Pages/${e}.jsx`])?.();if(!r)throw Error(`Page not found: ${e}`);return r.default??r},title:e=>e?`${e} - ${fC}`:fC,layout:e=>{switch(!0){case e===`welcome`:return null;case e.startsWith(`auth/`):return iC;case e.startsWith(`settings/`):return[nC,dC];default:return nC}},strictMode:!0,withApp(e){return(0,G.jsxs)(yp,{delayDuration:0,children:[(0,G.jsx)(`div`,{children:e}),(0,G.jsx)(Go,{})]})},progress:{color:`var(--primary)`}}),Ro(),Ip();export{td as $,ka as $t,S_ as A,Os as At,_m as B,as as Bt,E_ as C,jc as Ct,b_ as D,Ac as Dt,C_ as E,bc as Et,Zm as F,Ns as Ft,im as G,zo as Gt,mm as H,Jo as Ht,Im as I,Ls as It,Rp as J,Pa as Jt,$p as K,co as Kt,Pm as L,Cs as Lt,Ig as M,Rs as Mt,Dg as N,Is as Nt,y_ as O,js as Ot,_h as P,Xs as Pt,$ as Q,fa as Qt,Tm as R,bs as Rt,nv as S,yc as St,x_ as T,xc as Tt,pm as U,K as Ut,gm as V,qo as Vt,om as W,Wo as Wt,zp as X,za as Xt,Lp as Y,Fa as Yt,Cp as Z,Ha as Zt,ex as _,Mc as _t,PS as a,s as an,bu as at,hv as b,hc as bt,ES as c,d as cn,$l as ct,CS as d,jl as dt,Ua as en,Gu as et,SS as f,kl as ft,nx as g,pl as gt,$b as h,Dl as ht,IS as i,Qi as in,xu as it,v_ as j,Ps as jt,__ as k,Ms as kt,MS as l,u as ln,Ml as lt,Yb as m,Nl as mt,oC as n,na as nn,Au as nt,AS as o,o as on,vu as ot,sx as p,Al as pt,Gp as q,qa as qt,aC as r,ea as rn,yu as rt,wS as s,c as sn,nu as st,cC as t,Ta as tn,Mu as tt,OS as u,Pl as ut,tx as v,mc as vt,w_ as w,_c as wt,mv as x,vc as xt,Xb as y,Pc as yt,vm as z,ps as zt}; \ No newline at end of file diff --git a/public/build/assets/app-DN02iwDR.css b/public/build/assets/app-DN02iwDR.css new file mode 100644 index 0000000..13ea0dd --- /dev/null +++ b/public/build/assets/app-DN02iwDR.css @@ -0,0 +1,2 @@ +/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */ +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-mask-linear:linear-gradient(#fff, #fff);--tw-mask-radial:linear-gradient(#fff, #fff);--tw-mask-conic:linear-gradient(#fff, #fff);--tw-mask-linear-position:0deg;--tw-mask-linear-from-position:0%;--tw-mask-linear-to-position:100%;--tw-mask-linear-from-color:black;--tw-mask-linear-to-color:transparent;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:"Instrument Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-green-100:oklch(96.2% .044 156.743);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-zinc-900:oklch(21% .006 285.885);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:.75rem;--radius-2xl:1rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce:bounce 1s;--blur-xs:4px;--blur-sm:8px;--blur-lg:16px;--blur-2xl:40px;--blur-3xl:64px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-background:var(--background);--color-foreground:var(--foreground);--color-card:var(--card);--color-card-foreground:var(--card-foreground);--color-popover:var(--popover);--color-popover-foreground:var(--popover-foreground);--color-primary:var(--primary);--color-primary-foreground:var(--primary-foreground);--color-secondary:var(--secondary);--color-secondary-foreground:var(--secondary-foreground);--color-muted:var(--muted);--color-muted-foreground:var(--muted-foreground);--color-accent:var(--accent);--color-accent-foreground:var(--accent-foreground);--color-destructive:var(--destructive);--color-destructive-foreground:var(--destructive-foreground);--color-border:var(--border);--color-input:var(--input);--color-ring:var(--ring);--color-chart-1:var(--chart-1);--color-chart-2:var(--chart-2);--color-chart-3:var(--chart-3);--color-chart-4:var(--chart-4);--color-chart-5:var(--chart-5);--color-sidebar:var(--sidebar);--color-sidebar-foreground:var(--sidebar-foreground);--color-sidebar-primary:var(--sidebar-primary);--color-sidebar-primary-foreground:var(--sidebar-primary-foreground);--color-sidebar-accent:var(--sidebar-accent);--color-sidebar-accent-foreground:var(--sidebar-accent-foreground);--color-sidebar-border:var(--sidebar-border);--color-sidebar-ring:var(--sidebar-ring);--animate-flash:flash 1s;--animate-wobble:wobble 1s ease-in-out;--animate-rubber-band:rubberBand 1s;--animate-shake:shake 1s;--animate-head-shake:headShake 1s ease-in-out;--animate-swing:swing 1s;--animate-tada:tada 1s;--animate-jello:jello 1s;--animate-heart-beat:heartBeat 1s;--animate-flip:flip 1s ease-in-out;--animate-flip-in-x:flipInX 1s;--animate-flip-in-y:flipInY 1s;--animate-flip-out-x:flipOutX 1s;--animate-flip-out-y:flipOutY 1s;--animate-fade-in:fadeIn 1s;--animate-fade-in-down:fadeInDown 1s;--animate-fade-in-down-big:fadeInDownBig 1s;--animate-fade-in-left:fadeInLeft 1s;--animate-fade-in-left-big:fadeInLeftBig 1s;--animate-fade-in-right:fadeInRight 1s;--animate-fade-in-right-big:fadeInRightBig 1s;--animate-fade-in-up:fadeInUp 1s;--animate-fade-in-up-big:fadeInUpBig 1s;--animate-fade-out:fadeOut 1s;--animate-fade-out-down:fadeOutDown 1s;--animate-fade-out-down-big:fadeOutDownBig 1s;--animate-fade-out-left:fadeOutLeft 1s;--animate-fade-out-left-big:fadeOutLeftBig 1s;--animate-fade-out-right:fadeOutRight 1s;--animate-fade-out-right-big:fadeOutRightBig 1s;--animate-fade-out-up:fadeOutUp 1s;--animate-fade-out-up-big:fadeOutUpBig 1s;--animate-slide-in-down:slideInDown 1s;--animate-slide-in-left:slideInLeft 1s;--animate-slide-in-right:slideInRight 1s;--animate-slide-in-up:slideInUp 1s;--animate-slide-out-down:slideOutDown 1s;--animate-slide-out-left:slideOutLeft 1s;--animate-slide-out-right:slideOutRight 1s;--animate-slide-out-up:slideOutUp 1s;--animate-zoom-in:zoomIn 1s;--animate-zoom-in-down:zoomInDown 1s;--animate-zoom-in-left:zoomInLeft 1s;--animate-zoom-in-right:zoomInRight 1s;--animate-zoom-in-up:zoomInUp 1s;--animate-zoom-out:zoomOut 1s;--animate-zoom-out-down:zoomOutDown 1s;--animate-zoom-out-left:zoomOutLeft 1s;--animate-zoom-out-right:zoomOutRight 1s;--animate-zoom-out-up:zoomOutUp 1s;--animate-rotate-in:rotateIn 1s;--animate-rotate-out:rotateOut 1s;--animate-roll-in:rollIn 1s;--animate-roll-out:rollOut 1s;--animate-light-speed-in:lightSpeedInRight 1s ease-out;--animate-light-speed-out:lightSpeedOutLeft 1s ease-in;--animate-jack-in-box:jackInTheBox 1s;--animate-hinge:hinge 2s;--animate-bounce-in:bounceIn .75s;--animate-bounce-in-down:bounceInDown 1s;--animate-bounce-in-left:bounceInLeft 1s;--animate-bounce-in-right:bounceInRight 1s;--animate-bounce-in-up:bounceInUp 1s;--animate-bounce-out:bounceOut .75s;--animate-bounce-out-down:bounceOutDown 1s;--animate-bounce-out-left:bounceOutLeft 1s;--animate-bounce-out-right:bounceOutRight 1s;--animate-bounce-out-up:bounceOutUp 1s;--animate-back-in-down:backInDown 1s;--animate-back-in-left:backInLeft 1s;--animate-back-in-right:backInRight 1s;--animate-back-in-up:backInUp 1s;--animate-back-out-down:backOutDown 1s;--animate-back-out-left:backOutLeft 1s;--animate-back-out-right:backOutRight 1s;--animate-back-out-up:backOutUp 1s;--animate-rotate-in-down-left:rotateInDownLeft 1s;--animate-rotate-in-down-right:rotateInDownRight 1s;--animate-rotate-in-up-left:rotateInUpLeft 1s;--animate-rotate-in-up-right:rotateInUpRight 1s;--animate-rotate-out-down-left:rotateOutDownLeft 1s;--animate-rotate-out-down-right:rotateOutDownRight 1s;--animate-rotate-out-up-left:rotateOutUpLeft 1s;--animate-rotate-out-up-right:rotateOutUpRight 1s;--animate-float:float 3s ease-in-out infinite;--animate-wiggle:wiggle .8s ease-in-out infinite;--animate-blur-in:blurIn .6s ease-out;--animate-blur-out:blurOut .6s ease-in;--animate-glitch:glitch .6s steps(1) infinite;--animate-pop:pop .4s cubic-bezier(.26, .53, .74, 1.48);--animate-compress:compress .5s ease-in-out;--animate-expand:expand .5s cubic-bezier(.175, .885, .32, 1.275);--animate-drop:drop .6s ease-out;--animate-sway:sway 2s ease-in-out infinite;--animate-ken-burns:kenBurns 8s ease-in-out infinite alternate;--animate-tilt:tilt 1.5s ease-in-out infinite alternate;--animate-alarm:alarm .8s ease-in-out;--animate-ring:ring .5s ease-in-out;--animate-bell:bell 1s ease-in-out;--font-bebas-neue:"Bebas Neue", sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--color-border)}body{background-color:var(--color-background);color:var(--color-foreground)}body ::selection{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){body ::selection{background-color:color-mix(in oklab, var(--color-primary) 75%, transparent)}}body::selection{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){body::selection{background-color:color-mix(in oklab, var(--color-primary) 75%, transparent)}}body ::selection{color:var(--color-primary-foreground)}body::selection{color:var(--color-primary-foreground)}}@layer components;@layer utilities{.\@container{container-type:inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.pointer-events-none\!{pointer-events:none!important}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.static\!{position:static!important}.sticky{position:sticky}.-inset-0\.5{inset:calc(var(--spacing) * -.5)}.-inset-1{inset:calc(var(--spacing) * -1)}.-inset-1\.5{inset:calc(var(--spacing) * -1.5)}.-inset-2{inset:calc(var(--spacing) * -2)}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-x-5{inset-inline:calc(var(--spacing) * 5)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.-top-8{top:calc(var(--spacing) * -8)}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3\.5{top:calc(var(--spacing) * 3.5)}.top-4{top:calc(var(--spacing) * 4)}.top-8{top:calc(var(--spacing) * 8)}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.right-7{right:calc(var(--spacing) * 7)}.-bottom-8{bottom:calc(var(--spacing) * -8)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-3{left:calc(var(--spacing) * 3)}.left-7{left:calc(var(--spacing) * 7)}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.-z-20{z-index:calc(20 * -1)}.z-2{z-index:2}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[999\]{z-index:999}.order-first{order:-9999}.order-last{order:9999}.col-start-2{grid-column-start:2}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0\!{margin:calc(var(--spacing) * 0)!important}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.-mx-6{margin-inline:calc(var(--spacing) * -6)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-5{margin-inline:calc(var(--spacing) * 5)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.my-4{margin-block:calc(var(--spacing) * 4)}.my-6{margin-block:calc(var(--spacing) * 6)}.my-8{margin-block:calc(var(--spacing) * 8)}.my-12{margin-block:calc(var(--spacing) * 12)}.my-16{margin-block:calc(var(--spacing) * 16)}.-mt-4{margin-top:calc(var(--spacing) * -4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-12{margin-bottom:calc(var(--spacing) * 12)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-px{margin-left:-1px}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.\!size-5{width:calc(var(--spacing) * 5)!important;height:calc(var(--spacing) * 5)!important}.size-\(--cell-size\){width:var(--cell-size);height:var(--cell-size)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\(--cell-size\){height:var(--cell-size)}.h-0{height:calc(var(--spacing) * 0)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-32{height:calc(var(--spacing) * 32)}.h-34{height:calc(var(--spacing) * 34)}.h-36{height:calc(var(--spacing) * 36)}.h-40{height:calc(var(--spacing) * 40)}.h-64{height:calc(var(--spacing) * 64)}.h-\[34px\]{height:34px}.h-\[calc\(--spacing\(5\.5\)\)\]{height:calc(calc(var(--spacing) * 5.5))}.h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.h-svh{height:100svh}.max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.max-h-75{max-height:calc(var(--spacing) * 75)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[60vh\]{max-height:60vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[min\(calc\(--spacing\(96\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing) * 96) - calc(var(--spacing) * 9)), calc(var(--available-height) - calc(var(--spacing) * 9)))}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-90{min-height:calc(var(--spacing) * 90)}.min-h-\[100vh\],.min-h-screen{min-height:100vh}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--cell-size\){width:var(--cell-size)}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-0{width:calc(var(--spacing) * 0)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-4\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-22{width:calc(var(--spacing) * 22)}.w-24{width:calc(var(--spacing) * 24)}.w-32{width:calc(var(--spacing) * 32)}.w-40{width:calc(var(--spacing) * 40)}.w-45{width:calc(var(--spacing) * 45)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-\[34px\]{width:34px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[250px\]{width:250px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-42{max-width:calc(var(--spacing) * 42)}.max-w-50{max-width:calc(var(--spacing) * 50)}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-\(--cell-size\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-10{min-width:calc(var(--spacing) * 10)}.min-w-16{min-width:calc(var(--spacing) * 16)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing) * 7))}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2\.5{--tw-translate-y:calc(var(--spacing) * 2.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-150{--tw-scale-x:150%;--tw-scale-y:150%;--tw-scale-z:150%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-alarm{animation:.8s ease-in-out alarm}.animate-back-in-down{animation:1s backInDown}.animate-back-in-left{animation:1s backInLeft}.animate-back-in-right{animation:1s backInRight}.animate-back-in-up{animation:1s backInUp}.animate-back-out-down{animation:1s backOutDown}.animate-back-out-left{animation:1s backOutLeft}.animate-back-out-right{animation:1s backOutRight}.animate-back-out-up{animation:1s backOutUp}.animate-bell{animation:1s ease-in-out bell}.animate-blur-in{animation:.6s ease-out blurIn}.animate-blur-out{animation:.6s ease-in blurOut}.animate-bounce{animation:1s bounce}.animate-bounce-in{animation:.75s bounceIn}.animate-bounce-in-down{animation:1s bounceInDown}.animate-bounce-in-left{animation:1s bounceInLeft}.animate-bounce-in-right{animation:1s bounceInRight}.animate-bounce-in-up{animation:1s bounceInUp}.animate-bounce-out{animation:.75s bounceOut}.animate-bounce-out-down{animation:1s bounceOutDown}.animate-bounce-out-left{animation:1s bounceOutLeft}.animate-bounce-out-right{animation:1s bounceOutRight}.animate-bounce-out-up{animation:1s bounceOutUp}.animate-caret-blink{animation:1.25s ease-out infinite caret-blink}.animate-compress{animation:.5s ease-in-out compress}.animate-drop{animation:.6s ease-out drop}.animate-expand{animation:.5s cubic-bezier(.175,.885,.32,1.275) expand}.animate-fade-in{animation:1s fadeIn}.animate-fade-in-down{animation:1s fadeInDown}.animate-fade-in-down-big{animation:1s fadeInDownBig}.animate-fade-in-left{animation:1s fadeInLeft}.animate-fade-in-left-big{animation:1s fadeInLeftBig}.animate-fade-in-right{animation:1s fadeInRight}.animate-fade-in-right-big{animation:1s fadeInRightBig}.animate-fade-in-up{animation:1s fadeInUp}.animate-fade-in-up-big{animation:1s fadeInUpBig}.animate-fade-out{animation:1s fadeOut}.animate-fade-out-down{animation:1s fadeOutDown}.animate-fade-out-down-big{animation:1s fadeOutDownBig}.animate-fade-out-left{animation:1s fadeOutLeft}.animate-fade-out-left-big{animation:1s fadeOutLeftBig}.animate-fade-out-right{animation:1s fadeOutRight}.animate-fade-out-right-big{animation:1s fadeOutRightBig}.animate-fade-out-up{animation:1s fadeOutUp}.animate-fade-out-up-big{animation:1s fadeOutUpBig}.animate-flash{animation:1s flash}.animate-flip{animation:1s ease-in-out flip}.animate-flip-in-x{animation:1s flipInX}.animate-flip-in-y{animation:1s flipInY}.animate-flip-out-x{animation:1s flipOutX}.animate-flip-out-y{animation:1s flipOutY}.animate-float{animation:3s ease-in-out infinite float}.animate-glitch{animation:.6s step-end infinite glitch}.animate-head-shake{animation:1s ease-in-out headShake}.animate-heart-beat{animation:1s heartBeat}.animate-hinge{animation:2s hinge}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-jack-in-box{animation:1s jackInTheBox}.animate-jello{animation:1s jello}.animate-ken-burns{animation:8s ease-in-out infinite alternate kenBurns}.animate-light-speed-in{animation:1s ease-out lightSpeedInRight}.animate-light-speed-out{animation:1s ease-in lightSpeedOutLeft}.animate-ping{animation:1s cubic-bezier(0,0,.2,1) infinite ping}.animate-pop{animation:.4s cubic-bezier(.26,.53,.74,1.48) pop}.animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-ring{animation:.5s ease-in-out ring}.animate-roll-in{animation:1s rollIn}.animate-roll-out{animation:1s rollOut}.animate-rotate-in{animation:1s rotateIn}.animate-rotate-in-down-left{animation:1s rotateInDownLeft}.animate-rotate-in-down-right{animation:1s rotateInDownRight}.animate-rotate-in-up-left{animation:1s rotateInUpLeft}.animate-rotate-in-up-right{animation:1s rotateInUpRight}.animate-rotate-out{animation:1s rotateOut}.animate-rotate-out-down-left{animation:1s rotateOutDownLeft}.animate-rotate-out-down-right{animation:1s rotateOutDownRight}.animate-rotate-out-up-left{animation:1s rotateOutUpLeft}.animate-rotate-out-up-right{animation:1s rotateOutUpRight}.animate-rubber-band{animation:1s rubberBand}.animate-shake{animation:1s shake}.animate-slide-in-down{animation:1s slideInDown}.animate-slide-in-left{animation:1s slideInLeft}.animate-slide-in-right{animation:1s slideInRight}.animate-slide-in-up{animation:1s slideInUp}.animate-slide-out-down{animation:1s slideOutDown}.animate-slide-out-left{animation:1s slideOutLeft}.animate-slide-out-right{animation:1s slideOutRight}.animate-slide-out-up{animation:1s slideOutUp}.animate-spin{animation:1s linear infinite spin}.animate-sway{animation:2s ease-in-out infinite sway}.animate-swing{animation:1s swing}.animate-tada{animation:1s tada}.animate-tilt{animation:1.5s ease-in-out infinite alternate tilt}.animate-wiggle{animation:.8s ease-in-out infinite wiggle}.animate-wobble{animation:1s ease-in-out wobble}.animate-zoom-in{animation:1s zoomIn}.animate-zoom-in-down{animation:1s zoomInDown}.animate-zoom-in-left{animation:1s zoomInLeft}.animate-zoom-in-right{animation:1s zoomInRight}.animate-zoom-in-up{animation:1s zoomInUp}.animate-zoom-out{animation:1s zoomOut}.animate-zoom-out-down{animation:1s zoomOutDown}.animate-zoom-out-left{animation:1s zoomOutLeft}.animate-zoom-out-right{animation:1s zoomOutRight}.animate-zoom-out-up{animation:1s zoomOutUp}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-m-20{scroll-margin:calc(var(--spacing) * 20)}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{appearance:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-items-center{justify-items:center}.justify-items-start{justify-items:start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-12>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 12) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 12) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}:where(.space-x-0>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 0) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 6) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-center{align-self:center}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-clip{overflow-x:clip}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[calc\(var\(--radius\)-5px\)\]{border-radius:calc(var(--radius) - 5px)}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-md\!{border-radius:var(--radius-md)!important}.rounded-none{border-radius:0}.rounded-none\!{border-radius:0!important}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\[inherit\]{border-top-left-radius:inherit;border-top-right-radius:inherit}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-tl{border-top-left-radius:.25rem}.rounded-tl-sm{border-top-left-radius:var(--radius-sm)}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\[inherit\]{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b\!{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-none{--tw-border-style:none;border-style:none}.border-solid\!{--tw-border-style:solid!important;border-style:solid!important}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.border-black\/10{border-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.border-border,.border-border\/25{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/25{border-color:color-mix(in oklab, var(--color-border) 25%, transparent)}}.border-border\/40{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/40{border-color:color-mix(in oklab, var(--color-border) 40%, transparent)}}.border-border\/50{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/50{border-color:color-mix(in oklab, var(--color-border) 50%, transparent)}}.border-border\/50\!{border-color:var(--color-border)!important}@supports (color:color-mix(in lab, red, red)){.border-border\/50\!{border-color:color-mix(in oklab, var(--color-border) 50%, transparent)!important}}.border-border\/60{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/60{border-color:color-mix(in oklab, var(--color-border) 60%, transparent)}}.border-border\/75{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/75{border-color:color-mix(in oklab, var(--color-border) 75%, transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-input{border-color:var(--color-input)}.border-primary{border-color:var(--color-primary)}.border-red-100{border-color:var(--color-red-100)}.border-sidebar-border,.border-sidebar-border\/50{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/50{border-color:color-mix(in oklab, var(--color-sidebar-border) 50%, transparent)}}.border-sidebar-border\/70{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/70{border-color:color-mix(in oklab, var(--color-sidebar-border) 70%, transparent)}}.border-sidebar-border\/80{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/80{border-color:color-mix(in oklab, var(--color-sidebar-border) 80%, transparent)}}.border-transparent{border-color:#0000}.bg-accent{background-color:var(--color-accent)}.bg-background,.bg-background\/10{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/10{background-color:color-mix(in oklab, var(--color-background) 10%, transparent)}}.bg-background\/50{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/50{background-color:color-mix(in oklab, var(--color-background) 50%, transparent)}}.bg-background\/60{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/60{background-color:color-mix(in oklab, var(--color-background) 60%, transparent)}}.bg-background\/75{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/75{background-color:color-mix(in oklab, var(--color-background) 75%, transparent)}}.bg-background\/80{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/80{background-color:color-mix(in oklab, var(--color-background) 80%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\/5{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-black\/80{background-color:color-mix(in oklab, var(--color-black) 80%, transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-border,.bg-border\/40{background-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.bg-border\/40{background-color:color-mix(in oklab, var(--color-border) 40%, transparent)}}.bg-card,.bg-card\/30{background-color:var(--color-card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/30{background-color:color-mix(in oklab, var(--color-card) 30%, transparent)}}.bg-card\/50{background-color:var(--color-card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/50{background-color:color-mix(in oklab, var(--color-card) 50%, transparent)}}.bg-card\/80{background-color:var(--color-card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/80{background-color:color-mix(in oklab, var(--color-card) 80%, transparent)}}.bg-destructive{background-color:var(--color-destructive)}.bg-foreground,.bg-foreground\/20{background-color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-foreground\/20{background-color:color-mix(in oklab, var(--color-foreground) 20%, transparent)}}.bg-gray-200{background-color:var(--color-gray-200)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-muted{background-color:var(--color-muted)}.bg-muted-foreground\/20{background-color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-muted-foreground\/20{background-color:color-mix(in oklab, var(--color-muted-foreground) 20%, transparent)}}.bg-muted\/10{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/10{background-color:color-mix(in oklab, var(--color-muted) 10%, transparent)}}.bg-muted\/15{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/15{background-color:color-mix(in oklab, var(--color-muted) 15%, transparent)}}.bg-muted\/30{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--color-muted) 30%, transparent)}}.bg-muted\/50{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-popover{background-color:var(--color-popover)}.bg-primary,.bg-primary\/10{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/10{background-color:color-mix(in oklab, var(--color-primary) 10%, transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-ring{background-color:var(--color-ring)}.bg-secondary{background-color:var(--color-secondary)}.bg-sidebar{background-color:var(--color-sidebar)}.bg-sidebar-border{background-color:var(--color-sidebar-border)}.bg-sidebar-primary{background-color:var(--color-sidebar-primary)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-white{background-color:var(--color-white)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-linear-0{--tw-gradient-position:0deg}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-0{--tw-gradient-position:0deg in oklab}}.bg-linear-0{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-radial{--tw-gradient-position:in oklab;background-image:radial-gradient(var(--tw-gradient-stops))}.from-background{--tw-gradient-from:var(--color-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-background\/60{--tw-gradient-from:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.from-background\/60{--tw-gradient-from:color-mix(in oklab, var(--color-background) 60%, transparent)}}.from-background\/60{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-muted{--tw-gradient-from:var(--color-muted);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary{--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary\/50{--tw-gradient-from:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.from-primary\/50{--tw-gradient-from:color-mix(in oklab, var(--color-primary) 50%, transparent)}}.from-primary\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-background\/80{--tw-gradient-via:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.via-background\/80{--tw-gradient-via:color-mix(in oklab, var(--color-background) 80%, transparent)}}.via-background\/80{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-background\/40{--tw-gradient-to:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.to-background\/40{--tw-gradient-to:color-mix(in oklab, var(--color-background) 40%, transparent)}}.to-background\/40{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-muted\/50{--tw-gradient-to:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.to-muted\/50{--tw-gradient-to:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.to-muted\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary\/20{--tw-gradient-to:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.to-primary\/20{--tw-gradient-to:color-mix(in oklab, var(--color-primary) 20%, transparent)}}.to-primary\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary\/50{--tw-gradient-to:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.to-primary\/50{--tw-gradient-to:color-mix(in oklab, var(--color-primary) 50%, transparent)}}.to-primary\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.mask-linear-from-10\%{-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);--tw-mask-linear-stops:var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position);--tw-mask-linear:linear-gradient(var(--tw-mask-linear-stops));--tw-mask-linear-from-position:10%;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;mask-composite:intersect}.mask-linear-to-50\%{-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);--tw-mask-linear-stops:var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position);--tw-mask-linear:linear-gradient(var(--tw-mask-linear-stops));--tw-mask-linear-to-position:50%;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;mask-composite:intersect}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.box-decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.fill-primary{fill:var(--color-primary)}.stroke-border\/75{stroke:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.stroke-border\/75{stroke:color-mix(in oklab, var(--color-border) 75%, transparent)}}.stroke-neutral-900\/20{stroke:#17171733}@supports (color:color-mix(in lab, red, red)){.stroke-neutral-900\/20{stroke:color-mix(in oklab, var(--color-neutral-900) 20%, transparent)}}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\!{padding:calc(var(--spacing) * 3)!important}.p-4{padding:calc(var(--spacing) * 4)}.p-4\!{padding:calc(var(--spacing) * 4)!important}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.p-\[3px\]{padding:3px}.p-px{padding:1px}.px-\(--cell-size\){padding-inline:var(--cell-size)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-10{padding-inline:calc(var(--spacing) * 10)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-20{padding-block:calc(var(--spacing) * 20)}.py-24{padding-block:calc(var(--spacing) * 24)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-bebas-neue{font-family:Bebas Neue,sans-serif}.font-bebas-neue\!{font-family:Bebas Neue,sans-serif!important}.font-mono{font-family:var(--font-mono)}.font-mono\!{font-family:var(--font-mono)!important}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[clamp\(0\.75rem\,9vw\+2rem\,5rem\)\]{font-size:clamp(.75rem,9vw + 2rem,5rem)}.text-\[clamp\(1\.5rem\,10vw\+2rem\,3rem\)\]{font-size:clamp(1.5rem,10vw + 2rem,3rem)}.text-\[clamp\(1rem\,6vw\,5rem\)\]{font-size:clamp(1rem,6vw,5rem)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-8{--tw-leading:calc(var(--spacing) * 8);line-height:calc(var(--spacing) * 8)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-tighter{--tw-tracking:var(--tracking-tighter);letter-spacing:var(--tracking-tighter)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.overflow-ellipsis{text-overflow:ellipsis}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.text-\[var\(--foreground\)\]{color:var(--foreground)}.text-accent-foreground{color:var(--color-accent-foreground)}.text-background{color:var(--color-background)}.text-black{color:var(--color-black)}.text-blue-900{color:var(--color-blue-900)}.text-card-foreground{color:var(--color-card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--color-destructive)}.text-destructive-foreground{color:var(--color-destructive-foreground)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-foreground,.text-foreground\/40{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/40{color:color-mix(in oklab, var(--color-foreground) 40%, transparent)}}.text-foreground\/50{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/50{color:color-mix(in oklab, var(--color-foreground) 50%, transparent)}}.text-foreground\/60{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/60{color:color-mix(in oklab, var(--color-foreground) 60%, transparent)}}.text-foreground\/80{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/80{color:color-mix(in oklab, var(--color-foreground) 80%, transparent)}}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-muted{color:var(--color-muted)}.text-muted-foreground,.text-muted-foreground\/50{color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/50{color:color-mix(in oklab, var(--color-muted-foreground) 50%, transparent)}}.text-muted-foreground\/60{color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/60{color:color-mix(in oklab, var(--color-muted-foreground) 60%, transparent)}}.text-muted-foreground\/70{color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/70{color:color-mix(in oklab, var(--color-muted-foreground) 70%, transparent)}}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-900{color:var(--color-neutral-900)}.text-popover-foreground{color:var(--color-popover-foreground)}.text-primary{color:var(--color-primary)}.text-primary-foreground,.text-primary-foreground\/80{color:var(--color-primary-foreground)}@supports (color:color-mix(in lab, red, red)){.text-primary-foreground\/80{color:color-mix(in oklab, var(--color-primary-foreground) 80%, transparent)}}.text-red-600{color:var(--color-red-600)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.text-sidebar-accent-foreground{color:var(--color-sidebar-accent-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--color-sidebar-foreground)}@supports (color:color-mix(in lab, red, red)){.text-sidebar-foreground\/70{color:color-mix(in oklab, var(--color-sidebar-foreground) 70%, transparent)}}.text-sidebar-primary-foreground{color:var(--color-sidebar-primary-foreground)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.decoration-neutral-300{-webkit-text-decoration-color:var(--color-neutral-300);-webkit-text-decoration-color:var(--color-neutral-300);-webkit-text-decoration-color:var(--color-neutral-300);text-decoration-color:var(--color-neutral-300)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.accent-foreground{accent-color:var(--color-foreground)}.accent-primary{accent-color:var(--color-primary)}.opacity-0{opacity:0}.opacity-5{opacity:.05}.opacity-10{opacity:.1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-100{opacity:1}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-primary\/20{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.shadow-primary\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-primary\/25{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.shadow-primary\/25{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 25%, transparent) var(--tw-shadow-alpha), transparent)}}.ring-black\/10{--tw-ring-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.ring-black\/10{--tw-ring-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.ring-foreground\/10{--tw-ring-color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--color-foreground) 10%, transparent)}}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.ring-primary,.ring-primary\/30{--tw-ring-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.ring-primary\/30{--tw-ring-color:color-mix(in oklab, var(--color-primary) 30%, transparent)}}.ring-ring,.ring-ring\/10{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.ring-ring\/10{--tw-ring-color:color-mix(in oklab, var(--color-ring) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--color-sidebar-ring)}.ring-offset-background{--tw-ring-offset-color:var(--color-background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-ring\/40{outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.outline-ring\/40{outline-color:color-mix(in oklab, var(--color-ring) 40%, transparent)}}.outline-ring\/50{outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.outline-ring\/50{outline-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-2xl{--tw-blur:blur(var(--blur-2xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-3xl{--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-\[0\.5px\]{--tw-blur:blur(.5px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-xs{--tw-blur:blur(var(--blur-xs));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.delay-300{transition-delay:.3s}.delay-1000{transition-delay:1s}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.delay-300{--tw-animation-delay:.3s;animation-delay:.3s}.delay-1000{--tw-animation-delay:1s;animation-delay:1s}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.repeat-infinite{--tw-animation-iteration-count:infinite;animation-iteration-count:infinite}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.\[--cell-size\:--spacing\(8\)\]{--cell-size:calc(var(--spacing) * 8)}.\[-ms-overflow-style\:none\]{-ms-overflow-style:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.fade-in{--tw-enter-opacity:0}.fade-out{--tw-exit-opacity:0}.paused{animation-play-state:paused}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.running\!{animation-play-state:running!important}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.not-first\:mt-6:not(:first-child){margin-top:calc(var(--spacing) * 6)}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-90:is(:where(.group):hover *){opacity:.9}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\:repeat-infinite\!:is(:where(.group):hover *){--tw-animation-iteration-count:infinite!important;animation-iteration-count:infinite!important}.group-hover\/code-block\:opacity-100:is(:where(.group\/code-block):hover *),.group-hover\/editor-block\:opacity-100:is(:where(.group\/editor-block):hover *),.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-data-\[collapsible\=icon\]\/sidebar-wrapper\:h-12:is(:where(.group\/sidebar-wrapper):has([data-collapsible=icon]) *){height:calc(var(--spacing) * 12)}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2\.5:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2.5)}.group-has-\[\>input\]\/input-group\:pb-2\.5:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2.5)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:pointer-events-none:is(:where(.group)[data-collapsible=icon] *){pointer-events:none}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=icon\]\:select-none:is(:where(.group)[data-collapsible=icon] *){-webkit-user-select:none;user-select:none}.group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){right:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){left:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused=true] *){position:relative}.group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused=true] *){z-index:10}.group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused=true] *){border-color:var(--color-ring)}.group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.group-data-\[orientation\=horizontal\]\/tabs\:h-9:is(:where(.group\/tabs)[data-orientation=horizontal] *){height:calc(var(--spacing) * 9)}.group-data-\[orientation\=vertical\]\/tabs\:h-fit:is(:where(.group\/tabs)[data-orientation=vertical] *){height:fit-content}.group-data-\[orientation\=vertical\]\/tabs\:w-full:is(:where(.group\/tabs)[data-orientation=vertical] *){width:100%}.group-data-\[orientation\=vertical\]\/tabs\:flex-col:is(:where(.group\/tabs)[data-orientation=vertical] *){flex-direction:column}.group-data-\[orientation\=vertical\]\/tabs\:justify-start:is(:where(.group\/tabs)[data-orientation=vertical] *){justify-content:flex-start}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:var(--radius-lg)}.group-data-\[variant\=floating\]\:border:is(:where(.group)[data-variant=floating] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[variant\=floating\]\:border-sidebar-border:is(:where(.group)[data-variant=floating] *){border-color:var(--color-sidebar-border)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=line\]\/tabs-list\:bg-transparent:is(:where(.group\/tabs-list)[data-variant=line] *){background-color:#0000}.group-data-\[viewport\=false\]\/navigation-menu\:top-full:is(:where(.group\/navigation-menu)[data-viewport=false] *){top:100%}.group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is(:where(.group\/navigation-menu)[data-viewport=false] *){margin-top:calc(var(--spacing) * 1.5)}.group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is(:where(.group\/navigation-menu)[data-viewport=false] *){overflow:hidden}.group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-radius:var(--radius-md)}.group-data-\[viewport\=false\]\/navigation-menu\:border:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is(:where(.group\/navigation-menu)[data-viewport=false] *){background-color:var(--color-popover)}.group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is(:where(.group\/navigation-menu)[data-viewport=false] *){color:var(--color-popover-foreground)}.group-data-\[viewport\=false\]\/navigation-menu\:shadow:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--color-sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--color-sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.peer-data-\[variant\=inset\]\:min-h-\[calc\(100svh-\(--spacing\(4\)\)\)\]:is(:where(.peer)[data-variant=inset]~*){min-height:calc(100svh - (calc(var(--spacing) * 4)))}.selection\:bg-primary ::selection{background-color:var(--color-primary)}.selection\:bg-primary::selection{background-color:var(--color-primary)}.selection\:text-primary-foreground ::selection{color:var(--color-primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--color-primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--color-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--color-muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:bg-foreground:after{content:var(--tw-content);background-color:var(--color-foreground)}.after\:opacity-0:after{content:var(--tw-content);opacity:0}.after\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.group-data-\[collapsible\=offcanvas\]\:after\:left-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);left:100%}.group-data-\[orientation\=horizontal\]\/tabs\:after\:inset-x-0:is(:where(.group\/tabs)[data-orientation=horizontal] *):after{content:var(--tw-content);inset-inline:calc(var(--spacing) * 0)}.group-data-\[orientation\=horizontal\]\/tabs\:after\:bottom-\[-5px\]:is(:where(.group\/tabs)[data-orientation=horizontal] *):after{content:var(--tw-content);bottom:-5px}.group-data-\[orientation\=horizontal\]\/tabs\:after\:h-0\.5:is(:where(.group\/tabs)[data-orientation=horizontal] *):after{content:var(--tw-content);height:calc(var(--spacing) * .5)}.group-data-\[orientation\=vertical\]\/tabs\:after\:inset-y-0:is(:where(.group\/tabs)[data-orientation=vertical] *):after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.group-data-\[orientation\=vertical\]\/tabs\:after\:-right-1:is(:where(.group\/tabs)[data-orientation=vertical] *):after{content:var(--tw-content);right:calc(var(--spacing) * -1)}.group-data-\[orientation\=vertical\]\/tabs\:after\:w-0\.5:is(:where(.group\/tabs)[data-orientation=vertical] *):after{content:var(--tw-content);width:calc(var(--spacing) * .5)}.first\:mt-0:first-child{margin-top:calc(var(--spacing) * 0)}.first\:rounded-l-md:first-child{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.first\:border-l:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.last\:rounded-r-md:last-child{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.focus-within\:border-ring:focus-within{border-color:var(--color-ring)}.focus-within\:ring-\[3px\]:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}@media (hover:hover){.hover\:-translate-y-1:hover{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-border:hover{border-color:var(--color-border)}.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-destructive\/90:hover{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--color-destructive) 90%, transparent)}}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--color-primary) 90%, transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--color-secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--color-secondary) 80%, transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--color-sidebar-accent)}.hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}.hover\:text-foreground:hover{color:var(--color-foreground)}.hover\:text-gray-400:hover{color:var(--color-gray-400)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-muted-foreground:hover{color:var(--color-muted-foreground)}.hover\:text-neutral-800:hover{color:var(--color-neutral-800)}.hover\:text-primary:hover{color:var(--color-primary)}.hover\:text-primary-foreground:hover{color:var(--color-primary-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--color-sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:decoration-current\!:hover{text-decoration-color:currentColor!important}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-primary\/10:hover{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.hover\:shadow-primary\/10:hover{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 10%, transparent) var(--tw-shadow-alpha), transparent)}}.hover\:grayscale-0:hover{--tw-grayscale:grayscale(0%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--color-sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--color-sidebar-border)}}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{border-color:var(--color-blue-300)}.focus\:bg-accent:focus{background-color:var(--color-accent)}.focus\:text-accent-foreground:focus{color:var(--color-accent-foreground)}.focus\:ring:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--color-ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:z-10:focus-visible{z-index:10}.focus-visible\:border-ring:focus-visible{border-color:var(--color-ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--color-ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\:bg-gray-100:active{background-color:var(--color-gray-100)}.active\:bg-sidebar-accent:active{background-color:var(--color-sidebar-accent)}.active\:text-gray-500:active{color:var(--color-gray-500)}.active\:text-gray-700:active{color:var(--color-gray-700)}.active\:text-gray-800:active{color:var(--color-gray-800)}.active\:text-sidebar-accent-foreground:active{color:var(--color-sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}.has-focus\:border-ring:has(:focus){border-color:var(--color-ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--color-destructive)}.has-aria-invalid\:ring-\[3px\]:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.has-data-\[slot\=combobox-chip\]\:px-1\.5:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing) * 1.5)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing) * 0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--color-sidebar)}.has-\[\:disabled\]\:opacity-50:has(:disabled){opacity:.5}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--color-ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-\[3px\]:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--color-destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>button\]\:mr-\[-0\.45rem\]:has(>button){margin-right:-.45rem}.has-\[\>button\]\:ml-\[-0\.45rem\]:has(>button){margin-left:-.45rem}.has-\[\>kbd\]\:mr-\[-0\.35rem\]:has(>kbd){margin-right:-.35rem}.has-\[\>kbd\]\:ml-\[-0\.35rem\]:has(>kbd){margin-left:-.35rem}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing) * 4) 1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing) * 3)}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing) * 0)}.has-\[\>svg\]\:px-2:has(>svg){padding-inline:calc(var(--spacing) * 2)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--color-destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.aria-selected\:text-muted-foreground[aria-selected=true]{color:var(--color-muted-foreground)}.data-closed\:animate-out[data-closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-closed\:fade-out-0[data-closed]{--tw-exit-opacity:0}.data-closed\:zoom-out-95[data-closed]{--tw-exit-scale:.95}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing) * 0)}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--color-accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--color-accent-foreground)}.data-open\:animate-in[data-open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-open\:fade-in-0[data-open]{--tw-enter-opacity:0}.data-open\:zoom-in-95[data-open]{--tw-enter-scale:.95}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--color-sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-accent-foreground[data-active=true]{color:var(--color-accent-foreground)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--color-sidebar-accent-foreground)}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:calc(52*var(--spacing))}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:calc(52*var(--spacing))}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-]{--tw-exit-opacity:0}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=horizontal\]\:flex-col[data-orientation=horizontal]{flex-direction:column}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--color-muted-foreground)}.data-\[range-end\=true\]\:rounded-md[data-range-end=true]{border-radius:var(--radius-md)}.data-\[range-end\=true\]\:rounded-r-md[data-range-end=true]{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.data-\[range-end\=true\]\:bg-primary[data-range-end=true]{background-color:var(--color-primary)}.data-\[range-end\=true\]\:text-primary-foreground[data-range-end=true]{color:var(--color-primary-foreground)}.data-\[range-middle\=true\]\:rounded-none[data-range-middle=true]{border-radius:0}.data-\[range-middle\=true\]\:bg-accent[data-range-middle=true]{background-color:var(--color-accent)}.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle=true]{color:var(--color-accent-foreground)}.data-\[range-start\=true\]\:rounded-md[data-range-start=true]{border-radius:var(--radius-md)}.data-\[range-start\=true\]\:rounded-l-md[data-range-start=true]{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.data-\[range-start\=true\]\:bg-primary[data-range-start=true]{background-color:var(--color-primary)}.data-\[range-start\=true\]\:text-primary-foreground[data-range-start=true]{color:var(--color-primary-foreground)}.data-\[selected-single\=true\]\:bg-primary[data-selected-single=true]{background-color:var(--color-primary)}.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single=true]{color:var(--color-primary-foreground)}.data-\[selected\=true\]\:rounded-none[data-selected=true]{border-radius:0}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing) * 9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive-foreground\/80>*)[data-slot=alert-description]{color:var(--color-destructive-foreground)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive-foreground\/80>*)[data-slot=alert-description]{color:color-mix(in oklab, var(--color-destructive-foreground) 80%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing) * 1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing) * 0)}:is(.\*\:data-\[slot\=input-group\]\:h-8>*)[data-slot=input-group]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=input-group\]\:border-input\/30>*)[data-slot=input-group]{border-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=input-group\]\:border-input\/30>*)[data-slot=input-group]{border-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/30>*)[data-slot=input-group]{background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/30>*)[data-slot=input-group]{background-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:ring-0 *)[data-slot=navigation-menu-link]:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:outline-none *)[data-slot=navigation-menu-link]:focus{--tw-outline-style:none;outline-style:none}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing) * 2)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--color-background)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--color-foreground)}.group-data-\[variant\=default\]\/tabs-list\:data-\[state\=active\]\:shadow-sm:is(:where(.group\/tabs-list)[data-variant=default] *)[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent:is(:where(.group\/tabs-list)[data-variant=line] *)[data-state=active]{background-color:#0000}.group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:shadow-none:is(:where(.group\/tabs-list)[data-variant=line] *)[data-state=active]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:after\:opacity-100:is(:where(.group\/tabs-list)[data-variant=line] *)[data-state=active]:after{content:var(--tw-content);opacity:1}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--color-primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--color-primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--color-primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=on\]\:bg-accent[data-state=on]{background-color:var(--color-accent)}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:var(--color-accent-foreground)}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open],.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--color-secondary)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--color-sidebar-accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--color-accent-foreground)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--color-muted-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-scale:.95}@media (hover:hover){.data-\[state\=open\]\:hover\:bg-sidebar-accent[data-state=open]:hover{background-color:var(--color-sidebar-accent)}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground[data-state=open]:hover{color:var(--color-sidebar-accent-foreground)}}.data-\[state\=visible\]\:animate-in[data-state=visible]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[variant\=destructive\]\:text-destructive-foreground[data-variant=destructive]{color:var(--color-destructive-foreground)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--color-destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive-foreground[data-variant=destructive]:focus{color:var(--color-destructive-foreground)}.data-\[variant\=line\]\:rounded-none[data-variant=line]{border-radius:0}.data-\[variant\=outline\]\:border-l-0[data-variant=outline]{border-left-style:var(--tw-border-style);border-left-width:0}.data-\[variant\=outline\]\:shadow-xs[data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[variant\=outline\]\:first\:border-l[data-variant=outline]:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}@media (width>=40rem){.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:h-12{height:calc(var(--spacing) * 12)}.sm\:w-1\/3{width:33.3333%}.sm\:w-48{width:calc(var(--spacing) * 48)}.sm\:w-\[350px\]{width:350px}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:flex-1{flex:1}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2{gap:calc(var(--spacing) * 2)}.sm\:gap-2\.5{gap:calc(var(--spacing) * 2.5)}.sm\:px-0{padding-inline:calc(var(--spacing) * 0)}.sm\:py-32{padding-block:calc(var(--spacing) * 32)}.sm\:text-center{text-align:center}.sm\:text-left{text-align:left}.sm\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}@media (width>=48rem){.md\:not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.md\:absolute{position:absolute}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-5{height:calc(var(--spacing) * 5)}.md\:h-6{height:calc(var(--spacing) * 6)}.md\:h-7{height:calc(var(--spacing) * 7)}.md\:h-10{height:calc(var(--spacing) * 10)}.md\:h-12{height:calc(var(--spacing) * 12)}.md\:h-16{height:calc(var(--spacing) * 16)}.md\:h-20{height:calc(var(--spacing) * 20)}.md\:h-48{height:calc(var(--spacing) * 48)}.md\:min-h-120{min-height:calc(var(--spacing) * 120)}.md\:min-h-min{min-height:min-content}.md\:w-5{width:calc(var(--spacing) * 5)}.md\:w-6{width:calc(var(--spacing) * 6)}.md\:w-7{width:calc(var(--spacing) * 7)}.md\:w-10{width:calc(var(--spacing) * 10)}.md\:w-12{width:calc(var(--spacing) * 12)}.md\:w-16{width:calc(var(--spacing) * 16)}.md\:w-20{width:calc(var(--spacing) * 20)}.md\:w-24{width:calc(var(--spacing) * 24)}.md\:w-48{width:calc(var(--spacing) * 48)}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-2xl{max-width:var(--container-2xl)}.md\:max-w-7xl{max-width:var(--container-7xl)}.md\:max-w-none{max-width:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-4{gap:calc(var(--spacing) * 4)}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:p-6{padding:calc(var(--spacing) * 6)}.md\:p-10{padding:calc(var(--spacing) * 10)}.md\:px-4{padding-inline:calc(var(--spacing) * 4)}.md\:px-6{padding-inline:calc(var(--spacing) * 6)}.md\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.md\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:opacity-0{opacity:0}.md\:opacity-100{opacity:1}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:var(--radius-xl)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-0:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing) * 0)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@media (width>=64rem){.lg\:relative{position:relative}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-56{height:calc(var(--spacing) * 56)}.lg\:w-48{width:calc(var(--spacing) * 48)}.lg\:w-56{width:calc(var(--spacing) * 56)}.lg\:w-\[400px\]{width:400px}.lg\:max-w-none{max-width:none}.lg\:translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}:where(.lg\:space-x-12>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 12) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 12) * calc(1 - var(--tw-space-x-reverse)))}.lg\:p-8{padding:calc(var(--spacing) * 8)}.lg\:px-0{padding-inline:calc(var(--spacing) * 0)}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}.lg\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}.rtl\:flex-row-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.dark\:border-r:is(.dark *){border-right-style:var(--tw-border-style);border-right-width:1px}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-red-200\/10:is(.dark *){border-color:#ffcaca1a}@supports (color:color-mix(in lab, red, red)){.dark\:border-red-200\/10:is(.dark *){border-color:color-mix(in oklab, var(--color-red-200) 10%, transparent)}}.dark\:border-sidebar-border:is(.dark *){border-color:var(--color-sidebar-border)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-destructive) 60%, transparent)}}.dark\:bg-gray-700:is(.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-900:is(.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-950:is(.dark *){background-color:var(--color-gray-950)}.dark\:bg-input\/30:is(.dark *){background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}.dark\:bg-neutral-700:is(.dark *){background-color:var(--color-neutral-700)}.dark\:bg-neutral-800:is(.dark *){background-color:var(--color-neutral-800)}.dark\:bg-red-700\/10:is(.dark *){background-color:#bf000f1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-700\/10:is(.dark *){background-color:color-mix(in oklab, var(--color-red-700) 10%, transparent)}}.dark\:bg-transparent:is(.dark *){background-color:#0000}.dark\:bg-white:is(.dark *){background-color:var(--color-white)}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/5:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:stroke-neutral-100\/20:is(.dark *){stroke:#f5f5f533}@supports (color:color-mix(in lab, red, red)){.dark\:stroke-neutral-100\/20:is(.dark *){stroke:color-mix(in oklab, var(--color-neutral-100) 20%, transparent)}}.dark\:text-black:is(.dark *){color:var(--color-black)}.dark\:text-gray-200:is(.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:is(.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-gray-600:is(.dark *){color:var(--color-gray-600)}.dark\:text-muted-foreground:is(.dark *){color:var(--color-muted-foreground)}.dark\:text-neutral-100:is(.dark *){color:var(--color-neutral-100)}.dark\:text-neutral-300:is(.dark *){color:var(--color-neutral-300)}.dark\:text-red-100:is(.dark *){color:var(--color-red-100)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:decoration-neutral-500:is(.dark *){-webkit-text-decoration-color:var(--color-neutral-500);-webkit-text-decoration-color:var(--color-neutral-500);-webkit-text-decoration-color:var(--color-neutral-500);text-decoration-color:var(--color-neutral-500)}.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:color-mix(in oklab, var(--color-ring) 20%, transparent)}}.dark\:outline-ring\/40:is(.dark *){outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.dark\:outline-ring\/40:is(.dark *){outline-color:color-mix(in oklab, var(--color-ring) 40%, transparent)}}@media (hover:hover){.dark\:hover\:bg-gray-900:is(.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-input) 50%, transparent)}}.dark\:hover\:text-accent-foreground:is(.dark *):hover{color:var(--color-accent-foreground)}.dark\:hover\:text-foreground:is(.dark *):hover{color:var(--color-foreground)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}.dark\:hover\:text-gray-300:is(.dark *):hover{color:var(--color-gray-300)}.dark\:hover\:text-neutral-100:is(.dark *):hover{color:var(--color-neutral-100)}}.dark\:focus\:border-blue-700:is(.dark *):focus{border-color:var(--color-blue-700)}.dark\:focus\:border-blue-800:is(.dark *):focus{border-color:var(--color-blue-800)}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:active\:bg-gray-700:is(.dark *):active{background-color:var(--color-gray-700)}.dark\:active\:text-gray-300:is(.dark *):active{color:var(--color-gray-300)}.dark\:has-aria-invalid\:border-destructive\/50:is(.dark *):has([aria-invalid=true]){border-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:border-destructive\/50:is(.dark *):has([aria-invalid=true]){border-color:color-mix(in oklab, var(--color-destructive) 50%, transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:is(.dark *):has([aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:ring-destructive\/40:is(.dark *):has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:data-\[state\=active\]\:border-input:is(.dark *)[data-state=active]{border-color:var(--color-input)}.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}.dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state=active]{color:var(--color-foreground)}.dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:border-transparent:is(.dark *):is(:where(.group\/tabs-list)[data-variant=line] *)[data-state=active]{border-color:#0000}.dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent:is(.dark *):is(:where(.group\/tabs-list)[data-variant=line] *)[data-state=active]{background-color:#0000}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/40:is(.dark *)[data-variant=destructive]:focus{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/40:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}@media (pointer:coarse){.pointer-coarse\:size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.pointer-coarse\:px-3{padding-inline:calc(var(--spacing) * 3)}.pointer-coarse\:py-2{padding-block:calc(var(--spacing) * 2)}.pointer-coarse\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-full svg{width:100%;height:100%}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--color-muted-foreground)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.\[\.border-b\]\:pb-3.border-b{padding-bottom:calc(var(--spacing) * 3)}.\[\.border-t\]\:pt-3.border-t{padding-top:calc(var(--spacing) * 3)}:is(.rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive-foreground[data-variant=destructive]>*):is(svg){color:var(--color-destructive-foreground)!important}.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.\[\&\:nth-child\(2\)\[data-selected\=true\]_button\]\:rounded-l-md:nth-child(2)[data-selected=true] button{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-2:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 2)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-2:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 2)}.\[\&\>kbd\]\:rounded-\[calc\(var\(--radius\)-5px\)\]>kbd{border-radius:calc(var(--radius) - 5px)}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--color-muted-foreground)}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--color-sidebar-accent-foreground)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--color-accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--color-destructive) 90%, transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--color-primary) 90%, transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--color-secondary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab, var(--color-secondary) 90%, transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-30px)}60%{transform:translateY(-15px)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes wobble{0%,to{transform:translate(0%)}15%{transform:translate(-25%)rotate(-5deg)}30%{transform:translate(20%)rotate(3deg)}45%{transform:translate(-15%)rotate(-3deg)}60%{transform:translate(10%)rotate(2deg)}75%{transform:translate(-5%)rotate(-1deg)}}@keyframes rubberBand{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}@keyframes shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px)rotate(-6deg)}18.5%{transform:translate(5px)rotate(6deg)}31.5%{transform:translate(-3px)rotate(-3deg)}43.5%{transform:translate(2px)rotate(2deg)}to{transform:translate(0)}}@keyframes swing{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}@keyframes tada{0%,to{transform:scale(1)}10%,20%{transform:scale3d(.9,.9,.9)rotate(-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1)rotate(3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1)rotate(-3deg)}}@keyframes jello{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes flip{0%{animation-timing-function:ease-out;transform:perspective(400px)rotateY(-360deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)translateZ(150px)rotateY(-190deg)}50%{animation-timing-function:ease-in;transform:perspective(400px)translateZ(150px)rotateY(-170deg)}80%{animation-timing-function:ease-in;transform:perspective(400px)scale3d(.95,.95,.95)}to{animation-timing-function:ease-in;transform:perspective(400px)scale(1)}}@keyframes flipInX{0%{opacity:0;transform:perspective(400px)rotateX(90deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)rotateX(-20deg)}60%{opacity:1;transform:perspective(400px)rotateX(10deg)}80%{transform:perspective(400px)rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{opacity:0;transform:perspective(400px)rotateY(90deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)rotateY(-20deg)}60%{opacity:1;transform:perspective(400px)rotateY(10deg)}80%{transform:perspective(400px)rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateX(-20deg)}to{opacity:0;transform:perspective(400px)rotateX(90deg)}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateY(-15deg)}to{opacity:0;transform:perspective(400px)rotateY(90deg)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInLeft{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translateY(2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translateY(100%)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translateY(2000px)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate(-100%)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate(-2000px)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate(100%)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate(2000px)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translateY(-100%)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translateY(-2000px)}}@keyframes slideInDown{0%{visibility:visible;transform:translateY(-100%)}to{transform:translate(0)}}@keyframes slideInLeft{0%{visibility:visible;transform:translate(-100%)}to{transform:translate(0)}}@keyframes slideInRight{0%{visibility:visible;transform:translate(100%)}to{transform:translate(0)}}@keyframes slideInUp{0%{visibility:visible;transform:translateY(100%)}to{transform:translate(0)}}@keyframes slideOutDown{0%{transform:translate(0)}to{visibility:hidden;transform:translateY(100%)}}@keyframes slideOutLeft{0%{transform:translate(0)}to{visibility:hidden;transform:translate(-100%)}}@keyframes slideOutRight{0%{transform:translate(0)}to{visibility:hidden;transform:translate(100%)}}@keyframes slideOutUp{0%{transform:translate(0)}to{visibility:hidden;transform:translateY(-100%)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInDown{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(60px)}}@keyframes zoomInLeft{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(10px)}}@keyframes zoomInRight{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(-10px)}}@keyframes zoomInUp{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(-60px)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutDown{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(-60px)}to{opacity:0;transform-origin:bottom;transform:scale3d(.1,.1,.1)translateY(1000px)}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(42px)}to{opacity:0;transform-origin:0;transform:scale(.1)translate(-1000px)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(-42px)}to{opacity:0;transform-origin:100%;transform:scale(.1)translate(1000px)}}@keyframes zoomOutUp{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(60px)}to{opacity:0;transform-origin:bottom;transform:scale3d(.1,.1,.1)translateY(-1000px)}}@keyframes rotateIn{0%{opacity:0;transform:rotate(-200deg)}to{opacity:1;transform:rotate(0)}}@keyframes rotateOut{0%{opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(200deg)}}@keyframes rollIn{0%{opacity:0;transform:translate(-100%)rotate(-120deg)}to{opacity:1;transform:translate(0)rotate(0)}}@keyframes rollOut{0%{opacity:1;transform:translate(0)rotate(0)}to{opacity:0;transform:translate(100%)rotate(120deg)}}@keyframes lightSpeedInRight{0%{opacity:0;transform:translate(100%)skew(-30deg)}60%{opacity:1;transform:skew(20deg)}80%{opacity:1;transform:skew(-5deg)}to{opacity:1;transform:translate(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{opacity:0;transform:translate(-100%)skew(30deg)}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1)rotate(0)}50%{transform:scale(1.05)rotate(10deg)}70%{transform:scale(.9)rotate(-3deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes hinge{0%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(0)}20%,60%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(80deg)}40%,80%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(60deg)}to{transform-origin:0 0;opacity:0;transform:rotate(90deg)}}@keyframes bounceIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scale(1)}}@keyframes bounceInDown{0%{opacity:0;transform:translateY(-3000px)scaleY(3)}60%{opacity:1;transform:translateY(25px)scaleY(.9)}75%{transform:translateY(-10px)scaleY(.95)}90%{transform:translateY(5px)scaleY(.985)}to{transform:translate(0)}}@keyframes bounceInLeft{0%{opacity:0;transform:translate(-3000px)scaleX(3)}60%{opacity:1;transform:translate(25px)scaleX(1)}75%{transform:translate(-10px)scaleX(.98)}90%{transform:translate(5px)scaleX(.995)}to{transform:translate(0)}}@keyframes bounceInRight{0%{opacity:0;transform:translate(3000px)scaleX(3)}60%{opacity:1;transform:translate(-25px)scaleX(1)}75%{transform:translate(10px)scaleX(.98)}90%{transform:translate(-5px)scaleX(.995)}to{transform:translate(0)}}@keyframes bounceInUp{0%{opacity:0;transform:translateY(3000px)scaleY(5)}60%{opacity:1;transform:translateY(-20px)scaleY(.9)}75%{transform:translateY(10px)scaleY(.95)}90%{transform:translateY(-5px)scaleY(.985)}to{transform:translate(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutDown{20%{transform:translateY(10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(-20px)scaleY(.9)}to{opacity:0;transform:translateY(2000px)scaleY(3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate(20px)scaleX(.9)}to{opacity:0;transform:translate(-2000px)scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate(-20px)scaleX(.9)}to{opacity:0;transform:translate(2000px)scaleX(2)}}@keyframes bounceOutUp{20%{transform:translateY(-10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(20px)scaleY(.9)}to{opacity:0;transform:translateY(-2000px)scaleY(3)}}@keyframes backInDown{0%{opacity:.7;transform:translateY(-1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInLeft{0%{opacity:.7;transform:translate(-2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInRight{0%{opacity:.7;transform:translate(2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInUp{0%{opacity:.7;transform:translateY(1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backOutDown{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(700px)scale(.7)}}@keyframes backOutLeft{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(-2000px)scale(.7)}}@keyframes backOutRight{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(2000px)scale(.7)}}@keyframes backOutUp{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(-700px)scale(.7)}}@keyframes rotateInDownLeft{0%{opacity:0;transform-origin:0 100%;transform:rotate(-45deg)}to{opacity:1;transform-origin:0 100%;transform:rotate(0)}}@keyframes rotateInDownRight{0%{opacity:0;transform-origin:100% 100%;transform:rotate(45deg)}to{opacity:1;transform-origin:100% 100%;transform:rotate(0)}}@keyframes rotateInUpLeft{0%{opacity:0;transform-origin:0 100%;transform:rotate(45deg)}to{opacity:1;transform-origin:0 100%;transform:rotate(0)}}@keyframes rotateInUpRight{0%{opacity:0;transform-origin:100% 100%;transform:rotate(-90deg)}to{opacity:1;transform-origin:100% 100%;transform:rotate(0)}}@keyframes rotateOutDownLeft{0%{opacity:1;transform-origin:0 100%}to{opacity:0;transform-origin:0 100%;transform:rotate(45deg)}}@keyframes rotateOutDownRight{0%{opacity:1;transform-origin:100% 100%}to{opacity:0;transform-origin:100% 100%;transform:rotate(-45deg)}}@keyframes rotateOutUpLeft{0%{opacity:1;transform-origin:0 100%}to{opacity:0;transform-origin:0 100%;transform:rotate(-45deg)}}@keyframes rotateOutUpRight{0%{opacity:1;transform-origin:100% 100%}to{opacity:0;transform-origin:100% 100%;transform:rotate(90deg)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes wiggle{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes blurIn{0%{filter:blur(12px);opacity:0}to{filter:blur();opacity:1}}@keyframes blurOut{0%{filter:blur();opacity:1}to{filter:blur(12px);opacity:0}}@keyframes glitch{0%,to{transform:translate(0)}20%{transform:translate(-3px,2px)}40%{transform:translate(-3px,-2px)}60%{transform:translate(3px,2px)}80%{transform:translate(3px,-2px)}}@keyframes pop{0%{opacity:0;transform:scale(.8)}70%{transform:scale(1.1)}to{opacity:1;transform:scale(1)}}@keyframes compress{0%,to{transform:scaleY(1)}50%{transform:scaleY(.5)}}@keyframes expand{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes drop{0%{opacity:0;transform:translateY(-200px)}60%{opacity:1;transform:translateY(15px)}80%{transform:translateY(-8px)}to{transform:translateY(0)}}@keyframes sway{0%,to{transform-origin:top;transform:rotate(-5deg)}50%{transform-origin:top;transform:rotate(5deg)}}@keyframes kenBurns{0%{transform:scale(1)translate(0)}to{transform:scale(1.15)translate(-2%,-2%)}}@keyframes tilt{0%{transform:perspective(400px)rotateY(0)}to{transform:perspective(400px)rotateY(15deg)}}@keyframes alarm{0%,to{transform:rotate(0)scale(1)}10%,30%{transform:rotate(-25deg)scale(1.05)}20%,40%{transform:rotate(25deg)scale(1.05)}50%,70%{transform:rotate(-15deg)scale(1.02)}60%,80%{transform:rotate(15deg)scale(1.02)}}@keyframes ring{0%,to{transform:rotate(0)}10%,30%{transform:rotate(15deg)}20%,40%{transform:rotate(-15deg)}50%,70%{transform:rotate(10deg)}60%,80%{transform:rotate(-10deg)}}@keyframes bell{0%{transform:rotate(0)}10%{transform:rotate(15deg)}20%{transform:rotate(-15deg)}30%{transform:rotate(10deg)}40%{transform:rotate(-10deg)}50%{transform:rotate(0)}to{transform:rotate(0)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}code[class*=language-],pre[class*=language-]{color:var(--color-foreground);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;-webkit-hyphens:none;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:.875rem;line-height:1.6}pre[class*=language-]{border-radius:0;margin:0;padding:1rem;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:var(--color-background)}:not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-muted-foreground)}.token.punctuation{color:var(--color-foreground)}.token.tag,.token.attr-name,.token.namespace,.token.deleted{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.number,.token.function{color:#f08d49}.token.property,.token.class-name,.token.constant,.token.symbol{color:#f8c555}.token.selector,.token.important,.token.atrule,.token.keyword,.token.builtin{color:#cc99cd}.token.string,.token.char,.token.attr-value,.token.regex,.token.variable{color:#7ec699}.token.operator,.token.entity,.token.url{color:#67cdcc}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:#0f0}@font-face{font-family:Bebas Neue;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/bebas-neue-latin-ext-400-normal-DWiEslNC.woff2)format("woff2"),url(/build/assets/bebas-neue-latin-ext-400-normal-HFKRJXnW.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Bebas Neue;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/bebas-neue-latin-400-normal-9mHNbWWO.woff2)format("woff2"),url(/build/assets/bebas-neue-latin-400-normal-Bi-ndsyu.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(87% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(87% 0 0);--font-bebas-neue:"Bebas Neue", sans-serif}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(14.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(14.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(39.6% .141 25.723);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(26.9% 0 0);--input:oklch(26.9% 0 0);--ring:oklch(43.9% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(98.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(26.9% 0 0);--sidebar-ring:oklch(43.9% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-mask-linear{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-radial{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-conic{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-linear-position{syntax:"*";inherits:false;initial-value:0deg}@property --tw-mask-linear-from-position{syntax:"*";inherits:false;initial-value:0%}@property --tw-mask-linear-to-position{syntax:"*";inherits:false;initial-value:100%}@property --tw-mask-linear-from-color{syntax:"*";inherits:false;initial-value:black}@property --tw-mask-linear-to-color{syntax:"*";inherits:false;initial-value:transparent}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}} diff --git a/public/build/assets/app-DwgJtLjQ.css b/public/build/assets/app-DwgJtLjQ.css deleted file mode 100644 index 64448c9..0000000 --- a/public/build/assets/app-DwgJtLjQ.css +++ /dev/null @@ -1,2 +0,0 @@ -/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-mask-linear:linear-gradient(#fff, #fff);--tw-mask-radial:linear-gradient(#fff, #fff);--tw-mask-conic:linear-gradient(#fff, #fff);--tw-mask-linear-position:0deg;--tw-mask-linear-from-position:0%;--tw-mask-linear-to-position:100%;--tw-mask-linear-from-color:black;--tw-mask-linear-to-color:transparent;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:"Instrument Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-green-100:oklch(96.2% .044 156.743);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-zinc-900:oklch(21% .006 285.885);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-sm:calc(var(--radius) - 4px);--radius-md:calc(var(--radius) - 2px);--radius-lg:var(--radius);--radius-xl:.75rem;--radius-2xl:1rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce:bounce 1s;--blur-xs:4px;--blur-sm:8px;--blur-lg:16px;--blur-2xl:40px;--blur-3xl:64px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-background:var(--background);--color-foreground:var(--foreground);--color-card:var(--card);--color-card-foreground:var(--card-foreground);--color-popover:var(--popover);--color-popover-foreground:var(--popover-foreground);--color-primary:var(--primary);--color-primary-foreground:var(--primary-foreground);--color-secondary:var(--secondary);--color-secondary-foreground:var(--secondary-foreground);--color-muted:var(--muted);--color-muted-foreground:var(--muted-foreground);--color-accent:var(--accent);--color-accent-foreground:var(--accent-foreground);--color-destructive:var(--destructive);--color-destructive-foreground:var(--destructive-foreground);--color-border:var(--border);--color-input:var(--input);--color-ring:var(--ring);--color-chart-1:var(--chart-1);--color-chart-2:var(--chart-2);--color-chart-3:var(--chart-3);--color-chart-4:var(--chart-4);--color-chart-5:var(--chart-5);--color-sidebar:var(--sidebar);--color-sidebar-foreground:var(--sidebar-foreground);--color-sidebar-primary:var(--sidebar-primary);--color-sidebar-primary-foreground:var(--sidebar-primary-foreground);--color-sidebar-accent:var(--sidebar-accent);--color-sidebar-accent-foreground:var(--sidebar-accent-foreground);--color-sidebar-border:var(--sidebar-border);--color-sidebar-ring:var(--sidebar-ring);--animate-flash:flash 1s;--animate-wobble:wobble 1s ease-in-out;--animate-rubber-band:rubberBand 1s;--animate-shake:shake 1s;--animate-head-shake:headShake 1s ease-in-out;--animate-swing:swing 1s;--animate-tada:tada 1s;--animate-jello:jello 1s;--animate-heart-beat:heartBeat 1s;--animate-flip:flip 1s ease-in-out;--animate-flip-in-x:flipInX 1s;--animate-flip-in-y:flipInY 1s;--animate-flip-out-x:flipOutX 1s;--animate-flip-out-y:flipOutY 1s;--animate-fade-in:fadeIn 1s;--animate-fade-in-down:fadeInDown 1s;--animate-fade-in-down-big:fadeInDownBig 1s;--animate-fade-in-left:fadeInLeft 1s;--animate-fade-in-left-big:fadeInLeftBig 1s;--animate-fade-in-right:fadeInRight 1s;--animate-fade-in-right-big:fadeInRightBig 1s;--animate-fade-in-up:fadeInUp 1s;--animate-fade-in-up-big:fadeInUpBig 1s;--animate-fade-out:fadeOut 1s;--animate-fade-out-down:fadeOutDown 1s;--animate-fade-out-down-big:fadeOutDownBig 1s;--animate-fade-out-left:fadeOutLeft 1s;--animate-fade-out-left-big:fadeOutLeftBig 1s;--animate-fade-out-right:fadeOutRight 1s;--animate-fade-out-right-big:fadeOutRightBig 1s;--animate-fade-out-up:fadeOutUp 1s;--animate-fade-out-up-big:fadeOutUpBig 1s;--animate-slide-in-down:slideInDown 1s;--animate-slide-in-left:slideInLeft 1s;--animate-slide-in-right:slideInRight 1s;--animate-slide-in-up:slideInUp 1s;--animate-slide-out-down:slideOutDown 1s;--animate-slide-out-left:slideOutLeft 1s;--animate-slide-out-right:slideOutRight 1s;--animate-slide-out-up:slideOutUp 1s;--animate-zoom-in:zoomIn 1s;--animate-zoom-in-down:zoomInDown 1s;--animate-zoom-in-left:zoomInLeft 1s;--animate-zoom-in-right:zoomInRight 1s;--animate-zoom-in-up:zoomInUp 1s;--animate-zoom-out:zoomOut 1s;--animate-zoom-out-down:zoomOutDown 1s;--animate-zoom-out-left:zoomOutLeft 1s;--animate-zoom-out-right:zoomOutRight 1s;--animate-zoom-out-up:zoomOutUp 1s;--animate-rotate-in:rotateIn 1s;--animate-rotate-out:rotateOut 1s;--animate-roll-in:rollIn 1s;--animate-roll-out:rollOut 1s;--animate-light-speed-in:lightSpeedInRight 1s ease-out;--animate-light-speed-out:lightSpeedOutLeft 1s ease-in;--animate-jack-in-box:jackInTheBox 1s;--animate-hinge:hinge 2s;--animate-bounce-in:bounceIn .75s;--animate-bounce-in-down:bounceInDown 1s;--animate-bounce-in-left:bounceInLeft 1s;--animate-bounce-in-right:bounceInRight 1s;--animate-bounce-in-up:bounceInUp 1s;--animate-bounce-out:bounceOut .75s;--animate-bounce-out-down:bounceOutDown 1s;--animate-bounce-out-left:bounceOutLeft 1s;--animate-bounce-out-right:bounceOutRight 1s;--animate-bounce-out-up:bounceOutUp 1s;--animate-back-in-down:backInDown 1s;--animate-back-in-left:backInLeft 1s;--animate-back-in-right:backInRight 1s;--animate-back-in-up:backInUp 1s;--animate-back-out-down:backOutDown 1s;--animate-back-out-left:backOutLeft 1s;--animate-back-out-right:backOutRight 1s;--animate-back-out-up:backOutUp 1s;--animate-rotate-in-down-left:rotateInDownLeft 1s;--animate-rotate-in-down-right:rotateInDownRight 1s;--animate-rotate-in-up-left:rotateInUpLeft 1s;--animate-rotate-in-up-right:rotateInUpRight 1s;--animate-rotate-out-down-left:rotateOutDownLeft 1s;--animate-rotate-out-down-right:rotateOutDownRight 1s;--animate-rotate-out-up-left:rotateOutUpLeft 1s;--animate-rotate-out-up-right:rotateOutUpRight 1s;--animate-float:float 3s ease-in-out infinite;--animate-wiggle:wiggle .8s ease-in-out infinite;--animate-blur-in:blurIn .6s ease-out;--animate-blur-out:blurOut .6s ease-in;--animate-glitch:glitch .6s steps(1) infinite;--animate-pop:pop .4s cubic-bezier(.26, .53, .74, 1.48);--animate-compress:compress .5s ease-in-out;--animate-expand:expand .5s cubic-bezier(.175, .885, .32, 1.275);--animate-drop:drop .6s ease-out;--animate-sway:sway 2s ease-in-out infinite;--animate-ken-burns:kenBurns 8s ease-in-out infinite alternate;--animate-tilt:tilt 1.5s ease-in-out infinite alternate;--animate-alarm:alarm .8s ease-in-out;--animate-ring:ring .5s ease-in-out;--animate-bell:bell 1s ease-in-out;--font-bebas-neue:"Bebas Neue", sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--color-border)}body{background-color:var(--color-background);color:var(--color-foreground)}body ::selection{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){body ::selection{background-color:color-mix(in oklab, var(--color-primary) 75%, transparent)}}body::selection{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){body::selection{background-color:color-mix(in oklab, var(--color-primary) 75%, transparent)}}body ::selection{color:var(--color-primary-foreground)}body::selection{color:var(--color-primary-foreground)}}@layer components;@layer utilities{.\@container{container-type:inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.pointer-events-none\!{pointer-events:none!important}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.static\!{position:static!important}.sticky{position:sticky}.-inset-0\.5{inset:calc(var(--spacing) * -.5)}.-inset-1{inset:calc(var(--spacing) * -1)}.-inset-1\.5{inset:calc(var(--spacing) * -1.5)}.-inset-2{inset:calc(var(--spacing) * -2)}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-x-5{inset-inline:calc(var(--spacing) * 5)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.-top-8{top:calc(var(--spacing) * -8)}.top-0{top:calc(var(--spacing) * 0)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3\.5{top:calc(var(--spacing) * 3.5)}.top-4{top:calc(var(--spacing) * 4)}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.right-3{right:calc(var(--spacing) * 3)}.right-4{right:calc(var(--spacing) * 4)}.right-7{right:calc(var(--spacing) * 7)}.-bottom-8{bottom:calc(var(--spacing) * -8)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-3{left:calc(var(--spacing) * 3)}.left-7{left:calc(var(--spacing) * 7)}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.isolation-auto{isolation:auto}.-z-20{z-index:calc(20 * -1)}.z-2{z-index:2}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[999\]{z-index:999}.order-first{order:-9999}.order-last{order:9999}.col-start-2{grid-column-start:2}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0\!{margin:calc(var(--spacing) * 0)!important}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.-mx-6{margin-inline:calc(var(--spacing) * -6)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-3\.5{margin-inline:calc(var(--spacing) * 3.5)}.mx-5{margin-inline:calc(var(--spacing) * 5)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing) * 1)}.my-4{margin-block:calc(var(--spacing) * 4)}.my-6{margin-block:calc(var(--spacing) * 6)}.my-8{margin-block:calc(var(--spacing) * 8)}.my-12{margin-block:calc(var(--spacing) * 12)}.my-16{margin-block:calc(var(--spacing) * 16)}.-mt-4{margin-top:calc(var(--spacing) * -4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-3{margin-right:calc(var(--spacing) * 3)}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-12{margin-bottom:calc(var(--spacing) * 12)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-px{margin-left:-1px}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.inline-table{display:inline-table}.list-item{display:list-item}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row{display:table-row}.table-row-group{display:table-row-group}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.\!size-5{width:calc(var(--spacing) * 5)!important;height:calc(var(--spacing) * 5)!important}.size-\(--cell-size\){width:var(--cell-size);height:var(--cell-size)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\(--cell-size\){height:var(--cell-size)}.h-0{height:calc(var(--spacing) * 0)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-32{height:calc(var(--spacing) * 32)}.h-34{height:calc(var(--spacing) * 34)}.h-36{height:calc(var(--spacing) * 36)}.h-\[34px\]{height:34px}.h-\[calc\(--spacing\(5\.5\)\)\]{height:calc(calc(var(--spacing) * 5.5))}.h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.h-svh{height:100svh}.max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.max-h-75{max-height:calc(var(--spacing) * 75)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[60vh\]{max-height:60vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[min\(calc\(--spacing\(96\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\]{max-height:min(calc(calc(var(--spacing) * 96) - calc(var(--spacing) * 9)), calc(var(--available-height) - calc(var(--spacing) * 9)))}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-90{min-height:calc(var(--spacing) * 90)}.min-h-\[100vh\],.min-h-screen{min-height:100vh}.min-h-svh{min-height:100svh}.w-\(--anchor-width\){width:var(--anchor-width)}.w-\(--cell-size\){width:var(--cell-size)}.w-\(--radix-dropdown-menu-trigger-width\){width:var(--radix-dropdown-menu-trigger-width)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-0{width:calc(var(--spacing) * 0)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-1\/2{width:50%}.w-2{width:calc(var(--spacing) * 2)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing) * 4)}.w-4\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-22{width:calc(var(--spacing) * 22)}.w-24{width:calc(var(--spacing) * 24)}.w-32{width:calc(var(--spacing) * 32)}.w-45{width:calc(var(--spacing) * 45)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-\[34px\]{width:34px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[250px\]{width:250px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\(--available-width\){max-width:var(--available-width)}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-42{max-width:calc(var(--spacing) * 42)}.max-w-50{max-width:calc(var(--spacing) * 50)}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-\(--cell-size\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-9{min-width:calc(var(--spacing) * 9)}.min-w-10{min-width:calc(var(--spacing) * 10)}.min-w-16{min-width:calc(var(--spacing) * 16)}.min-w-56{min-width:calc(var(--spacing) * 56)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[calc\(var\(--anchor-width\)\+--spacing\(7\)\)\]{min-width:calc(var(--anchor-width) + calc(var(--spacing) * 7))}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\(--transform-origin\){transform-origin:var(--transform-origin)}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2\.5{--tw-translate-y:calc(var(--spacing) * 2.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y:calc(-50% - 2px);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-px{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-none{translate:none}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-150{--tw-scale-x:150%;--tw-scale-y:150%;--tw-scale-z:150%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-3d{scale:var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-alarm{animation:.8s ease-in-out alarm}.animate-back-in-down{animation:1s backInDown}.animate-back-in-left{animation:1s backInLeft}.animate-back-in-right{animation:1s backInRight}.animate-back-in-up{animation:1s backInUp}.animate-back-out-down{animation:1s backOutDown}.animate-back-out-left{animation:1s backOutLeft}.animate-back-out-right{animation:1s backOutRight}.animate-back-out-up{animation:1s backOutUp}.animate-bell{animation:1s ease-in-out bell}.animate-blur-in{animation:.6s ease-out blurIn}.animate-blur-out{animation:.6s ease-in blurOut}.animate-bounce{animation:1s bounce}.animate-bounce-in{animation:.75s bounceIn}.animate-bounce-in-down{animation:1s bounceInDown}.animate-bounce-in-left{animation:1s bounceInLeft}.animate-bounce-in-right{animation:1s bounceInRight}.animate-bounce-in-up{animation:1s bounceInUp}.animate-bounce-out{animation:.75s bounceOut}.animate-bounce-out-down{animation:1s bounceOutDown}.animate-bounce-out-left{animation:1s bounceOutLeft}.animate-bounce-out-right{animation:1s bounceOutRight}.animate-bounce-out-up{animation:1s bounceOutUp}.animate-caret-blink{animation:1.25s ease-out infinite caret-blink}.animate-compress{animation:.5s ease-in-out compress}.animate-drop{animation:.6s ease-out drop}.animate-expand{animation:.5s cubic-bezier(.175,.885,.32,1.275) expand}.animate-fade-in{animation:1s fadeIn}.animate-fade-in-down{animation:1s fadeInDown}.animate-fade-in-down-big{animation:1s fadeInDownBig}.animate-fade-in-left{animation:1s fadeInLeft}.animate-fade-in-left-big{animation:1s fadeInLeftBig}.animate-fade-in-right{animation:1s fadeInRight}.animate-fade-in-right-big{animation:1s fadeInRightBig}.animate-fade-in-up{animation:1s fadeInUp}.animate-fade-in-up-big{animation:1s fadeInUpBig}.animate-fade-out{animation:1s fadeOut}.animate-fade-out-down{animation:1s fadeOutDown}.animate-fade-out-down-big{animation:1s fadeOutDownBig}.animate-fade-out-left{animation:1s fadeOutLeft}.animate-fade-out-left-big{animation:1s fadeOutLeftBig}.animate-fade-out-right{animation:1s fadeOutRight}.animate-fade-out-right-big{animation:1s fadeOutRightBig}.animate-fade-out-up{animation:1s fadeOutUp}.animate-fade-out-up-big{animation:1s fadeOutUpBig}.animate-flash{animation:1s flash}.animate-flip{animation:1s ease-in-out flip}.animate-flip-in-x{animation:1s flipInX}.animate-flip-in-y{animation:1s flipInY}.animate-flip-out-x{animation:1s flipOutX}.animate-flip-out-y{animation:1s flipOutY}.animate-float{animation:3s ease-in-out infinite float}.animate-glitch{animation:.6s step-end infinite glitch}.animate-head-shake{animation:1s ease-in-out headShake}.animate-heart-beat{animation:1s heartBeat}.animate-hinge{animation:2s hinge}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-jack-in-box{animation:1s jackInTheBox}.animate-jello{animation:1s jello}.animate-ken-burns{animation:8s ease-in-out infinite alternate kenBurns}.animate-light-speed-in{animation:1s ease-out lightSpeedInRight}.animate-light-speed-out{animation:1s ease-in lightSpeedOutLeft}.animate-ping{animation:1s cubic-bezier(0,0,.2,1) infinite ping}.animate-pop{animation:.4s cubic-bezier(.26,.53,.74,1.48) pop}.animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-ring{animation:.5s ease-in-out ring}.animate-roll-in{animation:1s rollIn}.animate-roll-out{animation:1s rollOut}.animate-rotate-in{animation:1s rotateIn}.animate-rotate-in-down-left{animation:1s rotateInDownLeft}.animate-rotate-in-down-right{animation:1s rotateInDownRight}.animate-rotate-in-up-left{animation:1s rotateInUpLeft}.animate-rotate-in-up-right{animation:1s rotateInUpRight}.animate-rotate-out{animation:1s rotateOut}.animate-rotate-out-down-left{animation:1s rotateOutDownLeft}.animate-rotate-out-down-right{animation:1s rotateOutDownRight}.animate-rotate-out-up-left{animation:1s rotateOutUpLeft}.animate-rotate-out-up-right{animation:1s rotateOutUpRight}.animate-rubber-band{animation:1s rubberBand}.animate-shake{animation:1s shake}.animate-slide-in-down{animation:1s slideInDown}.animate-slide-in-left{animation:1s slideInLeft}.animate-slide-in-right{animation:1s slideInRight}.animate-slide-in-up{animation:1s slideInUp}.animate-slide-out-down{animation:1s slideOutDown}.animate-slide-out-left{animation:1s slideOutLeft}.animate-slide-out-right{animation:1s slideOutRight}.animate-slide-out-up{animation:1s slideOutUp}.animate-spin{animation:1s linear infinite spin}.animate-sway{animation:2s ease-in-out infinite sway}.animate-swing{animation:1s swing}.animate-tada{animation:1s tada}.animate-tilt{animation:1.5s ease-in-out infinite alternate tilt}.animate-wiggle{animation:.8s ease-in-out infinite wiggle}.animate-wobble{animation:1s ease-in-out wobble}.animate-zoom-in{animation:1s zoomIn}.animate-zoom-in-down{animation:1s zoomInDown}.animate-zoom-in-left{animation:1s zoomInLeft}.animate-zoom-in-right{animation:1s zoomInRight}.animate-zoom-in-up{animation:1s zoomInUp}.animate-zoom-out{animation:1s zoomOut}.animate-zoom-out-down{animation:1s zoomOutDown}.animate-zoom-out-left{animation:1s zoomOutLeft}.animate-zoom-out-right{animation:1s zoomOutRight}.animate-zoom-out-up{animation:1s zoomOutUp}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.scroll-m-20{scroll-margin:calc(var(--spacing) * 20)}.scroll-my-1{scroll-margin-block:calc(var(--spacing) * 1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing) * 1)}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{appearance:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-items-center{justify-items:center}.justify-items-start{justify-items:start}.gap-0{gap:calc(var(--spacing) * 0)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-12>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 12) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 12) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-reverse>:not(:last-child)){--tw-space-y-reverse:1}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}:where(.space-x-0>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 0) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 0) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 6) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-reverse>:not(:last-child)){--tw-space-x-reverse:1}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-y-reverse>:not(:last-child)){--tw-divide-y-reverse:1}.self-center{align-self:center}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-clip{overflow-x:clip}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[calc\(var\(--radius\)-5px\)\]{border-radius:calc(var(--radius) - 5px)}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-md\!{border-radius:var(--radius-md)!important}.rounded-none{border-radius:0}.rounded-none\!{border-radius:0!important}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.rounded-ss{border-start-start-radius:.25rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-se{border-start-end-radius:.25rem}.rounded-ee{border-end-end-radius:.25rem}.rounded-es{border-end-start-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\[inherit\]{border-top-left-radius:inherit;border-top-right-radius:inherit}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-tl{border-top-left-radius:.25rem}.rounded-tl-sm{border-top-left-radius:var(--radius-sm)}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\[inherit\]{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-bs{border-block-start-style:var(--tw-border-style);border-block-start-width:1px}.border-be{border-block-end-style:var(--tw-border-style);border-block-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b\!{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-none{--tw-border-style:none;border-style:none}.border-solid\!{--tw-border-style:solid!important;border-style:solid!important}.border-border,.border-border\/25{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/25{border-color:color-mix(in oklab, var(--color-border) 25%, transparent)}}.border-border\/40{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/40{border-color:color-mix(in oklab, var(--color-border) 40%, transparent)}}.border-border\/50{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/50{border-color:color-mix(in oklab, var(--color-border) 50%, transparent)}}.border-border\/50\!{border-color:var(--color-border)!important}@supports (color:color-mix(in lab, red, red)){.border-border\/50\!{border-color:color-mix(in oklab, var(--color-border) 50%, transparent)!important}}.border-border\/60{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/60{border-color:color-mix(in oklab, var(--color-border) 60%, transparent)}}.border-border\/75{border-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/75{border-color:color-mix(in oklab, var(--color-border) 75%, transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-input{border-color:var(--color-input)}.border-primary{border-color:var(--color-primary)}.border-red-100{border-color:var(--color-red-100)}.border-sidebar-border,.border-sidebar-border\/50{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/50{border-color:color-mix(in oklab, var(--color-sidebar-border) 50%, transparent)}}.border-sidebar-border\/70{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/70{border-color:color-mix(in oklab, var(--color-sidebar-border) 70%, transparent)}}.border-sidebar-border\/80{border-color:var(--color-sidebar-border)}@supports (color:color-mix(in lab, red, red)){.border-sidebar-border\/80{border-color:color-mix(in oklab, var(--color-sidebar-border) 80%, transparent)}}.border-transparent{border-color:#0000}.bg-accent{background-color:var(--color-accent)}.bg-background,.bg-background\/10{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/10{background-color:color-mix(in oklab, var(--color-background) 10%, transparent)}}.bg-background\/50{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/50{background-color:color-mix(in oklab, var(--color-background) 50%, transparent)}}.bg-background\/60{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/60{background-color:color-mix(in oklab, var(--color-background) 60%, transparent)}}.bg-background\/75{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/75{background-color:color-mix(in oklab, var(--color-background) 75%, transparent)}}.bg-background\/80{background-color:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.bg-background\/80{background-color:color-mix(in oklab, var(--color-background) 80%, transparent)}}.bg-black{background-color:var(--color-black)}.bg-black\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\/5{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-black\/80{background-color:color-mix(in oklab, var(--color-black) 80%, transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-border,.bg-border\/40{background-color:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.bg-border\/40{background-color:color-mix(in oklab, var(--color-border) 40%, transparent)}}.bg-card,.bg-card\/30{background-color:var(--color-card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/30{background-color:color-mix(in oklab, var(--color-card) 30%, transparent)}}.bg-card\/50{background-color:var(--color-card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/50{background-color:color-mix(in oklab, var(--color-card) 50%, transparent)}}.bg-card\/80{background-color:var(--color-card)}@supports (color:color-mix(in lab, red, red)){.bg-card\/80{background-color:color-mix(in oklab, var(--color-card) 80%, transparent)}}.bg-destructive{background-color:var(--color-destructive)}.bg-foreground,.bg-foreground\/20{background-color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-foreground\/20{background-color:color-mix(in oklab, var(--color-foreground) 20%, transparent)}}.bg-gray-200{background-color:var(--color-gray-200)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-muted{background-color:var(--color-muted)}.bg-muted-foreground\/20{background-color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-muted-foreground\/20{background-color:color-mix(in oklab, var(--color-muted-foreground) 20%, transparent)}}.bg-muted\/10{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/10{background-color:color-mix(in oklab, var(--color-muted) 10%, transparent)}}.bg-muted\/15{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/15{background-color:color-mix(in oklab, var(--color-muted) 15%, transparent)}}.bg-muted\/30{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/30{background-color:color-mix(in oklab, var(--color-muted) 30%, transparent)}}.bg-muted\/50{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.bg-neutral-200{background-color:var(--color-neutral-200)}.bg-popover{background-color:var(--color-popover)}.bg-primary,.bg-primary\/10{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/10{background-color:color-mix(in oklab, var(--color-primary) 10%, transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-ring{background-color:var(--color-ring)}.bg-secondary{background-color:var(--color-secondary)}.bg-sidebar{background-color:var(--color-sidebar)}.bg-sidebar-border{background-color:var(--color-sidebar-border)}.bg-sidebar-primary{background-color:var(--color-sidebar-primary)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-white{background-color:var(--color-white)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-linear-0{--tw-gradient-position:0deg}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-0{--tw-gradient-position:0deg in oklab}}.bg-linear-0{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-radial{--tw-gradient-position:in oklab;background-image:radial-gradient(var(--tw-gradient-stops))}.from-background{--tw-gradient-from:var(--color-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-background\/60{--tw-gradient-from:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.from-background\/60{--tw-gradient-from:color-mix(in oklab, var(--color-background) 60%, transparent)}}.from-background\/60{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-muted{--tw-gradient-from:var(--color-muted);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary{--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-primary\/50{--tw-gradient-from:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.from-primary\/50{--tw-gradient-from:color-mix(in oklab, var(--color-primary) 50%, transparent)}}.from-primary\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-background\/80{--tw-gradient-via:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.via-background\/80{--tw-gradient-via:color-mix(in oklab, var(--color-background) 80%, transparent)}}.via-background\/80{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-background\/40{--tw-gradient-to:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.to-background\/40{--tw-gradient-to:color-mix(in oklab, var(--color-background) 40%, transparent)}}.to-background\/40{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-muted\/50{--tw-gradient-to:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.to-muted\/50{--tw-gradient-to:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.to-muted\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary\/20{--tw-gradient-to:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.to-primary\/20{--tw-gradient-to:color-mix(in oklab, var(--color-primary) 20%, transparent)}}.to-primary\/20{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-primary\/50{--tw-gradient-to:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.to-primary\/50{--tw-gradient-to:color-mix(in oklab, var(--color-primary) 50%, transparent)}}.to-primary\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.mask-linear-from-10\%{-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);--tw-mask-linear-stops:var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position);--tw-mask-linear:linear-gradient(var(--tw-mask-linear-stops));--tw-mask-linear-from-position:10%;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;mask-composite:intersect}.mask-linear-to-50\%{-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);-webkit-mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);mask-image:var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);--tw-mask-linear-stops:var(--tw-mask-linear-position), var(--tw-mask-linear-from-color) var(--tw-mask-linear-from-position), var(--tw-mask-linear-to-color) var(--tw-mask-linear-to-position);--tw-mask-linear:linear-gradient(var(--tw-mask-linear-stops));--tw-mask-linear-to-position:50%;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;-webkit-mask-composite:source-in;mask-composite:intersect}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.box-decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.decoration-slice{-webkit-box-decoration-break:slice;box-decoration-break:slice}.bg-clip-padding{background-clip:padding-box}.bg-repeat{background-repeat:repeat}.mask-no-clip{-webkit-mask-clip:no-clip;mask-clip:no-clip}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.fill-current{fill:currentColor}.fill-primary{fill:var(--color-primary)}.stroke-border\/75{stroke:var(--color-border)}@supports (color:color-mix(in lab, red, red)){.stroke-border\/75{stroke:color-mix(in oklab, var(--color-border) 75%, transparent)}}.stroke-neutral-900\/20{stroke:#17171733}@supports (color:color-mix(in lab, red, red)){.stroke-neutral-900\/20{stroke:color-mix(in oklab, var(--color-neutral-900) 20%, transparent)}}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\!{padding:calc(var(--spacing) * 3)!important}.p-4{padding:calc(var(--spacing) * 4)}.p-4\!{padding:calc(var(--spacing) * 4)!important}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.p-\[3px\]{padding:3px}.p-px{padding:1px}.px-\(--cell-size\){padding-inline:var(--cell-size)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-10{padding-inline:calc(var(--spacing) * 10)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-20{padding-block:calc(var(--spacing) * 20)}.py-24{padding-block:calc(var(--spacing) * 24)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-bebas-neue{font-family:Bebas Neue,sans-serif}.font-bebas-neue\!{font-family:Bebas Neue,sans-serif!important}.font-mono{font-family:var(--font-mono)}.font-mono\!{font-family:var(--font-mono)!important}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[clamp\(0\.75rem\,9vw\+2rem\,5rem\)\]{font-size:clamp(.75rem,9vw + 2rem,5rem)}.text-\[clamp\(1\.5rem\,10vw\+2rem\,3rem\)\]{font-size:clamp(1.5rem,10vw + 2rem,3rem)}.text-\[clamp\(1rem\,6vw\,5rem\)\]{font-size:clamp(1rem,6vw,5rem)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-8{--tw-leading:calc(var(--spacing) * 8);line-height:calc(var(--spacing) * 8)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-tighter{--tw-tracking:var(--tracking-tighter);letter-spacing:var(--tracking-tighter)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.overflow-ellipsis{text-overflow:ellipsis}.text-clip{text-overflow:clip}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.text-\[var\(--foreground\)\]{color:var(--foreground)}.text-accent-foreground{color:var(--color-accent-foreground)}.text-background{color:var(--color-background)}.text-black{color:var(--color-black)}.text-blue-900{color:var(--color-blue-900)}.text-card-foreground{color:var(--color-card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--color-destructive)}.text-destructive-foreground{color:var(--color-destructive-foreground)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-foreground,.text-foreground\/40{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/40{color:color-mix(in oklab, var(--color-foreground) 40%, transparent)}}.text-foreground\/50{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/50{color:color-mix(in oklab, var(--color-foreground) 50%, transparent)}}.text-foreground\/60{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/60{color:color-mix(in oklab, var(--color-foreground) 60%, transparent)}}.text-foreground\/80{color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.text-foreground\/80{color:color-mix(in oklab, var(--color-foreground) 80%, transparent)}}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-muted{color:var(--color-muted)}.text-muted-foreground,.text-muted-foreground\/50{color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/50{color:color-mix(in oklab, var(--color-muted-foreground) 50%, transparent)}}.text-muted-foreground\/60{color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/60{color:color-mix(in oklab, var(--color-muted-foreground) 60%, transparent)}}.text-muted-foreground\/70{color:var(--color-muted-foreground)}@supports (color:color-mix(in lab, red, red)){.text-muted-foreground\/70{color:color-mix(in oklab, var(--color-muted-foreground) 70%, transparent)}}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-900{color:var(--color-neutral-900)}.text-popover-foreground{color:var(--color-popover-foreground)}.text-primary{color:var(--color-primary)}.text-primary-foreground,.text-primary-foreground\/80{color:var(--color-primary-foreground)}@supports (color:color-mix(in lab, red, red)){.text-primary-foreground\/80{color:color-mix(in oklab, var(--color-primary-foreground) 80%, transparent)}}.text-red-600{color:var(--color-red-600)}.text-secondary-foreground{color:var(--color-secondary-foreground)}.text-sidebar-accent-foreground{color:var(--color-sidebar-accent-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--color-sidebar-foreground)}@supports (color:color-mix(in lab, red, red)){.text-sidebar-foreground\/70{color:color-mix(in oklab, var(--color-sidebar-foreground) 70%, transparent)}}.text-sidebar-primary-foreground{color:var(--color-sidebar-primary-foreground)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.stacked-fractions{--tw-numeric-fraction:stacked-fractions;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.normal-nums{font-variant-numeric:normal}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.decoration-neutral-300{-webkit-text-decoration-color:var(--color-neutral-300);-webkit-text-decoration-color:var(--color-neutral-300);-webkit-text-decoration-color:var(--color-neutral-300);text-decoration-color:var(--color-neutral-300)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.accent-foreground{accent-color:var(--color-foreground)}.accent-primary{accent-color:var(--color-primary)}.opacity-0{opacity:0}.opacity-5{opacity:.05}.opacity-10{opacity:.1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-100{opacity:1}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-primary\/20{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.shadow-primary\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.shadow-primary\/25{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.shadow-primary\/25{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 25%, transparent) var(--tw-shadow-alpha), transparent)}}.ring-black\/10{--tw-ring-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.ring-black\/10{--tw-ring-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.ring-foreground\/10{--tw-ring-color:var(--color-foreground)}@supports (color:color-mix(in lab, red, red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--color-foreground) 10%, transparent)}}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.ring-primary,.ring-primary\/30{--tw-ring-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.ring-primary\/30{--tw-ring-color:color-mix(in oklab, var(--color-primary) 30%, transparent)}}.ring-ring,.ring-ring\/10{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.ring-ring\/10{--tw-ring-color:color-mix(in oklab, var(--color-ring) 10%, transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--color-sidebar-ring)}.ring-offset-background{--tw-ring-offset-color:var(--color-background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-ring\/40{outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.outline-ring\/40{outline-color:color-mix(in oklab, var(--color-ring) 40%, transparent)}}.outline-ring\/50{outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.outline-ring\/50{outline-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-2xl{--tw-blur:blur(var(--blur-2xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-3xl{--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-\[0\.5px\]{--tw-blur:blur(.5px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.blur-xs{--tw-blur:blur(var(--blur-xs));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-invert{--tw-backdrop-invert:invert(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-sepia{--tw-backdrop-sepia:sepia(100%);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\]{transition-property:width,height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.delay-300{transition-delay:.3s}.delay-1000{transition-delay:1s}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-700{--tw-duration:.7s;transition-duration:.7s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.delay-300{--tw-animation-delay:.3s;animation-delay:.3s}.delay-1000{--tw-animation-delay:1s;animation-delay:1s}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.repeat-infinite{--tw-animation-iteration-count:infinite;animation-iteration-count:infinite}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.\[--cell-size\:--spacing\(8\)\]{--cell-size:calc(var(--spacing) * 8)}.\[-ms-overflow-style\:none\]{-ms-overflow-style:none}:where(.divide-x-reverse>:not(:last-child)){--tw-divide-x-reverse:1}.fade-in{--tw-enter-opacity:0}.fade-out{--tw-exit-opacity:0}.paused{animation-play-state:paused}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.running\!{animation-play-state:running!important}.zoom-in{--tw-enter-scale:0}.zoom-out{--tw-exit-scale:0}.not-first\:mt-6:not(:first-child){margin-top:calc(var(--spacing) * 6)}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\:opacity-90:is(:where(.group):hover *){opacity:.9}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\:repeat-infinite\!:is(:where(.group):hover *){--tw-animation-iteration-count:infinite!important;animation-iteration-count:infinite!important}.group-hover\/code-block\:opacity-100:is(:where(.group\/code-block):hover *),.group-hover\/editor-block\:opacity-100:is(:where(.group\/editor-block):hover *),.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-data-\[collapsible\=icon\]\/sidebar-wrapper\:h-12:is(:where(.group\/sidebar-wrapper):has([data-collapsible=icon]) *){height:calc(var(--spacing) * 12)}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing) * 8)}.group-has-data-\[slot\=combobox-clear\]\/input-group\:hidden:is(:where(.group\/input-group):has([data-slot=combobox-clear]) *){display:none}.group-has-\[\>input\]\/input-group\:pt-2\.5:is(:where(.group\/input-group):has(>input) *){padding-top:calc(var(--spacing) * 2.5)}.group-has-\[\>input\]\/input-group\:pb-2\.5:is(:where(.group\/input-group):has(>input) *){padding-bottom:calc(var(--spacing) * 2.5)}.group-data-empty\/combobox-content\:flex:is(:where(.group\/combobox-content)[data-empty] *){display:flex}.group-data-\[collapsible\=icon\]\:pointer-events-none:is(:where(.group)[data-collapsible=icon] *){pointer-events:none}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing) * -8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing) * 8)!important;height:calc(var(--spacing) * 8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing) * 4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing) * 2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=icon\]\:select-none:is(:where(.group)[data-collapsible=icon] *){-webkit-user-select:none;user-select:none}.group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){right:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){left:calc(var(--sidebar-width) * -1)}.group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing) * 0)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *),.group-data-\[disabled\=true\]\/input-group\:opacity-50:is(:where(.group\/input-group)[data-disabled=true] *){opacity:.5}.group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused=true] *){position:relative}.group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused=true] *){z-index:10}.group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused=true] *){border-color:var(--color-ring)}.group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.group-data-\[orientation\=horizontal\]\/tabs\:h-9:is(:where(.group\/tabs)[data-orientation=horizontal] *){height:calc(var(--spacing) * 9)}.group-data-\[orientation\=vertical\]\/tabs\:h-fit:is(:where(.group\/tabs)[data-orientation=vertical] *){height:fit-content}.group-data-\[orientation\=vertical\]\/tabs\:w-full:is(:where(.group\/tabs)[data-orientation=vertical] *){width:100%}.group-data-\[orientation\=vertical\]\/tabs\:flex-col:is(:where(.group\/tabs)[data-orientation=vertical] *){flex-direction:column}.group-data-\[orientation\=vertical\]\/tabs\:justify-start:is(:where(.group\/tabs)[data-orientation=vertical] *){justify-content:flex-start}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing) * -4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing) * 0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:var(--radius-lg)}.group-data-\[variant\=floating\]\:border:is(:where(.group)[data-variant=floating] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[variant\=floating\]\:border-sidebar-border:is(:where(.group)[data-variant=floating] *){border-color:var(--color-sidebar-border)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=line\]\/tabs-list\:bg-transparent:is(:where(.group\/tabs-list)[data-variant=line] *){background-color:#0000}.group-data-\[viewport\=false\]\/navigation-menu\:top-full:is(:where(.group\/navigation-menu)[data-viewport=false] *){top:100%}.group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is(:where(.group\/navigation-menu)[data-viewport=false] *){margin-top:calc(var(--spacing) * 1.5)}.group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is(:where(.group\/navigation-menu)[data-viewport=false] *){overflow:hidden}.group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-radius:var(--radius-md)}.group-data-\[viewport\=false\]\/navigation-menu\:border:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is(:where(.group\/navigation-menu)[data-viewport=false] *){background-color:var(--color-popover)}.group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is(:where(.group\/navigation-menu)[data-viewport=false] *){color:var(--color-popover-foreground)}.group-data-\[viewport\=false\]\/navigation-menu\:shadow:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--color-sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--color-sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing) * 1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing) * 2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing) * 1)}.peer-data-\[variant\=inset\]\:min-h-\[calc\(100svh-\(--spacing\(4\)\)\)\]:is(:where(.peer)[data-variant=inset]~*){min-height:calc(100svh - (calc(var(--spacing) * 4)))}.selection\:bg-primary ::selection{background-color:var(--color-primary)}.selection\:bg-primary::selection{background-color:var(--color-primary)}.selection\:text-primary-foreground ::selection{color:var(--color-primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--color-primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--color-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--color-muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing) * -2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:bg-foreground:after{content:var(--tw-content);background-color:var(--color-foreground)}.after\:opacity-0:after{content:var(--tw-content);opacity:0}.after\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.group-data-\[collapsible\=offcanvas\]\:after\:left-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);left:100%}.group-data-\[orientation\=horizontal\]\/tabs\:after\:inset-x-0:is(:where(.group\/tabs)[data-orientation=horizontal] *):after{content:var(--tw-content);inset-inline:calc(var(--spacing) * 0)}.group-data-\[orientation\=horizontal\]\/tabs\:after\:bottom-\[-5px\]:is(:where(.group\/tabs)[data-orientation=horizontal] *):after{content:var(--tw-content);bottom:-5px}.group-data-\[orientation\=horizontal\]\/tabs\:after\:h-0\.5:is(:where(.group\/tabs)[data-orientation=horizontal] *):after{content:var(--tw-content);height:calc(var(--spacing) * .5)}.group-data-\[orientation\=vertical\]\/tabs\:after\:inset-y-0:is(:where(.group\/tabs)[data-orientation=vertical] *):after{content:var(--tw-content);inset-block:calc(var(--spacing) * 0)}.group-data-\[orientation\=vertical\]\/tabs\:after\:-right-1:is(:where(.group\/tabs)[data-orientation=vertical] *):after{content:var(--tw-content);right:calc(var(--spacing) * -1)}.group-data-\[orientation\=vertical\]\/tabs\:after\:w-0\.5:is(:where(.group\/tabs)[data-orientation=vertical] *):after{content:var(--tw-content);width:calc(var(--spacing) * .5)}.first\:mt-0:first-child{margin-top:calc(var(--spacing) * 0)}.first\:rounded-l-md:first-child{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.first\:border-l:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.last\:rounded-r-md:last-child{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.focus-within\:border-ring:focus-within{border-color:var(--color-ring)}.focus-within\:ring-\[3px\]:focus-within{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.focus-within\:ring-ring\/50:focus-within{--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}@media (hover:hover){.hover\:-translate-y-1:hover{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:border-border:hover{border-color:var(--color-border)}.hover\:bg-accent:hover{background-color:var(--color-accent)}.hover\:bg-destructive\/90:hover{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--color-destructive) 90%, transparent)}}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--color-muted)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--color-primary) 90%, transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--color-secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--color-secondary) 80%, transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--color-sidebar-accent)}.hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}.hover\:text-foreground:hover{color:var(--color-foreground)}.hover\:text-gray-400:hover{color:var(--color-gray-400)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-muted-foreground:hover{color:var(--color-muted-foreground)}.hover\:text-neutral-800:hover{color:var(--color-neutral-800)}.hover\:text-primary:hover{color:var(--color-primary)}.hover\:text-primary-foreground:hover{color:var(--color-primary-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--color-sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:decoration-current\!:hover{text-decoration-color:currentColor!important}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\:shadow-primary\/10:hover{--tw-shadow-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){.hover\:shadow-primary\/10:hover{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-primary) 10%, transparent) var(--tw-shadow-alpha), transparent)}}.hover\:grayscale-0:hover{--tw-grayscale:grayscale(0%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--color-sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--color-sidebar-border)}}.focus\:z-10:focus{z-index:10}.focus\:border-blue-300:focus{border-color:var(--color-blue-300)}.focus\:bg-accent:focus{background-color:var(--color-accent)}.focus\:text-accent-foreground:focus{color:var(--color-accent-foreground)}.focus\:ring:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--color-ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:z-10:focus-visible{z-index:10}.focus-visible\:border-ring:focus-visible{border-color:var(--color-ring)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--color-ring)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\:bg-gray-100:active{background-color:var(--color-gray-100)}.active\:bg-sidebar-accent:active{background-color:var(--color-sidebar-accent)}.active\:text-gray-500:active{color:var(--color-gray-500)}.active\:text-gray-700:active{color:var(--color-gray-700)}.active\:text-gray-800:active{color:var(--color-gray-800)}.active\:text-sidebar-accent-foreground:active{color:var(--color-sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}.has-focus\:border-ring:has(:focus){border-color:var(--color-ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.has-disabled\:pointer-events-none:has(:disabled){pointer-events:none}.has-disabled\:cursor-not-allowed:has(:disabled){cursor:not-allowed}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-aria-invalid\:border-destructive:has([aria-invalid=true]){border-color:var(--color-destructive)}.has-aria-invalid\:ring-\[3px\]:has([aria-invalid=true]){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.has-aria-invalid\:ring-destructive\/20:has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.has-data-\[slot\=combobox-chip\]\:px-1\.5:has([data-slot=combobox-chip]){padding-inline:calc(var(--spacing) * 1.5)}.has-data-\[slot\=combobox-chip-remove\]\:pr-0:has([data-slot=combobox-chip-remove]){padding-right:calc(var(--spacing) * 0)}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--color-sidebar)}.has-\[\:disabled\]\:opacity-50:has(:disabled){opacity:.5}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:border-ring:has([data-slot=input-group-control]:focus-visible){border-color:var(--color-ring)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-\[3px\]:has([data-slot=input-group-control]:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-ring\/50:has([data-slot=input-group-control]:focus-visible){--tw-ring-color:color-mix(in oklab, var(--color-ring) 50%, transparent)}}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:border-destructive:has([data-slot][aria-invalid=true]){border-color:var(--color-destructive)}.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/20:has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.has-\[\>\[data-align\=block-end\]\]\:h-auto:has(>[data-align=block-end]){height:auto}.has-\[\>\[data-align\=block-end\]\]\:flex-col:has(>[data-align=block-end]){flex-direction:column}.has-\[\>\[data-align\=block-start\]\]\:h-auto:has(>[data-align=block-start]){height:auto}.has-\[\>\[data-align\=block-start\]\]\:flex-col:has(>[data-align=block-start]){flex-direction:column}.has-\[\>button\]\:mr-\[-0\.45rem\]:has(>button){margin-right:-.45rem}.has-\[\>button\]\:ml-\[-0\.45rem\]:has(>button){margin-left:-.45rem}.has-\[\>kbd\]\:mr-\[-0\.35rem\]:has(>kbd){margin-right:-.35rem}.has-\[\>kbd\]\:ml-\[-0\.35rem\]:has(>kbd){margin-left:-.35rem}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing) * 4) 1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing) * 3)}.has-\[\>svg\]\:p-0:has(>svg){padding:calc(var(--spacing) * 0)}.has-\[\>svg\]\:px-2:has(>svg){padding-inline:calc(var(--spacing) * 2)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.has-\[\>textarea\]\:h-auto:has(>textarea){height:auto}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--color-destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 20%, transparent)}}.aria-selected\:text-muted-foreground[aria-selected=true]{color:var(--color-muted-foreground)}.data-closed\:animate-out[data-closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-closed\:fade-out-0[data-closed]{--tw-exit-opacity:0}.data-closed\:zoom-out-95[data-closed]{--tw-exit-scale:.95}.data-empty\:p-0[data-empty]{padding:calc(var(--spacing) * 0)}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--color-accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--color-accent-foreground)}.data-open\:animate-in[data-open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-open\:fade-in-0[data-open]{--tw-enter-opacity:0}.data-open\:zoom-in-95[data-open]{--tw-enter-scale:.95}.data-pressed\:bg-transparent[data-pressed]{background-color:#0000}.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--color-sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-accent-foreground[data-active=true]{color:var(--color-accent-foreground)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--color-sidebar-accent-foreground)}.data-\[chips\=true\]\:min-w-\(--anchor-width\)[data-chips=true]{min-width:var(--anchor-width)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing) * 8)}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:calc(52*var(--spacing))}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:calc(52*var(--spacing))}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-]{--tw-exit-opacity:0}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=horizontal\]\:flex-col[data-orientation=horizontal]{flex-direction:column}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--color-muted-foreground)}.data-\[range-end\=true\]\:rounded-md[data-range-end=true]{border-radius:var(--radius-md)}.data-\[range-end\=true\]\:rounded-r-md[data-range-end=true]{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.data-\[range-end\=true\]\:bg-primary[data-range-end=true]{background-color:var(--color-primary)}.data-\[range-end\=true\]\:text-primary-foreground[data-range-end=true]{color:var(--color-primary-foreground)}.data-\[range-middle\=true\]\:rounded-none[data-range-middle=true]{border-radius:0}.data-\[range-middle\=true\]\:bg-accent[data-range-middle=true]{background-color:var(--color-accent)}.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle=true]{color:var(--color-accent-foreground)}.data-\[range-start\=true\]\:rounded-md[data-range-start=true]{border-radius:var(--radius-md)}.data-\[range-start\=true\]\:rounded-l-md[data-range-start=true]{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.data-\[range-start\=true\]\:bg-primary[data-range-start=true]{background-color:var(--color-primary)}.data-\[range-start\=true\]\:text-primary-foreground[data-range-start=true]{color:var(--color-primary-foreground)}.data-\[selected-single\=true\]\:bg-primary[data-selected-single=true]{background-color:var(--color-primary)}.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single=true]{color:var(--color-primary-foreground)}.data-\[selected\=true\]\:rounded-none[data-selected=true]{border-radius:0}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing) * 9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive-foreground\/80>*)[data-slot=alert-description]{color:var(--color-destructive-foreground)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive-foreground\/80>*)[data-slot=alert-description]{color:color-mix(in oklab, var(--color-destructive-foreground) 80%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:m-1>*)[data-slot=input-group]{margin:calc(var(--spacing) * 1)}:is(.\*\:data-\[slot\=input-group\]\:mb-0>*)[data-slot=input-group]{margin-bottom:calc(var(--spacing) * 0)}:is(.\*\:data-\[slot\=input-group\]\:h-8>*)[data-slot=input-group]{height:calc(var(--spacing) * 8)}:is(.\*\:data-\[slot\=input-group\]\:border-input\/30>*)[data-slot=input-group]{border-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=input-group\]\:border-input\/30>*)[data-slot=input-group]{border-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:bg-input\/30>*)[data-slot=input-group]{background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=input-group\]\:bg-input\/30>*)[data-slot=input-group]{background-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}:is(.\*\:data-\[slot\=input-group\]\:shadow-none>*)[data-slot=input-group]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:ring-0 *)[data-slot=navigation-menu-link]:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:outline-none *)[data-slot=navigation-menu-link]:focus{--tw-outline-style:none;outline-style:none}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing) * 2)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--color-background)}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--color-foreground)}.group-data-\[variant\=default\]\/tabs-list\:data-\[state\=active\]\:shadow-sm:is(:where(.group\/tabs-list)[data-variant=default] *)[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent:is(:where(.group\/tabs-list)[data-variant=line] *)[data-state=active]{background-color:#0000}.group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:shadow-none:is(:where(.group\/tabs-list)[data-variant=line] *)[data-state=active]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:after\:opacity-100:is(:where(.group\/tabs-list)[data-variant=line] *)[data-state=active]:after{content:var(--tw-content);opacity:1}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--color-primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--color-primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--color-primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=on\]\:bg-accent[data-state=on]{background-color:var(--color-accent)}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:var(--color-accent-foreground)}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open],.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:var(--color-accent)}@supports (color:color-mix(in lab, red, red)){.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--color-secondary)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--color-sidebar-accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--color-accent-foreground)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--color-muted-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-scale:.95}@media (hover:hover){.data-\[state\=open\]\:hover\:bg-sidebar-accent[data-state=open]:hover{background-color:var(--color-sidebar-accent)}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground[data-state=open]:hover{color:var(--color-sidebar-accent-foreground)}}.data-\[state\=visible\]\:animate-in[data-state=visible]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[variant\=destructive\]\:text-destructive-foreground[data-variant=destructive]{color:var(--color-destructive-foreground)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--color-destructive) 10%, transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive-foreground[data-variant=destructive]:focus{color:var(--color-destructive-foreground)}.data-\[variant\=line\]\:rounded-none[data-variant=line]{border-radius:0}.data-\[variant\=outline\]\:border-l-0[data-variant=outline]{border-left-style:var(--tw-border-style);border-left-width:0}.data-\[variant\=outline\]\:shadow-xs[data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-\[variant\=outline\]\:first\:border-l[data-variant=outline]:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}@media (width>=40rem){.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:h-12{height:calc(var(--spacing) * 12)}.sm\:w-48{width:calc(var(--spacing) * 48)}.sm\:w-\[350px\]{width:350px}.sm\:max-w-3xl{max-width:var(--container-3xl)}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:flex-1{flex:1}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2{gap:calc(var(--spacing) * 2)}.sm\:gap-2\.5{gap:calc(var(--spacing) * 2.5)}.sm\:px-0{padding-inline:calc(var(--spacing) * 0)}.sm\:py-32{padding-block:calc(var(--spacing) * 32)}.sm\:text-center{text-align:center}.sm\:text-left{text-align:left}.sm\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}@media (width>=48rem){.md\:not-sr-only{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.md\:absolute{position:absolute}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-5{height:calc(var(--spacing) * 5)}.md\:h-6{height:calc(var(--spacing) * 6)}.md\:h-7{height:calc(var(--spacing) * 7)}.md\:h-10{height:calc(var(--spacing) * 10)}.md\:h-12{height:calc(var(--spacing) * 12)}.md\:h-16{height:calc(var(--spacing) * 16)}.md\:h-20{height:calc(var(--spacing) * 20)}.md\:h-48{height:calc(var(--spacing) * 48)}.md\:min-h-120{min-height:calc(var(--spacing) * 120)}.md\:min-h-min{min-height:min-content}.md\:w-5{width:calc(var(--spacing) * 5)}.md\:w-6{width:calc(var(--spacing) * 6)}.md\:w-7{width:calc(var(--spacing) * 7)}.md\:w-10{width:calc(var(--spacing) * 10)}.md\:w-12{width:calc(var(--spacing) * 12)}.md\:w-16{width:calc(var(--spacing) * 16)}.md\:w-20{width:calc(var(--spacing) * 20)}.md\:w-24{width:calc(var(--spacing) * 24)}.md\:w-48{width:calc(var(--spacing) * 48)}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-2xl{max-width:var(--container-2xl)}.md\:max-w-7xl{max-width:var(--container-7xl)}.md\:max-w-none{max-width:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:gap-4{gap:calc(var(--spacing) * 4)}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:p-6{padding:calc(var(--spacing) * 6)}.md\:p-10{padding:calc(var(--spacing) * 10)}.md\:px-4{padding-inline:calc(var(--spacing) * 4)}.md\:px-6{padding-inline:calc(var(--spacing) * 6)}.md\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.md\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:opacity-0{opacity:0}.md\:opacity-100{opacity:1}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing) * 2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing) * 0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:var(--radius-xl)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-0:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing) * 0)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@media (width>=64rem){.lg\:relative{position:relative}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-56{height:calc(var(--spacing) * 56)}.lg\:w-48{width:calc(var(--spacing) * 48)}.lg\:w-56{width:calc(var(--spacing) * 56)}.lg\:max-w-none{max-width:none}.lg\:translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}:where(.lg\:space-x-12>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 12) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 12) * calc(1 - var(--tw-space-x-reverse)))}.lg\:p-8{padding:calc(var(--spacing) * 8)}.lg\:px-0{padding-inline:calc(var(--spacing) * 0)}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}.lg\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}.rtl\:flex-row-reverse:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.dark\:border-r:is(.dark *){border-right-style:var(--tw-border-style);border-right-width:1px}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-red-200\/10:is(.dark *){border-color:#ffcaca1a}@supports (color:color-mix(in lab, red, red)){.dark\:border-red-200\/10:is(.dark *){border-color:color-mix(in oklab, var(--color-red-200) 10%, transparent)}}.dark\:border-sidebar-border:is(.dark *){border-color:var(--color-sidebar-border)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab, var(--color-destructive) 60%, transparent)}}.dark\:bg-gray-700:is(.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-900:is(.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-950:is(.dark *){background-color:var(--color-gray-950)}.dark\:bg-input\/30:is(.dark *){background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}.dark\:bg-neutral-700:is(.dark *){background-color:var(--color-neutral-700)}.dark\:bg-neutral-800:is(.dark *){background-color:var(--color-neutral-800)}.dark\:bg-red-700\/10:is(.dark *){background-color:#bf000f1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-700\/10:is(.dark *){background-color:color-mix(in oklab, var(--color-red-700) 10%, transparent)}}.dark\:bg-transparent:is(.dark *){background-color:#0000}.dark\:bg-white:is(.dark *){background-color:var(--color-white)}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/5:is(.dark *){background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.dark\:stroke-neutral-100\/20:is(.dark *){stroke:#f5f5f533}@supports (color:color-mix(in lab, red, red)){.dark\:stroke-neutral-100\/20:is(.dark *){stroke:color-mix(in oklab, var(--color-neutral-100) 20%, transparent)}}.dark\:text-black:is(.dark *){color:var(--color-black)}.dark\:text-gray-200:is(.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:is(.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-gray-600:is(.dark *){color:var(--color-gray-600)}.dark\:text-muted-foreground:is(.dark *){color:var(--color-muted-foreground)}.dark\:text-neutral-100:is(.dark *){color:var(--color-neutral-100)}.dark\:text-neutral-300:is(.dark *){color:var(--color-neutral-300)}.dark\:text-red-100:is(.dark *){color:var(--color-red-100)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:decoration-neutral-500:is(.dark *){-webkit-text-decoration-color:var(--color-neutral-500);-webkit-text-decoration-color:var(--color-neutral-500);-webkit-text-decoration-color:var(--color-neutral-500);text-decoration-color:var(--color-neutral-500)}.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:color-mix(in oklab, var(--color-ring) 20%, transparent)}}.dark\:outline-ring\/40:is(.dark *){outline-color:var(--color-ring)}@supports (color:color-mix(in lab, red, red)){.dark\:outline-ring\/40:is(.dark *){outline-color:color-mix(in oklab, var(--color-ring) 40%, transparent)}}@media (hover:hover){.dark\:hover\:bg-gray-900:is(.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--color-input) 50%, transparent)}}.dark\:hover\:text-accent-foreground:is(.dark *):hover{color:var(--color-accent-foreground)}.dark\:hover\:text-foreground:is(.dark *):hover{color:var(--color-foreground)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}.dark\:hover\:text-gray-300:is(.dark *):hover{color:var(--color-gray-300)}.dark\:hover\:text-neutral-100:is(.dark *):hover{color:var(--color-neutral-100)}}.dark\:focus\:border-blue-700:is(.dark *):focus{border-color:var(--color-blue-700)}.dark\:focus\:border-blue-800:is(.dark *):focus{border-color:var(--color-blue-800)}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:active\:bg-gray-700:is(.dark *):active{background-color:var(--color-gray-700)}.dark\:active\:text-gray-300:is(.dark *):active{color:var(--color-gray-300)}.dark\:has-aria-invalid\:border-destructive\/50:is(.dark *):has([aria-invalid=true]){border-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:border-destructive\/50:is(.dark *):has([aria-invalid=true]){border-color:color-mix(in oklab, var(--color-destructive) 50%, transparent)}}.dark\:has-aria-invalid\:ring-destructive\/40:is(.dark *):has([aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-aria-invalid\:ring-destructive\/40:is(.dark *):has([aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:has-\[\[data-slot\]\[aria-invalid\=true\]\]\:ring-destructive\/40:is(.dark *):has([data-slot][aria-invalid=true]){--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}.dark\:data-\[state\=active\]\:border-input:is(.dark *)[data-state=active]{border-color:var(--color-input)}.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:var(--color-input)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:color-mix(in oklab, var(--color-input) 30%, transparent)}}.dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state=active]{color:var(--color-foreground)}.dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:border-transparent:is(.dark *):is(:where(.group\/tabs-list)[data-variant=line] *)[data-state=active]{border-color:#0000}.dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent:is(.dark *):is(:where(.group\/tabs-list)[data-variant=line] *)[data-state=active]{background-color:#0000}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/40:is(.dark *)[data-variant=destructive]:focus{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/40:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab, var(--color-destructive) 40%, transparent)}}@media (pointer:coarse){.pointer-coarse\:size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.pointer-coarse\:px-3{padding-inline:calc(var(--spacing) * 3)}.pointer-coarse\:py-2{padding-block:calc(var(--spacing) * 2)}.pointer-coarse\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-full svg{width:100%;height:100%}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--color-muted-foreground)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.\[\.border-b\]\:pb-3.border-b{padding-bottom:calc(var(--spacing) * 3)}.\[\.border-t\]\:pt-3.border-t{padding-top:calc(var(--spacing) * 3)}:is(.rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing) * 2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive-foreground[data-variant=destructive]>*):is(svg){color:var(--color-destructive-foreground)!important}.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.\[\&\:nth-child\(2\)\[data-selected\=true\]_button\]\:rounded-l-md:nth-child(2)[data-selected=true] button{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.\[\&\>button\]\:hidden>button{display:none}.has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(>[data-align=block-end])>input{padding-top:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(>[data-align=block-start])>input{padding-bottom:calc(var(--spacing) * 3)}.has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-2:has(>[data-align=inline-end])>input{padding-right:calc(var(--spacing) * 2)}.has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-2:has(>[data-align=inline-start])>input{padding-left:calc(var(--spacing) * 2)}.\[\&\>kbd\]\:rounded-\[calc\(var\(--radius\)-5px\)\]>kbd{border-radius:calc(var(--radius) - 5px)}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--color-muted-foreground)}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--color-sidebar-accent-foreground)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5>svg:not([class*=size-]){width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:calc(var(--spacing) * -2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:calc(var(--spacing) * -2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--color-accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--color-destructive)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--color-destructive) 90%, transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--color-primary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--color-primary) 90%, transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--color-secondary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab, var(--color-secondary) 90%, transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--color-accent-foreground)}}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-30px)}60%{transform:translateY(-15px)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes wobble{0%,to{transform:translate(0%)}15%{transform:translate(-25%)rotate(-5deg)}30%{transform:translate(20%)rotate(3deg)}45%{transform:translate(-15%)rotate(-3deg)}60%{transform:translate(10%)rotate(2deg)}75%{transform:translate(-5%)rotate(-1deg)}}@keyframes rubberBand{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}@keyframes shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px)rotate(-6deg)}18.5%{transform:translate(5px)rotate(6deg)}31.5%{transform:translate(-3px)rotate(-3deg)}43.5%{transform:translate(2px)rotate(2deg)}to{transform:translate(0)}}@keyframes swing{20%{transform:rotate(15deg)}40%{transform:rotate(-10deg)}60%{transform:rotate(5deg)}80%{transform:rotate(-5deg)}to{transform:rotate(0)}}@keyframes tada{0%,to{transform:scale(1)}10%,20%{transform:scale3d(.9,.9,.9)rotate(-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1)rotate(3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1)rotate(-3deg)}}@keyframes jello{0%{transform:scale(1)}30%{transform:scale(1.25,.75)}40%{transform:scale(.75,1.25)}50%{transform:scale(1.15,.85)}65%{transform:scale(.95,1.05)}75%{transform:scale(1.05,.95)}to{transform:scale(1)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes flip{0%{animation-timing-function:ease-out;transform:perspective(400px)rotateY(-360deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)translateZ(150px)rotateY(-190deg)}50%{animation-timing-function:ease-in;transform:perspective(400px)translateZ(150px)rotateY(-170deg)}80%{animation-timing-function:ease-in;transform:perspective(400px)scale3d(.95,.95,.95)}to{animation-timing-function:ease-in;transform:perspective(400px)scale(1)}}@keyframes flipInX{0%{opacity:0;transform:perspective(400px)rotateX(90deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)rotateX(-20deg)}60%{opacity:1;transform:perspective(400px)rotateX(10deg)}80%{transform:perspective(400px)rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{opacity:0;transform:perspective(400px)rotateY(90deg)}40%{animation-timing-function:ease-out;transform:perspective(400px)rotateY(-20deg)}60%{opacity:1;transform:perspective(400px)rotateY(10deg)}80%{transform:perspective(400px)rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateX(-20deg)}to{opacity:0;transform:perspective(400px)rotateX(90deg)}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{opacity:1;transform:perspective(400px)rotateY(-15deg)}to{opacity:0;transform:perspective(400px)rotateY(90deg)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translateY(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInLeft{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate(-2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate(2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translateY(2000px)}to{opacity:1;transform:translate(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translateY(100%)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translateY(2000px)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate(-100%)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate(-2000px)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate(100%)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate(2000px)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translateY(-100%)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translateY(-2000px)}}@keyframes slideInDown{0%{visibility:visible;transform:translateY(-100%)}to{transform:translate(0)}}@keyframes slideInLeft{0%{visibility:visible;transform:translate(-100%)}to{transform:translate(0)}}@keyframes slideInRight{0%{visibility:visible;transform:translate(100%)}to{transform:translate(0)}}@keyframes slideInUp{0%{visibility:visible;transform:translateY(100%)}to{transform:translate(0)}}@keyframes slideOutDown{0%{transform:translate(0)}to{visibility:hidden;transform:translateY(100%)}}@keyframes slideOutLeft{0%{transform:translate(0)}to{visibility:hidden;transform:translate(-100%)}}@keyframes slideOutRight{0%{transform:translate(0)}to{visibility:hidden;transform:translate(100%)}}@keyframes slideOutUp{0%{transform:translate(0)}to{visibility:hidden;transform:translateY(-100%)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInDown{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(60px)}}@keyframes zoomInLeft{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(-1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(10px)}}@keyframes zoomInRight{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translate(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translate(-10px)}}@keyframes zoomInUp{0%{opacity:0;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.1,.1,.1)translateY(1000px)}60%{opacity:1;animation-timing-function:cubic-bezier(.175,.885,.32,1);transform:scale3d(.475,.475,.475)translateY(-60px)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutDown{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(-60px)}to{opacity:0;transform-origin:bottom;transform:scale3d(.1,.1,.1)translateY(1000px)}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(42px)}to{opacity:0;transform-origin:0;transform:scale(.1)translate(-1000px)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475)translate(-42px)}to{opacity:0;transform-origin:100%;transform:scale(.1)translate(1000px)}}@keyframes zoomOutUp{40%{opacity:1;animation-timing-function:cubic-bezier(.55,.055,.675,.19);transform:scale3d(.475,.475,.475)translateY(60px)}to{opacity:0;transform-origin:bottom;transform:scale3d(.1,.1,.1)translateY(-1000px)}}@keyframes rotateIn{0%{opacity:0;transform:rotate(-200deg)}to{opacity:1;transform:rotate(0)}}@keyframes rotateOut{0%{opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(200deg)}}@keyframes rollIn{0%{opacity:0;transform:translate(-100%)rotate(-120deg)}to{opacity:1;transform:translate(0)rotate(0)}}@keyframes rollOut{0%{opacity:1;transform:translate(0)rotate(0)}to{opacity:0;transform:translate(100%)rotate(120deg)}}@keyframes lightSpeedInRight{0%{opacity:0;transform:translate(100%)skew(-30deg)}60%{opacity:1;transform:skew(20deg)}80%{opacity:1;transform:skew(-5deg)}to{opacity:1;transform:translate(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{opacity:0;transform:translate(-100%)skew(30deg)}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1)rotate(0)}50%{transform:scale(1.05)rotate(10deg)}70%{transform:scale(.9)rotate(-3deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes hinge{0%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(0)}20%,60%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(80deg)}40%,80%{transform-origin:0 0;animation-timing-function:ease-in-out;transform:rotate(60deg)}to{transform-origin:0 0;opacity:0;transform:rotate(90deg)}}@keyframes bounceIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scale(1)}}@keyframes bounceInDown{0%{opacity:0;transform:translateY(-3000px)scaleY(3)}60%{opacity:1;transform:translateY(25px)scaleY(.9)}75%{transform:translateY(-10px)scaleY(.95)}90%{transform:translateY(5px)scaleY(.985)}to{transform:translate(0)}}@keyframes bounceInLeft{0%{opacity:0;transform:translate(-3000px)scaleX(3)}60%{opacity:1;transform:translate(25px)scaleX(1)}75%{transform:translate(-10px)scaleX(.98)}90%{transform:translate(5px)scaleX(.995)}to{transform:translate(0)}}@keyframes bounceInRight{0%{opacity:0;transform:translate(3000px)scaleX(3)}60%{opacity:1;transform:translate(-25px)scaleX(1)}75%{transform:translate(10px)scaleX(.98)}90%{transform:translate(-5px)scaleX(.995)}to{transform:translate(0)}}@keyframes bounceInUp{0%{opacity:0;transform:translateY(3000px)scaleY(5)}60%{opacity:1;transform:translateY(-20px)scaleY(.9)}75%{transform:translateY(10px)scaleY(.95)}90%{transform:translateY(-5px)scaleY(.985)}to{transform:translate(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutDown{20%{transform:translateY(10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(-20px)scaleY(.9)}to{opacity:0;transform:translateY(2000px)scaleY(3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate(20px)scaleX(.9)}to{opacity:0;transform:translate(-2000px)scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate(-20px)scaleX(.9)}to{opacity:0;transform:translate(2000px)scaleX(2)}}@keyframes bounceOutUp{20%{transform:translateY(-10px)scaleY(.985)}40%,45%{opacity:1;transform:translateY(20px)scaleY(.9)}to{opacity:0;transform:translateY(-2000px)scaleY(3)}}@keyframes backInDown{0%{opacity:.7;transform:translateY(-1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInLeft{0%{opacity:.7;transform:translate(-2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInRight{0%{opacity:.7;transform:translate(2000px)scale(.7)}80%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backInUp{0%{opacity:.7;transform:translateY(1200px)scale(.7)}80%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes backOutDown{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(700px)scale(.7)}}@keyframes backOutLeft{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(-2000px)scale(.7)}}@keyframes backOutRight{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translate(0)scale(.7)}to{opacity:.7;transform:translate(2000px)scale(.7)}}@keyframes backOutUp{0%{opacity:1;transform:scale(1)}20%{opacity:.7;transform:translateY(0)scale(.7)}to{opacity:.7;transform:translateY(-700px)scale(.7)}}@keyframes rotateInDownLeft{0%{opacity:0;transform-origin:0 100%;transform:rotate(-45deg)}to{opacity:1;transform-origin:0 100%;transform:rotate(0)}}@keyframes rotateInDownRight{0%{opacity:0;transform-origin:100% 100%;transform:rotate(45deg)}to{opacity:1;transform-origin:100% 100%;transform:rotate(0)}}@keyframes rotateInUpLeft{0%{opacity:0;transform-origin:0 100%;transform:rotate(45deg)}to{opacity:1;transform-origin:0 100%;transform:rotate(0)}}@keyframes rotateInUpRight{0%{opacity:0;transform-origin:100% 100%;transform:rotate(-90deg)}to{opacity:1;transform-origin:100% 100%;transform:rotate(0)}}@keyframes rotateOutDownLeft{0%{opacity:1;transform-origin:0 100%}to{opacity:0;transform-origin:0 100%;transform:rotate(45deg)}}@keyframes rotateOutDownRight{0%{opacity:1;transform-origin:100% 100%}to{opacity:0;transform-origin:100% 100%;transform:rotate(-45deg)}}@keyframes rotateOutUpLeft{0%{opacity:1;transform-origin:0 100%}to{opacity:0;transform-origin:0 100%;transform:rotate(-45deg)}}@keyframes rotateOutUpRight{0%{opacity:1;transform-origin:100% 100%}to{opacity:0;transform-origin:100% 100%;transform:rotate(90deg)}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes wiggle{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes blurIn{0%{filter:blur(12px);opacity:0}to{filter:blur();opacity:1}}@keyframes blurOut{0%{filter:blur();opacity:1}to{filter:blur(12px);opacity:0}}@keyframes glitch{0%,to{transform:translate(0)}20%{transform:translate(-3px,2px)}40%{transform:translate(-3px,-2px)}60%{transform:translate(3px,2px)}80%{transform:translate(3px,-2px)}}@keyframes pop{0%{opacity:0;transform:scale(.8)}70%{transform:scale(1.1)}to{opacity:1;transform:scale(1)}}@keyframes compress{0%,to{transform:scaleY(1)}50%{transform:scaleY(.5)}}@keyframes expand{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes drop{0%{opacity:0;transform:translateY(-200px)}60%{opacity:1;transform:translateY(15px)}80%{transform:translateY(-8px)}to{transform:translateY(0)}}@keyframes sway{0%,to{transform-origin:top;transform:rotate(-5deg)}50%{transform-origin:top;transform:rotate(5deg)}}@keyframes kenBurns{0%{transform:scale(1)translate(0)}to{transform:scale(1.15)translate(-2%,-2%)}}@keyframes tilt{0%{transform:perspective(400px)rotateY(0)}to{transform:perspective(400px)rotateY(15deg)}}@keyframes alarm{0%,to{transform:rotate(0)scale(1)}10%,30%{transform:rotate(-25deg)scale(1.05)}20%,40%{transform:rotate(25deg)scale(1.05)}50%,70%{transform:rotate(-15deg)scale(1.02)}60%,80%{transform:rotate(15deg)scale(1.02)}}@keyframes ring{0%,to{transform:rotate(0)}10%,30%{transform:rotate(15deg)}20%,40%{transform:rotate(-15deg)}50%,70%{transform:rotate(10deg)}60%,80%{transform:rotate(-10deg)}}@keyframes bell{0%{transform:rotate(0)}10%{transform:rotate(15deg)}20%{transform:rotate(-15deg)}30%{transform:rotate(10deg)}40%{transform:rotate(-10deg)}50%{transform:rotate(0)}to{transform:rotate(0)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}code[class*=language-],pre[class*=language-]{color:var(--color-foreground);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;-webkit-hyphens:none;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:.875rem;line-height:1.6}pre[class*=language-]{border-radius:0;margin:0;padding:1rem;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:var(--color-background)}:not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-muted-foreground)}.token.punctuation{color:var(--color-foreground)}.token.tag,.token.attr-name,.token.namespace,.token.deleted{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.number,.token.function{color:#f08d49}.token.property,.token.class-name,.token.constant,.token.symbol{color:#f8c555}.token.selector,.token.important,.token.atrule,.token.keyword,.token.builtin{color:#cc99cd}.token.string,.token.char,.token.attr-value,.token.regex,.token.variable{color:#7ec699}.token.operator,.token.entity,.token.url{color:#67cdcc}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:#0f0}@font-face{font-family:Bebas Neue;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/bebas-neue-latin-ext-400-normal-DWiEslNC.woff2)format("woff2"),url(/build/assets/bebas-neue-latin-ext-400-normal-HFKRJXnW.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Bebas Neue;font-style:normal;font-display:swap;font-weight:400;src:url(/build/assets/bebas-neue-latin-400-normal-9mHNbWWO.woff2)format("woff2"),url(/build/assets/bebas-neue-latin-400-normal-Bi-ndsyu.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(87% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(87% 0 0);--font-bebas-neue:"Bebas Neue", sans-serif}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(14.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(14.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(39.6% .141 25.723);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(26.9% 0 0);--input:oklch(26.9% 0 0);--ring:oklch(43.9% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(98.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(26.9% 0 0);--sidebar-ring:oklch(43.9% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-mask-linear{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-radial{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-conic{syntax:"*";inherits:false;initial-value:linear-gradient(#fff, #fff)}@property --tw-mask-linear-position{syntax:"*";inherits:false;initial-value:0deg}@property --tw-mask-linear-from-position{syntax:"*";inherits:false;initial-value:0%}@property --tw-mask-linear-to-position{syntax:"*";inherits:false;initial-value:100%}@property --tw-mask-linear-from-color{syntax:"*";inherits:false;initial-value:black}@property --tw-mask-linear-to-color{syntax:"*";inherits:false;initial-value:transparent}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}} diff --git a/public/build/assets/appearance-DkF4xOip.js b/public/build/assets/appearance-8Z1L6Aly.js similarity index 83% rename from public/build/assets/appearance-DkF4xOip.js rename to public/build/assets/appearance-8Z1L6Aly.js index 5dc17cc..b79c178 100644 --- a/public/build/assets/appearance-DkF4xOip.js +++ b/public/build/assets/appearance-8Z1L6Aly.js @@ -1 +1 @@ -import{t as e}from"./appearance-tabs-Bbh38TuS.js";import{Wt as t,Yt as n,n as r,qt as i,r as a}from"./app-CVlP31Z1.js";var o=i(),s=t();function c(){let t=(0,o.c)(3),r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,s.jsx)(n,{title:`Appearance settings`}),i=(0,s.jsx)(`h1`,{className:`sr-only`,children:`Appearance settings`}),t[0]=r,t[1]=i):(r=t[0],i=t[1]);let c;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsxs)(s.Fragment,{children:[r,i,(0,s.jsxs)(`div`,{className:`space-y-6`,children:[(0,s.jsx)(a,{variant:`small`,title:`Appearance settings`,description:`Update your account's appearance settings`}),(0,s.jsx)(e,{})]})]}),t[2]=c):c=t[2],c}c.layout={breadcrumbs:[{title:`Appearance settings`,href:r()}]};export{c as default}; \ No newline at end of file +import{t as e}from"./appearance-tabs-BOBvnqrB.js";import{Wt as t,Yt as n,n as r,qt as i,r as a}from"./app-D7MKN1zp.js";var o=i(),s=t();function c(){let t=(0,o.c)(3),r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,s.jsx)(n,{title:`Appearance settings`}),i=(0,s.jsx)(`h1`,{className:`sr-only`,children:`Appearance settings`}),t[0]=r,t[1]=i):(r=t[0],i=t[1]);let c;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,s.jsxs)(s.Fragment,{children:[r,i,(0,s.jsxs)(`div`,{className:`space-y-6`,children:[(0,s.jsx)(a,{variant:`small`,title:`Appearance settings`,description:`Update your account's appearance settings`}),(0,s.jsx)(e,{})]})]}),t[2]=c):c=t[2],c}c.layout={breadcrumbs:[{title:`Appearance settings`,href:r()}]};export{c as default}; \ No newline at end of file diff --git a/public/build/assets/appearance-tabs-Bbh38TuS.js b/public/build/assets/appearance-tabs-BOBvnqrB.js similarity index 90% rename from public/build/assets/appearance-tabs-Bbh38TuS.js rename to public/build/assets/appearance-tabs-BOBvnqrB.js index 3cf6850..3a33e85 100644 --- a/public/build/assets/appearance-tabs-Bbh38TuS.js +++ b/public/build/assets/appearance-tabs-BOBvnqrB.js @@ -1 +1 @@ -import{n as e,t}from"./sun-CDBr7ehg.js";import{G as n,Gt as r,Q as i,Wt as a,qt as o}from"./app-CVlP31Z1.js";var s=n(`Monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),c=o(),l=a();function u(n){let a=(0,c.c)(13),o,u;a[0]===n?(o=a[1],u=a[2]):({className:u,...o}=n,a[0]=n,a[1]=o,a[2]=u);let d=u===void 0?``:u,{appearance:f,updateAppearance:p}=r(),m;a[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=[{value:`light`,icon:t,label:`Light`},{value:`dark`,icon:e,label:`Dark`},{value:`system`,icon:s,label:`System`}],a[3]=m):m=a[3];let h=m,g;a[4]===d?g=a[5]:(g=i(`inline-flex gap-1 rounded-lg bg-background p-1`,d),a[4]=d,a[5]=g);let _;a[6]!==f||a[7]!==p?(_=h.map(e=>{let{value:t,icon:n,label:r}=e;return(0,l.jsxs)(`button`,{onClick:()=>p(t),className:i(`flex items-center rounded-md px-3.5 py-1.5 transition-colors`,f===t?`bg-muted text-foreground shadow-xs`:`bg-muted/15 text-foreground hover:bg-muted`),children:[(0,l.jsx)(n,{className:`-ml-1 h-4 w-4`}),(0,l.jsx)(`span`,{className:`ml-1.5 text-sm`,children:r})]},t)}),a[6]=f,a[7]=p,a[8]=_):_=a[8];let v;return a[9]!==o||a[10]!==g||a[11]!==_?(v=(0,l.jsx)(`div`,{className:g,...o,children:_}),a[9]=o,a[10]=g,a[11]=_,a[12]=v):v=a[12],v}export{u as t}; \ No newline at end of file +import{n as e,t}from"./sun-r0X8DC4y.js";import{G as n,Gt as r,Q as i,Wt as a,qt as o}from"./app-D7MKN1zp.js";var s=n(`Monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),c=o(),l=a();function u(n){let a=(0,c.c)(13),o,u;a[0]===n?(o=a[1],u=a[2]):({className:u,...o}=n,a[0]=n,a[1]=o,a[2]=u);let d=u===void 0?``:u,{appearance:f,updateAppearance:p}=r(),m;a[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=[{value:`light`,icon:t,label:`Light`},{value:`dark`,icon:e,label:`Dark`},{value:`system`,icon:s,label:`System`}],a[3]=m):m=a[3];let h=m,g;a[4]===d?g=a[5]:(g=i(`inline-flex gap-1 rounded-lg bg-background p-1`,d),a[4]=d,a[5]=g);let _;a[6]!==f||a[7]!==p?(_=h.map(e=>{let{value:t,icon:n,label:r}=e;return(0,l.jsxs)(`button`,{onClick:()=>p(t),className:i(`flex items-center rounded-md px-3.5 py-1.5 transition-colors`,f===t?`bg-muted text-foreground shadow-xs`:`bg-muted/15 text-foreground hover:bg-muted`),children:[(0,l.jsx)(n,{className:`-ml-1 h-4 w-4`}),(0,l.jsx)(`span`,{className:`ml-1.5 text-sm`,children:r})]},t)}),a[6]=f,a[7]=p,a[8]=_):_=a[8];let v;return a[9]!==o||a[10]!==g||a[11]!==_?(v=(0,l.jsx)(`div`,{className:g,...o,children:_}),a[9]=o,a[10]=g,a[11]=_,a[12]=v):v=a[12],v}export{u as t}; \ No newline at end of file diff --git a/public/build/assets/badge-BeR0IMEC.js b/public/build/assets/badge-D9nNMnEq.js similarity index 91% rename from public/build/assets/badge-BeR0IMEC.js rename to public/build/assets/badge-D9nNMnEq.js index 0ac31c9..a02308b 100644 --- a/public/build/assets/badge-BeR0IMEC.js +++ b/public/build/assets/badge-D9nNMnEq.js @@ -1 +1 @@ -import{K as e,Q as t,Wt as n,q as r,qt as i,rn as a}from"./app-CVlP31Z1.js";var o=i();a();var s=n(),c=e(`inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`}},defaultVariants:{variant:`default`}});function l(e){let n=(0,o.c)(12),i,a,l,u;n[0]===e?(i=n[1],a=n[2],l=n[3],u=n[4]):({className:i,variant:u,asChild:l,...a}=e,n[0]=e,n[1]=i,n[2]=a,n[3]=l,n[4]=u);let d=l!==void 0&&l?r:`span`,f;n[5]!==i||n[6]!==u?(f=t(c({variant:u}),i),n[5]=i,n[6]=u,n[7]=f):f=n[7];let p;return n[8]!==d||n[9]!==a||n[10]!==f?(p=(0,s.jsx)(d,{"data-slot":`badge`,className:f,...a}),n[8]=d,n[9]=a,n[10]=f,n[11]=p):p=n[11],p}export{l as t}; \ No newline at end of file +import{K as e,Q as t,Wt as n,q as r,qt as i,rn as a}from"./app-D7MKN1zp.js";var o=i();a();var s=n(),c=e(`inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`}},defaultVariants:{variant:`default`}});function l(e){let n=(0,o.c)(12),i,a,l,u;n[0]===e?(i=n[1],a=n[2],l=n[3],u=n[4]):({className:i,variant:u,asChild:l,...a}=e,n[0]=e,n[1]=i,n[2]=a,n[3]=l,n[4]=u);let d=l!==void 0&&l?r:`span`,f;n[5]!==i||n[6]!==u?(f=t(c({variant:u}),i),n[5]=i,n[6]=u,n[7]=f):f=n[7];let p;return n[8]!==d||n[9]!==a||n[10]!==f?(p=(0,s.jsx)(d,{"data-slot":`badge`,className:f,...a}),n[8]=d,n[9]=a,n[10]=f,n[11]=p):p=n[11],p}export{l as t}; \ No newline at end of file diff --git a/public/build/assets/card-BMwhGcsv.js b/public/build/assets/card-C1ekp7Ou.js similarity index 96% rename from public/build/assets/card-BMwhGcsv.js rename to public/build/assets/card-C1ekp7Ou.js index 24f77af..d8c855c 100644 --- a/public/build/assets/card-BMwhGcsv.js +++ b/public/build/assets/card-C1ekp7Ou.js @@ -1 +1 @@ -import{Q as e,Wt as t,qt as n,rn as r}from"./app-CVlP31Z1.js";var i=n();r();var a=t();function o(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function s(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`flex flex-col gap-1.5 px-6`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-header`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function c(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`leading-none font-semibold`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-title`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function l(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`text-muted-foreground text-balance text-sm`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-description`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function u(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`px-6`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-content`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function d(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`flex items-center px-6`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-footer`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}export{s as a,d as i,u as n,c as o,l as r,o as t}; \ No newline at end of file +import{Q as e,Wt as t,qt as n,rn as r}from"./app-D7MKN1zp.js";var i=n();r();var a=t();function o(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function s(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`flex flex-col gap-1.5 px-6`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-header`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function c(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`leading-none font-semibold`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-title`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function l(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`text-muted-foreground text-balance text-sm`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-description`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function u(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`px-6`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-content`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function d(t){let n=(0,i.c)(8),r,o;n[0]===t?(r=n[1],o=n[2]):({className:r,...o}=t,n[0]=t,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=e(`flex items-center px-6`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,a.jsx)(`div`,{"data-slot":`card-footer`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}export{s as a,d as i,u as n,c as o,l as r,o as t}; \ No newline at end of file diff --git a/public/build/assets/check-BBvDdM_9.js b/public/build/assets/check-BBvDdM_9.js new file mode 100644 index 0000000..253b054 --- /dev/null +++ b/public/build/assets/check-BBvDdM_9.js @@ -0,0 +1 @@ +import{G as e}from"./app-D7MKN1zp.js";var t=e(`Check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/check-CCTwZBIw.js b/public/build/assets/check-CCTwZBIw.js deleted file mode 100644 index 638c8ab..0000000 --- a/public/build/assets/check-CCTwZBIw.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e}from"./app-CVlP31Z1.js";var t=e(`Check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/chevron-down-Cx1PhGaQ.js b/public/build/assets/chevron-down-Cx1PhGaQ.js deleted file mode 100644 index 6cc3d01..0000000 --- a/public/build/assets/chevron-down-Cx1PhGaQ.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e}from"./app-CVlP31Z1.js";var t=e(`ChevronDown`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/chevron-down-DuPWSveW.js b/public/build/assets/chevron-down-DuPWSveW.js new file mode 100644 index 0000000..e52705a --- /dev/null +++ b/public/build/assets/chevron-down-DuPWSveW.js @@ -0,0 +1 @@ +import{G as e}from"./app-D7MKN1zp.js";var t=e(`ChevronDown`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/color-utils-ePYKqy3O.js b/public/build/assets/color-utils-DTvyGxAC.js similarity index 80% rename from public/build/assets/color-utils-ePYKqy3O.js rename to public/build/assets/color-utils-DTvyGxAC.js index 77e42b3..fe7881b 100644 --- a/public/build/assets/color-utils-ePYKqy3O.js +++ b/public/build/assets/color-utils-DTvyGxAC.js @@ -1,4 +1,4 @@ var e=(e,t)=>{if(typeof e==`number`){if(t===3)return{mode:`rgb`,r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:`rgb`,r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:`rgb`,r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:`rgb`,r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},t={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},n=n=>e(t[n.toLowerCase()],6),r=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,i=t=>{let n;return(n=t.match(r))?e(parseInt(n[1],16),n[1].length):void 0},a=`([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)`;`${a}`;var o=`${a}%`;`${a}`;var s=`(?:${a}%|${a})`,c=`(?:${a}%|${a}|none)`,l=`(?:${a}(deg|grad|rad|turn)|${a})`;`${a}${a}`;var u=`\\s*,\\s*`;RegExp(`^`+c+`$`);var d=RegExp(`^rgba?\\(\\s*${a}${u}${a}${u}${a}\\s*(?:,\\s*${s}\\s*)?\\)$`),f=RegExp(`^rgba?\\(\\s*${o}${u}${o}${u}${o}\\s*(?:,\\s*${s}\\s*)?\\)$`),p=e=>{let t={mode:`rgb`},n;if(n=e.match(d))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(f))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]===void 0?n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))):t.alpha=Math.max(0,Math.min(1,n[4]/100)),t},m=(e,t)=>e===void 0?void 0:typeof e==`object`?e.mode===void 0?t?{...e,mode:t}:void 0:e:le(e),h=(e=`rgb`)=>t=>(t=m(t,e))===void 0?void 0:t.mode===e?t:g[t.mode][e]?g[t.mode][e](t):e===`rgb`?g[t.mode].rgb(t):g.rgb[e](g[t.mode].rgb(t)),g={},_={},v=[],y={},b=e=>e,x=e=>(g[e.mode]={...g[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{g[t]||(g[t]={}),g[t][e.mode]=e.fromMode[t]}),e.ranges||={},e.difference||={},e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]==`function`&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=b)}),_[e.mode]=e,(e.parse||[]).forEach(t=>{te(t,e.mode)}),h(e.mode)),ee=e=>_[e],te=(e,t)=>{if(typeof e==`string`){if(!t)throw Error(`'mode' required when 'parser' is a string`);y[e]=t}else typeof e==`function`&&v.indexOf(e)<0&&v.push(e)},S=/[^\x00-\x7F]|[a-zA-Z_]/,ne=/[^\x00-\x7F]|[-\w]/,C={Function:`function`,Ident:`ident`,Number:`number`,Percentage:`percentage`,ParenClose:`)`,None:`none`,Hue:`hue`,Alpha:`alpha`},w=0;function T(e){let t=e[w],n=e[w+1];return t===`-`||t===`+`?/\d/.test(n)||n===`.`&&/\d/.test(e[w+2]):t===`.`?/\d/.test(n):/\d/.test(t)}function E(e){if(w>=e.length)return!1;let t=e[w];if(S.test(t))return!0;if(t===`-`){if(e.length-w<2)return!1;let t=e[w+1];return!!(t===`-`||S.test(t))}return!1}var re={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function D(e){let t=``;if((e[w]===`-`||e[w]===`+`)&&(t+=e[w++]),t+=O(e),e[w]===`.`&&/\d/.test(e[w+1])&&(t+=e[w++]+O(e)),(e[w]===`e`||e[w]===`E`)&&((e[w+1]===`-`||e[w+1]===`+`)&&/\d/.test(e[w+2])?t+=e[w++]+e[w++]+O(e):/\d/.test(e[w+1])&&(t+=e[w++]+O(e))),E(e)){let n=k(e);return n===`deg`||n===`rad`||n===`turn`||n===`grad`?{type:C.Hue,value:t*re[n]}:void 0}return e[w]===`%`?(w++,{type:C.Percentage,value:+t}):{type:C.Number,value:+t}}function O(e){let t=``;for(;/\d/.test(e[w]);)t+=e[w++];return t}function k(e){let t=``;for(;w4)){if(n.length===4){if(n[3].type!==C.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:C.None,value:void 0}),n.every(e=>e.type!==C.Alpha)?n:void 0}}function ce(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==C.Function)return;let r=se(e,t);if(r)return r.unshift(n.value),r}var le=e=>{if(typeof e!=`string`)return;let t=ae(e),n=t?ce(t,!0):void 0,r,i=0,a=v.length;for(;ie===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0,fe=(e,t,n)=>e+n*(t-e),pe=e=>{let t=[];for(let n=0;nt=>{let n=pe(t);return t=>{let r=t*n.length,i=t>=1?n.length-1:Math.max(Math.floor(r),0),a=n[i];return a===void 0?void 0:e(a[0],a[1],r-i)}})(fe),j=e=>{let t=!1,n=e.map(e=>e===void 0?1:(t=!0,e));return t?n:e},M={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[ue,i,p,n,de,`srgb`],serialize:`srgb`,interpolate:{r:A,g:A,b:A,alpha:{use:A,fixup:j}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},me=(e=0)=>Math.abs(e)**(563/256)*Math.sign(e),he=e=>{let t=me(e.r),n=me(e.g),r=me(e.b),i={mode:`xyz65`,x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},ge=e=>Math.abs(e)**(256/563)*Math.sign(e),_e=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`a98`,r:ge(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:ge(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:ge(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},ve=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4},N=({r:e,g:t,b:n,alpha:r})=>{let i={mode:`lrgb`,r:ve(e),g:ve(t),b:ve(n)};return r!==void 0&&(i.alpha=r),i},P=e=>{let{r:t,g:n,b:r,alpha:i}=N(e),a={mode:`xyz65`,x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(a.alpha=i),a},ye=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92},F=({r:e,g:t,b:n,alpha:r},i=`rgb`)=>{let a={mode:i,r:ye(e),g:ye(t),b:ye(n)};return r!==void 0&&(a.alpha=r),a},I=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=F({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},be={...M,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:e=>_e(P(e)),xyz65:_e},toMode:{rgb:e=>I(he(e)),xyz65:he}},L=e=>(e%=360)<0?e+360:e,xe=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let a=L(n);return r===0||e[r-1]===void 0?a:t(a-L(i[r-1]))}).reduce((e,t)=>!e.length||t===void 0||e[e.length-1]===void 0?(e.push(t),e):(e.push(t+e[e.length-1]),e),[]),R=e=>xe(e,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),z=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Se=Math.PI/180,Ce=180/Math.PI,we=z[3]*z[4],Te=z[1]*z[4],Ee=z[1]*z[2]-z[0]*z[3],De=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(Ee*n+e*we-t*Te)/(Ee+we-Te),a=n-i,o=(z[4]*(t-i)-z[2]*a)/z[3],s={mode:`cubehelix`,l:i,s:i===0||i===1?void 0:Math.sqrt(a*a+o*o)/(z[4]*i*(1-i))};return s.s&&(s.h=Math.atan2(o,a)*Ce-120),r!==void 0&&(s.alpha=r),s},Oe=({h:e,s:t,l:n,alpha:r})=>{let i={mode:`rgb`};e=(e===void 0?0:e+120)*Se,n===void 0&&(n=0);let a=t===void 0?0:t*n*(1-n),o=Math.cos(e),s=Math.sin(e);return i.r=n+a*(z[0]*o+z[1]*s),i.g=n+a*(z[2]*o+z[3]*s),i.b=n+a*(z[4]*o+z[5]*s),r!==void 0&&(i.alpha=r),i},B=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=L(e.h),r=L(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},ke=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=L(e.h),r=L(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},Ae=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=L(e.h),r=L(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},V=e=>{let t=e.reduce((e,t)=>{if(t!==void 0){let n=t*Math.PI/180;e.sin+=Math.sin(n),e.cos+=Math.cos(n)}return e},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},je={mode:`cubehelix`,channels:[`h`,`s`,`l`,`alpha`],parse:[`--cubehelix`],serialize:`--cubehelix`,ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:De},toMode:{rgb:Oe},interpolate:{h:{use:A,fixup:R},s:A,l:A,alpha:{use:A,fixup:j}},difference:{h:B},average:{h:V}},H=({l:e,a:t,b:n,alpha:r},i=`lch`)=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),o={mode:i,l:e,c:a};return a&&(o.h=L(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},U=({l:e,c:t,h:n,alpha:r},i=`lab`)=>{n===void 0&&(n=0);let a={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a},Me=29**3/3**3,Ne=6**3/29**3,W={X:.3457/.3585,Y:1,Z:.2958/.3585},G={X:.3127/.329,Y:1,Z:.3583/.329},Pe=e=>e**3>Ne?e**3:(116*e-16)/Me,Fe=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz65`,x:Pe(a)*G.X,y:Pe(i)*G.Y,z:Pe(o)*G.Z};return r!==void 0&&(s.alpha=r),s},Ie=e=>I(Fe(e)),Le=e=>e>Ne?Math.cbrt(e):(Me*e+16)/116,Re=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Le(e/G.X),a=Le(t/G.Y),o=Le(n/G.Z),s={mode:`lab65`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},ze=e=>{let t=Re(P(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},K=26/180*Math.PI,Be=Math.cos(K),Ve=Math.sin(K),He=100/Math.log(139/100),Ue=({l:e,c:t,h:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`lab65`,l:(Math.exp(e*1/He)-1)/.0039},a=(Math.exp(.0435*t*1*1)-1)/.075,o=a*Math.cos(n/180*Math.PI-K),s=a*Math.sin(n/180*Math.PI-K);return i.a=o*Be-s/.83*Ve,i.b=o*Ve+s/.83*Be,r!==void 0&&(i.alpha=r),i},We=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=t*Be+n*Ve,a=.83*(n*Be-t*Ve),o=Math.sqrt(i*i+a*a),s={mode:`dlch`,l:He/1*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*1*1)};return s.c&&(s.h=L((Math.atan2(a,i)+K)/Math.PI*180)),r!==void 0&&(s.alpha=r),s},Ge=e=>Ue(H(e,`dlch`)),Ke=e=>U(We(e),`dlab`),qe={mode:`dlab`,parse:[`--din99o-lab`],serialize:`--din99o-lab`,toMode:{lab65:Ge,rgb:e=>Ie(Ge(e))},fromMode:{lab65:Ke,rgb:e=>Ke(ze(e))},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:A,a:A,b:A,alpha:{use:A,fixup:j}}},Je={mode:`dlch`,parse:[`--din99o-lch`],serialize:`--din99o-lch`,toMode:{lab65:Ue,dlab:e=>U(e,`dlab`),rgb:e=>Ie(Ue(e))},fromMode:{lab65:We,dlab:e=>H(e,`dlch`),rgb:e=>We(ze(e))},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:A,c:A,h:{use:A,fixup:R},alpha:{use:A,fixup:j}},difference:{h:Ae},average:{h:V}};function Ye({h:e,s:t,i:n,alpha:r}){e=L(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n*(1+t*(3/(2-i)-1)),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1-t)};break;case 1:a={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1+t*(3/(2-i)-1)),b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n*(1+t*(3/(2-i)-1)),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;case 3:a={r:n*(1-t),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1+t*(3/(2-i)-1))};break;case 4:a={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3/(2-i)-1))};break;case 5:a={r:n*(1+t*(3/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function Xe({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsi`,s:e+t+n===0?0:1-3*a/(e+t+n),i:(e+t+n)/3};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t{switch(t){case`deg`:return+e;case`rad`:return e/Math.PI*180;case`grad`:return e/10*9;case`turn`:return e*360}},tt=RegExp(`^hsla?\\(\\s*${l}${u}${o}${u}${o}\\s*(?:,\\s*${s}\\s*)?\\)$`),nt=e=>{let t=e.match(tt);if(!t)return;let n={mode:`hsl`};return t[3]===void 0?t[1]!==void 0&&t[2]!==void 0&&(n.h=et(t[1],t[2])):n.h=+t[3],t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]===void 0?t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))):n.alpha=Math.max(0,Math.min(1,t[6]/100)),n};function rt(e,t){if(!t||t[0]!==`hsl`&&t[0]!==`hsla`)return;let n={mode:`hsl`},[,r,i,a,o]=t;if(r.type!==C.None){if(r.type===C.Percentage)return;n.h=r.value}if(i.type!==C.None){if(i.type===C.Hue)return;n.s=i.value/100}if(a.type!==C.None){if(a.type===C.Hue)return;n.l=a.value/100}return o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var it={mode:`hsl`,toMode:{rgb:Qe},fromMode:{rgb:$e},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[rt,nt],serialize:e=>`hsl(${e.h===void 0?`none`:e.h} ${e.s===void 0?`none`:e.s*100+`%`} ${e.l===void 0?`none`:e.l*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:A,fixup:R},s:A,l:A,alpha:{use:A,fixup:j}},difference:{h:B},average:{h:V}};function at({h:e,s:t,v:n,alpha:r}){e=L(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:a={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:a={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:a={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:a={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function ot({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsv`,s:i===0?0:1-a/i,v:i};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t1){let e=t+n;t/=e,n/=e}return at({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function lt(e){let t=ot(e);if(t===void 0)return;let n=t.s===void 0?0:t.s,r=t.v===void 0?0:t.v,i={mode:`hwb`,w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function ut(e,t){if(!t||t[0]!==`hwb`)return;let n={mode:`hwb`},[,r,i,a,o]=t;if(r.type!==C.None){if(r.type===C.Percentage)return;n.h=r.value}if(i.type!==C.None){if(i.type===C.Hue)return;n.w=i.value/100}if(a.type!==C.None){if(a.type===C.Hue)return;n.b=a.value/100}return o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var dt={mode:`hwb`,toMode:{rgb:ct},fromMode:{rgb:lt},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[ut],serialize:e=>`hwb(${e.h===void 0?`none`:e.h} ${e.w===void 0?`none`:e.w*100+`%`} ${e.b===void 0?`none`:e.b*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:A,fixup:R},w:A,b:A,alpha:{use:A,fixup:j}},difference:{h:ke},average:{h:V}},ft=.1593017578125,pt=78.84375,mt=.8359375,ht=18.8515625,gt=18.6875;function _t(e){if(e<0)return 0;let t=e**(1/pt);return 1e4*(Math.max(0,t-mt)/(ht-gt*t))**(1/ft)}function vt(e){if(e<0)return 0;let t=(e/1e4)**ft;return((mt+ht*t)/(1+gt*t))**+pt}var yt=e=>Math.max(e/203,0),bt=({i:e,t,p:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=_t(e+.008609037037932761*t+.11102962500302593*n),a=_t(e-.00860903703793275*t-.11102962500302599*n),o=_t(e+.5600313357106791*t-.32062717498731885*n),s={mode:`xyz65`,x:yt(2.070152218389422*i-1.3263473389671556*a+.2066510476294051*o),y:yt(.3647385209748074*i+.680566024947227*a-.0453045459220346*o),z:yt(-.049747207535812*i-.0492609666966138*a+1.1880659249923042*o)};return r!==void 0&&(s.alpha=r),s},xt=(e=0)=>Math.max(e*203,0),St=({x:e,y:t,z:n,alpha:r})=>{let i=xt(e),a=xt(t),o=xt(n),s=vt(.3592832590121217*i+.6976051147779502*a-.0358915932320289*o),c=vt(-.1920808463704995*i+1.1004767970374323*a+.0753748658519118*o),l=vt(.0070797844607477*i+.0748396662186366*a+.8433265453898765*o),u={mode:`itp`,i:.5*s+.5*c,t:1.61376953125*s-3.323486328125*c+1.709716796875*l,p:4.378173828125*s-4.24560546875*c-.132568359375*l};return r!==void 0&&(u.alpha=r),u},Ct={mode:`itp`,channels:[`i`,`t`,`p`,`alpha`],parse:[`--ictcp`],serialize:`--ictcp`,toMode:{xyz65:bt,rgb:e=>I(bt(e))},fromMode:{xyz65:St,rgb:e=>St(P(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:A,t:A,p:A,alpha:{use:A,fixup:j}}},wt=134.03437499999998,Tt=16295499532821565e-27,Et=e=>{if(e<0)return 0;let t=(e/1e4)**ft;return((mt+ht*t)/(1+gt*t))**+wt},Dt=(e=0)=>Math.max(e*203,0),Ot=({x:e,y:t,z:n,alpha:r})=>{e=Dt(e),t=Dt(t),n=Dt(n);let i=1.15*e-.15*n,a=.66*t+.34*e,o=Et(.41478972*i+.579999*a+.014648*n),s=Et(-.20151*i+1.120649*a+.0531008*n),c=Et(-.0166008*i+.2648*a+.6684799*n),l=(o+s)/2,u={mode:`jab`,j:.44*l/(1-.56*l)-Tt,a:3.524*o-4.066708*s+.542708*c,b:.199076*o+1.096799*s-1.295875*c};return r!==void 0&&(u.alpha=r),u},kt=134.03437499999998,At=16295499532821565e-27,jt=e=>{if(e<0)return 0;let t=e**(1/kt);return 1e4*((mt-t)/(gt*t-ht))**(1/ft)},Mt=e=>e/203,Nt=({j:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+At)/(.44+.56*(e+At)),a=jt(i+.13860504*t+.058047316*n),o=jt(i-.13860504*t-.058047316*n),s=jt(i-.096019242*t-.8118919*n),c={mode:`xyz65`,x:Mt(1.661373024652174*a-.914523081304348*o+.23136208173913045*s),y:Mt(-.3250758611844533*a+1.571847026732543*o-.21825383453227928*s),z:Mt(-.090982811*a-.31272829*o+1.5227666*s)};return r!==void 0&&(c.alpha=r),c},Pt=e=>{let t=Ot(P(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Ft=e=>I(Nt(e)),It={mode:`jab`,channels:[`j`,`a`,`b`,`alpha`],parse:[`--jzazbz`],serialize:`--jzazbz`,fromMode:{rgb:Pt,xyz65:Ot},toMode:{rgb:Ft,xyz65:Nt},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:A,a:A,b:A,alpha:{use:A,fixup:j}}},Lt=({j:e,a:t,b:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),a={mode:`jch`,j:e,c:i};return i&&(a.h=L(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(a.alpha=r),a},Rt=({j:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:`jab`,j:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},zt={mode:`jch`,parse:[`--jzczhz`],serialize:`--jzczhz`,toMode:{jab:Rt,rgb:e=>Ft(Rt(e))},fromMode:{rgb:e=>Lt(Pt(e)),jab:Lt},channels:[`j`,`c`,`h`,`alpha`],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:A,fixup:R},c:A,j:A,alpha:{use:A,fixup:j}},difference:{h:Ae},average:{h:V}},Bt=29**3/3**3,Vt=6**3/29**3,Ht=e=>e**3>Vt?e**3:(116*e-16)/Bt,Ut=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz50`,x:Ht(a)*W.X,y:Ht(i)*W.Y,z:Ht(o)*W.Z};return r!==void 0&&(s.alpha=r),s},q=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=F({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},Wt=e=>q(Ut(e)),J=e=>{let{r:t,g:n,b:r,alpha:i}=N(e),a={mode:`xyz50`,x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(a.alpha=i),a},Gt=e=>e>Vt?Math.cbrt(e):(Bt*e+16)/116,Kt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Gt(e/W.X),a=Gt(t/W.Y),o=Gt(n/W.Z),s={mode:`lab`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},qt=e=>{let t=Kt(J(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};function Jt(e,t){if(!t||t[0]!==`lab`)return;let n={mode:`lab`},[,r,i,a,o]=t;if(!(r.type===C.Hue||i.type===C.Hue||a.type===C.Hue))return r.type!==C.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==C.None&&(n.a=i.type===C.Number?i.value:i.value*125/100),a.type!==C.None&&(n.b=a.type===C.Number?a.value:a.value*125/100),o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var Yt={mode:`lab`,toMode:{xyz50:Ut,rgb:Wt},fromMode:{xyz50:Kt,rgb:qt},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Jt],serialize:e=>`lab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{l:A,a:A,b:A,alpha:{use:A,fixup:j}}},Xt={...Yt,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:Fe,rgb:Ie},fromMode:{xyz65:Re,rgb:ze},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};function Zt(e,t){if(!t||t[0]!==`lch`)return;let n={mode:`lch`},[,r,i,a,o]=t;if(r.type!==C.None){if(r.type===C.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==C.None&&(n.c=Math.max(0,i.type===C.Number?i.value:i.value*150/100)),a.type!==C.None){if(a.type===C.Percentage)return;n.h=a.value}return o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var Qt={mode:`lch`,toMode:{lab:U,rgb:e=>Wt(U(e))},fromMode:{rgb:e=>H(qt(e)),lab:H},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Zt],serialize:e=>`lch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:A,fixup:R},c:A,l:A,alpha:{use:A,fixup:j}},difference:{h:Ae},average:{h:V}},$t={...Qt,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:e=>U(e,`lab65`),rgb:e=>Ie(U(e,`lab65`))},fromMode:{rgb:e=>H(ze(e),`lch65`),lab65:e=>H(e,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}},en=({l:e,u:t,v:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),a={mode:`lchuv`,l:e,c:i};return i&&(a.h=L(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(a.alpha=r),a},tn=({l:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:`luv`,l:e,u:t?t*Math.cos(n/180*Math.PI):0,v:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},nn=(e,t,n)=>4*e/(e+15*t+3*n),rn=(e,t,n)=>9*t/(e+15*t+3*n),an=nn(W.X,W.Y,W.Z),on=rn(W.X,W.Y,W.Z),sn=e=>e<=Vt?Bt*e:116*Math.cbrt(e)-16,cn=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=sn(t/W.Y),a=nn(e,t,n),o=rn(e,t,n);!isFinite(a)||!isFinite(o)?i=a=o=0:(a=13*i*(a-an),o=13*i*(o-on));let s={mode:`luv`,l:i,u:a,v:o};return r!==void 0&&(s.alpha=r),s},ln=(e,t,n)=>4*e/(e+15*t+3*n),un=(e,t,n)=>9*t/(e+15*t+3*n),dn=ln(W.X,W.Y,W.Z),fn=un(W.X,W.Y,W.Z),pn=({l:e,u:t,v:n,alpha:r})=>{if(e===void 0&&(e=0),e===0)return{mode:`xyz50`,x:0,y:0,z:0};t===void 0&&(t=0),n===void 0&&(n=0);let i=t/(13*e)+dn,a=n/(13*e)+fn,o=W.Y*(e<=8?e/Bt:((e+16)/116)**3),s={mode:`xyz50`,x:9*i*o/(4*a),y:o,z:o*(12-3*i-20*a)/(4*a)};return r!==void 0&&(s.alpha=r),s},mn={mode:`lchuv`,toMode:{luv:tn,rgb:e=>q(pn(tn(e)))},fromMode:{rgb:e=>en(cn(J(e))),luv:en},channels:[`l`,`c`,`h`,`alpha`],parse:[`--lchuv`],serialize:`--lchuv`,ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:A,fixup:R},c:A,l:A,alpha:{use:A,fixup:j}},difference:{h:Ae},average:{h:V}},hn={...M,mode:`lrgb`,toMode:{rgb:F},fromMode:{rgb:N},parse:[`srgb-linear`],serialize:`srgb-linear`},gn={mode:`luv`,toMode:{xyz50:pn,rgb:e=>q(pn(e))},fromMode:{xyz50:cn,rgb:e=>cn(J(e))},channels:[`l`,`u`,`v`,`alpha`],parse:[`--luv`],serialize:`--luv`,ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:A,u:A,v:A,alpha:{use:A,fixup:j}}},_n=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),s={mode:`oklab`,l:.210454268309314*i+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*i-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*i+.7827717124575296*a-.8086757549230774*o};return r!==void 0&&(s.alpha=r),s},vn=e=>{let t=_n(N(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Y=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+.3963377773761749*t+.2158037573099136*n)**3,a=(e-.1055613458156586*t-.0638541728258133*n)**3,o=(e-.0894841775298119*t-1.2914855480194092*n)**3,s={mode:`lrgb`,r:4.076741636075957*i-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*i+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*i-.7034186179359362*a+1.7076146940746117*o};return r!==void 0&&(s.alpha=r),s},yn=e=>F(Y(e));function bn(e){let t=.206,n=.03,r=(1+t)/(1+n);return .5*(r*e-t+Math.sqrt((r*e-t)*(r*e-t)+4*n*r*e))}function xn(e){let t=.206,n=.03;return(1+t)/(1+n),(e*e+t*e)/(1.170873786407767*(e+n))}function Sn(e,t){let n,r,i,a,o,s,c,l;-1.88170328*e-.80936493*t>1?(n=1.19086277,r=1.76576728,i=.59662641,a=.75515197,o=.56771245,s=4.0767416621,c=-3.3077115913,l=.2309699292):1.81444104*e-1.19445276*t>1?(n=.73956515,r=-.45954404,i=.08285427,a=.1254107,o=.14503204,s=-1.2684380046,c=2.6097574011,l=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,a=-.50559606,o=.00692167,s=-.0041960863,c=-.7034186147,l=1.707614701);let u=n+r*e+i*t+a*e*e+o*e*t,d=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t;{let e=1+u*d,t=1+u*f,n=1+u*p,r=e*e*e,i=t*t*t,a=n*n*n,o=3*d*e*e,m=3*f*t*t,h=3*p*n*n,g=6*d*d*e,_=6*f*f*t,v=6*p*p*n,y=s*r+c*i+l*a,b=s*o+c*m+l*h,x=s*g+c*_+l*v;u-=y*b/(b*b-.5*y*x)}return u}function Cn(e,t){let n=Sn(e,t),r=Y({l:1,a:n*e,b:n*t}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b));return[i,i*n]}function wn(e,t,n,r,i,a=null){a||=Cn(e,t);let o;if((n-i)*a[1]-(a[0]-i)*r<=0)o=a[1]*i/(r*a[0]+a[1]*(i-n));else{o=a[1]*(i-1)/(r*(a[0]-1)+a[1]*(i-n));{let a=n-i,s=r,c=.3963377774*e+.2158037573*t,l=-.1055613458*e-.0638541728*t,u=-.0894841775*e-1.291485548*t,d=a+s*c,f=a+s*l,p=a+s*u;{let e=i*(1-o)+o*n,t=o*r,a=e+t*c,s=e+t*l,m=e+t*u,h=a*a*a,g=s*s*s,_=m*m*m,v=3*d*a*a,y=3*f*s*s,b=3*p*m*m,x=6*d*d*a,ee=6*f*f*s,te=6*p*p*m,S=4.0767416621*h-3.3077115913*g+.2309699292*_-1,ne=4.0767416621*v-3.3077115913*y+.2309699292*b,C=4.0767416621*x-3.3077115913*ee+.2309699292*te,w=ne/(ne*ne-.5*S*C),T=-S*w,E=-1.2684380046*h+2.6097574011*g-.3413193965*_-1,re=-1.2684380046*v+2.6097574011*y-.3413193965*b,D=-1.2684380046*x+2.6097574011*ee-.3413193965*te,O=re/(re*re-.5*E*D),k=-E*O,ie=-.0041960863*h-.7034186147*g+1.707614701*_-1,ae=-.0041960863*v-.7034186147*y+1.707614701*b,oe=-.0041960863*x-.7034186147*ee+1.707614701*te,se=ae/(ae*ae-.5*ie*oe),ce=-ie*se;T=w>=0?T:1e6,k=O>=0?k:1e6,ce=se>=0?ce:1e6,o+=Math.min(T,Math.min(k,ce))}}}return o}function Tn(e,t,n=null){n||=Cn(e,t);let r=n[0],i=n[1];return[i/r,i/(1-r)]}function En(e,t,n){let r=Cn(t,n),i=wn(t,n,e,1,e,r),a=Tn(t,n,r),o=.11516993+1/(7.4477897+4.1590124*n+t*(-2.19557347+1.75198401*n+t*(-2.13704948-10.02301043*n+t*(-4.24894561+5.38770819*n+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*n+t*(.40370612+.90148123*n+t*(-.27087943+.6122399*n+t*(.00299215-.45399568*n-.14661872*t)))),c=i/Math.min(e*a[0],(1-e)*a[1]),l=e*o,u=(1-e)*s,d=.9*c*Math.sqrt(Math.sqrt(1/(1/(l*l*l*l)+1/(u*u*u*u))));return l=e*.4,u=(1-e)*.8,[Math.sqrt(1/(1/(l*l)+1/(u*u))),d,i]}function Dn(e){let t=e.l===void 0?0:e.l,n=e.a===void 0?0:e.a,r=e.b===void 0?0:e.b,i={mode:`okhsl`,l:bn(t)};e.alpha!==void 0&&(i.alpha=e.alpha);let a=Math.sqrt(n*n+r*r);if(!a)return i.s=0,i;let[o,s,c]=En(t,n/a,r/a),l;if(aDn(vn(e))},toMode:{oklab:On,rgb:e=>yn(On(e))}};function An(e){let t=e.l===void 0?0:e.l,n=e.a===void 0?0:e.a,r=e.b===void 0?0:e.b,i=Math.sqrt(n*n+r*r),a=i?n/i:1,o=i?r/i:1,[s,c]=Tn(a,o),l=.5,u=1-l/s,d=c/(i+t*c),f=d*t,p=d*i,m=xn(f),h=p*m/f,g=Y({l:m,a:a*h,b:o*h}),_=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));t/=_,i=i/_*bn(t)/t,t=bn(t);let v={mode:`okhsv`,s:i?(l+c)*p/(c*l+c*u*p):0,v:t?t/f:0};return v.s&&(v.h=L(Math.atan2(r,n)*180/Math.PI)),e.alpha!==void 0&&(v.alpha=e.alpha),v}function jn(e){let t={mode:`oklab`};e.alpha!==void 0&&(t.alpha=e.alpha);let n=e.h===void 0?0:e.h,r=e.s===void 0?0:e.s,i=e.v===void 0?0:e.v,a=Math.cos(n/180*Math.PI),o=Math.sin(n/180*Math.PI),[s,c]=Tn(a,o),l=.5,u=1-l/s,d=1-r*l/(l+c-c*u*r),f=r*c*l/(l+c-c*u*r),p=xn(d),m=f*p/d,h=Y({l:p,a:a*m,b:o*m}),g=Math.cbrt(1/Math.max(h.r,h.g,h.b,0)),_=xn(i*d),v=f*_/d;return t.l=_*g,t.a=v*a*g,t.b=v*o*g,t}var Mn={...st,mode:`okhsv`,channels:[`h`,`s`,`v`,`alpha`],parse:[`--okhsv`],serialize:`--okhsv`,fromMode:{oklab:An,rgb:e=>An(vn(e))},toMode:{oklab:jn,rgb:e=>yn(jn(e))}};function Nn(e,t){if(!t||t[0]!==`oklab`)return;let n={mode:`oklab`},[,r,i,a,o]=t;if(!(r.type===C.Hue||i.type===C.Hue||a.type===C.Hue))return r.type!==C.None&&(n.l=Math.min(Math.max(0,r.type===C.Number?r.value:r.value/100),1)),i.type!==C.None&&(n.a=i.type===C.Number?i.value:i.value*.4/100),a.type!==C.None&&(n.b=a.type===C.Number?a.value:a.value*.4/100),o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var Pn={...Yt,mode:`oklab`,toMode:{lrgb:Y,rgb:yn},fromMode:{lrgb:_n,rgb:vn},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Nn],serialize:e=>`oklab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`};function Fn(e,t){if(!t||t[0]!==`oklch`)return;let n={mode:`oklch`},[,r,i,a,o]=t;if(r.type!==C.None){if(r.type===C.Hue)return;n.l=Math.min(Math.max(0,r.type===C.Number?r.value:r.value/100),1)}if(i.type!==C.None&&(n.c=Math.max(0,i.type===C.Number?i.value:i.value*.4/100)),a.type!==C.None){if(a.type===C.Percentage)return;n.h=a.value}return o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var In={...Qt,mode:`oklch`,toMode:{oklab:e=>U(e,`oklab`),rgb:e=>yn(U(e,`oklab`))},fromMode:{rgb:e=>H(vn(e),`oklch`),oklab:e=>H(e,`oklch`)},parse:[Fn],serialize:e=>`oklch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},Ln=e=>{let{r:t,g:n,b:r,alpha:i}=N(e),a={mode:`xyz65`,x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(a.alpha=i),a},Rn=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=F({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},`p3`);return r!==void 0&&(i.alpha=r),i},zn={...M,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:e=>Rn(P(e)),xyz65:Rn},toMode:{rgb:e=>I(Ln(e)),xyz65:Ln}},Bn=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*t**(1/1.8):16*e},Vn=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`prophoto`,r:Bn(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:Bn(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:Bn(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},Hn=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*t**1.8:e/16},Un=e=>{let t=Hn(e.r),n=Hn(e.g),r=Hn(e.b),i={mode:`xyz50`,x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Wn={...M,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:Vn,rgb:e=>Vn(J(e))},toMode:{xyz50:Un,rgb:e=>q(Un(e))}},Gn=1.09929682680944,Kn=.018053968510807,qn=e=>{let t=Math.abs(e);return t>Kn?(Math.sign(e)||1)*(Gn*t**.45-(Gn-1)):4.5*e},Jn=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rec2020`,r:qn(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:qn(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:qn(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},Yn=1.09929682680944,Xn=.018053968510807,Zn=(e=0)=>{let t=Math.abs(e);return t{let t=Zn(e.r),n=Zn(e.g),r=Zn(e.b),i={mode:`xyz65`,x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},$n={...M,mode:`rec2020`,fromMode:{xyz65:Jn,rgb:e=>Jn(P(e))},toMode:{xyz65:Qn,rgb:e=>I(Qn(e))},parse:[`rec2020`],serialize:`rec2020`},X=.0037930732552754493,er=Math.cbrt(X),tr=e=>Math.cbrt(e)-er,nr=e=>{let{r:t,g:n,b:r,alpha:i}=N(e),a=tr(.3*t+.622*n+.078*r+X),o=tr(.23*t+.692*n+.078*r+X),s=tr(.2434226892454782*t+.2047674442449682*n+.5518098665095535*r+X),c={mode:`xyb`,x:(a-o)/2,y:(a+o)/2,b:s-(a+o)/2};return i!==void 0&&(c.alpha=i),c},rr=e=>(e+er)**3,ir={mode:`xyb`,channels:[`x`,`y`,`b`,`alpha`],parse:[`--xyb`],serialize:`--xyb`,toMode:{rgb:({x:e,y:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=rr(e+t)-X,a=rr(t-e)-X,o=rr(n+t)-X,s=F({r:11.031566904639861*i-9.866943908131562*a-.16462299650829934*o,g:-3.2541473810744237*i+4.418770377582723*a-.16462299650829934*o,b:-3.6588512867136815*i+2.7129230459360922*a+1.9459282407775895*o});return r!==void 0&&(s.alpha=r),s}},fromMode:{rgb:nr},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:A,y:A,b:A,alpha:{use:A,fixup:j}}},ar={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:q,lab:Kt},fromMode:{rgb:J,lab:Ut},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:A,y:A,z:A,alpha:{use:A,fixup:j}}},or={mode:`xyz65`,toMode:{rgb:I,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz50`,x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(a.alpha=i),a}},fromMode:{rgb:P,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz65`,x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(a.alpha=i),a}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:[`x`,`y`,`z`,`alpha`],parse:[`xyz`,`xyz-d65`],serialize:`xyz-d65`,interpolate:{x:A,y:A,z:A,alpha:{use:A,fixup:j}}},sr={mode:`yiq`,toMode:{rgb:({y:e,i:t,q:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rgb`,r:e+.95608445*t+.6208885*n,g:e-.27137664*t-.6486059*n,b:e-1.10561724*t+1.70250126*n};return r!==void 0&&(i.alpha=r),i}},fromMode:{rgb:({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`yiq`,y:.29889531*e+.58662247*t+.11448223*n,i:.59597799*e-.2741761*t-.32180189*n,q:.21147017*e-.52261711*t+.31114694*n};return r!==void 0&&(i.alpha=r),i}},channels:[`y`,`i`,`q`,`alpha`],parse:[`--yiq`],serialize:`--yiq`,ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:A,i:A,q:A,alpha:{use:A,fixup:j}}},cr=(e,t)=>Math.round(e*(t=10**t))/t,Z=((e=4)=>t=>typeof t==`number`?cr(t,e):t)(2),Q=e=>Math.max(0,Math.min(1,e||0)),$=e=>Math.round(Q(e)*255),lr=h(`rgb`),ur=h(`hsl`),dr=e=>{if(e===void 0)return;let t=$(e.r),n=$(e.g),r=$(e.b);return`#`+(1<<24|t<<16|n<<8|r).toString(16).slice(1)},fr=e=>{if(e===void 0)return;let t=$(e.r),n=$(e.g),r=$(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${Z(Q(e.alpha))})`},pr=e=>{if(e===void 0)return;let t=Z(e.h||0),n=Z(Q(e.s)*100)+`%`,r=Z(Q(e.l)*100)+`%`;return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${n}, ${r})`:`hsla(${t}, ${n}, ${r}, ${Z(Q(e.alpha))})`},mr=e=>dr(lr(e)),hr=e=>fr(lr(e)),gr=e=>pr(ur(e));function _r(e){let t=h(`lrgb`)(e);return .2126*t.r+.7152*t.g+.0722*t.b}function vr(e,t){let n=_r(e),r=_r(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}x(be),x(je),x(qe),x(Je),x(Ze),x(it),x(st),x(dt),x(Ct),x(It),x(zt),x(Yt),x(Xt),x(Qt),x($t),x(mn),x(hn),x(gn),x(kn),x(Mn),x(Pn),x(In),x(zn),x(Wn),x($n),x(M),x(ir),x(ar),x(or),x(sr);function yr(e,t){let n=le(e.trim());if(!n)return console.warn(`[convertColor] Could not parse color: "${e}"`),null;let r=n;switch(t){case`hex`:return mr(r)??null;case`rgb`:{let e=hr(r);return e.startsWith(`rgba`)?e.replace(/,\s*[\d.]+\)$/,`)`).replace(`rgba`,`rgb`):e}case`rgba`:return hr(r)??null;case`hsl`:{let e=gr(r);return e.startsWith(`hsla`)?e.replace(/,\s*[\d.]+\)$/,`)`).replace(`hsla`,`hsl`):e}case`hsla`:return gr(r)??null;default:return null}}function br(e,t){if(typeof window>`u`)return null;let n=getComputedStyle(document.documentElement).getPropertyValue(e).trim();return n?yr(n,t):(console.warn(`[getCssVarAsColor] CSS variable "${e}" is empty or not found.`),null)}export{br as n,vr as r,yr as t}; \ No newline at end of file +`||t[w]===` `||t[w]===` `);)w++;let e;if(T(t)&&(e=D(t),e.type!==C.Hue)){n.push({type:C.Alpha,value:e});continue}if(E(t)&&k(t)===`none`){n.push({type:C.Alpha,value:{type:C.None,value:void 0}});continue}return}if(/\d/.test(r)){w--,n.push(D(t));continue}if(S.test(r)){w--,n.push(ie(t));continue}return}return n}function oe(e){e._i=0;let t=e[e._i++];if(!t||t.type!==C.Function||t.value!==`color`||(t=e[e._i++],t.type!==C.Ident))return;let n=y[t.value];if(!n)return;let r={mode:n},i=se(e,!1);if(!i)return;let a=ee(n).channels;for(let e=0,t,n;e4)){if(n.length===4){if(n[3].type!==C.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:C.None,value:void 0}),n.every(e=>e.type!==C.Alpha)?n:void 0}}function ce(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==C.Function)return;let r=se(e,t);if(r)return r.unshift(n.value),r}var le=e=>{if(typeof e!=`string`)return;let t=ae(e),n=t?ce(t,!0):void 0,r,i=0,a=v.length;for(;ie===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0,fe=(e,t,n)=>e+n*(t-e),pe=e=>{let t=[];for(let n=0;nt=>{let n=pe(t);return t=>{let r=t*n.length,i=t>=1?n.length-1:Math.max(Math.floor(r),0),a=n[i];return a===void 0?void 0:e(a[0],a[1],r-i)}})(fe),j=e=>{let t=!1,n=e.map(e=>e===void 0?1:(t=!0,e));return t?n:e},M={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[ue,i,p,n,de,`srgb`],serialize:`srgb`,interpolate:{r:A,g:A,b:A,alpha:{use:A,fixup:j}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},me=(e=0)=>Math.abs(e)**(563/256)*Math.sign(e),he=e=>{let t=me(e.r),n=me(e.g),r=me(e.b),i={mode:`xyz65`,x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},ge=e=>Math.abs(e)**(256/563)*Math.sign(e),_e=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`a98`,r:ge(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:ge(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:ge(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},ve=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4},N=({r:e,g:t,b:n,alpha:r})=>{let i={mode:`lrgb`,r:ve(e),g:ve(t),b:ve(n)};return r!==void 0&&(i.alpha=r),i},P=e=>{let{r:t,g:n,b:r,alpha:i}=N(e),a={mode:`xyz65`,x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(a.alpha=i),a},ye=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92},F=({r:e,g:t,b:n,alpha:r},i=`rgb`)=>{let a={mode:i,r:ye(e),g:ye(t),b:ye(n)};return r!==void 0&&(a.alpha=r),a},I=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=F({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},be={...M,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:e=>_e(P(e)),xyz65:_e},toMode:{rgb:e=>I(he(e)),xyz65:he}},L=e=>(e%=360)<0?e+360:e,xe=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let a=L(n);return r===0||e[r-1]===void 0?a:t(a-L(i[r-1]))}).reduce((e,t)=>!e.length||t===void 0||e[e.length-1]===void 0?(e.push(t),e):(e.push(t+e[e.length-1]),e),[]),R=e=>xe(e,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),z=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Se=Math.PI/180,Ce=180/Math.PI,we=z[3]*z[4],Te=z[1]*z[4],Ee=z[1]*z[2]-z[0]*z[3],De=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(Ee*n+e*we-t*Te)/(Ee+we-Te),a=n-i,o=(z[4]*(t-i)-z[2]*a)/z[3],s={mode:`cubehelix`,l:i,s:i===0||i===1?void 0:Math.sqrt(a*a+o*o)/(z[4]*i*(1-i))};return s.s&&(s.h=Math.atan2(o,a)*Ce-120),r!==void 0&&(s.alpha=r),s},Oe=({h:e,s:t,l:n,alpha:r})=>{let i={mode:`rgb`};e=(e===void 0?0:e+120)*Se,n===void 0&&(n=0);let a=t===void 0?0:t*n*(1-n),o=Math.cos(e),s=Math.sin(e);return i.r=n+a*(z[0]*o+z[1]*s),i.g=n+a*(z[2]*o+z[3]*s),i.b=n+a*(z[4]*o+z[5]*s),r!==void 0&&(i.alpha=r),i},B=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=L(e.h),r=L(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},ke=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=L(e.h),r=L(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},Ae=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=L(e.h),r=L(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},V=e=>{let t=e.reduce((e,t)=>{if(t!==void 0){let n=t*Math.PI/180;e.sin+=Math.sin(n),e.cos+=Math.cos(n)}return e},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},je={mode:`cubehelix`,channels:[`h`,`s`,`l`,`alpha`],parse:[`--cubehelix`],serialize:`--cubehelix`,ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:De},toMode:{rgb:Oe},interpolate:{h:{use:A,fixup:R},s:A,l:A,alpha:{use:A,fixup:j}},difference:{h:B},average:{h:V}},H=({l:e,a:t,b:n,alpha:r},i=`lch`)=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),o={mode:i,l:e,c:a};return a&&(o.h=L(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},U=({l:e,c:t,h:n,alpha:r},i=`lab`)=>{n===void 0&&(n=0);let a={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a},Me=29**3/3**3,Ne=6**3/29**3,W={X:.3457/.3585,Y:1,Z:.2958/.3585},G={X:.3127/.329,Y:1,Z:.3583/.329},Pe=e=>e**3>Ne?e**3:(116*e-16)/Me,Fe=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz65`,x:Pe(a)*G.X,y:Pe(i)*G.Y,z:Pe(o)*G.Z};return r!==void 0&&(s.alpha=r),s},Ie=e=>I(Fe(e)),Le=e=>e>Ne?Math.cbrt(e):(Me*e+16)/116,Re=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Le(e/G.X),a=Le(t/G.Y),o=Le(n/G.Z),s={mode:`lab65`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},ze=e=>{let t=Re(P(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},K=26/180*Math.PI,Be=Math.cos(K),Ve=Math.sin(K),He=100/Math.log(139/100),Ue=({l:e,c:t,h:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`lab65`,l:(Math.exp(e*1/He)-1)/.0039},a=(Math.exp(.0435*t*1*1)-1)/.075,o=a*Math.cos(n/180*Math.PI-K),s=a*Math.sin(n/180*Math.PI-K);return i.a=o*Be-s/.83*Ve,i.b=o*Ve+s/.83*Be,r!==void 0&&(i.alpha=r),i},We=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=t*Be+n*Ve,a=.83*(n*Be-t*Ve),o=Math.sqrt(i*i+a*a),s={mode:`dlch`,l:He/1*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*1*1)};return s.c&&(s.h=L((Math.atan2(a,i)+K)/Math.PI*180)),r!==void 0&&(s.alpha=r),s},Ge=e=>Ue(H(e,`dlch`)),Ke=e=>U(We(e),`dlab`),qe={mode:`dlab`,parse:[`--din99o-lab`],serialize:`--din99o-lab`,toMode:{lab65:Ge,rgb:e=>Ie(Ge(e))},fromMode:{lab65:Ke,rgb:e=>Ke(ze(e))},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:A,a:A,b:A,alpha:{use:A,fixup:j}}},Je={mode:`dlch`,parse:[`--din99o-lch`],serialize:`--din99o-lch`,toMode:{lab65:Ue,dlab:e=>U(e,`dlab`),rgb:e=>Ie(Ue(e))},fromMode:{lab65:We,dlab:e=>H(e,`dlch`),rgb:e=>We(ze(e))},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:A,c:A,h:{use:A,fixup:R},alpha:{use:A,fixup:j}},difference:{h:Ae},average:{h:V}};function Ye({h:e,s:t,i:n,alpha:r}){e=L(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n*(1+t*(3/(2-i)-1)),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1-t)};break;case 1:a={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1+t*(3/(2-i)-1)),b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n*(1+t*(3/(2-i)-1)),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;case 3:a={r:n*(1-t),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1+t*(3/(2-i)-1))};break;case 4:a={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3/(2-i)-1))};break;case 5:a={r:n*(1+t*(3/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function Xe({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsi`,s:e+t+n===0?0:1-3*a/(e+t+n),i:(e+t+n)/3};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t{switch(t){case`deg`:return+e;case`rad`:return e/Math.PI*180;case`grad`:return e/10*9;case`turn`:return e*360}},tt=RegExp(`^hsla?\\(\\s*${l}${u}${o}${u}${o}\\s*(?:,\\s*${s}\\s*)?\\)$`),nt=e=>{let t=e.match(tt);if(!t)return;let n={mode:`hsl`};return t[3]===void 0?t[1]!==void 0&&t[2]!==void 0&&(n.h=et(t[1],t[2])):n.h=+t[3],t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]===void 0?t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))):n.alpha=Math.max(0,Math.min(1,t[6]/100)),n};function rt(e,t){if(!t||t[0]!==`hsl`&&t[0]!==`hsla`)return;let n={mode:`hsl`},[,r,i,a,o]=t;if(r.type!==C.None){if(r.type===C.Percentage)return;n.h=r.value}if(i.type!==C.None){if(i.type===C.Hue)return;n.s=i.value/100}if(a.type!==C.None){if(a.type===C.Hue)return;n.l=a.value/100}return o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var it={mode:`hsl`,toMode:{rgb:Qe},fromMode:{rgb:$e},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[rt,nt],serialize:e=>`hsl(${e.h===void 0?`none`:e.h} ${e.s===void 0?`none`:e.s*100+`%`} ${e.l===void 0?`none`:e.l*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:A,fixup:R},s:A,l:A,alpha:{use:A,fixup:j}},difference:{h:B},average:{h:V}};function at({h:e,s:t,v:n,alpha:r}){e=L(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:a={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:a={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:a={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:a={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function ot({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsv`,s:i===0?0:1-a/i,v:i};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t1){let e=t+n;t/=e,n/=e}return at({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function lt(e){let t=ot(e);if(t===void 0)return;let n=t.s===void 0?0:t.s,r=t.v===void 0?0:t.v,i={mode:`hwb`,w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function ut(e,t){if(!t||t[0]!==`hwb`)return;let n={mode:`hwb`},[,r,i,a,o]=t;if(r.type!==C.None){if(r.type===C.Percentage)return;n.h=r.value}if(i.type!==C.None){if(i.type===C.Hue)return;n.w=i.value/100}if(a.type!==C.None){if(a.type===C.Hue)return;n.b=a.value/100}return o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var dt={mode:`hwb`,toMode:{rgb:ct},fromMode:{rgb:lt},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[ut],serialize:e=>`hwb(${e.h===void 0?`none`:e.h} ${e.w===void 0?`none`:e.w*100+`%`} ${e.b===void 0?`none`:e.b*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:A,fixup:R},w:A,b:A,alpha:{use:A,fixup:j}},difference:{h:ke},average:{h:V}},ft=.1593017578125,pt=78.84375,mt=.8359375,ht=18.8515625,gt=18.6875;function _t(e){if(e<0)return 0;let t=e**(1/pt);return 1e4*(Math.max(0,t-mt)/(ht-gt*t))**(1/ft)}function vt(e){if(e<0)return 0;let t=(e/1e4)**ft;return((mt+ht*t)/(1+gt*t))**+pt}var yt=e=>Math.max(e/203,0),bt=({i:e,t,p:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=_t(e+.008609037037932761*t+.11102962500302593*n),a=_t(e-.00860903703793275*t-.11102962500302599*n),o=_t(e+.5600313357106791*t-.32062717498731885*n),s={mode:`xyz65`,x:yt(2.070152218389422*i-1.3263473389671556*a+.2066510476294051*o),y:yt(.3647385209748074*i+.680566024947227*a-.0453045459220346*o),z:yt(-.049747207535812*i-.0492609666966138*a+1.1880659249923042*o)};return r!==void 0&&(s.alpha=r),s},xt=(e=0)=>Math.max(e*203,0),St=({x:e,y:t,z:n,alpha:r})=>{let i=xt(e),a=xt(t),o=xt(n),s=vt(.3592832590121217*i+.6976051147779502*a-.0358915932320289*o),c=vt(-.1920808463704995*i+1.1004767970374323*a+.0753748658519118*o),l=vt(.0070797844607477*i+.0748396662186366*a+.8433265453898765*o),u={mode:`itp`,i:.5*s+.5*c,t:1.61376953125*s-3.323486328125*c+1.709716796875*l,p:4.378173828125*s-4.24560546875*c-.132568359375*l};return r!==void 0&&(u.alpha=r),u},Ct={mode:`itp`,channels:[`i`,`t`,`p`,`alpha`],parse:[`--ictcp`],serialize:`--ictcp`,toMode:{xyz65:bt,rgb:e=>I(bt(e))},fromMode:{xyz65:St,rgb:e=>St(P(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:A,t:A,p:A,alpha:{use:A,fixup:j}}},wt=134.03437499999998,Tt=16295499532821565e-27,Et=e=>{if(e<0)return 0;let t=(e/1e4)**ft;return((mt+ht*t)/(1+gt*t))**+wt},Dt=(e=0)=>Math.max(e*203,0),Ot=({x:e,y:t,z:n,alpha:r})=>{e=Dt(e),t=Dt(t),n=Dt(n);let i=1.15*e-.15*n,a=.66*t+.34*e,o=Et(.41478972*i+.579999*a+.014648*n),s=Et(-.20151*i+1.120649*a+.0531008*n),c=Et(-.0166008*i+.2648*a+.6684799*n),l=(o+s)/2,u={mode:`jab`,j:.44*l/(1-.56*l)-Tt,a:3.524*o-4.066708*s+.542708*c,b:.199076*o+1.096799*s-1.295875*c};return r!==void 0&&(u.alpha=r),u},kt=134.03437499999998,At=16295499532821565e-27,jt=e=>{if(e<0)return 0;let t=e**(1/kt);return 1e4*((mt-t)/(gt*t-ht))**(1/ft)},Mt=e=>e/203,Nt=({j:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+At)/(.44+.56*(e+At)),a=jt(i+.13860504*t+.058047316*n),o=jt(i-.13860504*t-.058047316*n),s=jt(i-.096019242*t-.8118919*n),c={mode:`xyz65`,x:Mt(1.661373024652174*a-.914523081304348*o+.23136208173913045*s),y:Mt(-.3250758611844533*a+1.571847026732543*o-.21825383453227928*s),z:Mt(-.090982811*a-.31272829*o+1.5227666*s)};return r!==void 0&&(c.alpha=r),c},Pt=e=>{let t=Ot(P(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Ft=e=>I(Nt(e)),It={mode:`jab`,channels:[`j`,`a`,`b`,`alpha`],parse:[`--jzazbz`],serialize:`--jzazbz`,fromMode:{rgb:Pt,xyz65:Ot},toMode:{rgb:Ft,xyz65:Nt},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:A,a:A,b:A,alpha:{use:A,fixup:j}}},Lt=({j:e,a:t,b:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),a={mode:`jch`,j:e,c:i};return i&&(a.h=L(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(a.alpha=r),a},Rt=({j:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:`jab`,j:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},zt={mode:`jch`,parse:[`--jzczhz`],serialize:`--jzczhz`,toMode:{jab:Rt,rgb:e=>Ft(Rt(e))},fromMode:{rgb:e=>Lt(Pt(e)),jab:Lt},channels:[`j`,`c`,`h`,`alpha`],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:A,fixup:R},c:A,j:A,alpha:{use:A,fixup:j}},difference:{h:Ae},average:{h:V}},Bt=29**3/3**3,Vt=6**3/29**3,Ht=e=>e**3>Vt?e**3:(116*e-16)/Bt,Ut=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz50`,x:Ht(a)*W.X,y:Ht(i)*W.Y,z:Ht(o)*W.Z};return r!==void 0&&(s.alpha=r),s},q=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=F({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},Wt=e=>q(Ut(e)),J=e=>{let{r:t,g:n,b:r,alpha:i}=N(e),a={mode:`xyz50`,x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(a.alpha=i),a},Gt=e=>e>Vt?Math.cbrt(e):(Bt*e+16)/116,Kt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Gt(e/W.X),a=Gt(t/W.Y),o=Gt(n/W.Z),s={mode:`lab`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},qt=e=>{let t=Kt(J(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};function Jt(e,t){if(!t||t[0]!==`lab`)return;let n={mode:`lab`},[,r,i,a,o]=t;if(!(r.type===C.Hue||i.type===C.Hue||a.type===C.Hue))return r.type!==C.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==C.None&&(n.a=i.type===C.Number?i.value:i.value*125/100),a.type!==C.None&&(n.b=a.type===C.Number?a.value:a.value*125/100),o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var Yt={mode:`lab`,toMode:{xyz50:Ut,rgb:Wt},fromMode:{xyz50:Kt,rgb:qt},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Jt],serialize:e=>`lab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{l:A,a:A,b:A,alpha:{use:A,fixup:j}}},Xt={...Yt,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:Fe,rgb:Ie},fromMode:{xyz65:Re,rgb:ze},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};function Zt(e,t){if(!t||t[0]!==`lch`)return;let n={mode:`lch`},[,r,i,a,o]=t;if(r.type!==C.None){if(r.type===C.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==C.None&&(n.c=Math.max(0,i.type===C.Number?i.value:i.value*150/100)),a.type!==C.None){if(a.type===C.Percentage)return;n.h=a.value}return o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var Qt={mode:`lch`,toMode:{lab:U,rgb:e=>Wt(U(e))},fromMode:{rgb:e=>H(qt(e)),lab:H},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Zt],serialize:e=>`lch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:A,fixup:R},c:A,l:A,alpha:{use:A,fixup:j}},difference:{h:Ae},average:{h:V}},$t={...Qt,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:e=>U(e,`lab65`),rgb:e=>Ie(U(e,`lab65`))},fromMode:{rgb:e=>H(ze(e),`lch65`),lab65:e=>H(e,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}},en=({l:e,u:t,v:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),a={mode:`lchuv`,l:e,c:i};return i&&(a.h=L(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(a.alpha=r),a},tn=({l:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:`luv`,l:e,u:t?t*Math.cos(n/180*Math.PI):0,v:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},nn=(e,t,n)=>4*e/(e+15*t+3*n),rn=(e,t,n)=>9*t/(e+15*t+3*n),an=nn(W.X,W.Y,W.Z),on=rn(W.X,W.Y,W.Z),sn=e=>e<=Vt?Bt*e:116*Math.cbrt(e)-16,cn=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=sn(t/W.Y),a=nn(e,t,n),o=rn(e,t,n);!isFinite(a)||!isFinite(o)?i=a=o=0:(a=13*i*(a-an),o=13*i*(o-on));let s={mode:`luv`,l:i,u:a,v:o};return r!==void 0&&(s.alpha=r),s},ln=(e,t,n)=>4*e/(e+15*t+3*n),un=(e,t,n)=>9*t/(e+15*t+3*n),dn=ln(W.X,W.Y,W.Z),fn=un(W.X,W.Y,W.Z),pn=({l:e,u:t,v:n,alpha:r})=>{if(e===void 0&&(e=0),e===0)return{mode:`xyz50`,x:0,y:0,z:0};t===void 0&&(t=0),n===void 0&&(n=0);let i=t/(13*e)+dn,a=n/(13*e)+fn,o=W.Y*(e<=8?e/Bt:((e+16)/116)**3),s={mode:`xyz50`,x:9*i*o/(4*a),y:o,z:o*(12-3*i-20*a)/(4*a)};return r!==void 0&&(s.alpha=r),s},mn={mode:`lchuv`,toMode:{luv:tn,rgb:e=>q(pn(tn(e)))},fromMode:{rgb:e=>en(cn(J(e))),luv:en},channels:[`l`,`c`,`h`,`alpha`],parse:[`--lchuv`],serialize:`--lchuv`,ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:A,fixup:R},c:A,l:A,alpha:{use:A,fixup:j}},difference:{h:Ae},average:{h:V}},hn={...M,mode:`lrgb`,toMode:{rgb:F},fromMode:{rgb:N},parse:[`srgb-linear`],serialize:`srgb-linear`},gn={mode:`luv`,toMode:{xyz50:pn,rgb:e=>q(pn(e))},fromMode:{xyz50:cn,rgb:e=>cn(J(e))},channels:[`l`,`u`,`v`,`alpha`],parse:[`--luv`],serialize:`--luv`,ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:A,u:A,v:A,alpha:{use:A,fixup:j}}},_n=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),s={mode:`oklab`,l:.210454268309314*i+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*i-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*i+.7827717124575296*a-.8086757549230774*o};return r!==void 0&&(s.alpha=r),s},vn=e=>{let t=_n(N(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Y=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+.3963377773761749*t+.2158037573099136*n)**3,a=(e-.1055613458156586*t-.0638541728258133*n)**3,o=(e-.0894841775298119*t-1.2914855480194092*n)**3,s={mode:`lrgb`,r:4.076741636075957*i-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*i+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*i-.7034186179359362*a+1.7076146940746117*o};return r!==void 0&&(s.alpha=r),s},yn=e=>F(Y(e));function bn(e){let t=.206,n=.03,r=(1+t)/(1+n);return .5*(r*e-t+Math.sqrt((r*e-t)*(r*e-t)+4*n*r*e))}function xn(e){let t=.206,n=.03;return(1+t)/(1+n),(e*e+t*e)/(1.170873786407767*(e+n))}function Sn(e,t){let n,r,i,a,o,s,c,l;-1.88170328*e-.80936493*t>1?(n=1.19086277,r=1.76576728,i=.59662641,a=.75515197,o=.56771245,s=4.0767416621,c=-3.3077115913,l=.2309699292):1.81444104*e-1.19445276*t>1?(n=.73956515,r=-.45954404,i=.08285427,a=.1254107,o=.14503204,s=-1.2684380046,c=2.6097574011,l=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,a=-.50559606,o=.00692167,s=-.0041960863,c=-.7034186147,l=1.707614701);let u=n+r*e+i*t+a*e*e+o*e*t,d=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t;{let e=1+u*d,t=1+u*f,n=1+u*p,r=e*e*e,i=t*t*t,a=n*n*n,o=3*d*e*e,m=3*f*t*t,h=3*p*n*n,g=6*d*d*e,_=6*f*f*t,v=6*p*p*n,y=s*r+c*i+l*a,b=s*o+c*m+l*h,x=s*g+c*_+l*v;u-=y*b/(b*b-.5*y*x)}return u}function Cn(e,t){let n=Sn(e,t),r=Y({l:1,a:n*e,b:n*t}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b));return[i,i*n]}function wn(e,t,n,r,i,a=null){a||=Cn(e,t);let o;if((n-i)*a[1]-(a[0]-i)*r<=0)o=a[1]*i/(r*a[0]+a[1]*(i-n));else{o=a[1]*(i-1)/(r*(a[0]-1)+a[1]*(i-n));{let a=n-i,s=r,c=.3963377774*e+.2158037573*t,l=-.1055613458*e-.0638541728*t,u=-.0894841775*e-1.291485548*t,d=a+s*c,f=a+s*l,p=a+s*u;{let e=i*(1-o)+o*n,t=o*r,a=e+t*c,s=e+t*l,m=e+t*u,h=a*a*a,g=s*s*s,_=m*m*m,v=3*d*a*a,y=3*f*s*s,b=3*p*m*m,x=6*d*d*a,ee=6*f*f*s,te=6*p*p*m,S=4.0767416621*h-3.3077115913*g+.2309699292*_-1,ne=4.0767416621*v-3.3077115913*y+.2309699292*b,C=4.0767416621*x-3.3077115913*ee+.2309699292*te,w=ne/(ne*ne-.5*S*C),T=-S*w,E=-1.2684380046*h+2.6097574011*g-.3413193965*_-1,re=-1.2684380046*v+2.6097574011*y-.3413193965*b,D=-1.2684380046*x+2.6097574011*ee-.3413193965*te,O=re/(re*re-.5*E*D),k=-E*O,ie=-.0041960863*h-.7034186147*g+1.707614701*_-1,ae=-.0041960863*v-.7034186147*y+1.707614701*b,oe=-.0041960863*x-.7034186147*ee+1.707614701*te,se=ae/(ae*ae-.5*ie*oe),ce=-ie*se;T=w>=0?T:1e6,k=O>=0?k:1e6,ce=se>=0?ce:1e6,o+=Math.min(T,Math.min(k,ce))}}}return o}function Tn(e,t,n=null){n||=Cn(e,t);let r=n[0],i=n[1];return[i/r,i/(1-r)]}function En(e,t,n){let r=Cn(t,n),i=wn(t,n,e,1,e,r),a=Tn(t,n,r),o=.11516993+1/(7.4477897+4.1590124*n+t*(-2.19557347+1.75198401*n+t*(-2.13704948-10.02301043*n+t*(-4.24894561+5.38770819*n+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*n+t*(.40370612+.90148123*n+t*(-.27087943+.6122399*n+t*(.00299215-.45399568*n-.14661872*t)))),c=i/Math.min(e*a[0],(1-e)*a[1]),l=e*o,u=(1-e)*s,d=.9*c*Math.sqrt(Math.sqrt(1/(1/(l*l*l*l)+1/(u*u*u*u))));return l=e*.4,u=(1-e)*.8,[Math.sqrt(1/(1/(l*l)+1/(u*u))),d,i]}function Dn(e){let t=e.l===void 0?0:e.l,n=e.a===void 0?0:e.a,r=e.b===void 0?0:e.b,i={mode:`okhsl`,l:bn(t)};e.alpha!==void 0&&(i.alpha=e.alpha);let a=Math.sqrt(n*n+r*r);if(!a)return i.s=0,i;let[o,s,c]=En(t,n/a,r/a),l;if(aDn(vn(e))},toMode:{oklab:On,rgb:e=>yn(On(e))}};function An(e){let t=e.l===void 0?0:e.l,n=e.a===void 0?0:e.a,r=e.b===void 0?0:e.b,i=Math.sqrt(n*n+r*r),a=i?n/i:1,o=i?r/i:1,[s,c]=Tn(a,o),l=.5,u=1-l/s,d=c/(i+t*c),f=d*t,p=d*i,m=xn(f),h=p*m/f,g=Y({l:m,a:a*h,b:o*h}),_=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));t/=_,i=i/_*bn(t)/t,t=bn(t);let v={mode:`okhsv`,s:i?(l+c)*p/(c*l+c*u*p):0,v:t?t/f:0};return v.s&&(v.h=L(Math.atan2(r,n)*180/Math.PI)),e.alpha!==void 0&&(v.alpha=e.alpha),v}function jn(e){let t={mode:`oklab`};e.alpha!==void 0&&(t.alpha=e.alpha);let n=e.h===void 0?0:e.h,r=e.s===void 0?0:e.s,i=e.v===void 0?0:e.v,a=Math.cos(n/180*Math.PI),o=Math.sin(n/180*Math.PI),[s,c]=Tn(a,o),l=.5,u=1-l/s,d=1-r*l/(l+c-c*u*r),f=r*c*l/(l+c-c*u*r),p=xn(d),m=f*p/d,h=Y({l:p,a:a*m,b:o*m}),g=Math.cbrt(1/Math.max(h.r,h.g,h.b,0)),_=xn(i*d),v=f*_/d;return t.l=_*g,t.a=v*a*g,t.b=v*o*g,t}var Mn={...st,mode:`okhsv`,channels:[`h`,`s`,`v`,`alpha`],parse:[`--okhsv`],serialize:`--okhsv`,fromMode:{oklab:An,rgb:e=>An(vn(e))},toMode:{oklab:jn,rgb:e=>yn(jn(e))}};function Nn(e,t){if(!t||t[0]!==`oklab`)return;let n={mode:`oklab`},[,r,i,a,o]=t;if(!(r.type===C.Hue||i.type===C.Hue||a.type===C.Hue))return r.type!==C.None&&(n.l=Math.min(Math.max(0,r.type===C.Number?r.value:r.value/100),1)),i.type!==C.None&&(n.a=i.type===C.Number?i.value:i.value*.4/100),a.type!==C.None&&(n.b=a.type===C.Number?a.value:a.value*.4/100),o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var Pn={...Yt,mode:`oklab`,toMode:{lrgb:Y,rgb:yn},fromMode:{lrgb:_n,rgb:vn},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Nn],serialize:e=>`oklab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`};function Fn(e,t){if(!t||t[0]!==`oklch`)return;let n={mode:`oklch`},[,r,i,a,o]=t;if(r.type!==C.None){if(r.type===C.Hue)return;n.l=Math.min(Math.max(0,r.type===C.Number?r.value:r.value/100),1)}if(i.type!==C.None&&(n.c=Math.max(0,i.type===C.Number?i.value:i.value*.4/100)),a.type!==C.None){if(a.type===C.Percentage)return;n.h=a.value}return o.type!==C.None&&(n.alpha=Math.min(1,Math.max(0,o.type===C.Number?o.value:o.value/100))),n}var In={...Qt,mode:`oklch`,toMode:{oklab:e=>U(e,`oklab`),rgb:e=>yn(U(e,`oklab`))},fromMode:{rgb:e=>H(vn(e),`oklch`),oklab:e=>H(e,`oklch`)},parse:[Fn],serialize:e=>`oklch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},Ln=e=>{let{r:t,g:n,b:r,alpha:i}=N(e),a={mode:`xyz65`,x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(a.alpha=i),a},Rn=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=F({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},`p3`);return r!==void 0&&(i.alpha=r),i},zn={...M,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:e=>Rn(P(e)),xyz65:Rn},toMode:{rgb:e=>I(Ln(e)),xyz65:Ln}},Bn=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*t**(1/1.8):16*e},Vn=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`prophoto`,r:Bn(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:Bn(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:Bn(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},Hn=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*t**1.8:e/16},Un=e=>{let t=Hn(e.r),n=Hn(e.g),r=Hn(e.b),i={mode:`xyz50`,x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Wn={...M,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:Vn,rgb:e=>Vn(J(e))},toMode:{xyz50:Un,rgb:e=>q(Un(e))}},Gn=1.09929682680944,Kn=.018053968510807,qn=e=>{let t=Math.abs(e);return t>Kn?(Math.sign(e)||1)*(Gn*t**.45-(Gn-1)):4.5*e},Jn=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rec2020`,r:qn(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:qn(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:qn(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},Yn=1.09929682680944,Xn=.018053968510807,Zn=(e=0)=>{let t=Math.abs(e);return t{let t=Zn(e.r),n=Zn(e.g),r=Zn(e.b),i={mode:`xyz65`,x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},$n={...M,mode:`rec2020`,fromMode:{xyz65:Jn,rgb:e=>Jn(P(e))},toMode:{xyz65:Qn,rgb:e=>I(Qn(e))},parse:[`rec2020`],serialize:`rec2020`},X=.0037930732552754493,er=Math.cbrt(X),tr=e=>Math.cbrt(e)-er,nr=e=>{let{r:t,g:n,b:r,alpha:i}=N(e),a=tr(.3*t+.622*n+.078*r+X),o=tr(.23*t+.692*n+.078*r+X),s=tr(.2434226892454782*t+.2047674442449682*n+.5518098665095535*r+X),c={mode:`xyb`,x:(a-o)/2,y:(a+o)/2,b:s-(a+o)/2};return i!==void 0&&(c.alpha=i),c},rr=e=>(e+er)**3,ir={mode:`xyb`,channels:[`x`,`y`,`b`,`alpha`],parse:[`--xyb`],serialize:`--xyb`,toMode:{rgb:({x:e,y:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=rr(e+t)-X,a=rr(t-e)-X,o=rr(n+t)-X,s=F({r:11.031566904639861*i-9.866943908131562*a-.16462299650829934*o,g:-3.2541473810744237*i+4.418770377582723*a-.16462299650829934*o,b:-3.6588512867136815*i+2.7129230459360922*a+1.9459282407775895*o});return r!==void 0&&(s.alpha=r),s}},fromMode:{rgb:nr},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:A,y:A,b:A,alpha:{use:A,fixup:j}}},ar={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:q,lab:Kt},fromMode:{rgb:J,lab:Ut},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:A,y:A,z:A,alpha:{use:A,fixup:j}}},or={mode:`xyz65`,toMode:{rgb:I,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz50`,x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(a.alpha=i),a}},fromMode:{rgb:P,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz65`,x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(a.alpha=i),a}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:[`x`,`y`,`z`,`alpha`],parse:[`xyz`,`xyz-d65`],serialize:`xyz-d65`,interpolate:{x:A,y:A,z:A,alpha:{use:A,fixup:j}}},sr={mode:`yiq`,toMode:{rgb:({y:e,i:t,q:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rgb`,r:e+.95608445*t+.6208885*n,g:e-.27137664*t-.6486059*n,b:e-1.10561724*t+1.70250126*n};return r!==void 0&&(i.alpha=r),i}},fromMode:{rgb:({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`yiq`,y:.29889531*e+.58662247*t+.11448223*n,i:.59597799*e-.2741761*t-.32180189*n,q:.21147017*e-.52261711*t+.31114694*n};return r!==void 0&&(i.alpha=r),i}},channels:[`y`,`i`,`q`,`alpha`],parse:[`--yiq`],serialize:`--yiq`,ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:A,i:A,q:A,alpha:{use:A,fixup:j}}},cr=(e,t)=>Math.round(e*(t=10**t))/t,Z=((e=4)=>t=>typeof t==`number`?cr(t,e):t)(2),Q=e=>Math.max(0,Math.min(1,e||0)),$=e=>Math.round(Q(e)*255),lr=h(`rgb`),ur=h(`hsl`),dr=e=>{if(e===void 0)return;let t=$(e.r),n=$(e.g),r=$(e.b);return`#`+(1<<24|t<<16|n<<8|r).toString(16).slice(1)},fr=e=>{if(e===void 0)return;let t=$(e.r),n=$(e.g),r=$(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${Z(Q(e.alpha))})`},pr=e=>{if(e===void 0)return;let t=Z(e.h||0),n=Z(Q(e.s)*100)+`%`,r=Z(Q(e.l)*100)+`%`;return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${n}, ${r})`:`hsla(${t}, ${n}, ${r}, ${Z(Q(e.alpha))})`},mr=e=>dr(lr(e)),hr=e=>fr(lr(e)),gr=e=>pr(ur(e));function _r(e){let t=h(`lrgb`)(e);return .2126*t.r+.7152*t.g+.0722*t.b}function vr(e,t){let n=_r(e),r=_r(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}x(be),x(je),x(qe),x(Je),x(Ze),x(it),x(st),x(dt),x(Ct),x(It),x(zt),x(Yt),x(Xt),x(Qt),x($t),x(mn),x(hn),x(gn),x(kn),x(Mn),x(Pn),x(In),x(zn),x(Wn),x($n),x(M),x(ir),x(ar),x(or),x(sr);var yr={slate:{50:`oklch(98.4% 0.003 247.858)`,100:`oklch(96.8% 0.007 247.896)`,200:`oklch(92.9% 0.013 255.508)`,300:`oklch(86.9% 0.022 252.894)`,400:`oklch(70.4% 0.04 256.788)`,500:`oklch(55.4% 0.046 257.417)`,600:`oklch(44.6% 0.043 257.281)`,700:`oklch(37.2% 0.044 257.287)`,800:`oklch(27.9% 0.041 260.031)`,900:`oklch(20.8% 0.042 265.755)`,950:`oklch(12.9% 0.042 264.695)`},gray:{50:`oklch(98.5% 0.002 247.839)`,100:`oklch(96.7% 0.003 264.542)`,200:`oklch(92.8% 0.006 264.531)`,300:`oklch(87.2% 0.01 258.338)`,400:`oklch(70.7% 0.022 261.325)`,500:`oklch(55.1% 0.027 264.364)`,600:`oklch(44.6% 0.03 256.802)`,700:`oklch(37.3% 0.034 259.733)`,800:`oklch(27.8% 0.033 256.848)`,900:`oklch(21% 0.034 264.665)`,950:`oklch(13% 0.028 261.692)`},zinc:{50:`oklch(98.5% 0 0)`,100:`oklch(96.7% 0.001 286.375)`,200:`oklch(92% 0.004 286.32)`,300:`oklch(87.1% 0.006 286.286)`,400:`oklch(70.5% 0.015 286.067)`,500:`oklch(55.2% 0.016 285.938)`,600:`oklch(44.2% 0.017 285.786)`,700:`oklch(37% 0.013 285.805)`,800:`oklch(27.4% 0.006 286.033)`,900:`oklch(21% 0.006 285.885)`,950:`oklch(14.1% 0.005 285.823)`},neutral:{50:`oklch(98.5% 0 0)`,100:`oklch(97% 0 0)`,200:`oklch(92.2% 0 0)`,300:`oklch(87% 0 0)`,400:`oklch(70.8% 0 0)`,500:`oklch(55.6% 0 0)`,600:`oklch(43.9% 0 0)`,700:`oklch(37.1% 0 0)`,800:`oklch(26.9% 0 0)`,900:`oklch(20.5% 0 0)`,950:`oklch(14.5% 0 0)`},stone:{50:`oklch(98.5% 0.001 106.423)`,100:`oklch(97% 0.001 106.424)`,200:`oklch(92.3% 0.003 48.717)`,300:`oklch(86.9% 0.005 56.366)`,400:`oklch(70.9% 0.01 56.259)`,500:`oklch(55.3% 0.013 58.071)`,600:`oklch(44.4% 0.011 73.639)`,700:`oklch(37.4% 0.01 67.558)`,800:`oklch(26.8% 0.007 34.298)`,900:`oklch(21.6% 0.006 56.043)`,950:`oklch(14.7% 0.004 49.25)`},red:{50:`oklch(97.1% 0.013 17.38)`,100:`oklch(93.6% 0.032 17.717)`,200:`oklch(88.5% 0.062 18.334)`,300:`oklch(80.8% 0.114 19.571)`,400:`oklch(70.4% 0.191 22.216)`,500:`oklch(63.7% 0.237 25.331)`,600:`oklch(57.7% 0.245 27.325)`,700:`oklch(50.5% 0.213 27.518)`,800:`oklch(44.4% 0.177 26.899)`,900:`oklch(39.6% 0.141 25.723)`,950:`oklch(25.8% 0.092 26.042)`},orange:{50:`oklch(98% 0.016 73.684)`,100:`oklch(95.4% 0.038 75.164)`,200:`oklch(90.1% 0.076 70.697)`,300:`oklch(83.7% 0.128 66.29)`,400:`oklch(75% 0.183 55.934)`,500:`oklch(70.5% 0.213 47.604)`,600:`oklch(64.6% 0.222 41.116)`,700:`oklch(55.3% 0.195 38.402)`,800:`oklch(47% 0.157 37.304)`,900:`oklch(40.8% 0.123 38.172)`,950:`oklch(26.6% 0.079 36.259)`},amber:{50:`oklch(98.7% 0.022 95.277)`,100:`oklch(96.2% 0.059 95.617)`,200:`oklch(92.4% 0.12 95.746)`,300:`oklch(87.9% 0.169 91.605)`,400:`oklch(82.8% 0.189 84.429)`,500:`oklch(76.9% 0.188 70.08)`,600:`oklch(66.6% 0.179 58.318)`,700:`oklch(55.5% 0.163 48.998)`,800:`oklch(47.3% 0.137 46.201)`,900:`oklch(41.4% 0.112 45.904)`,950:`oklch(27.9% 0.077 45.635)`},yellow:{50:`oklch(98.7% 0.026 102.212)`,100:`oklch(97.3% 0.071 103.193)`,200:`oklch(94.5% 0.129 101.54)`,300:`oklch(90.5% 0.182 98.111)`,400:`oklch(85.2% 0.199 91.936)`,500:`oklch(79.5% 0.184 86.047)`,600:`oklch(68.1% 0.162 75.834)`,700:`oklch(55.4% 0.135 66.442)`,800:`oklch(47.6% 0.114 61.907)`,900:`oklch(42.1% 0.095 57.708)`,950:`oklch(28.6% 0.066 53.813)`},lime:{50:`oklch(98.6% 0.031 120.757)`,100:`oklch(96.7% 0.067 122.328)`,200:`oklch(93.8% 0.127 124.321)`,300:`oklch(89.7% 0.196 126.665)`,400:`oklch(84.1% 0.238 128.85)`,500:`oklch(76.8% 0.233 130.85)`,600:`oklch(64.8% 0.2 131.684)`,700:`oklch(53.2% 0.157 131.589)`,800:`oklch(45.3% 0.124 130.933)`,900:`oklch(40.5% 0.101 131.063)`,950:`oklch(27.4% 0.072 132.109)`},green:{50:`oklch(98.2% 0.018 155.826)`,100:`oklch(96.2% 0.044 156.743)`,200:`oklch(92.5% 0.084 155.995)`,300:`oklch(87.1% 0.15 154.449)`,400:`oklch(79.2% 0.209 151.711)`,500:`oklch(72.3% 0.219 149.579)`,600:`oklch(62.7% 0.194 149.214)`,700:`oklch(52.7% 0.154 150.069)`,800:`oklch(44.8% 0.119 151.328)`,900:`oklch(39.3% 0.095 152.535)`,950:`oklch(26.6% 0.065 152.934)`},emerald:{50:`oklch(97.9% 0.021 166.113)`,100:`oklch(95% 0.052 163.051)`,200:`oklch(90.5% 0.093 164.15)`,300:`oklch(84.5% 0.143 164.978)`,400:`oklch(76.5% 0.177 163.223)`,500:`oklch(69.6% 0.17 162.48)`,600:`oklch(59.6% 0.145 163.225)`,700:`oklch(50.8% 0.118 165.612)`,800:`oklch(43.2% 0.095 166.913)`,900:`oklch(37.8% 0.077 168.94)`,950:`oklch(26.2% 0.051 172.552)`},teal:{50:`oklch(98.4% 0.014 180.72)`,100:`oklch(95.3% 0.051 180.801)`,200:`oklch(91% 0.096 180.426)`,300:`oklch(85.5% 0.138 181.071)`,400:`oklch(77.7% 0.152 181.912)`,500:`oklch(70.4% 0.14 182.503)`,600:`oklch(60% 0.118 184.704)`,700:`oklch(51.1% 0.096 186.391)`,800:`oklch(43.7% 0.078 188.216)`,900:`oklch(38.6% 0.063 188.416)`,950:`oklch(27.7% 0.046 192.524)`},cyan:{50:`oklch(98.4% 0.019 200.873)`,100:`oklch(95.6% 0.045 203.388)`,200:`oklch(91.7% 0.08 205.041)`,300:`oklch(86.5% 0.127 207.078)`,400:`oklch(78.9% 0.154 211.53)`,500:`oklch(71.5% 0.143 215.221)`,600:`oklch(60.9% 0.126 221.723)`,700:`oklch(52% 0.105 223.128)`,800:`oklch(45% 0.085 224.283)`,900:`oklch(39.8% 0.07 227.392)`,950:`oklch(30.2% 0.056 229.695)`},sky:{50:`oklch(97.7% 0.013 236.62)`,100:`oklch(95.1% 0.026 236.824)`,200:`oklch(90.1% 0.058 230.902)`,300:`oklch(82.8% 0.111 230.318)`,400:`oklch(74.6% 0.16 232.661)`,500:`oklch(68.5% 0.169 237.323)`,600:`oklch(58.8% 0.158 241.966)`,700:`oklch(50% 0.134 242.749)`,800:`oklch(44.3% 0.11 240.79)`,900:`oklch(39.1% 0.09 240.876)`,950:`oklch(29.3% 0.066 243.157)`},blue:{50:`oklch(97% 0.014 254.604)`,100:`oklch(93.2% 0.032 255.585)`,200:`oklch(88.2% 0.059 254.128)`,300:`oklch(80.9% 0.105 251.813)`,400:`oklch(70.7% 0.165 254.624)`,500:`oklch(62.3% 0.214 259.815)`,600:`oklch(54.6% 0.245 262.881)`,700:`oklch(48.8% 0.243 264.376)`,800:`oklch(42.4% 0.199 265.638)`,900:`oklch(37.9% 0.146 265.522)`,950:`oklch(28.2% 0.091 267.935)`},indigo:{50:`oklch(96.2% 0.018 272.314)`,100:`oklch(93% 0.034 272.788)`,200:`oklch(87% 0.065 274.039)`,300:`oklch(78.5% 0.115 274.713)`,400:`oklch(67.3% 0.182 276.935)`,500:`oklch(58.5% 0.233 277.117)`,600:`oklch(51.1% 0.262 276.966)`,700:`oklch(45.7% 0.24 277.023)`,800:`oklch(39.8% 0.195 277.366)`,900:`oklch(35.9% 0.144 278.697)`,950:`oklch(25.7% 0.09 281.288)`},violet:{50:`oklch(96.9% 0.016 293.756)`,100:`oklch(94.3% 0.029 294.588)`,200:`oklch(89.4% 0.057 293.283)`,300:`oklch(81.1% 0.111 293.571)`,400:`oklch(70.2% 0.183 293.541)`,500:`oklch(60.6% 0.25 292.717)`,600:`oklch(54.1% 0.281 293.009)`,700:`oklch(49.1% 0.27 292.581)`,800:`oklch(43.2% 0.232 292.759)`,900:`oklch(38% 0.189 293.745)`,950:`oklch(28.3% 0.141 291.089)`},purple:{50:`oklch(97.7% 0.014 308.299)`,100:`oklch(94.6% 0.033 307.174)`,200:`oklch(90.2% 0.063 306.703)`,300:`oklch(82.7% 0.119 306.383)`,400:`oklch(71.4% 0.203 305.504)`,500:`oklch(62.7% 0.265 303.9)`,600:`oklch(55.8% 0.288 302.321)`,700:`oklch(49.6% 0.265 301.924)`,800:`oklch(43.8% 0.218 303.724)`,900:`oklch(38.1% 0.176 304.987)`,950:`oklch(29.1% 0.149 302.717)`},fuchsia:{50:`oklch(97.7% 0.017 320.058)`,100:`oklch(95.2% 0.037 318.852)`,200:`oklch(90.3% 0.076 319.62)`,300:`oklch(83.3% 0.145 321.434)`,400:`oklch(74% 0.238 322.16)`,500:`oklch(66.7% 0.295 322.15)`,600:`oklch(59.1% 0.293 322.896)`,700:`oklch(51.8% 0.253 323.949)`,800:`oklch(45.2% 0.211 324.591)`,900:`oklch(40.1% 0.17 325.612)`,950:`oklch(29.3% 0.136 325.661)`},pink:{50:`oklch(97.1% 0.014 343.198)`,100:`oklch(94.8% 0.028 342.258)`,200:`oklch(89.9% 0.061 343.231)`,300:`oklch(82.3% 0.12 346.018)`,400:`oklch(71.8% 0.202 349.761)`,500:`oklch(65.6% 0.241 354.308)`,600:`oklch(59.2% 0.249 0.584)`,700:`oklch(52.5% 0.223 3.958)`,800:`oklch(45.9% 0.187 3.815)`,900:`oklch(40.8% 0.153 2.432)`,950:`oklch(28.4% 0.109 3.907)`},rose:{50:`oklch(96.9% 0.015 12.422)`,100:`oklch(94.1% 0.03 12.58)`,200:`oklch(89.2% 0.058 10.001)`,300:`oklch(81% 0.117 11.638)`,400:`oklch(71.2% 0.194 13.428)`,500:`oklch(64.5% 0.246 16.439)`,600:`oklch(58.6% 0.253 17.585)`,700:`oklch(51.4% 0.222 16.935)`,800:`oklch(45.5% 0.188 13.697)`,900:`oklch(41% 0.159 10.272)`,950:`oklch(27.1% 0.105 12.094)`},mauve:{50:`oklch(98.5% 0 0)`,100:`oklch(96% 0.003 325.6)`,200:`oklch(92.2% 0.005 325.62)`,300:`oklch(86.5% 0.012 325.68)`,400:`oklch(71.1% 0.019 323.02)`,500:`oklch(54.2% 0.034 322.5)`,600:`oklch(43.5% 0.029 321.78)`,700:`oklch(36.4% 0.029 323.89)`,800:`oklch(26.3% 0.024 320.12)`,900:`oklch(21.2% 0.019 322.12)`,950:`oklch(14.5% 0.008 326)`},olive:{50:`oklch(98.8% 0.003 106.5)`,100:`oklch(96.6% 0.005 106.5)`,200:`oklch(93% 0.007 106.5)`,300:`oklch(88% 0.011 106.6)`,400:`oklch(73.7% 0.021 106.9)`,500:`oklch(58% 0.031 107.3)`,600:`oklch(46.6% 0.025 107.3)`,700:`oklch(39.4% 0.023 107.4)`,800:`oklch(28.6% 0.016 107.4)`,900:`oklch(22.8% 0.013 107.4)`,950:`oklch(15.3% 0.006 107.1)`},mist:{50:`oklch(98.7% 0.002 197.1)`,100:`oklch(96.3% 0.002 197.1)`,200:`oklch(92.5% 0.005 214.3)`,300:`oklch(87.2% 0.007 219.6)`,400:`oklch(72.3% 0.014 214.4)`,500:`oklch(56% 0.021 213.5)`,600:`oklch(45% 0.017 213.2)`,700:`oklch(37.8% 0.015 216)`,800:`oklch(27.5% 0.011 216.9)`,900:`oklch(21.8% 0.008 223.9)`,950:`oklch(14.8% 0.004 228.8)`},taupe:{50:`oklch(98.6% 0.002 67.8)`,100:`oklch(96% 0.002 17.2)`,200:`oklch(92.2% 0.005 34.3)`,300:`oklch(86.8% 0.007 39.5)`,400:`oklch(71.4% 0.014 41.2)`,500:`oklch(54.7% 0.021 43.1)`,600:`oklch(43.8% 0.017 39.3)`,700:`oklch(36.7% 0.016 35.7)`,800:`oklch(26.8% 0.011 36.5)`,900:`oklch(21.4% 0.009 43.1)`,950:`oklch(14.7% 0.004 49.3)`}};function br(e,t){let n=le(e.trim());if(!n)return console.warn(`[convertColor] Could not parse color: "${e}"`),null;let r=n;switch(t){case`hex`:return mr(r)??null;case`rgb`:{let e=hr(r);return e.startsWith(`rgba`)?e.replace(/,\s*[\d.]+\)$/,`)`).replace(`rgba`,`rgb`):e}case`rgba`:return hr(r)??null;case`hsl`:{let e=gr(r);return e.startsWith(`hsla`)?e.replace(/,\s*[\d.]+\)$/,`)`).replace(`hsla`,`hsl`):e}case`hsla`:return gr(r)??null;default:return null}}function xr(e,t){if(typeof window>`u`)return null;let n=getComputedStyle(document.documentElement).getPropertyValue(e).trim();return n?br(n,t):(console.warn(`[getCssVarAsColor] CSS variable "${e}" is empty or not found.`),null)}export{vr as i,br as n,xr as r,yr as t}; \ No newline at end of file diff --git a/public/build/assets/confirm-password-hf93YGU9.js b/public/build/assets/confirm-password-BNeZIAHY.js similarity index 76% rename from public/build/assets/confirm-password-hf93YGU9.js rename to public/build/assets/confirm-password-BNeZIAHY.js index fd37c6c..2de9eae 100644 --- a/public/build/assets/confirm-password-hf93YGU9.js +++ b/public/build/assets/confirm-password-BNeZIAHY.js @@ -1 +1 @@ -import{t as e}from"./password-input-QL8S9D3F.js";import{Jt as t,V as n,Wt as r,Yt as i,qt as a}from"./app-CVlP31Z1.js";import{t as o}from"./input-error-BdHD9-x4.js";import{t as s}from"./label-D-AkZnW_.js";import{t as c}from"./spinner-CoRrGFqk.js";import{n as l}from"./confirm-iDcX_7zW.js";var u=a(),d=r();function f(){let e=(0,u.c)(2),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,d.jsx)(i,{title:`Confirm password`}),e[0]=n):n=e[0];let r;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,d.jsxs)(d.Fragment,{children:[n,(0,d.jsx)(t,{...l.form(),resetOnSuccess:[`password`],children:p})]}),e[1]=r):r=e[1],r}function p(t){let{processing:r,errors:i}=t;return(0,d.jsxs)(`div`,{className:`space-y-6`,children:[(0,d.jsxs)(`div`,{className:`grid gap-2`,children:[(0,d.jsx)(s,{htmlFor:`password`,children:`Password`}),(0,d.jsx)(e,{id:`password`,name:`password`,placeholder:`Password`,autoComplete:`current-password`,autoFocus:!0}),(0,d.jsx)(o,{message:i.password})]}),(0,d.jsx)(`div`,{className:`flex items-center`,children:(0,d.jsxs)(n,{className:`w-full`,disabled:r,"data-test":`confirm-password-button`,children:[r&&(0,d.jsx)(c,{}),`Confirm password`]})})]})}f.layout={title:`Confirm your password`,description:`This is a secure area of the application. Please confirm your password before continuing.`};export{f as default}; \ No newline at end of file +import{t as e}from"./password-input-__9RhIwi.js";import{Jt as t,V as n,Wt as r,Yt as i,qt as a}from"./app-D7MKN1zp.js";import{t as o}from"./input-error-CzZYqI_U.js";import{t as s}from"./label-fRwP89Ez.js";import{t as c}from"./spinner-CCI0ZpZ9.js";import{n as l}from"./confirm-tDhmficG.js";var u=a(),d=r();function f(){let e=(0,u.c)(2),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,d.jsx)(i,{title:`Confirm password`}),e[0]=n):n=e[0];let r;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,d.jsxs)(d.Fragment,{children:[n,(0,d.jsx)(t,{...l.form(),resetOnSuccess:[`password`],children:p})]}),e[1]=r):r=e[1],r}function p(t){let{processing:r,errors:i}=t;return(0,d.jsxs)(`div`,{className:`space-y-6`,children:[(0,d.jsxs)(`div`,{className:`grid gap-2`,children:[(0,d.jsx)(s,{htmlFor:`password`,children:`Password`}),(0,d.jsx)(e,{id:`password`,name:`password`,placeholder:`Password`,autoComplete:`current-password`,autoFocus:!0}),(0,d.jsx)(o,{message:i.password})]}),(0,d.jsx)(`div`,{className:`flex items-center`,children:(0,d.jsxs)(n,{className:`w-full`,disabled:r,"data-test":`confirm-password-button`,children:[r&&(0,d.jsx)(c,{}),`Confirm password`]})})]})}f.layout={title:`Confirm your password`,description:`This is a secure area of the application. Please confirm your password before continuing.`};export{f as default}; \ No newline at end of file diff --git a/public/build/assets/confirm-iDcX_7zW.js b/public/build/assets/confirm-tDhmficG.js similarity index 82% rename from public/build/assets/confirm-iDcX_7zW.js rename to public/build/assets/confirm-tDhmficG.js index d38f86f..6290a93 100644 --- a/public/build/assets/confirm-iDcX_7zW.js +++ b/public/build/assets/confirm-tDhmficG.js @@ -1 +1 @@ -import{f as e}from"./app-CVlP31Z1.js";var t=e=>({url:t.url(e),method:`post`});t.definition={methods:[`post`],url:`/user/confirm-password`},t.url=n=>t.definition.url+e(n),t.post=e=>({url:t.url(e),method:`post`});var n=e=>({action:t.url(e),method:`post`});n.post=e=>({action:t.url(e),method:`post`}),t.form=n;var r={store:Object.assign(t,t)};export{t as n,r as t}; \ No newline at end of file +import{f as e}from"./app-D7MKN1zp.js";var t=e=>({url:t.url(e),method:`post`});t.definition={methods:[`post`],url:`/user/confirm-password`},t.url=n=>t.definition.url+e(n),t.post=e=>({url:t.url(e),method:`post`});var n=e=>({action:t.url(e),method:`post`});n.post=e=>({action:t.url(e),method:`post`}),t.form=n;var r={store:Object.assign(t,t)};export{t as n,r as t}; \ No newline at end of file diff --git a/public/build/assets/copy-CgW44MFY.js b/public/build/assets/copy-HrVumo6t.js similarity index 71% rename from public/build/assets/copy-CgW44MFY.js rename to public/build/assets/copy-HrVumo6t.js index 7e46f67..f6951ac 100644 --- a/public/build/assets/copy-CgW44MFY.js +++ b/public/build/assets/copy-HrVumo6t.js @@ -1 +1 @@ -import{G as e}from"./app-CVlP31Z1.js";var t=e(`Copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file +import{G as e}from"./app-D7MKN1zp.js";var t=e(`Copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/create-BmSt6sO8.js b/public/build/assets/create-BmSt6sO8.js new file mode 100644 index 0000000..62ee0cc --- /dev/null +++ b/public/build/assets/create-BmSt6sO8.js @@ -0,0 +1 @@ +import{t as e}from"./loader-circle-YfjFJaoY.js";import{t}from"./main-layout-qej9zSi0.js";import{i as n,n as r,r as i,t as a}from"./popover-B2UUPq8p.js";import{i as o,n as s,r as c,t as ee}from"./tabs-CNNfAj8l.js";import{$t as l,B as u,G as d,Kt as f,V as p,Wt as m,Yt as h,ln as g,qt as _,r as v,rn as y}from"./app-D7MKN1zp.js";import{a as b,i as x,n as S,o as C,r as w,t as T}from"./card-C1ekp7Ou.js";import{a as E,c as D,l as te}from"./glow-stack-BaNii-nE.js";import{t as O}from"./label-fRwP89Ez.js";import{n as ne,t as re}from"./color-utils-DTvyGxAC.js";import{t as ie}from"./main-theme-card-B0GTBBPN.js";var ae=d(`FileJson`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),oe=d(`PenLine`,[[`path`,{d:`M12 20h9`,key:`t2du7b`}],[`path`,{d:`M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z`,key:`1ykcvy`}]]),se=d(`Save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),ce=_(),k=g(y(),1),A=m();function le({onGenerated:t}){let[r,i]=(0,k.useState)(``),[a,o]=(0,k.useState)(!1),s=async()=>{if(r){o(!0);try{let e=await fetch(E().url,{method:`POST`,headers:{"Content-Type":`application/json`,"X-CSRF-TOKEN":document.querySelector(`meta[name="csrf-token"]`)?.content||``},body:JSON.stringify({prompt:r})});if(!e.ok)throw Error(`Failed to generate theme`);t(await e.json()),f.success(`Theme generated successfully!`)}catch(e){console.error(e),f.error(`Failed to generate theme. Please try again.`)}finally{o(!1)}}};return(0,A.jsxs)(T,{children:[(0,A.jsxs)(b,{children:[(0,A.jsxs)(C,{className:`flex items-center gap-2`,children:[(0,A.jsx)(n,{className:`size-5 text-primary`}),`Generate with AI`]}),(0,A.jsx)(w,{children:`Describe the mood, style, or specific colors you want for your theme.`})]}),(0,A.jsxs)(S,{className:`space-y-4`,children:[(0,A.jsxs)(`div`,{className:`space-y-2`,children:[(0,A.jsx)(O,{htmlFor:`prompt`,children:`Describe your theme`}),(0,A.jsx)(u,{id:`prompt`,placeholder:`e.g., A futuristic neon theme with high contrast, dark purple background and cyan accents.`,value:r,onChange:e=>i(e.target.value),onKeyDown:e=>e.key===`Enter`&&s()})]}),(0,A.jsx)(p,{onClick:s,disabled:a||!r,className:`w-full`,children:a?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(e,{className:`mr-2 h-4 w-4 animate-spin`}),`Generating...`]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(n,{className:`mr-2 h-4 w-4`}),`Generate Theme`]})})]})]})}function ue(e){let t=(0,ce.c)(35),{label:n,value:o,onChange:s}=e,c;t[0]===o?c=t[1]:(c=ne(`hsl(${o})`,`hex`)||`#000000`,t[0]=o,t[1]=c);let ee=c,l;t[2]===s?l=t[3]:(l=e=>{let t=e.target.value,n=ne(t,`hsl`);if(n){let e=n.match(/hsl\(([^)]+)\)/);e&&s(e[1].split(/[,\s]+/).filter(Boolean).join(` `))}},t[2]=s,t[3]=l);let d=l,f;t[4]===s?f=t[5]:(f=e=>{let t=ne(e,`hsl`);if(t){let e=t.match(/hsl\(([^)]+)\)/);e&&s(e[1].split(/[,\s]+/).filter(Boolean).join(` `))}},t[4]=s,t[5]=f);let p=f,m;t[6]===n?m=t[7]:(m=(0,A.jsx)(O,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:n}),t[6]=n,t[7]=m);let h=`hsl(${o})`,g;t[8]===h?g=t[9]:(g=(0,A.jsx)(i,{asChild:!0,children:(0,A.jsx)(`button`,{className:`size-8 shrink-0 rounded-md border border-border shadow-sm transition-transform hover:scale-105`,style:{backgroundColor:h}})}),t[8]=h,t[9]=g);let _;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,A.jsx)(O,{className:`text-xs mb-2 block`,children:`Custom Color`}),t[10]=_):_=t[10];let v;t[11]!==d||t[12]!==ee?(v=(0,A.jsxs)(`div`,{className:`p-3 border-b`,children:[_,(0,A.jsx)(`input`,{type:`color`,value:ee,onChange:d,className:`h-10 w-full cursor-pointer border-none bg-transparent`})]}),t[11]=d,t[12]=ee,t[13]=v):v=t[13];let y;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,A.jsx)(O,{className:`text-xs mb-2 block`,children:`Tailwind Colors`}),t[14]=y):y=t[14];let b;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(b=Object.entries(re),t[15]=b):b=t[15];let x;t[16]===p?x=t[17]:(x=(0,A.jsxs)(`div`,{className:`h-64 overflow-y-auto p-3`,children:[y,(0,A.jsx)(`div`,{className:`grid grid-cols-1 gap-4`,children:b.map(e=>{let[t,n]=e;return(0,A.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,A.jsx)(`span`,{className:`text-[10px] text-muted-foreground capitalize`,children:t}),(0,A.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:Object.entries(n).map(e=>{let[n,r]=e;return(0,A.jsx)(`button`,{title:`${t}-${n}`,className:`size-5 rounded-sm border border-black/10 transition-transform hover:scale-110`,style:{backgroundColor:r},onClick:()=>p(r)},n)})})]},t)})})]}),t[16]=p,t[17]=x);let S;t[18]!==x||t[19]!==v?(S=(0,A.jsxs)(r,{className:`w-80 p-0`,align:`start`,children:[v,x]}),t[18]=x,t[19]=v,t[20]=S):S=t[20];let C;t[21]!==S||t[22]!==g?(C=(0,A.jsxs)(a,{children:[g,S]}),t[21]=S,t[22]=g,t[23]=C):C=t[23];let w;t[24]===s?w=t[25]:(w=e=>s(e.target.value),t[24]=s,t[25]=w);let T;t[26]!==w||t[27]!==o?(T=(0,A.jsx)(u,{value:o,onChange:w,className:`h-8 text-xs font-mono`}),t[26]=w,t[27]=o,t[28]=T):T=t[28];let E;t[29]!==C||t[30]!==T?(E=(0,A.jsxs)(`div`,{className:`flex items-center gap-2`,children:[C,T]}),t[29]=C,t[30]=T,t[31]=E):E=t[31];let D;return t[32]!==E||t[33]!==m?(D=(0,A.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[m,E]}),t[32]=E,t[33]=m,t[34]=D):D=t[34],D}var j=[`background`,`foreground`,`card`,`card-foreground`,`popover`,`popover-foreground`,`primary`,`primary-foreground`,`secondary`,`secondary-foreground`,`muted`,`muted-foreground`,`accent`,`accent-foreground`,`destructive`,`destructive-foreground`,`border`,`input`,`ring`];function de(e){let t=(0,ce.c)(24),{vars_light:n,vars_dark:r,onChange:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,A.jsxs)(b,{className:`pb-3`,children:[(0,A.jsx)(C,{children:`Theme Colors`}),(0,A.jsx)(w,{children:`Adjust the HSL values for light and dark modes.`})]}),t[0]=a):a=t[0];let l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,A.jsx)(`div`,{className:`mb-4 flex items-center justify-center rounded-lg bg-muted p-1`,children:(0,A.jsxs)(c,{className:`grid w-full grid-cols-2`,children:[(0,A.jsx)(o,{value:`light`,children:`Light Mode`}),(0,A.jsx)(o,{value:`dark`,children:`Dark Mode`})]})}),t[1]=l):l=t[1];let d;t[2]!==i||t[3]!==n?(d=j.map(e=>(0,A.jsx)(ue,{label:e,value:n[e]||`0 0% 0%`,onChange:t=>i(`light`,e,t)},e)),t[2]=i,t[3]=n,t[4]=d):d=t[4];let f;t[5]===d?f=t[6]:(f=(0,A.jsx)(`div`,{className:`grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-2 md:grid-cols-3`,children:d}),t[5]=d,t[6]=f);let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,A.jsx)(O,{htmlFor:`radius-light`,className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Radius`}),t[7]=p):p=t[7];let m=n.radius||`0.5rem`,h;t[8]===i?h=t[9]:(h=e=>i(`light`,`radius`,e.target.value),t[8]=i,t[9]=h);let g;t[10]!==m||t[11]!==h?(g=(0,A.jsx)(`div`,{className:`pt-4 border-t`,children:(0,A.jsxs)(`div`,{className:`w-full sm:w-1/3`,children:[p,(0,A.jsx)(u,{id:`radius-light`,value:m,onChange:h,placeholder:`e.g. 0.5rem`})]})}),t[10]=m,t[11]=h,t[12]=g):g=t[12];let _;t[13]!==f||t[14]!==g?(_=(0,A.jsxs)(s,{value:`light`,className:`space-y-6`,children:[f,g]}),t[13]=f,t[14]=g,t[15]=_):_=t[15];let v;t[16]!==i||t[17]!==r?(v=j.map(e=>(0,A.jsx)(ue,{label:e,value:r[e]||`0 0% 0%`,onChange:t=>i(`dark`,e,t)},e)),t[16]=i,t[17]=r,t[18]=v):v=t[18];let y;t[19]===v?y=t[20]:(y=(0,A.jsx)(s,{value:`dark`,className:`space-y-6`,children:(0,A.jsx)(`div`,{className:`grid grid-cols-1 gap-x-4 gap-y-6 sm:grid-cols-2 md:grid-cols-3`,children:v})}),t[19]=v,t[20]=y);let x;return t[21]!==y||t[22]!==_?(x=(0,A.jsxs)(T,{children:[a,(0,A.jsx)(S,{children:(0,A.jsxs)(ee,{defaultValue:`light`,children:[l,_,y]})})]}),t[21]=y,t[22]=_,t[23]=x):x=t[23],x}var fe={background:`0 0% 100%`,foreground:`240 10% 3.9%`,card:`0 0% 100%`,"card-foreground":`240 10% 3.9%`,popover:`0 0% 100%`,"popover-foreground":`240 10% 3.9%`,primary:`240 5.9% 10%`,"primary-foreground":`0 0% 98%`,secondary:`240 4.8% 95.9%`,"secondary-foreground":`240 5.9% 10%`,muted:`240 4.8% 95.9%`,"muted-foreground":`240 3.8% 46.1%`,accent:`240 4.8% 95.9%`,"accent-foreground":`240 5.9% 10%`,destructive:`0 84.2% 60.2%`,"destructive-foreground":`0 0% 98%`,border:`240 5.9% 90%`,input:`240 5.9% 90%`,ring:`240 5.9% 10%`,radius:`0.5rem`},pe={background:`240 10% 3.9%`,foreground:`0 0% 98%`,card:`240 10% 3.9%`,"card-foreground":`0 0% 98%`,popover:`240 10% 3.9%`,"popover-foreground":`0 0% 98%`,primary:`0 0% 98%`,"primary-foreground":`240 5.9% 10%`,secondary:`240 3.7% 15.9%`,"secondary-foreground":`0 0% 98%`,muted:`240 3.7% 15.9%`,"muted-foreground":`240 5% 64.9%`,accent:`240 3.7% 15.9%`,"accent-foreground":`0 0% 98%`,destructive:`0 62.8% 30.6%`,"destructive-foreground":`0 0% 98%`,border:`240 3.7% 15.9%`,input:`240 3.7% 15.9%`,ring:`240 4.9% 83.9%`};function me(t){let r=(0,ce.c)(109),{baseTheme:i}=t,[a,d]=(0,k.useState)(`import`),f;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(f={url:``,theme_data:null},r[0]=f):f=r[0];let{data:m,setData:g,post:_,processing:y,errors:E}=l(f),ne=i?.title||`My New Theme`,re=i?.name?`${i.name}-fork`:`my-new-theme`,ue=i?.description||`A custom theme created manually.`,j;r[1]===i?.tags?j=r[2]:(j=i?.tags||[`custom`],r[1]=i?.tags,r[2]=j);let me=i?.vars_light||fe,he=i?.vars_dark||pe,ge=i?.font_family||`Inter`,_e;r[3]!==ne||r[4]!==re||r[5]!==ue||r[6]!==j||r[7]!==me||r[8]!==he||r[9]!==ge?(_e={title:ne,name:re,description:ue,tags:j,vars_light:me,vars_dark:he,font_family:ge},r[3]=ne,r[4]=re,r[5]=ue,r[6]=j,r[7]=me,r[8]=he,r[9]=ge,r[10]=_e):_e=r[10];let[M,ve]=(0,k.useState)(_e),ye,be;r[11]===i?(ye=r[12],be=r[13]):(ye=()=>{i&&d(`manual`)},be=[i],r[11]=i,r[12]=ye,r[13]=be),(0,k.useEffect)(ye,be);let xe;r[14]===_?xe=r[15]:(xe=e=>{e.preventDefault(),_(D().url)},r[14]=_,r[15]=xe);let Se=xe,Ce;r[16]!==M||r[17]!==g?(Ce=e=>{e.preventDefault(),g(`theme_data`,{...M,cssVars:{light:M.vars_light,dark:M.vars_dark}})},r[16]=M,r[17]=g,r[18]=Ce):Ce=r[18];let we=Ce,Te;r[19]!==m.theme_data||r[20]!==_?(Te=()=>{m.theme_data&&_(D().url)},r[19]=m.theme_data,r[20]=_,r[21]=Te):Te=r[21];let Ee;r[22]===m.theme_data?Ee=r[23]:(Ee=[m.theme_data],r[22]=m.theme_data,r[23]=Ee),(0,k.useEffect)(Te,Ee);let De;r[24]===Symbol.for(`react.memo_cache_sentinel`)?(De=e=>{ve({title:e.title,name:e.name,description:e.description,tags:e.tags,vars_light:e.vars_light,vars_dark:e.vars_dark,font_family:e.font_family||`Inter`}),d(`manual`)},r[24]=De):De=r[24];let Oe=De,ke;r[25]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(e,t,n)=>{ve(r=>({...r,vars_light:e===`light`?{...r.vars_light,[t]:n}:r.vars_light,vars_dark:e===`dark`?{...r.vars_dark,[t]:n}:r.vars_dark}))},r[25]=ke):ke=r[25];let Ae=ke,je;r[26]===Symbol.for(`react.memo_cache_sentinel`)?(je={},r[26]=je):je=r[26];let N;r[27]!==M.vars_dark||r[28]!==M.vars_light?(N={light:M.vars_light,dark:M.vars_dark,theme:je},r[27]=M.vars_dark,r[28]=M.vars_light,r[29]=N):N=r[29];let Me;r[30]!==M||r[31]!==N?(Me={...M,cssVars:N},r[30]=M,r[31]=N,r[32]=Me):Me=r[32];let Ne=Me,Pe;r[33]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,A.jsx)(h,{title:`Create Theme`}),r[33]=Pe):Pe=r[33];let Fe;r[34]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,A.jsx)(v,{title:`Create New Theme`,description:`Import, generate with AI, or manually craft your perfect shadcn/ui theme.`}),r[34]=Fe):Fe=r[34];let Ie;r[35]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,A.jsxs)(o,{value:`import`,className:`flex items-center gap-2`,children:[(0,A.jsx)(ae,{className:`size-4`}),`Import URL`]}),r[35]=Ie):Ie=r[35];let Le;r[36]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,A.jsxs)(o,{value:`ai`,className:`flex items-center gap-2`,children:[(0,A.jsx)(n,{className:`size-4`}),`AI`]}),r[36]=Le):Le=r[36];let Re;r[37]===Symbol.for(`react.memo_cache_sentinel`)?(Re=(0,A.jsxs)(c,{className:`grid w-full grid-cols-3 lg:w-[400px]`,children:[Ie,Le,(0,A.jsxs)(o,{value:`manual`,className:`flex items-center gap-2`,children:[(0,A.jsx)(oe,{className:`size-4`}),`Manual`]})]}),r[37]=Re):Re=r[37];let ze;r[38]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,A.jsxs)(b,{children:[(0,A.jsx)(C,{children:`Import from URL`}),(0,A.jsx)(w,{children:`Enter a valid shadcn registry JSON URL (e.g. from tweakcn.com).`})]}),r[38]=ze):ze=r[38];let Be;r[39]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,A.jsx)(O,{className:`inline-flex`,htmlFor:`url`,children:`Registry URL`}),r[39]=Be):Be=r[39];let P;r[40]===g?P=r[41]:(P=e=>g(`url`,e.target.value),r[40]=g,r[41]=P);let F;r[42]!==m.url||r[43]!==P?(F=(0,A.jsx)(u,{id:`url`,type:`url`,placeholder:`https://tweakcn.com/r/themes/neo-brutalism.json`,value:m.url,onChange:P,required:!0,autoFocus:!0}),r[42]=m.url,r[43]=P,r[44]=F):F=r[44];let I;r[45]===E.url?I=r[46]:(I=E.url&&(0,A.jsx)(`p`,{className:`text-sm font-medium text-destructive`,children:E.url}),r[45]=E.url,r[46]=I);let L;r[47]!==F||r[48]!==I?(L=(0,A.jsx)(S,{className:`space-y-4`,children:(0,A.jsxs)(`div`,{className:`space-y-2`,children:[Be,F,I]})}),r[47]=F,r[48]=I,r[49]=L):L=r[49];let R;r[50]===y?R=r[51]:(R=y&&(0,A.jsx)(e,{className:`mr-2 h-4 w-4 animate-spin`}),r[50]=y,r[51]=R);let z;r[52]!==y||r[53]!==R?(z=(0,A.jsx)(x,{className:`pt-4`,children:(0,A.jsxs)(p,{type:`submit`,disabled:y,children:[R,`Import Theme`]})}),r[52]=y,r[53]=R,r[54]=z):z=r[54];let B;r[55]!==Se||r[56]!==L||r[57]!==z?(B=(0,A.jsx)(s,{value:`import`,children:(0,A.jsx)(T,{className:`mx-auto max-w-2xl`,children:(0,A.jsxs)(`form`,{onSubmit:Se,children:[ze,L,z]})})}),r[55]=Se,r[56]=L,r[57]=z,r[58]=B):B=r[58];let Ve;r[59]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=(0,A.jsx)(s,{value:`ai`,children:(0,A.jsx)(`div`,{className:`mx-auto max-w-2xl`,children:(0,A.jsx)(le,{onGenerated:Oe})})}),r[59]=Ve):Ve=r[59];let He;r[60]===Symbol.for(`react.memo_cache_sentinel`)?(He=(0,A.jsxs)(b,{children:[(0,A.jsx)(C,{children:`Theme Information`}),(0,A.jsx)(w,{children:`Basic details about your theme.`})]}),r[60]=He):He=r[60];let Ue;r[61]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,A.jsx)(O,{htmlFor:`title`,children:`Title`}),r[61]=Ue):Ue=r[61];let We;r[62]===Symbol.for(`react.memo_cache_sentinel`)?(We=e=>ve(t=>({...t,title:e.target.value})),r[62]=We):We=r[62];let V;r[63]===M.title?V=r[64]:(V=(0,A.jsxs)(`div`,{className:`space-y-2`,children:[Ue,(0,A.jsx)(u,{id:`title`,value:M.title,onChange:We})]}),r[63]=M.title,r[64]=V);let Ge;r[65]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,A.jsx)(O,{htmlFor:`name`,children:`Slug (kebab-case)`}),r[65]=Ge):Ge=r[65];let Ke;r[66]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=e=>ve(t=>({...t,name:e.target.value})),r[66]=Ke):Ke=r[66];let H;r[67]===M.name?H=r[68]:(H=(0,A.jsxs)(`div`,{className:`space-y-2`,children:[Ge,(0,A.jsx)(u,{id:`name`,value:M.name,onChange:Ke})]}),r[67]=M.name,r[68]=H);let U;r[69]!==V||r[70]!==H?(U=(0,A.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[V,H]}),r[69]=V,r[70]=H,r[71]=U):U=r[71];let qe;r[72]===Symbol.for(`react.memo_cache_sentinel`)?(qe=(0,A.jsx)(O,{htmlFor:`description`,children:`Description`}),r[72]=qe):qe=r[72];let Je;r[73]===Symbol.for(`react.memo_cache_sentinel`)?(Je=e=>ve(t=>({...t,description:e.target.value})),r[73]=Je):Je=r[73];let W;r[74]===M.description?W=r[75]:(W=(0,A.jsxs)(`div`,{className:`space-y-2`,children:[qe,(0,A.jsx)(u,{id:`description`,value:M.description,onChange:Je})]}),r[74]=M.description,r[75]=W);let G;r[76]!==U||r[77]!==W?(G=(0,A.jsxs)(T,{children:[He,(0,A.jsxs)(S,{className:`space-y-4`,children:[U,W]})]}),r[76]=U,r[77]=W,r[78]=G):G=r[78];let K;r[79]!==M.vars_dark||r[80]!==M.vars_light?(K=(0,A.jsx)(de,{vars_light:M.vars_light,vars_dark:M.vars_dark,onChange:Ae}),r[79]=M.vars_dark,r[80]=M.vars_light,r[81]=K):K=r[81];let q;r[82]===y?q=r[83]:(q=y?(0,A.jsx)(e,{className:`mr-2 h-4 w-4 animate-spin`}):(0,A.jsx)(se,{className:`mr-2 h-4 w-4`}),r[82]=y,r[83]=q);let J;r[84]!==we||r[85]!==y||r[86]!==q?(J=(0,A.jsx)(`div`,{className:`flex justify-end`,children:(0,A.jsxs)(p,{size:`lg`,onClick:we,disabled:y,children:[q,`Save Theme`]})}),r[84]=we,r[85]=y,r[86]=q,r[87]=J):J=r[87];let Y;r[88]!==G||r[89]!==K||r[90]!==J?(Y=(0,A.jsxs)(`div`,{className:`lg:col-span-2 space-y-6`,children:[G,K,J]}),r[88]=G,r[89]=K,r[90]=J,r[91]=Y):Y=r[91];let Ye;r[92]===Symbol.for(`react.memo_cache_sentinel`)?(Ye=(0,A.jsx)(`h3`,{className:`mb-4 text-sm font-medium text-muted-foreground uppercase tracking-wider`,children:`Preview`}),r[92]=Ye):Ye=r[92];let X;r[93]===Ne?X=r[94]:(X=(0,A.jsx)(ie,{theme:Ne}),r[93]=Ne,r[94]=X);let Xe;r[95]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,A.jsx)(`div`,{className:`mt-6 rounded-lg bg-muted p-4 text-sm text-muted-foreground`,children:(0,A.jsx)(`p`,{children:`Your theme will be saved to your account. You can further refine it or publish it for others to use.`})}),r[95]=Xe):Xe=r[95];let Z;r[96]===X?Z=r[97]:(Z=(0,A.jsx)(`div`,{className:`space-y-6`,children:(0,A.jsxs)(`div`,{className:`sticky top-8`,children:[Ye,X,Xe]})}),r[96]=X,r[97]=Z);let Q;r[98]!==Y||r[99]!==Z?(Q=(0,A.jsx)(s,{value:`manual`,children:(0,A.jsxs)(`div`,{className:`grid grid-cols-1 gap-8 lg:grid-cols-3`,children:[Y,Z]})}),r[98]=Y,r[99]=Z,r[100]=Q):Q=r[100];let $;r[101]!==a||r[102]!==B||r[103]!==Q?($=(0,A.jsxs)(ee,{value:a,onValueChange:d,className:`space-y-6`,children:[Re,B,Ve,Q]}),r[101]=a,r[102]=B,r[103]=Q,r[104]=$):$=r[104];let Ze;r[105]===Symbol.for(`react.memo_cache_sentinel`)?(Ze=(0,A.jsx)(`h3`,{className:`mb-2 text-sm font-semibold`,children:`Tips:`}),r[105]=Ze):Ze=r[105];let Qe;r[106]===Symbol.for(`react.memo_cache_sentinel`)?(Qe=(0,A.jsxs)(`div`,{className:`mt-12 rounded-lg bg-muted p-4`,children:[Ze,(0,A.jsxs)(`ul`,{className:`list-inside list-disc space-y-1 text-sm text-muted-foreground`,children:[(0,A.jsx)(`li`,{children:`Importing from URL is the fastest way to bring in existing themes.`}),(0,A.jsx)(`li`,{children:`Use AI to quickly explore different color palettes and moods.`}),(0,A.jsx)(`li`,{children:`Manual mode gives you full control over every single color variable.`})]})]}),r[106]=Qe):Qe=r[106];let $e;return r[107]===$?$e=r[108]:($e=(0,A.jsxs)(te,{className:`py-8`,children:[Pe,(0,A.jsxs)(`div`,{className:`mx-auto max-w-5xl`,children:[Fe,$,Qe]})]}),r[107]=$,r[108]=$e),$e}me.layout=t;export{me as default}; \ No newline at end of file diff --git a/public/build/assets/create-DWmMMfkI.js b/public/build/assets/create-DWmMMfkI.js deleted file mode 100644 index 95ca601..0000000 --- a/public/build/assets/create-DWmMMfkI.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./loader-circle-XO7crStb.js";import{a as t,t as n}from"./main-layout-DiaP0ISn.js";import{$t as r,B as i,V as a,Wt as o,Yt as s,qt as c,r as l}from"./app-CVlP31Z1.js";import{a as u,i as d,n as f,o as p,r as m,t as h}from"./card-BMwhGcsv.js";import{i as g}from"./glow-stack-DaYuOL5d.js";import{t as _}from"./label-D-AkZnW_.js";var v=c(),y=o();function b(){let n=(0,v.c)(30),o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={url:``},n[0]=o):o=n[0];let{data:c,setData:b,post:x,processing:S,errors:C}=r(o),w;n[1]===x?w=n[2]:(w=e=>{e.preventDefault(),x(t().url)},n[1]=x,n[2]=w);let T=w,E;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,y.jsx)(s,{title:`Create Theme`}),n[3]=E):E=n[3];let D;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,y.jsx)(l,{title:`Create New Theme`,description:`Import a shadcn/ui theme registry JSON to create a new theme in the database.`}),n[4]=D):D=n[4];let O;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,y.jsxs)(u,{children:[(0,y.jsx)(p,{children:`Import from URL`}),(0,y.jsx)(m,{children:`Enter a valid shadcn registry JSON URL (e.g. from tweakcn.com).`})]}),n[5]=O):O=n[5];let k;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,y.jsx)(_,{className:`inline-flex`,htmlFor:`url`,children:`Registry URL`}),n[6]=k):k=n[6];let A;n[7]===b?A=n[8]:(A=e=>b(`url`,e.target.value),n[7]=b,n[8]=A);let j;n[9]!==c.url||n[10]!==A?(j=(0,y.jsx)(i,{id:`url`,type:`url`,placeholder:`https://tweakcn.com/r/themes/neo-brutalism.json`,value:c.url,onChange:A,required:!0,autoFocus:!0}),n[9]=c.url,n[10]=A,n[11]=j):j=n[11];let M;n[12]===C.url?M=n[13]:(M=C.url&&(0,y.jsx)(`p`,{className:`text-sm font-medium text-destructive`,children:C.url}),n[12]=C.url,n[13]=M);let N;n[14]!==j||n[15]!==M?(N=(0,y.jsx)(f,{className:`space-y-4`,children:(0,y.jsxs)(`div`,{className:`space-y-2`,children:[k,j,M]})}),n[14]=j,n[15]=M,n[16]=N):N=n[16];let P;n[17]===S?P=n[18]:(P=S&&(0,y.jsx)(e,{className:`mr-2 h-4 w-4 animate-spin`}),n[17]=S,n[18]=P);let F;n[19]!==S||n[20]!==P?(F=(0,y.jsx)(d,{className:`pt-4`,children:(0,y.jsxs)(a,{type:`submit`,disabled:S,children:[P,`Import Theme`]})}),n[19]=S,n[20]=P,n[21]=F):F=n[21];let I;n[22]!==T||n[23]!==F||n[24]!==N?(I=(0,y.jsx)(h,{children:(0,y.jsxs)(`form`,{onSubmit:T,children:[O,N,F]})}),n[22]=T,n[23]=F,n[24]=N,n[25]=I):I=n[25];let L;n[26]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,y.jsx)(`h3`,{className:`mb-2 text-sm font-semibold`,children:`Example URLs:`}),n[26]=L):L=n[26];let R;n[27]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,y.jsxs)(`div`,{className:`mt-8 rounded-lg bg-muted p-4`,children:[L,(0,y.jsxs)(`ul`,{className:`list-inside list-disc space-y-1 text-sm text-muted-foreground`,children:[(0,y.jsx)(`li`,{children:`https://tweakcn.com/r/themes/neo-brutalism.json`}),(0,y.jsx)(`li`,{children:`https://tweakcn.com/r/themes/modern-dark.json`})]})]}),n[27]=R):R=n[27];let z;return n[28]===I?z=n[29]:(z=(0,y.jsxs)(g,{className:`py-8`,children:[E,(0,y.jsxs)(`div`,{className:`mx-auto max-w-2xl`,children:[D,I,R]})]}),n[28]=I,n[29]=z),z}b.layout=n;export{b as default}; \ No newline at end of file diff --git a/public/build/assets/dashboard-DfTez4xA.js b/public/build/assets/dashboard-oAHwTN2S.js similarity index 93% rename from public/build/assets/dashboard-DfTez4xA.js rename to public/build/assets/dashboard-oAHwTN2S.js index 20ca564..f0ab6b3 100644 --- a/public/build/assets/dashboard-DfTez4xA.js +++ b/public/build/assets/dashboard-oAHwTN2S.js @@ -1 +1 @@ -import{Wt as e,Yt as t,a as n,qt as r}from"./app-CVlP31Z1.js";import{t as i}from"./placeholder-pattern-CMjSLXXB.js";var a=r(),o=e();function s(){let e=(0,a.c)(5),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,o.jsx)(t,{title:`Dashboard`}),e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})}),e[1]=r):r=e[1];let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})}),e[2]=s):s=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsxs)(`div`,{className:`grid auto-rows-min gap-4 md:grid-cols-3`,children:[r,s,(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})})]}),e[3]=c):c=e[3];let l;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,o.jsxs)(o.Fragment,{children:[n,(0,o.jsxs)(`div`,{className:`flex h-full flex-1 flex-col gap-4 overflow-x-auto rounded-xl p-4`,children:[c,(0,o.jsx)(`div`,{className:`relative min-h-[100vh] flex-1 overflow-hidden rounded-xl border border-sidebar-border/70 md:min-h-min dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})})]})]}),e[4]=l):l=e[4],l}s.layout={breadcrumbs:[{title:`Dashboard`,href:n()}]};export{s as default}; \ No newline at end of file +import{Wt as e,Yt as t,a as n,qt as r}from"./app-D7MKN1zp.js";import{t as i}from"./placeholder-pattern-DUvj6lOE.js";var a=r(),o=e();function s(){let e=(0,a.c)(5),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,o.jsx)(t,{title:`Dashboard`}),e[0]=n):n=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})}),e[1]=r):r=e[1];let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})}),e[2]=s):s=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,o.jsxs)(`div`,{className:`grid auto-rows-min gap-4 md:grid-cols-3`,children:[r,s,(0,o.jsx)(`div`,{className:`relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})})]}),e[3]=c):c=e[3];let l;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,o.jsxs)(o.Fragment,{children:[n,(0,o.jsxs)(`div`,{className:`flex h-full flex-1 flex-col gap-4 overflow-x-auto rounded-xl p-4`,children:[c,(0,o.jsx)(`div`,{className:`relative min-h-[100vh] flex-1 overflow-hidden rounded-xl border border-sidebar-border/70 md:min-h-min dark:border-sidebar-border`,children:(0,o.jsx)(i,{className:`absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20`})})]})]}),e[4]=l):l=e[4],l}s.layout={breadcrumbs:[{title:`Dashboard`,href:n()}]};export{s as default}; \ No newline at end of file diff --git a/public/build/assets/dialog-D1phUQb7.js b/public/build/assets/dialog-CM260op0.js similarity index 98% rename from public/build/assets/dialog-D1phUQb7.js rename to public/build/assets/dialog-CM260op0.js index cbb80db..635c3a4 100644 --- a/public/build/assets/dialog-D1phUQb7.js +++ b/public/build/assets/dialog-CM260op0.js @@ -1 +1 @@ -import{A as e,D as t,E as n,H as r,O as i,Q as a,T as o,Wt as s,j as c,k as l,qt as u,rn as d,w as f}from"./app-CVlP31Z1.js";var p=u();d();var m=s();function h(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(l,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(c,{"data-slot":`dialog-trigger`,...n}),t[2]=n,t[3]=r),r}function _(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(i,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function v(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(f,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function y(e){let n=(0,p.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let o;n[3]===r?o=n[4]:(o=a(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,r),n[3]=r,n[4]=o);let s;return n[5]!==i||n[6]!==o?(s=(0,m.jsx)(t,{"data-slot":`dialog-overlay`,className:o,...i}),n[5]=i,n[6]=o,n[7]=s):s=n[7],s}function b(e){let t=(0,p.c)(12),n,i,s;t[0]===e?(n=t[1],i=t[2],s=t[3]):({className:i,children:n,...s}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=s);let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,m.jsx)(y,{}),t[4]=c):c=t[4];let l;t[5]===i?l=t[6]:(l=a(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,i),t[5]=i,t[6]=l);let u;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,m.jsxs)(f,{className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,m.jsx)(r,{}),(0,m.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[7]=u):u=t[7];let d;return t[8]!==n||t[9]!==s||t[10]!==l?(d=(0,m.jsxs)(_,{"data-slot":`dialog-portal`,children:[c,(0,m.jsxs)(o,{"data-slot":`dialog-content`,className:l,...s,children:[n,u]})]}),t[8]=n,t[9]=s,t[10]=l,t[11]=d):d=t[11],d}function x(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`flex flex-col gap-2 text-center sm:text-left`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,m.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function S(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,m.jsx)(`div`,{"data-slot":`dialog-footer`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function C(t){let n=(0,p.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let o;n[3]===r?o=n[4]:(o=a(`text-lg leading-none font-semibold`,r),n[3]=r,n[4]=o);let s;return n[5]!==i||n[6]!==o?(s=(0,m.jsx)(e,{"data-slot":`dialog-title`,className:o,...i}),n[5]=i,n[6]=o,n[7]=s):s=n[7],s}function w(e){let t=(0,p.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let o;t[3]===r?o=t[4]:(o=a(`text-muted-foreground text-sm`,r),t[3]=r,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,m.jsx)(n,{"data-slot":`dialog-description`,className:o,...i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}export{S as a,g as c,w as i,v as n,x as o,b as r,C as s,h as t}; \ No newline at end of file +import{A as e,D as t,E as n,H as r,O as i,Q as a,T as o,Wt as s,j as c,k as l,qt as u,rn as d,w as f}from"./app-D7MKN1zp.js";var p=u();d();var m=s();function h(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(l,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(c,{"data-slot":`dialog-trigger`,...n}),t[2]=n,t[3]=r),r}function _(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(i,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function v(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(f,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function y(e){let n=(0,p.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let o;n[3]===r?o=n[4]:(o=a(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,r),n[3]=r,n[4]=o);let s;return n[5]!==i||n[6]!==o?(s=(0,m.jsx)(t,{"data-slot":`dialog-overlay`,className:o,...i}),n[5]=i,n[6]=o,n[7]=s):s=n[7],s}function b(e){let t=(0,p.c)(12),n,i,s;t[0]===e?(n=t[1],i=t[2],s=t[3]):({className:i,children:n,...s}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=s);let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,m.jsx)(y,{}),t[4]=c):c=t[4];let l;t[5]===i?l=t[6]:(l=a(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,i),t[5]=i,t[6]=l);let u;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,m.jsxs)(f,{className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,m.jsx)(r,{}),(0,m.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[7]=u):u=t[7];let d;return t[8]!==n||t[9]!==s||t[10]!==l?(d=(0,m.jsxs)(_,{"data-slot":`dialog-portal`,children:[c,(0,m.jsxs)(o,{"data-slot":`dialog-content`,className:l,...s,children:[n,u]})]}),t[8]=n,t[9]=s,t[10]=l,t[11]=d):d=t[11],d}function x(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`flex flex-col gap-2 text-center sm:text-left`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,m.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function S(e){let t=(0,p.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,n),t[3]=n,t[4]=i);let o;return t[5]!==r||t[6]!==i?(o=(0,m.jsx)(`div`,{"data-slot":`dialog-footer`,className:i,...r}),t[5]=r,t[6]=i,t[7]=o):o=t[7],o}function C(t){let n=(0,p.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let o;n[3]===r?o=n[4]:(o=a(`text-lg leading-none font-semibold`,r),n[3]=r,n[4]=o);let s;return n[5]!==i||n[6]!==o?(s=(0,m.jsx)(e,{"data-slot":`dialog-title`,className:o,...i}),n[5]=i,n[6]=o,n[7]=s):s=n[7],s}function w(e){let t=(0,p.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let o;t[3]===r?o=t[4]:(o=a(`text-muted-foreground text-sm`,r),t[3]=r,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,m.jsx)(n,{"data-slot":`dialog-description`,className:o,...i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}export{S as a,g as c,w as i,v as n,x as o,b as r,C as s,h as t}; \ No newline at end of file diff --git a/public/build/assets/dist-CyCRNm1V.js b/public/build/assets/dist-D5bK512v.js similarity index 74% rename from public/build/assets/dist-CyCRNm1V.js rename to public/build/assets/dist-D5bK512v.js index 43d26f6..ea43837 100644 --- a/public/build/assets/dist-CyCRNm1V.js +++ b/public/build/assets/dist-D5bK512v.js @@ -1 +1 @@ -import{ln as e,rn as t}from"./app-CVlP31Z1.js";var n=e(t(),1);function r(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}export{r as t}; \ No newline at end of file +import{ln as e,rn as t}from"./app-D7MKN1zp.js";var n=e(t(),1);function r(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}export{r as t}; \ No newline at end of file diff --git a/public/build/assets/fonts-P-PzeNmJ.js b/public/build/assets/fonts-CaQ0upX0.js similarity index 94% rename from public/build/assets/fonts-P-PzeNmJ.js rename to public/build/assets/fonts-CaQ0upX0.js index fb296ff..f20cfeb 100644 --- a/public/build/assets/fonts-P-PzeNmJ.js +++ b/public/build/assets/fonts-CaQ0upX0.js @@ -1 +1 @@ -import{a as e,i as t,n,r,t as i}from"./select-DHOWe80x.js";import{t as a}from"./main-layout-DiaP0ISn.js";import{t as o}from"./main-registry-installer-CWpQAmy4.js";import{B as s,Wt as c,ln as l,qt as u,r as d,rn as f}from"./app-CVlP31Z1.js";import{a as p,n as m,t as h}from"./card-BMwhGcsv.js";import{i as g}from"./glow-stack-DaYuOL5d.js";import{t as _}from"./badge-BeR0IMEC.js";var v=u(),y=l(f(),1);function b(e){let t=(0,v.c)(5),[n,r]=(0,y.useState)(!1),i=(0,y.useRef)(null),a,o;t[0]===e?(a=t[1],o=t[2]):(a=()=>{let t=i.current,n=new IntersectionObserver(t=>{let[i]=t;i.isIntersecting?(r(!0),e?.triggerOnce&&n.unobserve(i.target)):e?.triggerOnce||r(!1)},e);return t&&n.observe(t),()=>{t&&n.unobserve(t)}},o=[e],t[0]=e,t[1]=a,t[2]=o),(0,y.useEffect)(a,o);let s;return t[3]===n?s=t[4]:(s={ref:i,inView:n},t[3]=n,t[4]=s),s}var x=c(),S=20;function C(a){let o=(0,v.c)(44),{fonts:c}=a,[l,u]=(0,y.useState)(``),[f,p]=(0,y.useState)(`all`),[m,h]=(0,y.useState)(S),_;if(o[0]!==f||o[1]!==c||o[2]!==l){let e;o[4]!==f||o[5]!==l?(e=e=>{let t=e.title.toLowerCase().includes(l.toLowerCase())||e.id.toLowerCase().includes(l.toLowerCase()),n=f===`all`||e.category===f;return t&&n},o[4]=f,o[5]=l,o[6]=e):e=o[6],_=c.filter(e),o[0]=f,o[1]=c,o[2]=l,o[3]=_}else _=o[3];let b=_,C;if(o[7]!==c){let e=new Set(c.map(D));C=Array.from(e).sort(),o[7]=c,o[8]=C}else C=o[8];let k=C,A;o[9]!==b||o[10]!==m?(A=b.slice(0,m),o[9]=b,o[10]=m,o[11]=A):A=o[11];let j=A,M;o[12]===Symbol.for(`react.memo_cache_sentinel`)?(M={search:``,category:`all`},o[12]=M):M=o[12];let[N,P]=(0,y.useState)(M);(l!==N.search||f!==N.category)&&(P({search:l,category:f}),h(S));let F;o[13]===Symbol.for(`react.memo_cache_sentinel`)?(F=()=>{h(E)},o[13]=F):F=o[13];let I=F,L;o[14]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,x.jsx)(d,{title:`Fonts`,description:`Browse and install Google Fonts for your project. Each font includes the CSS variable and import snippet.`}),o[14]=L):L=o[14];let R;o[15]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>u(e.target.value),o[15]=R):R=o[15];let z;o[16]===l?z=o[17]:(z=(0,x.jsx)(`div`,{className:`flex-1`,children:(0,x.jsx)(s,{placeholder:`Search fonts...`,value:l,onChange:R})}),o[16]=l,o[17]=z);let B;o[18]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,x.jsx)(t,{children:(0,x.jsx)(e,{placeholder:`Category`})}),o[18]=B):B=o[18];let V;o[19]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,x.jsx)(r,{value:`all`,children:`All Categories`}),o[19]=V):V=o[19];let H;o[20]===k?H=o[21]:(H=k.map(T),o[20]=k,o[21]=H);let U;o[22]===H?U=o[23]:(U=(0,x.jsxs)(n,{children:[V,H]}),o[22]=H,o[23]=U);let W;o[24]!==f||o[25]!==U?(W=(0,x.jsx)(`div`,{className:`w-full sm:w-48`,children:(0,x.jsxs)(i,{value:f,onValueChange:p,children:[B,U]})}),o[24]=f,o[25]=U,o[26]=W):W=o[26];let G;o[27]!==W||o[28]!==z?(G=(0,x.jsx)(`div`,{className:`mb-8 space-y-4`,children:(0,x.jsxs)(`div`,{className:`flex flex-col gap-4 sm:flex-row`,children:[z,W]})}),o[27]=W,o[28]=z,o[29]=G):G=o[29];let K;o[30]===j?K=o[31]:(K=j.map(w),o[30]=j,o[31]=K);let q;o[32]===K?q=o[33]:(q=(0,x.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2`,children:K}),o[32]=K,o[33]=q);let J;o[34]!==b.length||o[35]!==m?(J=m{a&&n()},s=[a,n],t[1]=a,t[2]=n,t[3]=o,t[4]=s):(o=t[3],s=t[4]),(0,y.useEffect)(o,s);let c;return t[5]===i?c=t[6]:(c=(0,x.jsx)(`div`,{ref:i,className:`h-10`}),t[5]=i,t[6]=c),c}function k(e){let t=(0,v.c)(45),{font:n}=e,r=n.title,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={triggerOnce:!0,rootMargin:`200px 0px`},t[0]=i):i=t[0];let{ref:a,inView:s}=b(i),c;t[1]!==n.title||t[2]!==s?(c=s&&(0,x.jsx)(`link`,{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=${n.title.replace(/ /g,`+`)}&display=swap`}),t[1]=n.title,t[2]=s,t[3]=c):c=t[3];let l;t[4]===n.title?l=t[5]:(l=(0,x.jsx)(`span`,{className:`font-semibold`,children:n.title}),t[4]=n.title,t[5]=l);let u;t[6]===n.category?u=t[7]:(u=n.category&&(0,x.jsx)(_,{variant:`secondary`,className:`text-[10px]`,children:n.category}),t[6]=n.category,t[7]=u);let d;t[8]===n.fontProvider?d=t[9]:(d=n.fontProvider&&(0,x.jsx)(_,{variant:`outline`,className:`text-[10px]`,children:n.fontProvider}),t[8]=n.fontProvider,t[9]=d);let f;t[10]!==u||t[11]!==d?(f=(0,x.jsxs)(`div`,{className:`flex gap-2`,children:[u,d]}),t[10]=u,t[11]=d,t[12]=f):f=t[12];let g;t[13]!==l||t[14]!==f?(g=(0,x.jsx)(p,{className:`pb-0`,children:(0,x.jsxs)(`div`,{className:`flex items-center justify-between`,children:[l,f]})}),t[13]=l,t[14]=f,t[15]=g):g=t[15];let y;t[16]!==n.fontFamily||t[17]!==n.title||t[18]!==s?(y=s?`"${n.title}", ${n.fontFamily?.split(`,`).pop()?.trim()??`sans-serif`}`:`inherit`,t[16]=n.fontFamily,t[17]=n.title,t[18]=s,t[19]=y):y=t[19];let S;t[20]===y?S=t[21]:(S={fontFamily:y},t[20]=y,t[21]=S);let C;t[22]===r?C=t[23]:(C=(0,x.jsx)(`span`,{className:`line-clamp-1 whitespace-nowrap text-muted-foreground/60`,children:r}),t[22]=r,t[23]=C);let w;t[24]!==C||t[25]!==S?(w=(0,x.jsx)(`div`,{className:`grid aspect-video place-content-center items-center justify-center rounded-lg bg-card/50 px-4 text-[clamp(0.75rem,9vw+2rem,5rem)] tracking-wider`,style:S,children:C}),t[24]=C,t[25]=S,t[26]=w):w=t[26];let T;t[27]===n.fontFamily?T=t[28]:(T=n.fontFamily&&(0,x.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,x.jsx)(`span`,{className:`shrink-0`,children:`Family:`}),(0,x.jsx)(`span`,{className:`truncate text-right font-medium text-foreground`,children:n.fontFamily})]}),t[27]=n.fontFamily,t[28]=T);let E;t[29]===n.fontVariable?E=t[30]:(E=n.fontVariable&&(0,x.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,x.jsx)(`span`,{className:`shrink-0`,children:`Variable:`}),(0,x.jsx)(`code`,{className:`truncate text-right text-xs text-foreground`,children:n.fontVariable})]}),t[29]=n.fontVariable,t[30]=E);let D;t[31]!==T||t[32]!==E?(D=(0,x.jsxs)(`div`,{className:`space-y-1 text-sm text-muted-foreground`,children:[T,E]}),t[31]=T,t[32]=E,t[33]=D):D=t[33];let O=`fonts/${n.name}`,k;t[34]===O?k=t[35]:(k=(0,x.jsx)(o,{code:O}),t[34]=O,t[35]=k);let A;t[36]!==w||t[37]!==D||t[38]!==k?(A=(0,x.jsxs)(m,{className:`space-y-3 pt-3`,children:[w,D,k]}),t[36]=w,t[37]=D,t[38]=k,t[39]=A):A=t[39];let j;return t[40]!==a||t[41]!==A||t[42]!==c||t[43]!==g?(j=(0,x.jsxs)(h,{ref:a,className:`group overflow-hidden transition-colors hover:bg-muted/50`,children:[c,g,A]}),t[40]=a,t[41]=A,t[42]=c,t[43]=g,t[44]=j):j=t[44],j}export{C as default}; \ No newline at end of file +import{a as e,i as t,n,r,t as i}from"./select-DsMxFFiu.js";import{t as a}from"./main-layout-qej9zSi0.js";import{t as o}from"./main-registry-installer-_-xwUN0S.js";import{B as s,Wt as c,ln as l,qt as u,r as d,rn as f}from"./app-D7MKN1zp.js";import{a as p,n as m,t as h}from"./card-C1ekp7Ou.js";import{l as g}from"./glow-stack-BaNii-nE.js";import{t as _}from"./badge-D9nNMnEq.js";var v=u(),y=l(f(),1);function b(e){let t=(0,v.c)(5),[n,r]=(0,y.useState)(!1),i=(0,y.useRef)(null),a,o;t[0]===e?(a=t[1],o=t[2]):(a=()=>{let t=i.current,n=new IntersectionObserver(t=>{let[i]=t;i.isIntersecting?(r(!0),e?.triggerOnce&&n.unobserve(i.target)):e?.triggerOnce||r(!1)},e);return t&&n.observe(t),()=>{t&&n.unobserve(t)}},o=[e],t[0]=e,t[1]=a,t[2]=o),(0,y.useEffect)(a,o);let s;return t[3]===n?s=t[4]:(s={ref:i,inView:n},t[3]=n,t[4]=s),s}var x=c(),S=20;function C(a){let o=(0,v.c)(44),{fonts:c}=a,[l,u]=(0,y.useState)(``),[f,p]=(0,y.useState)(`all`),[m,h]=(0,y.useState)(S),_;if(o[0]!==f||o[1]!==c||o[2]!==l){let e;o[4]!==f||o[5]!==l?(e=e=>{let t=e.title.toLowerCase().includes(l.toLowerCase())||e.id.toLowerCase().includes(l.toLowerCase()),n=f===`all`||e.category===f;return t&&n},o[4]=f,o[5]=l,o[6]=e):e=o[6],_=c.filter(e),o[0]=f,o[1]=c,o[2]=l,o[3]=_}else _=o[3];let b=_,C;if(o[7]!==c){let e=new Set(c.map(D));C=Array.from(e).sort(),o[7]=c,o[8]=C}else C=o[8];let k=C,A;o[9]!==b||o[10]!==m?(A=b.slice(0,m),o[9]=b,o[10]=m,o[11]=A):A=o[11];let j=A,M;o[12]===Symbol.for(`react.memo_cache_sentinel`)?(M={search:``,category:`all`},o[12]=M):M=o[12];let[N,P]=(0,y.useState)(M);(l!==N.search||f!==N.category)&&(P({search:l,category:f}),h(S));let F;o[13]===Symbol.for(`react.memo_cache_sentinel`)?(F=()=>{h(E)},o[13]=F):F=o[13];let I=F,L;o[14]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,x.jsx)(d,{title:`Fonts`,description:`Browse and install Google Fonts for your project. Each font includes the CSS variable and import snippet.`}),o[14]=L):L=o[14];let R;o[15]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>u(e.target.value),o[15]=R):R=o[15];let z;o[16]===l?z=o[17]:(z=(0,x.jsx)(`div`,{className:`flex-1`,children:(0,x.jsx)(s,{placeholder:`Search fonts...`,value:l,onChange:R})}),o[16]=l,o[17]=z);let B;o[18]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,x.jsx)(t,{children:(0,x.jsx)(e,{placeholder:`Category`})}),o[18]=B):B=o[18];let V;o[19]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,x.jsx)(r,{value:`all`,children:`All Categories`}),o[19]=V):V=o[19];let H;o[20]===k?H=o[21]:(H=k.map(T),o[20]=k,o[21]=H);let U;o[22]===H?U=o[23]:(U=(0,x.jsxs)(n,{children:[V,H]}),o[22]=H,o[23]=U);let W;o[24]!==f||o[25]!==U?(W=(0,x.jsx)(`div`,{className:`w-full sm:w-48`,children:(0,x.jsxs)(i,{value:f,onValueChange:p,children:[B,U]})}),o[24]=f,o[25]=U,o[26]=W):W=o[26];let G;o[27]!==W||o[28]!==z?(G=(0,x.jsx)(`div`,{className:`mb-8 space-y-4`,children:(0,x.jsxs)(`div`,{className:`flex flex-col gap-4 sm:flex-row`,children:[z,W]})}),o[27]=W,o[28]=z,o[29]=G):G=o[29];let K;o[30]===j?K=o[31]:(K=j.map(w),o[30]=j,o[31]=K);let q;o[32]===K?q=o[33]:(q=(0,x.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2`,children:K}),o[32]=K,o[33]=q);let J;o[34]!==b.length||o[35]!==m?(J=m{a&&n()},s=[a,n],t[1]=a,t[2]=n,t[3]=o,t[4]=s):(o=t[3],s=t[4]),(0,y.useEffect)(o,s);let c;return t[5]===i?c=t[6]:(c=(0,x.jsx)(`div`,{ref:i,className:`h-10`}),t[5]=i,t[6]=c),c}function k(e){let t=(0,v.c)(45),{font:n}=e,r=n.title,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={triggerOnce:!0,rootMargin:`200px 0px`},t[0]=i):i=t[0];let{ref:a,inView:s}=b(i),c;t[1]!==n.title||t[2]!==s?(c=s&&(0,x.jsx)(`link`,{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=${n.title.replace(/ /g,`+`)}&display=swap`}),t[1]=n.title,t[2]=s,t[3]=c):c=t[3];let l;t[4]===n.title?l=t[5]:(l=(0,x.jsx)(`span`,{className:`font-semibold`,children:n.title}),t[4]=n.title,t[5]=l);let u;t[6]===n.category?u=t[7]:(u=n.category&&(0,x.jsx)(_,{variant:`secondary`,className:`text-[10px]`,children:n.category}),t[6]=n.category,t[7]=u);let d;t[8]===n.fontProvider?d=t[9]:(d=n.fontProvider&&(0,x.jsx)(_,{variant:`outline`,className:`text-[10px]`,children:n.fontProvider}),t[8]=n.fontProvider,t[9]=d);let f;t[10]!==u||t[11]!==d?(f=(0,x.jsxs)(`div`,{className:`flex gap-2`,children:[u,d]}),t[10]=u,t[11]=d,t[12]=f):f=t[12];let g;t[13]!==l||t[14]!==f?(g=(0,x.jsx)(p,{className:`pb-0`,children:(0,x.jsxs)(`div`,{className:`flex items-center justify-between`,children:[l,f]})}),t[13]=l,t[14]=f,t[15]=g):g=t[15];let y;t[16]!==n.fontFamily||t[17]!==n.title||t[18]!==s?(y=s?`"${n.title}", ${n.fontFamily?.split(`,`).pop()?.trim()??`sans-serif`}`:`inherit`,t[16]=n.fontFamily,t[17]=n.title,t[18]=s,t[19]=y):y=t[19];let S;t[20]===y?S=t[21]:(S={fontFamily:y},t[20]=y,t[21]=S);let C;t[22]===r?C=t[23]:(C=(0,x.jsx)(`span`,{className:`line-clamp-1 whitespace-nowrap text-muted-foreground/60`,children:r}),t[22]=r,t[23]=C);let w;t[24]!==C||t[25]!==S?(w=(0,x.jsx)(`div`,{className:`grid aspect-video place-content-center items-center justify-center rounded-lg bg-card/50 px-4 text-[clamp(0.75rem,9vw+2rem,5rem)] tracking-wider`,style:S,children:C}),t[24]=C,t[25]=S,t[26]=w):w=t[26];let T;t[27]===n.fontFamily?T=t[28]:(T=n.fontFamily&&(0,x.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,x.jsx)(`span`,{className:`shrink-0`,children:`Family:`}),(0,x.jsx)(`span`,{className:`truncate text-right font-medium text-foreground`,children:n.fontFamily})]}),t[27]=n.fontFamily,t[28]=T);let E;t[29]===n.fontVariable?E=t[30]:(E=n.fontVariable&&(0,x.jsxs)(`div`,{className:`flex justify-between gap-2`,children:[(0,x.jsx)(`span`,{className:`shrink-0`,children:`Variable:`}),(0,x.jsx)(`code`,{className:`truncate text-right text-xs text-foreground`,children:n.fontVariable})]}),t[29]=n.fontVariable,t[30]=E);let D;t[31]!==T||t[32]!==E?(D=(0,x.jsxs)(`div`,{className:`space-y-1 text-sm text-muted-foreground`,children:[T,E]}),t[31]=T,t[32]=E,t[33]=D):D=t[33];let O=`fonts/${n.name}`,k;t[34]===O?k=t[35]:(k=(0,x.jsx)(o,{code:O}),t[34]=O,t[35]=k);let A;t[36]!==w||t[37]!==D||t[38]!==k?(A=(0,x.jsxs)(m,{className:`space-y-3 pt-3`,children:[w,D,k]}),t[36]=w,t[37]=D,t[38]=k,t[39]=A):A=t[39];let j;return t[40]!==a||t[41]!==A||t[42]!==c||t[43]!==g?(j=(0,x.jsxs)(h,{ref:a,className:`group overflow-hidden transition-colors hover:bg-muted/50`,children:[c,g,A]}),t[40]=a,t[41]=A,t[42]=c,t[43]=g,t[44]=j):j=t[44],j}export{C as default}; \ No newline at end of file diff --git a/public/build/assets/forgot-password-H3UJsxPQ.js b/public/build/assets/forgot-password-B5S_AFXd.js similarity index 83% rename from public/build/assets/forgot-password-H3UJsxPQ.js rename to public/build/assets/forgot-password-B5S_AFXd.js index 3d63d73..9564497 100644 --- a/public/build/assets/forgot-password-H3UJsxPQ.js +++ b/public/build/assets/forgot-password-B5S_AFXd.js @@ -1 +1 @@ -import{t as e}from"./loader-circle-XO7crStb.js";import{B as t,Jt as n,V as r,Wt as i,Yt as a,qt as o,s}from"./app-CVlP31Z1.js";import{t as c}from"./input-error-BdHD9-x4.js";import{t as l}from"./label-D-AkZnW_.js";import{t as u}from"./text-link-B7waIO2E.js";import{t as d}from"./password-CsunKxsK.js";var f=o(),p=i();function m(e){let t=(0,f.c)(8),{status:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,p.jsx)(a,{title:`Forgot password`}),t[0]=i):i=t[0];let o;t[1]===r?o=t[2]:(o=r&&(0,p.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:r}),t[1]=r,t[2]=o);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,p.jsx)(n,{...d.form(),children:h}),t[3]=c):c=t[3];let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,p.jsx)(`span`,{children:`Or, return to`}),t[4]=l):l=t[4];let m;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,p.jsxs)(`div`,{className:`space-y-6`,children:[c,(0,p.jsxs)(`div`,{className:`space-x-1 text-center text-sm text-muted-foreground`,children:[l,(0,p.jsx)(u,{href:s(),children:`log in`})]})]}),t[5]=m):m=t[5];let g;return t[6]===o?g=t[7]:(g=(0,p.jsxs)(p.Fragment,{children:[i,o,m]}),t[6]=o,t[7]=g),g}function h(n){let{processing:i,errors:a}=n;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`div`,{className:`grid gap-2`,children:[(0,p.jsx)(l,{htmlFor:`email`,children:`Email address`}),(0,p.jsx)(t,{id:`email`,type:`email`,name:`email`,autoComplete:`off`,autoFocus:!0,placeholder:`email@example.com`}),(0,p.jsx)(c,{message:a.email})]}),(0,p.jsx)(`div`,{className:`my-6 flex items-center justify-start`,children:(0,p.jsxs)(r,{className:`w-full`,disabled:i,"data-test":`email-password-reset-link-button`,children:[i&&(0,p.jsx)(e,{className:`h-4 w-4 animate-spin`}),`Email password reset link`]})})]})}m.layout={title:`Forgot password`,description:`Enter your email to receive a password reset link`};export{m as default}; \ No newline at end of file +import{t as e}from"./loader-circle-YfjFJaoY.js";import{B as t,Jt as n,V as r,Wt as i,Yt as a,qt as o,s}from"./app-D7MKN1zp.js";import{t as c}from"./input-error-CzZYqI_U.js";import{t as l}from"./label-fRwP89Ez.js";import{t as u}from"./text-link-BlYfkXNw.js";import{t as d}from"./password-BDtte38w.js";var f=o(),p=i();function m(e){let t=(0,f.c)(8),{status:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,p.jsx)(a,{title:`Forgot password`}),t[0]=i):i=t[0];let o;t[1]===r?o=t[2]:(o=r&&(0,p.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:r}),t[1]=r,t[2]=o);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,p.jsx)(n,{...d.form(),children:h}),t[3]=c):c=t[3];let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,p.jsx)(`span`,{children:`Or, return to`}),t[4]=l):l=t[4];let m;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,p.jsxs)(`div`,{className:`space-y-6`,children:[c,(0,p.jsxs)(`div`,{className:`space-x-1 text-center text-sm text-muted-foreground`,children:[l,(0,p.jsx)(u,{href:s(),children:`log in`})]})]}),t[5]=m):m=t[5];let g;return t[6]===o?g=t[7]:(g=(0,p.jsxs)(p.Fragment,{children:[i,o,m]}),t[6]=o,t[7]=g),g}function h(n){let{processing:i,errors:a}=n;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`div`,{className:`grid gap-2`,children:[(0,p.jsx)(l,{htmlFor:`email`,children:`Email address`}),(0,p.jsx)(t,{id:`email`,type:`email`,name:`email`,autoComplete:`off`,autoFocus:!0,placeholder:`email@example.com`}),(0,p.jsx)(c,{message:a.email})]}),(0,p.jsx)(`div`,{className:`my-6 flex items-center justify-start`,children:(0,p.jsxs)(r,{className:`w-full`,disabled:i,"data-test":`email-password-reset-link-button`,children:[i&&(0,p.jsx)(e,{className:`h-4 w-4 animate-spin`}),`Email password reset link`]})})]})}m.layout={title:`Forgot password`,description:`Enter your email to receive a password reset link`};export{m as default}; \ No newline at end of file diff --git a/public/build/assets/github-BytY2MM3.js b/public/build/assets/github-Be9qoVk0.js similarity index 83% rename from public/build/assets/github-BytY2MM3.js rename to public/build/assets/github-Be9qoVk0.js index e689a40..3d1521f 100644 --- a/public/build/assets/github-BytY2MM3.js +++ b/public/build/assets/github-Be9qoVk0.js @@ -1 +1 @@ -import{G as e}from"./app-CVlP31Z1.js";var t=e(`Github`,[[`path`,{d:`M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4`,key:`tonef`}],[`path`,{d:`M9 18c-4.51 2-5-2-7-2`,key:`9comsn`}]]);export{t}; \ No newline at end of file +import{G as e}from"./app-D7MKN1zp.js";var t=e(`Github`,[[`path`,{d:`M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4`,key:`tonef`}],[`path`,{d:`M9 18c-4.51 2-5-2-7-2`,key:`9comsn`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/glow-radial-CIe4ekoG.js b/public/build/assets/glow-radial-CIe4ekoG.js new file mode 100644 index 0000000..f4eb873 --- /dev/null +++ b/public/build/assets/glow-radial-CIe4ekoG.js @@ -0,0 +1 @@ +import{Q as e,Wt as t,ln as n,qt as r,rn as i}from"./app-D7MKN1zp.js";import{n as a}from"./glow-stack-BaNii-nE.js";var o=n(i(),1),ee=r(),te=(e,t,n)=>e.x+t>=n.left&&e.x-t<=n.right&&e.y+t>=n.top&&e.y-t<=n.bottom,s=(e,t)=>e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom,ne=(e,t)=>({x:e.x-t.left,y:e.y-t.top}),c=t(),re={padding:`2px`,background:`transparent`,mask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) border-box`,maskComposite:`exclude`,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) border-box`,WebkitMaskComposite:`xor`};function l(t){let n=(0,ee.c)(57),r,i,l,u,d,f,p,m;n[0]===t?(r=n[1],i=n[2],l=n[3],u=n[4],d=n[5],f=n[6],p=n[7],m=n[8]):({className:i,children:r,colors:d,size:f,borderWidth:p,as:m,style:u,...l}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=l,n[4]=u,n[5]=d,n[6]=f,n[7]=p,n[8]=m);let h=d===void 0?`var(--color-primary)`:d,g=f===void 0?500:f,ie=p===void 0?3:p,_=m===void 0?`div`:m,v=(0,o.useRef)(null),y=a(),b;n[9]===y?.position?b=n[10]:(b=y?.position??{x:-1e3,y:-1e3},n[9]=y?.position,n[10]=b);let x=b,S=y?.radius??100,[C,w]=(0,o.useState)(null),T,E;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{let e=()=>{w(v.current?.getBoundingClientRect()??null)};e();let t=()=>e();return window.addEventListener(`resize`,t,{passive:!0}),window.addEventListener(`scroll`,t,{passive:!0}),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,t)}},E=[],n[11]=T,n[12]=E):(T=n[11],E=n[12]),(0,o.useEffect)(T,E);let D=C?te(x,S,C):!1,ae=C?s(x,C):!1,O;n[13]!==x||n[14]!==C?(O=C?ne(x,C):{x:0,y:0},n[13]=x,n[14]=C,n[15]=O):O=n[15];let k=O,A;n[16]===h?A=n[17]:(A=Array.isArray(h)?h:[h,`transparent`],n[16]=h,n[17]=A);let j=A,M=k.x,N=k.y,P;n[18]===j?P=n[19]:(P=j.join(`, `),n[18]=j,n[19]=P);let F=`radial-gradient(circle at ${M}px ${N}px, ${P}, transparent ${g}px)`,I=`${ie}px`,L;n[20]===I?L=n[21]:(L={...re,padding:I},n[20]=I,n[21]=L);let R=L,z=r?`pointer-events-auto`:`pointer-events-none`,B;n[22]!==i||n[23]!==z?(B=e(`absolute inset-0 isolate z-10 rounded-[inherit]`,z,i),n[22]=i,n[23]=z,n[24]=B):B=n[24];let V=D?`opacity-100`:`opacity-0`,H;n[25]===V?H=n[26]:(H=e(`pointer-events-none! absolute inset-0 z-10 rounded-[inherit] transition-opacity duration-300`,V),n[25]=V,n[26]=H);let U;n[27]!==R||n[28]!==F?(U={...R,background:F},n[27]=R,n[28]=F,n[29]=U):U=n[29];let W;n[30]!==H||n[31]!==U?(W=(0,c.jsx)(`div`,{"aria-hidden":!0,className:H,style:U}),n[30]=H,n[31]=U,n[32]=W):W=n[32];let G=D?`opacity-10`:`opacity-0`,K;n[33]===G?K=n[34]:(K=e(`pointer-events-none! absolute inset-0 rounded-[inherit] blur-2xl transition-opacity duration-300`,G),n[33]=G,n[34]=K);let q;n[35]!==R||n[36]!==F?(q={...R,background:F},n[35]=R,n[36]=F,n[37]=q):q=n[37];let J;n[38]!==K||n[39]!==q?(J=(0,c.jsx)(`div`,{"aria-hidden":!0,className:K,style:q}),n[38]=K,n[39]=q,n[40]=J):J=n[40];let Y=ae?`opacity-5`:`opacity-0`,X;n[41]===Y?X=n[42]:(X=e(`pointer-events-none! absolute inset-0 rounded-[inherit] transition-opacity duration-300`,Y),n[41]=Y,n[42]=X);let Z;n[43]===F?Z=n[44]:(Z={background:F},n[43]=F,n[44]=Z);let Q;n[45]!==X||n[46]!==Z?(Q=(0,c.jsx)(`div`,{"aria-hidden":!0,className:X,style:Z}),n[45]=X,n[46]=Z,n[47]=Q):Q=n[47];let $;return n[48]!==_||n[49]!==r||n[50]!==l||n[51]!==u||n[52]!==B||n[53]!==W||n[54]!==J||n[55]!==Q?($=(0,c.jsxs)(_,{ref:v,className:B,style:u,...l,children:[W,J,Q,r]}),n[48]=_,n[49]=r,n[50]=l,n[51]=u,n[52]=B,n[53]=W,n[54]=J,n[55]=Q,n[56]=$):$=n[56],$}export{l as t}; \ No newline at end of file diff --git a/public/build/assets/glow-radial-JNwxsbej.js b/public/build/assets/glow-radial-JNwxsbej.js deleted file mode 100644 index c927c8c..0000000 --- a/public/build/assets/glow-radial-JNwxsbej.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e,Q as t,Wt as n,ln as r,qt as i,rn as a}from"./app-CVlP31Z1.js";import{n as o}from"./glow-stack-DaYuOL5d.js";var s=e(`Plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),c=r(a(),1),l=i(),u=(e,t,n)=>e.x+t>=n.left&&e.x-t<=n.right&&e.y+t>=n.top&&e.y-t<=n.bottom,ee=(e,t)=>e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom,te=(e,t)=>({x:e.x-t.left,y:e.y-t.top}),d=n(),f={padding:`2px`,background:`transparent`,mask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) border-box`,maskComposite:`exclude`,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) border-box`,WebkitMaskComposite:`xor`};function p(e){let n=(0,l.c)(57),r,i,a,s,p,m,h,g;n[0]===e?(r=n[1],i=n[2],a=n[3],s=n[4],p=n[5],m=n[6],h=n[7],g=n[8]):({className:i,children:r,colors:p,size:m,borderWidth:h,as:g,style:s,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=s,n[5]=p,n[6]=m,n[7]=h,n[8]=g);let _=p===void 0?`var(--color-primary)`:p,ne=m===void 0?500:m,re=h===void 0?3:h,v=g===void 0?`div`:g,y=(0,c.useRef)(null),b=o(),x;n[9]===b?.position?x=n[10]:(x=b?.position??{x:-1e3,y:-1e3},n[9]=b?.position,n[10]=x);let S=x,C=b?.radius??100,[w,ie]=(0,c.useState)(null),T,E;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{let e=()=>{ie(y.current?.getBoundingClientRect()??null)};e();let t=()=>e();return window.addEventListener(`resize`,t,{passive:!0}),window.addEventListener(`scroll`,t,{passive:!0}),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,t)}},E=[],n[11]=T,n[12]=E):(T=n[11],E=n[12]),(0,c.useEffect)(T,E);let D=w?u(S,C,w):!1,ae=w?ee(S,w):!1,O;n[13]!==S||n[14]!==w?(O=w?te(S,w):{x:0,y:0},n[13]=S,n[14]=w,n[15]=O):O=n[15];let k=O,A;n[16]===_?A=n[17]:(A=Array.isArray(_)?_:[_,`transparent`],n[16]=_,n[17]=A);let j=A,M=k.x,N=k.y,P;n[18]===j?P=n[19]:(P=j.join(`, `),n[18]=j,n[19]=P);let F=`radial-gradient(circle at ${M}px ${N}px, ${P}, transparent ${ne}px)`,I=`${re}px`,L;n[20]===I?L=n[21]:(L={...f,padding:I},n[20]=I,n[21]=L);let R=L,z=r?`pointer-events-auto`:`pointer-events-none`,B;n[22]!==i||n[23]!==z?(B=t(`absolute inset-0 isolate z-10 rounded-[inherit]`,z,i),n[22]=i,n[23]=z,n[24]=B):B=n[24];let V=D?`opacity-100`:`opacity-0`,H;n[25]===V?H=n[26]:(H=t(`pointer-events-none! absolute inset-0 z-10 rounded-[inherit] transition-opacity duration-300`,V),n[25]=V,n[26]=H);let U;n[27]!==R||n[28]!==F?(U={...R,background:F},n[27]=R,n[28]=F,n[29]=U):U=n[29];let W;n[30]!==H||n[31]!==U?(W=(0,d.jsx)(`div`,{"aria-hidden":!0,className:H,style:U}),n[30]=H,n[31]=U,n[32]=W):W=n[32];let G=D?`opacity-10`:`opacity-0`,K;n[33]===G?K=n[34]:(K=t(`pointer-events-none! absolute inset-0 rounded-[inherit] blur-2xl transition-opacity duration-300`,G),n[33]=G,n[34]=K);let q;n[35]!==R||n[36]!==F?(q={...R,background:F},n[35]=R,n[36]=F,n[37]=q):q=n[37];let J;n[38]!==K||n[39]!==q?(J=(0,d.jsx)(`div`,{"aria-hidden":!0,className:K,style:q}),n[38]=K,n[39]=q,n[40]=J):J=n[40];let Y=ae?`opacity-5`:`opacity-0`,X;n[41]===Y?X=n[42]:(X=t(`pointer-events-none! absolute inset-0 rounded-[inherit] transition-opacity duration-300`,Y),n[41]=Y,n[42]=X);let Z;n[43]===F?Z=n[44]:(Z={background:F},n[43]=F,n[44]=Z);let Q;n[45]!==X||n[46]!==Z?(Q=(0,d.jsx)(`div`,{"aria-hidden":!0,className:X,style:Z}),n[45]=X,n[46]=Z,n[47]=Q):Q=n[47];let $;return n[48]!==v||n[49]!==r||n[50]!==a||n[51]!==s||n[52]!==B||n[53]!==W||n[54]!==J||n[55]!==Q?($=(0,d.jsxs)(v,{ref:y,className:B,style:s,...a,children:[W,J,Q,r]}),n[48]=v,n[49]=r,n[50]=a,n[51]=s,n[52]=B,n[53]=W,n[54]=J,n[55]=Q,n[56]=$):$=n[56],$}export{s as n,p as t}; \ No newline at end of file diff --git a/public/build/assets/glow-stack-BaNii-nE.js b/public/build/assets/glow-stack-BaNii-nE.js new file mode 100644 index 0000000..5d50142 --- /dev/null +++ b/public/build/assets/glow-stack-BaNii-nE.js @@ -0,0 +1 @@ +import{Gt as e,Q as t,Wt as n,Z as r,d as i,f as a,ln as o,qt as s,rn as c}from"./app-D7MKN1zp.js";var l=s(),u=n();function d(e){let n=(0,l.c)(14),r,i,a,o,s;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],s=n[5]):({children:r,as:s,className:i,style:o,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=s);let c=s===void 0?`div`:s,d;n[6]===i?d=n[7]:(d=t(`container mx-auto px-4 md:px-6 lg:px-8`,i),n[6]=i,n[7]=d);let f;return n[8]!==c||n[9]!==r||n[10]!==a||n[11]!==o||n[12]!==d?(f=(0,u.jsx)(c,{...a,style:o,className:d,children:r}),n[8]=c,n[9]=r,n[10]=a,n[11]=o,n[12]=d,n[13]=f):f=n[13],f}d.displayName=`MainWrapper`;var f=e=>({url:f.url(e),method:`get`});f.definition={methods:[`get`,`head`],url:`/themes`},f.url=e=>f.definition.url+a(e),f.get=e=>({url:f.url(e),method:`get`}),f.head=e=>({url:f.url(e),method:`head`});var p=e=>({action:f.url(e),method:`get`});p.get=e=>({action:f.url(e),method:`get`}),p.head=e=>({action:f.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),f.form=p;var m=e=>({url:m.url(e),method:`get`});m.definition={methods:[`get`,`head`],url:`/themes/create`},m.url=e=>m.definition.url+a(e),m.get=e=>({url:m.url(e),method:`get`}),m.head=e=>({url:m.url(e),method:`head`});var h=e=>({action:m.url(e),method:`get`});h.get=e=>({action:m.url(e),method:`get`}),h.head=e=>({action:m.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),m.form=h;var g=e=>({url:g.url(e),method:`post`});g.definition={methods:[`post`],url:`/themes`},g.url=e=>g.definition.url+a(e),g.post=e=>({url:g.url(e),method:`post`});var _=e=>({action:g.url(e),method:`post`});_.post=e=>({action:g.url(e),method:`post`}),g.form=_;var v=e=>({url:v.url(e),method:`post`});v.definition={methods:[`post`],url:`/themes/generate`},v.url=e=>v.definition.url+a(e),v.post=e=>({url:v.url(e),method:`post`});var y=e=>({action:v.url(e),method:`post`});y.post=e=>({action:v.url(e),method:`post`}),v.form=y;var b=(e,t)=>({url:b.url(e,t),method:`get`});b.definition={methods:[`get`,`head`],url:`/themes/{theme}`},b.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={theme:e}),typeof e==`object`&&!Array.isArray(e)&&`name`in e&&(e={theme:e.name}),Array.isArray(e)&&(e={theme:e[0]}),e=i(e);let n={theme:typeof e.theme==`object`?e.theme.name:e.theme};return b.definition.url.replace(`{theme}`,n.theme.toString()).replace(/\/+$/,``)+a(t)},b.get=(e,t)=>({url:b.url(e,t),method:`get`}),b.head=(e,t)=>({url:b.url(e,t),method:`head`});var x=(e,t)=>({action:b.url(e,t),method:`get`});x.get=(e,t)=>({action:b.url(e,t),method:`get`}),x.head=(e,t)=>({action:b.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),b.form=x,Object.assign(f,f),Object.assign(m,m),Object.assign(g,g),Object.assign(v,v),Object.assign(b,b);function S(t){let n=(0,l.c)(11),{resolvedAppearance:i}=e(),a;n[0]!==t.cssVars?.dark||n[1]!==t.cssVars?.light||n[2]!==t.vars_dark||n[3]!==t.vars_light||n[4]!==i?(a=i===`dark`?t.cssVars?.dark??t.vars_dark??{}:t.cssVars?.light??t.vars_light??{},n[0]=t.cssVars?.dark,n[1]=t.cssVars?.light,n[2]=t.vars_dark,n[3]=t.vars_light,n[4]=i,n[5]=a):a=n[5];let o=a,s;n[6]===o?s=n[7]:(s=r(o),n[6]=o,n[7]=s);let c;return n[8]!==s||n[9]!==o?(c={vars:o,cssVars:s},n[8]=s,n[9]=o,n[10]=c):c=n[10],c}var C=o(c(),1),w=(0,C.createContext)({position:{x:-9999,y:-9999},radius:100}),T=()=>{let e=(0,l.c)(2),t=(0,C.useContext)(w),n;return e[0]===t?n=e[1]:(n=t??{position:{x:-9999,y:-9999},radius:100},e[0]=t,e[1]=n),n};function E(e){let t=(0,l.c)(13),{children:n,radius:r,className:i,style:a}=e,o=r===void 0?100:r,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={x:-9999,y:-9999},t[0]=s):s=t[0];let[c,d]=(0,C.useState)(s),f=(0,C.useRef)(0),p,m;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{let e=e=>{cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>d({x:e.clientX,y:e.clientY}))};return window.addEventListener(`mousemove`,e,{passive:!0}),()=>{window.removeEventListener(`mousemove`,e),cancelAnimationFrame(f.current)}},m=[],t[1]=p,t[2]=m):(p=t[1],m=t[2]),(0,C.useEffect)(p,m);let h;t[3]!==c||t[4]!==o?(h={position:c,radius:o},t[3]=c,t[4]=o,t[5]=h):h=t[5];let g;t[6]!==n||t[7]!==i||t[8]!==a?(g=(0,u.jsx)(`div`,{className:i,style:a,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=g):g=t[9];let _;return t[10]!==h||t[11]!==g?(_=(0,u.jsx)(w.Provider,{value:h,children:g}),t[10]=h,t[11]=g,t[12]=_):_=t[12],_}export{v as a,g as c,m as i,d as l,T as n,f as o,S as r,b as s,E as t}; \ No newline at end of file diff --git a/public/build/assets/glow-stack-DaYuOL5d.js b/public/build/assets/glow-stack-DaYuOL5d.js deleted file mode 100644 index 11de2c4..0000000 --- a/public/build/assets/glow-stack-DaYuOL5d.js +++ /dev/null @@ -1 +0,0 @@ -import{Gt as e,Q as t,Wt as n,Z as r,ln as i,qt as a,rn as o}from"./app-CVlP31Z1.js";var s=a(),c=n();function l(e){let n=(0,s.c)(14),r,i,a,o,l;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4],l=n[5]):({children:r,as:l,className:i,style:o,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o,n[5]=l);let u=l===void 0?`div`:l,d;n[6]===i?d=n[7]:(d=t(`container mx-auto px-4 md:px-6 lg:px-8`,i),n[6]=i,n[7]=d);let f;return n[8]!==u||n[9]!==r||n[10]!==a||n[11]!==o||n[12]!==d?(f=(0,c.jsx)(u,{...a,style:o,className:d,children:r}),n[8]=u,n[9]=r,n[10]=a,n[11]=o,n[12]=d,n[13]=f):f=n[13],f}l.displayName=`MainWrapper`;function u(t){let n=(0,s.c)(11),{resolvedAppearance:i}=e(),a;n[0]!==t.cssVars?.dark||n[1]!==t.cssVars?.light||n[2]!==t.vars_dark||n[3]!==t.vars_light||n[4]!==i?(a=i===`dark`?t.cssVars?.dark??t.vars_dark??{}:t.cssVars?.light??t.vars_light??{},n[0]=t.cssVars?.dark,n[1]=t.cssVars?.light,n[2]=t.vars_dark,n[3]=t.vars_light,n[4]=i,n[5]=a):a=n[5];let o=a,c;n[6]===o?c=n[7]:(c=r(o),n[6]=o,n[7]=c);let l;return n[8]!==c||n[9]!==o?(l={vars:o,cssVars:c},n[8]=c,n[9]=o,n[10]=l):l=n[10],l}var d=i(o(),1),f=(0,d.createContext)({position:{x:-9999,y:-9999},radius:100}),p=()=>{let e=(0,s.c)(2),t=(0,d.useContext)(f),n;return e[0]===t?n=e[1]:(n=t??{position:{x:-9999,y:-9999},radius:100},e[0]=t,e[1]=n),n};function m(e){let t=(0,s.c)(13),{children:n,radius:r,className:i,style:a}=e,o=r===void 0?100:r,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={x:-9999,y:-9999},t[0]=l):l=t[0];let[u,p]=(0,d.useState)(l),m=(0,d.useRef)(0),h,g;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{let e=e=>{cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>p({x:e.clientX,y:e.clientY}))};return window.addEventListener(`mousemove`,e,{passive:!0}),()=>{window.removeEventListener(`mousemove`,e),cancelAnimationFrame(m.current)}},g=[],t[1]=h,t[2]=g):(h=t[1],g=t[2]),(0,d.useEffect)(h,g);let _;t[3]!==u||t[4]!==o?(_={position:u,radius:o},t[3]=u,t[4]=o,t[5]=_):_=t[5];let v;t[6]!==n||t[7]!==i||t[8]!==a?(v=(0,c.jsx)(`div`,{className:i,style:a,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=v):v=t[9];let y;return t[10]!==_||t[11]!==v?(y=(0,c.jsx)(f.Provider,{value:_,children:v}),t[10]=_,t[11]=v,t[12]=y):y=t[12],y}export{l as i,p as n,u as r,m as t}; \ No newline at end of file diff --git a/public/build/assets/heart-DBfrxc2y.js b/public/build/assets/heart-BDAPM7f6.js similarity index 72% rename from public/build/assets/heart-DBfrxc2y.js rename to public/build/assets/heart-BDAPM7f6.js index e074f5b..418bc58 100644 --- a/public/build/assets/heart-DBfrxc2y.js +++ b/public/build/assets/heart-BDAPM7f6.js @@ -1 +1 @@ -import{G as e}from"./app-CVlP31Z1.js";var t=e(`Heart`,[[`path`,{d:`M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z`,key:`c3ymky`}]]);export{t}; \ No newline at end of file +import{G as e}from"./app-D7MKN1zp.js";var t=e(`Heart`,[[`path`,{d:`M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z`,key:`c3ymky`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/home-C2LooHG2.js b/public/build/assets/home-C2LooHG2.js deleted file mode 100644 index 201bab4..0000000 --- a/public/build/assets/home-C2LooHG2.js +++ /dev/null @@ -1,4211 +0,0 @@ -import{t as e}from"./heart-DBfrxc2y.js";import{d as t,t as n}from"./main-layout-DiaP0ISn.js";import{n as r,t as i}from"./glow-radial-JNwxsbej.js";import{B as a,F as o,G as s,H as c,Ht as l,K as u,Lt as d,M as f,N as p,P as m,Q as h,U as g,Ut as _,V as v,Vt as y,W as b,Wt as x,Yt as S,at as C,et as w,it as T,ln as E,nn as D,nt as O,ot as k,q as A,qt as j,rn as M,rt as N,st as P,tt as F,zt as I}from"./app-CVlP31Z1.js";import{i as ee}from"./glow-stack-DaYuOL5d.js";import{n as L}from"./color-utils-ePYKqy3O.js";var te=s(`ChartColumn`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),ne=s(`Circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),re=s(`Crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),ie=s(`ListMusic`,[[`path`,{d:`M21 15V6`,key:`h1cx4g`}],[`path`,{d:`M18.5 18a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,key:`8saifv`}],[`path`,{d:`M12 12H3`,key:`18klou`}],[`path`,{d:`M16 6H3`,key:`1wxfjs`}],[`path`,{d:`M12 18H3`,key:`11ftsu`}]]),ae=s(`Music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),oe=s(`Pause`,[[`rect`,{x:`14`,y:`4`,width:`4`,height:`16`,rx:`1`,key:`zuxfzm`}],[`rect`,{x:`6`,y:`4`,width:`4`,height:`16`,rx:`1`,key:`1okwgv`}]]),se=s(`Play`,[[`polygon`,{points:`6 3 20 12 6 21 6 3`,key:`1oa8hb`}]]),ce=s(`Repeat1`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}],[`path`,{d:`M11 10h1v4`,key:`70cz1p`}]]),le=s(`Repeat`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]),ue=s(`Shuffle`,[[`path`,{d:`m18 14 4 4-4 4`,key:`10pe0f`}],[`path`,{d:`m18 2 4 4-4 4`,key:`pucp1d`}],[`path`,{d:`M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22`,key:`1ailkh`}],[`path`,{d:`M2 6h1.972a4 4 0 0 1 3.6 2.2`,key:`km57vx`}],[`path`,{d:`M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45`,key:`os18l9`}]]),R=s(`SkipBack`,[[`polygon`,{points:`19 20 9 12 19 4 19 20`,key:`o2sva`}],[`line`,{x1:`5`,x2:`5`,y1:`19`,y2:`5`,key:`1ocqjk`}]]),de=s(`SkipForward`,[[`polygon`,{points:`5 4 15 12 5 20 5 4`,key:`16p6eg`}],[`line`,{x1:`19`,x2:`19`,y1:`5`,y2:`19`,key:`futhcm`}]]),fe=s(`Sparkles`,[[`path`,{d:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z`,key:`4pj2yx`}],[`path`,{d:`M20 3v4`,key:`1olli1`}],[`path`,{d:`M22 5h-4`,key:`1gvqau`}],[`path`,{d:`M4 17v2`,key:`vumght`}],[`path`,{d:`M5 18H3`,key:`zchphs`}]]),pe=s(`Volume1`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}]]),me=s(`Volume2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),he=s(`VolumeX`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`line`,{x1:`22`,x2:`16`,y1:`9`,y2:`15`,key:`1ewh16`}],[`line`,{x1:`16`,x2:`22`,y1:`9`,y2:`15`,key:`5ykzw1`}]]),z=s(`Waves`,[[`path`,{d:`M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`knzxuh`}],[`path`,{d:`M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`2jd2cc`}],[`path`,{d:`M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`rd2r6e`}]]),B=E(M(),1),V=x();function ge(e,t=[]){let n=[];function r(t,r){let i=B.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=B.useMemo(()=>o,Object.values(o));return(0,V.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=B.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>B.createContext(e));return function(n){let r=n?.[e]||t;return B.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,H(i,...t)]}function H(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return B.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function _e(e){let t=U(e),n=B.forwardRef((e,n)=>{let{children:r,...i}=e,a=B.Children.toArray(r),o=a.find(ve);if(o){let e=o.props.children,r=a.map(t=>t===o?B.Children.count(e)>1?B.Children.only(null):B.isValidElement(e)?e.props.children:null:t);return(0,V.jsx)(t,{...i,ref:n,children:B.isValidElement(e)?B.cloneElement(e,void 0,r):null})}return(0,V.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function U(e){let t=B.forwardRef((e,t)=>{let{children:n,...r}=e;if(B.isValidElement(n)){let e=be(n),i=ye(r,n.props);return n.type!==B.Fragment&&(i.ref=t?y(t,e):e),B.cloneElement(n,i)}return B.Children.count(n)>1?B.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var W=Symbol(`radix.slottable`);function ve(e){return B.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===W}function ye(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function be(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}D();var xe=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=_e(`Primitive.${t}`),r=B.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,V.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Se=`Popover`,[Ce,we]=ge(Se,[P]),Te=P(),[Ee,De]=Ce(Se),Oe=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Te(t),c=B.useRef(null),[l,u]=B.useState(!1),[f,p]=w({prop:r,defaultProp:i??!1,onChange:a,caller:Se});return(0,V.jsx)(k,{...s,children:(0,V.jsx)(Ee,{scope:t,contentId:d(),triggerRef:c,open:f,onOpenChange:p,onOpenToggle:B.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:l,onCustomAnchorAdd:B.useCallback(()=>u(!0),[]),onCustomAnchorRemove:B.useCallback(()=>u(!1),[]),modal:o,children:n})})};Oe.displayName=Se;var ke=`PopoverAnchor`,Ae=B.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=De(ke,n),a=Te(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return B.useEffect(()=>(o(),()=>s()),[o,s]),(0,V.jsx)(N,{...a,...r,ref:t})});Ae.displayName=ke;var je=`PopoverTrigger`,Me=B.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=De(je,n),a=Te(n),o=l(t,i.triggerRef),s=(0,V.jsx)(xe.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":qe(i.open),...r,ref:o,onClick:_(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,V.jsx)(N,{asChild:!0,...a,children:s})});Me.displayName=je;var Ne=`PopoverPortal`,[Pe,Fe]=Ce(Ne,{forceMount:void 0}),Ie=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=De(Ne,t);return(0,V.jsx)(Pe,{scope:t,forceMount:n,children:(0,V.jsx)(F,{present:n||a.open,children:(0,V.jsx)(O,{asChild:!0,container:i,children:r})})})};Ie.displayName=Ne;var Le=`PopoverContent`,Re=B.forwardRef((e,t)=>{let n=Fe(Le,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=De(Le,e.__scopePopover);return(0,V.jsx)(F,{present:r||a.open,children:a.modal?(0,V.jsx)(Be,{...i,ref:t}):(0,V.jsx)(Ve,{...i,ref:t})})});Re.displayName=Le;var ze=_e(`PopoverContent.RemoveScroll`),Be=B.forwardRef((e,t)=>{let n=De(Le,e.__scopePopover),r=B.useRef(null),i=l(t,r),a=B.useRef(!1);return B.useEffect(()=>{let e=r.current;if(e)return f(e)},[]),(0,V.jsx)(p,{as:ze,allowPinchZoom:!0,children:(0,V.jsx)(He,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:_(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:_(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ve=B.forwardRef((e,t)=>{let n=De(Le,e.__scopePopover),r=B.useRef(!1),i=B.useRef(!1);return(0,V.jsx)(He,{...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()}})}),He=B.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...f}=e,p=De(Le,n),h=Te(n);return m(),(0,V.jsx)(o,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,V.jsx)(I,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:(0,V.jsx)(C,{"data-state":qe(p.open),role:`dialog`,id:p.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),Ue=`PopoverClose`,We=B.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=De(Ue,n);return(0,V.jsx)(xe.button,{type:`button`,...r,ref:t,onClick:_(e.onClick,()=>i.onOpenChange(!1))})});We.displayName=Ue;var Ge=`PopoverArrow`,Ke=B.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Te(n);return(0,V.jsx)(T,{...i,...r,ref:t})});Ke.displayName=Ge;function qe(e){return e?`open`:`closed`}var Je=Oe,Ye=Me,Xe=Ie,Ze=Re,Qe=j(),$e=u(`relative isolate inline-flex items-center justify-center gap-2 overflow-visible rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40`,outline:`border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}}),et=20,tt=`button-particle-styles-v2`;function nt(e){if(typeof document>`u`)return;let t=document.getElementById(tt),n=``,r=0;if(t){if(n=t.textContent||``,r=parseInt(t.dataset.maxIndex||`0`,10),r>=e)return}else t=document.createElement(`style`),t.id=tt;t.dataset.maxIndex=String(e);let i=n;i||=` - .bp-particle { - position: absolute; - border-radius: 50%; - pointer-events: none; - z-index: 99999; - will-change: transform, opacity; - } - `;for(let t=r+1;t<=e;t++)i+=` - @keyframes particle-burst-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } - } - .bp-particle[data-particle="burst"][data-idx="${t}"] { - animation: particle-burst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; - } - - @keyframes sparkle-burst-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(180deg) scale(0.3); opacity: 0; } - } - .bp-particle[data-particle="sparkle"][data-idx="${t}"] { - animation: sparkle-burst-${t} var(--pdur) cubic-bezier(0.2, 0.8, 0.2, 1) forwards; - } - - @keyframes confetti-spray-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(360deg) scale(0.5); opacity: 0; } - } - .bp-particle[data-particle="confetti"][data-idx="${t}"] { - animation: confetti-spray-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; - } - - @keyframes vburst-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } - } - .bp-particle[data-particle="vburst"][data-idx="${t}"] { - animation: vburst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; - } - - @keyframes hburst-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } - } - .bp-particle[data-particle="hburst"][data-idx="${t}"] { - animation: hburst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; - } - - @keyframes spiral-burst-${t} { - 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } - 60% { opacity: 0.9; } - 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(720deg) scale(0); opacity: 0; } - } - .bp-particle[data-particle="spiral"][data-idx="${t}"] { - animation: spiral-burst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; - } - `;t.textContent=i,document.head.appendChild(t)}nt(et);var rt=[`#ff0083`,`#ff6b6b`,`#ffd93d`,`#6bcb77`,`#4d96ff`,`#c77dff`,`#ff9f1c`,`#00f5d4`];function it({className:e,variant:t,size:n,particle:r=`burst`,particles:i=et,colors:a=rt,children:o,asChild:s=!1,...c}){let l=s?A:`button`,u=(0,B.useRef)(null);(0,B.useEffect)(()=>{nt(i)},[i]);let d=(e,t,n,i)=>{if(!e)return;let o=document.createElement(`div`);o.classList.add(`bp-particle`),o.dataset.idx=String(i),o.dataset.particle=r;let s=a[Math.floor(Math.random()*a.length)],c=i%2==1;switch(r){case`burst`:{let r=Math.random()*2*Math.PI,i=70+Math.random()*90,a=14+Math.random()*14;o.style.width=`${a}px`,o.style.height=`${a}px`,c?(o.style.backgroundColor=`transparent`,o.style.border=`3px solid ${s}`):(o.style.backgroundColor=s,o.style.border=`none`);let l=550+Math.random()*400;o.style.setProperty(`--pdx`,`${Math.cos(r)*i}px`),o.style.setProperty(`--pdy`,`${Math.sin(r)*i}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-a/2}px`,o.style.top=`${n-a/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`sparkle`:{let r=(Math.random()-.5)*80,i=-(60+Math.random()*100),a=8+Math.random()*12;o.style.width=`${a}px`,o.style.height=`${a}px`,c?(o.style.backgroundColor=`transparent`,o.style.border=`2px solid ${s}`):(o.style.backgroundColor=s,o.style.border=`none`);let l=600+Math.random()*400;o.style.setProperty(`--pdx`,`${r}px`),o.style.setProperty(`--pdy`,`${i}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-a/2}px`,o.style.top=`${n-a/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`confetti`:{let r=(Math.random()-.5)*Math.PI*.8,i=-Math.PI/2+r,a=80+Math.random()*120,c=Math.cos(i)*a,l=Math.sin(i)*a-40,u=10+Math.random()*8;o.style.width=`${u}px`,o.style.height=`${u*.5}px`,o.style.borderRadius=`2px`,o.style.backgroundColor=s,o.style.border=`none`;let d=700+Math.random()*400;o.style.setProperty(`--pdx`,`${c}px`),o.style.setProperty(`--pdy`,`${l}px`),o.style.setProperty(`--pdur`,`${d}ms`),o.style.left=`${t-u/2}px`,o.style.top=`${n-u/4}px`,e.appendChild(o),setTimeout(()=>o.remove(),d+50);break}case`vburst`:{let r=i%2==0,a=80+Math.random()*100,c=12+Math.random()*12;o.style.width=`${c}px`,o.style.height=`${c}px`,o.style.backgroundColor=s,o.style.border=`none`;let l=550+Math.random()*400;o.style.setProperty(`--pdx`,`${(Math.random()-.5)*20}px`),o.style.setProperty(`--pdy`,`${r?-a:a}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-c/2}px`,o.style.top=`${n-c/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`hburst`:{let r=i%2==0,a=80+Math.random()*100,c=12+Math.random()*12;o.style.width=`${c}px`,o.style.height=`${c}px`,o.style.backgroundColor=s,o.style.border=`none`;let l=550+Math.random()*400;o.style.setProperty(`--pdx`,`${r?a:-a}px`),o.style.setProperty(`--pdy`,`${(Math.random()-.5)*40}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-c/2}px`,o.style.top=`${n-c/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`spiral`:{let r=Math.random()*2*Math.PI,i=60+Math.random()*100,a=8+Math.random()*8;o.style.width=`${a}px`,o.style.height=`${a}px`,o.style.backgroundColor=s,o.style.border=`none`;let c=600+Math.random()*400;o.style.setProperty(`--pdx`,`${Math.cos(r)*i}px`),o.style.setProperty(`--pdy`,`${Math.sin(r)*i}px`),o.style.setProperty(`--pdur`,`${c}ms`),o.style.left=`${t-a/2}px`,o.style.top=`${n-a/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),c+50);break}}},f=e=>{if(!u.current||(c.onClick?.(e),e.defaultPrevented))return;let t=u.current.offsetWidth/2,n=u.current.offsetHeight/2,r=u.current;for(let e=1;e<=i;e++)setTimeout(()=>d(r,t,n,e),e*12)};return(0,V.jsx)(l,{ref:u,"data-slot":`button`,"data-particle":r,className:h($e({variant:t,size:n,className:e})),...c,onClick:f,children:o})}var at=1e3,ot=1001,st=1002,ct=1003,lt=1004,ut=1005,dt=1006,ft=1007,pt=1008,mt=1009,ht=1010,gt=1011,_t=1012,vt=1013,yt=1014,bt=1015,xt=1016,St=1017,Ct=1018,wt=1020,Tt=35902,Et=35899,Dt=1021,Ot=1022,kt=1023,At=1026,jt=1027,Mt=1028,Nt=1029,Pt=1030,Ft=1031,It=1033,Lt=33776,Rt=33777,zt=33778,Bt=33779,Vt=35840,Ht=35841,Ut=35842,Wt=35843,Gt=36196,Kt=37492,qt=37496,Jt=37488,Yt=37489,Xt=37490,Zt=37491,Qt=37808,$t=37809,en=37810,tn=37811,nn=37812,rn=37813,an=37814,on=37815,sn=37816,cn=37817,ln=37818,un=37819,dn=37820,fn=37821,pn=36492,mn=36494,hn=36495,gn=36283,_n=36284,vn=36285,yn=36286,bn=2300,xn=2301,Sn=2302,Cn=2303,wn=2400,Tn=2401,En=2402,Dn=3200,On=`srgb`,kn=`srgb-linear`,An=`linear`,jn=`srgb`,Mn=7680,Nn=35044,Pn=35048,Fn=2e3;function In(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Ln(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Rn(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function zn(){let e=Rn(`canvas`);return e.style.display=`block`,e}var Bn={},Vn=null;function Hn(...e){let t=`THREE.`+e.shift();Vn?Vn(`log`,t,...e):console.log(t,...e)}function Un(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function G(...e){e=Un(e);let t=`THREE.`+e.shift();if(Vn)Vn(`warn`,t,...e);else{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function K(...e){e=Un(e);let t=`THREE.`+e.shift();if(Vn)Vn(`error`,t,...e);else{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function Wn(...e){let t=e.join(` `);t in Bn||(Bn[t]=!0,G(...e))}function Gn(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var Kn={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},qn=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n===void 0?!1:n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+Jn[e>>16&255]+Jn[e>>24&255]+`-`+Jn[t&255]+Jn[t>>8&255]+`-`+Jn[t>>16&15|64]+Jn[t>>24&255]+`-`+Jn[n&63|128]+Jn[n>>8&255]+`-`+Jn[n>>16&255]+Jn[n>>24&255]+Jn[r&255]+Jn[r>>8&255]+Jn[r>>16&255]+Jn[r>>24&255]).toLowerCase()}function q(e,t,n){return Math.max(t,Math.min(n,e))}function Qn(e,t){return(e%t+t)%t}function $n(e,t,n){return(1-n)*e+n*t}function er(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`Invalid component type.`)}}function tr(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`Invalid component type.`)}}var nr=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=q(this.x,e.x,t.x),this.y=q(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=q(this.x,e,t),this.y=q(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(q(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(q(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},rr=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:G(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(q(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},J=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(ar.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(ar.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=q(this.x,e.x,t.x),this.y=q(this.y,e.y,t.y),this.z=q(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=q(this.x,e,t),this.y=q(this.y,e,t),this.z=q(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(q(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return ir.copy(this).projectOnVector(e),this.sub(ir)}reflect(e){return this.sub(ir.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(q(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},ir=new J,ar=new rr,Y=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(or.makeScale(e,t)),this}rotate(e){return this.premultiply(or.makeRotation(-e)),this}translate(e,t){return this.premultiply(or.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},or=new Y,sr=new Y().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),cr=new Y().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function lr(){let e={enabled:!0,workingColorSpace:kn,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n?e:(this.spaces[t].transfer===`srgb`&&(e.r=ur(e.r),e.g=ur(e.g),e.b=ur(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=dr(e.r),e.g=dr(e.g),e.b=dr(e.b)),e)},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?An:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Wn(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Wn(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[kn]:{primaries:t,whitePoint:r,transfer:An,toXYZ:sr,fromXYZ:cr,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:On},outputColorSpaceConfig:{drawingBufferColorSpace:On}},[On]:{primaries:t,whitePoint:r,transfer:jn,toXYZ:sr,fromXYZ:cr,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:On}}}),e}var X=lr();function ur(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function dr(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var fr,pr=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{fr===void 0&&(fr=Rn(`canvas`)),fr.width=e.width,fr.height=e.height;let t=fr.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=fr}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=Rn(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(vr).x}get height(){return this.source.getSize(vr).y}get depth(){return this.source.getSize(vr).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){G(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){G(`Texture.setValues(): property '${t}' does not exist.`);continue}r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case at:e.x-=Math.floor(e.x);break;case ot:e.x=e.x<0?0:1;break;case st:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case at:e.y-=Math.floor(e.y);break;case ot:e.y=e.y<0?0:1;break;case st:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};yr.DEFAULT_IMAGE=null,yr.DEFAULT_MAPPING=300,yr.DEFAULT_ANISOTROPY=1;var br=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;ts+l?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=s-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(ei)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new $r;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},ni={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ri={h:0,s:0,l:0},ii={h:0,s:0,l:0};function ai(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var Z=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=On){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,X.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=X.workingColorSpace){return this.r=e,this.g=t,this.b=n,X.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=X.workingColorSpace){if(e=Qn(e,1),t=q(t,0,1),n=q(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=ai(i,r,e+1/3),this.g=ai(i,r,e),this.b=ai(i,r,e-1/3)}return X.colorSpaceToWorking(this,r),this}setStyle(e,t=On){function n(t){t!==void 0&&parseFloat(t)<1&&G(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:G(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);G(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=On){let n=ni[e.toLowerCase()];return n===void 0?G(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=ur(e.r),this.g=ur(e.g),this.b=ur(e.b),this}copyLinearToSRGB(e){return this.r=dr(e.r),this.g=dr(e.g),this.b=dr(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=On){return X.workingToColorSpace(oi.copy(this),e),Math.round(q(oi.r*255,0,255))*65536+Math.round(q(oi.g*255,0,255))*256+Math.round(q(oi.b*255,0,255))}getHexString(e=On){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=X.workingColorSpace){X.workingToColorSpace(oi.copy(this),t);let n=oi.r,r=oi.g,i=oi.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}},ci=new J,li=new J,ui=new J,di=new J,fi=new J,pi=new J,mi=new J,hi=new J,gi=new J,_i=new J,vi=new br,yi=new br,bi=new br,xi=class e{constructor(e=new J,t=new J,n=new J){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),ci.subVectors(e,t),r.cross(ci);let i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){ci.subVectors(r,t),li.subVectors(n,t),ui.subVectors(e,t);let a=ci.dot(ci),o=ci.dot(li),s=ci.dot(ui),c=li.dot(li),l=li.dot(ui),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,di)===null?!1:di.x>=0&&di.y>=0&&di.x+di.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,di)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,di.x),s.addScaledVector(a,di.y),s.addScaledVector(o,di.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return vi.setScalar(0),yi.setScalar(0),bi.setScalar(0),vi.fromBufferAttribute(e,t),yi.fromBufferAttribute(e,n),bi.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(vi,i.x),a.addScaledVector(yi,i.y),a.addScaledVector(bi,i.z),a}static isFrontFacing(e,t,n,r){return ci.subVectors(n,t),li.subVectors(e,t),ci.cross(li).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return ci.subVectors(this.c,this.b),li.subVectors(this.a,this.b),ci.cross(li).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;fi.subVectors(r,n),pi.subVectors(i,n),hi.subVectors(e,n);let s=fi.dot(hi),c=pi.dot(hi);if(s<=0&&c<=0)return t.copy(n);gi.subVectors(e,r);let l=fi.dot(gi),u=pi.dot(gi);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(fi,a);_i.subVectors(e,i);let f=fi.dot(_i),p=pi.dot(_i);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(pi,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return mi.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(mi,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(fi,a).addScaledVector(pi,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},Si=class{constructor(e=new J(1/0,1/0,1/0),t=new J(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,wi),wi.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Mi),Ni.subVectors(this.max,Mi),Ei.subVectors(e.a,Mi),Di.subVectors(e.b,Mi),Oi.subVectors(e.c,Mi),ki.subVectors(Di,Ei),Ai.subVectors(Oi,Di),ji.subVectors(Ei,Oi);let t=[0,-ki.z,ki.y,0,-Ai.z,Ai.y,0,-ji.z,ji.y,ki.z,0,-ki.x,Ai.z,0,-Ai.x,ji.z,0,-ji.x,-ki.y,ki.x,0,-Ai.y,Ai.x,0,-ji.y,ji.x,0];return!Ii(t,Ei,Di,Oi,Ni)||(t=[1,0,0,0,1,0,0,0,1],!Ii(t,Ei,Di,Oi,Ni))?!1:(Pi.crossVectors(ki,Ai),t=[Pi.x,Pi.y,Pi.z],Ii(t,Ei,Di,Oi,Ni))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,wi).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(wi).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Ci[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Ci[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Ci[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Ci[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Ci[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Ci[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Ci[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Ci[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Ci),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},Ci=[new J,new J,new J,new J,new J,new J,new J,new J],wi=new J,Ti=new Si,Ei=new J,Di=new J,Oi=new J,ki=new J,Ai=new J,ji=new J,Mi=new J,Ni=new J,Pi=new J,Fi=new J;function Ii(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Fi.fromArray(e,a);let o=i.x*Math.abs(Fi.x)+i.y*Math.abs(Fi.y)+i.z*Math.abs(Fi.z),s=t.dot(Fi),c=n.dot(Fi),l=r.dot(Fi);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var Li=new J,Ri=new nr,zi=0,Bi=class extends qn{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,`id`,{value:zi++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=Nn,this.updateRanges=[],this.gpuType=bt,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Gi.subVectors(e,this.center);let t=Gi.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(Gi,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Ki.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Gi.copy(e.center).add(Ki)),this.expandByPoint(Gi.copy(e.center).sub(Ki))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},Ji=0,Yi=new Tr,Xi=new Qr,Zi=new J,Qi=new Si,$i=new Si,ea=new J,ta=class e extends qn{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,`id`,{value:Ji++}),this.uuid=Zn(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(In(e)?Hi:Vi)(e,1):this.index=e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new Y().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return Yi.makeRotationFromQuaternion(e),this.applyMatrix4(Yi),this}rotateX(e){return Yi.makeRotationX(e),this.applyMatrix4(Yi),this}rotateY(e){return Yi.makeRotationY(e),this.applyMatrix4(Yi),this}rotateZ(e){return Yi.makeRotationZ(e),this.applyMatrix4(Yi),this}translate(e,t,n){return Yi.makeTranslation(e,t,n),this.applyMatrix4(Yi),this}scale(e,t,n){return Yi.makeScale(e,t,n),this.applyMatrix4(Yi),this}lookAt(e){return Xi.lookAt(e),Xi.updateMatrix(),this.applyMatrix4(Xi.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Zi).negate(),this.translate(Zi.x,Zi.y,Zi.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;nt.count&&G(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Si);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){K(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new J(-1/0,-1/0,-1/0),new J(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){G(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){G(`Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,this.name!==``&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.side!==0&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==204&&(n.blendSrc=this.blendSrc),this.blendDst!==205&&(n.blendDst=this.blendDst),this.blendEquation!==100&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==3&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==519&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==7680&&(n.stencilFail=this.stencilFail),this.stencilZFail!==7680&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==7680&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.allowOverride===!1&&(n.allowOverride=!1),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==`round`&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==`round`&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},ia=new J,aa=new J,oa=new J,sa=new J,ca=new J,la=new J,ua=new J,da=class{constructor(e=new J,t=new J(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ia)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=ia.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ia.copy(this.origin).addScaledVector(this.direction,t),ia.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){aa.copy(e).add(t).multiplyScalar(.5),oa.copy(t).sub(e).normalize(),sa.copy(this.origin).sub(aa);let i=e.distanceTo(t)*.5,a=-this.direction.dot(oa),o=sa.dot(this.direction),s=-sa.dot(oa),c=sa.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0)if(u=a*s-o,d=a*o-s,p=i*l,u>=0)if(d>=-p)if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c);else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(aa).addScaledVector(oa,d),f}intersectSphere(e,t){ia.subVectors(e.center,this.origin);let n=ia.dot(this.direction),r=ia.dot(ia)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,ia)!==null}intersectTriangle(e,t,n,r,i){ca.subVectors(t,e),la.subVectors(n,e),ua.crossVectors(ca,la);let a=this.direction.dot(ua),o;if(a>0){if(r)return null;o=1}else if(a<0)o=-1,a=-a;else return null;sa.subVectors(this.origin,e);let s=o*this.direction.dot(la.crossVectors(sa,la));if(s<0)return null;let c=o*this.direction.dot(ca.cross(sa));if(c<0||s+c>a)return null;let l=-o*sa.dot(ua);return l<0?null:this.at(l/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},fa=class extends ra{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new Z(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Fr,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},pa=new Tr,ma=new da,ha=new qi,ga=new J,_a=new J,va=new J,ya=new J,ba=new J,xa=new J,Sa=new J,Ca=new J,wa=class extends Qr{constructor(e=new ta,t=new fa){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2))&&(pa.copy(i).invert(),ma.copy(e.ray).applyMatrix4(pa),!(n.boundingBox!==null&&ma.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,ma)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null)if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Ca.clone(),object:e}}function Ea(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,_a),e.getVertexPosition(c,va),e.getVertexPosition(l,ya);let u=Ta(e,t,n,r,_a,va,ya,Sa);if(u){let e=new J;xi.getBarycoord(Sa,_a,va,ya,e),i&&(u.uv=xi.getInterpolatedAttribute(i,s,c,l,e,new nr)),a&&(u.uv1=xi.getInterpolatedAttribute(a,s,c,l,e,new nr)),o&&(u.normal=xi.getInterpolatedAttribute(o,s,c,l,e,new J),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new J,materialIndex:0};xi.getNormal(_a,va,ya,t.normal),u.face=t,u.barycoord=e}return u}var Da=class extends yr{constructor(e=null,t=1,n=1,r,i,a,o,s,c=ct,l=ct,u,d){super(null,a,o,s,c,l,r,i,u,d),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}},Oa=new J,ka=new J,Aa=new Y,ja=class{constructor(e=new J(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){let r=Oa.subVectors(n,t).cross(ka.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){let e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t,n=!0){let r=e.delta(Oa),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;let a=-(e.start.dot(this.normal)+this.constant)/i;return n===!0&&(a<0||a>1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||Aa.getNormalMatrix(e),r=this.coplanarPoint(Oa).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}},Ma=new qi,Na=new nr(.5,.5),Pa=new J,Fa=class{constructor(e=new ja,t=new ja,n=new ja,r=new ja,i=new ja,a=new ja){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){let o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=Fn,n=!1){let r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(c-a,f-l,g-p,b-_).normalize(),r[1].setComponents(c+a,f+l,g+p,b+_).normalize(),r[2].setComponents(c+o,f+u,g+m,b+v).normalize(),r[3].setComponents(c-o,f-u,g-m,b-v).normalize(),n)r[4].setComponents(s,d,h,y).normalize(),r[5].setComponents(c-s,f-d,g-h,b-y).normalize();else if(r[4].setComponents(c-s,f-d,g-h,b-y).normalize(),t===2e3)r[5].setComponents(c+s,f+d,g+h,b+y).normalize();else if(t===2001)r[5].setComponents(s,d,h,y).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Ma.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Ma.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Ma)}intersectsSprite(e){return Ma.center.set(0,0,0),Ma.radius=.7071067811865476+Na.distanceTo(e.center),Ma.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ma)}intersectsSphere(e){let t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)0?e.max.x:e.min.x,Pa.y=r.normal.y>0?e.max.y:e.min.y,Pa.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Pa)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},Ia=class extends ra{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new Z(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},La=new J,Ra=new J,za=new Tr,Ba=new da,Va=new qi,Ha=new J,Ua=new J,Wa=class extends Qr{constructor(e=new ta,t=new Ia){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;Ha.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(Ha);if(!(ct.far))return{distance:c,point:Ua.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var Ka=new J,qa=new J,Ja=class extends Wa{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var no=class extends yr{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},ro=class extends yr{constructor(e,t,n=yt,r,i,a,o=ct,s=ct,c,l=At,u=1){if(l!==1026&&l!==1027)throw Error(`DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new hr(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}},io=class extends ro{constructor(e,t=yt,n=301,r,i,a=ct,o=ct,s,c=At){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},ao=class extends yr{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},oo=class e extends ta{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new Ui(c,3)),this.setAttribute(`normal`,new Ui(l,3)),this.setAttribute(`uv`,new Ui(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new J;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}},vo=class extends _o{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},yo=class extends ra{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new Z(16777215),this.specular=new Z(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Z(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new nr(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Fr,this.combine=0,this.reflectivity=1,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},bo=class extends ra{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=Dn,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},xo=class extends ra{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function So(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}var Co=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(K(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(K(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){K(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){K(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&Ln(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){K(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===Sn,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}};Oo.prototype.ValueTypeName=``,Oo.prototype.TimeBufferType=Float32Array,Oo.prototype.ValueBufferType=Float32Array,Oo.prototype.DefaultInterpolation=xn;var ko=class extends Oo{constructor(e,t,n){super(e,t,n)}};ko.prototype.ValueTypeName=`bool`,ko.prototype.ValueBufferType=Array,ko.prototype.DefaultInterpolation=bn,ko.prototype.InterpolantFactoryMethodLinear=void 0,ko.prototype.InterpolantFactoryMethodSmooth=void 0;var Ao=class extends Oo{constructor(e,t,n,r){super(e,t,n,r)}};Ao.prototype.ValueTypeName=`color`;var jo=class extends Oo{constructor(e,t,n,r){super(e,t,n,r)}};jo.prototype.ValueTypeName=`number`;var Mo=class extends Co{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)rr.slerpFlat(i,0,a,c-o,a,c,s);return i}},No=class extends Oo{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new Mo(this.times,this.values,this.getValueSize(),e)}};No.prototype.ValueTypeName=`quaternion`,No.prototype.InterpolantFactoryMethodSmooth=void 0;var Po=class extends Oo{constructor(e,t,n){super(e,t,n)}};Po.prototype.ValueTypeName=`string`,Po.prototype.ValueBufferType=Array,Po.prototype.DefaultInterpolation=bn,Po.prototype.InterpolantFactoryMethodLinear=void 0,Po.prototype.InterpolantFactoryMethodSmooth=void 0;var Fo=class extends Oo{constructor(e,t,n,r){super(e,t,n,r)}};Fo.prototype.ValueTypeName=`vector`;var Io=new class{constructor(e,t,n){let r=this,i=!1,a=0,o=0,s,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this._abortController=null,this.itemStart=function(e){o++,i===!1&&r.onStart!==void 0&&r.onStart(e,a,o),i=!0},this.itemEnd=function(e){a++,r.onProgress!==void 0&&r.onProgress(e,a,o),a===o&&(i=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(e){r.onError!==void 0&&r.onError(e)},this.resolveURL=function(e){return s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){let t=c.indexOf(e);return t!==-1&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;te.start-t.start);let t=0;for(let e=1;e 0 - vec4 plane; - #ifdef ALPHA_TO_COVERAGE - float distanceToPlane, distanceGradient; - float clipOpacity = 1.0; - #pragma unroll_loop_start - for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; - distanceGradient = fwidth( distanceToPlane ) / 2.0; - clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); - if ( clipOpacity == 0.0 ) discard; - } - #pragma unroll_loop_end - #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES - float unionClipOpacity = 1.0; - #pragma unroll_loop_start - for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; - distanceGradient = fwidth( distanceToPlane ) / 2.0; - unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); - } - #pragma unroll_loop_end - clipOpacity *= 1.0 - unionClipOpacity; - #endif - diffuseColor.a *= clipOpacity; - if ( diffuseColor.a == 0.0 ) discard; - #else - #pragma unroll_loop_start - for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; - } - #pragma unroll_loop_end - #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES - bool clipped = true; - #pragma unroll_loop_start - for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { - plane = clippingPlanes[ i ]; - clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; - } - #pragma unroll_loop_end - if ( clipped ) discard; - #endif - #endif -#endif`,clipping_planes_pars_fragment:`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; - uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`,clipping_planes_pars_vertex:`#if NUM_CLIPPING_PLANES > 0 - varying vec3 vClipPosition; -#endif`,clipping_planes_vertex:`#if NUM_CLIPPING_PLANES > 0 - vClipPosition = - mvPosition.xyz; -#endif`,color_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) - diffuseColor *= vColor; -#endif`,color_pars_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) - varying vec4 vColor; -#endif`,color_pars_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) - varying vec4 vColor; -#endif`,color_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) - vColor = vec4( 1.0 ); -#endif -#ifdef USE_COLOR_ALPHA - vColor *= color; -#elif defined( USE_COLOR ) - vColor.rgb *= color; -#endif -#ifdef USE_INSTANCING_COLOR - vColor.rgb *= instanceColor.rgb; -#endif -#ifdef USE_BATCHING_COLOR - vColor *= getBatchingColor( getIndirectIndex( gl_DrawID ) ); -#endif`,common:`#define PI 3.141592653589793 -#define PI2 6.283185307179586 -#define PI_HALF 1.5707963267948966 -#define RECIPROCAL_PI 0.3183098861837907 -#define RECIPROCAL_PI2 0.15915494309189535 -#define EPSILON 1e-6 -#ifndef saturate -#define saturate( a ) clamp( a, 0.0, 1.0 ) -#endif -#define whiteComplement( a ) ( 1.0 - saturate( a ) ) -float pow2( const in float x ) { return x*x; } -vec3 pow2( const in vec3 x ) { return x*x; } -float pow3( const in float x ) { return x*x*x; } -float pow4( const in float x ) { float x2 = x*x; return x2*x2; } -float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } -float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } -highp float rand( const in vec2 uv ) { - const highp float a = 12.9898, b = 78.233, c = 43758.5453; - highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); - return fract( sin( sn ) * c ); -} -#ifdef HIGH_PRECISION - float precisionSafeLength( vec3 v ) { return length( v ); } -#else - float precisionSafeLength( vec3 v ) { - float maxComponent = max3( abs( v ) ); - return length( v / maxComponent ) * maxComponent; - } -#endif -struct IncidentLight { - vec3 color; - vec3 direction; - bool visible; -}; -struct ReflectedLight { - vec3 directDiffuse; - vec3 directSpecular; - vec3 indirectDiffuse; - vec3 indirectSpecular; -}; -#ifdef USE_ALPHAHASH - varying vec3 vPosition; -#endif -vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); -} -vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { - return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); -} -bool isPerspectiveMatrix( mat4 m ) { - return m[ 2 ][ 3 ] == - 1.0; -} -vec2 equirectUv( in vec3 dir ) { - float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; - float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; - return vec2( u, v ); -} -vec3 BRDF_Lambert( const in vec3 diffuseColor ) { - return RECIPROCAL_PI * diffuseColor; -} -vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { - float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); - return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} -float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { - float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); - return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} // validated`,cube_uv_reflection_fragment:`#ifdef ENVMAP_TYPE_CUBE_UV - #define cubeUV_minMipLevel 4.0 - #define cubeUV_minTileSize 16.0 - float getFace( vec3 direction ) { - vec3 absDirection = abs( direction ); - float face = - 1.0; - if ( absDirection.x > absDirection.z ) { - if ( absDirection.x > absDirection.y ) - face = direction.x > 0.0 ? 0.0 : 3.0; - else - face = direction.y > 0.0 ? 1.0 : 4.0; - } else { - if ( absDirection.z > absDirection.y ) - face = direction.z > 0.0 ? 2.0 : 5.0; - else - face = direction.y > 0.0 ? 1.0 : 4.0; - } - return face; - } - vec2 getUV( vec3 direction, float face ) { - vec2 uv; - if ( face == 0.0 ) { - uv = vec2( direction.z, direction.y ) / abs( direction.x ); - } else if ( face == 1.0 ) { - uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); - } else if ( face == 2.0 ) { - uv = vec2( - direction.x, direction.y ) / abs( direction.z ); - } else if ( face == 3.0 ) { - uv = vec2( - direction.z, direction.y ) / abs( direction.x ); - } else if ( face == 4.0 ) { - uv = vec2( - direction.x, direction.z ) / abs( direction.y ); - } else { - uv = vec2( direction.x, direction.y ) / abs( direction.z ); - } - return 0.5 * ( uv + 1.0 ); - } - vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { - float face = getFace( direction ); - float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); - mipInt = max( mipInt, cubeUV_minMipLevel ); - float faceSize = exp2( mipInt ); - highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; - if ( face > 2.0 ) { - uv.y += faceSize; - face -= 3.0; - } - uv.x += face * faceSize; - uv.x += filterInt * 3.0 * cubeUV_minTileSize; - uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); - uv.x *= CUBEUV_TEXEL_WIDTH; - uv.y *= CUBEUV_TEXEL_HEIGHT; - #ifdef texture2DGradEXT - return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; - #else - return texture2D( envMap, uv ).rgb; - #endif - } - #define cubeUV_r0 1.0 - #define cubeUV_m0 - 2.0 - #define cubeUV_r1 0.8 - #define cubeUV_m1 - 1.0 - #define cubeUV_r4 0.4 - #define cubeUV_m4 2.0 - #define cubeUV_r5 0.305 - #define cubeUV_m5 3.0 - #define cubeUV_r6 0.21 - #define cubeUV_m6 4.0 - float roughnessToMip( float roughness ) { - float mip = 0.0; - if ( roughness >= cubeUV_r1 ) { - mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; - } else if ( roughness >= cubeUV_r4 ) { - mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; - } else if ( roughness >= cubeUV_r5 ) { - mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; - } else if ( roughness >= cubeUV_r6 ) { - mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; - } else { - mip = - 2.0 * log2( 1.16 * roughness ); } - return mip; - } - vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { - float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); - float mipF = fract( mip ); - float mipInt = floor( mip ); - vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); - if ( mipF == 0.0 ) { - return vec4( color0, 1.0 ); - } else { - vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); - return vec4( mix( color0, color1, mipF ), 1.0 ); - } - } -#endif`,defaultnormal_vertex:`vec3 transformedNormal = objectNormal; -#ifdef USE_TANGENT - vec3 transformedTangent = objectTangent; -#endif -#ifdef USE_BATCHING - mat3 bm = mat3( batchingMatrix ); - transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); - transformedNormal = bm * transformedNormal; - #ifdef USE_TANGENT - transformedTangent = bm * transformedTangent; - #endif -#endif -#ifdef USE_INSTANCING - mat3 im = mat3( instanceMatrix ); - transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); - transformedNormal = im * transformedNormal; - #ifdef USE_TANGENT - transformedTangent = im * transformedTangent; - #endif -#endif -transformedNormal = normalMatrix * transformedNormal; -#ifdef FLIP_SIDED - transformedNormal = - transformedNormal; -#endif -#ifdef USE_TANGENT - transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; - #ifdef FLIP_SIDED - transformedTangent = - transformedTangent; - #endif -#endif`,displacementmap_pars_vertex:`#ifdef USE_DISPLACEMENTMAP - uniform sampler2D displacementMap; - uniform float displacementScale; - uniform float displacementBias; -#endif`,displacementmap_vertex:`#ifdef USE_DISPLACEMENTMAP - transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,emissivemap_fragment:`#ifdef USE_EMISSIVEMAP - vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); - #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE - emissiveColor = sRGBTransferEOTF( emissiveColor ); - #endif - totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,emissivemap_pars_fragment:`#ifdef USE_EMISSIVEMAP - uniform sampler2D emissiveMap; -#endif`,colorspace_fragment:`gl_FragColor = linearToOutputTexel( gl_FragColor );`,colorspace_pars_fragment:`vec4 LinearTransferOETF( in vec4 value ) { - return value; -} -vec4 sRGBTransferEOTF( in vec4 value ) { - return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); -} -vec4 sRGBTransferOETF( in vec4 value ) { - return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); -}`,envmap_fragment:`#ifdef USE_ENVMAP - #ifdef ENV_WORLDPOS - vec3 cameraToFrag; - if ( isOrthographic ) { - cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); - } else { - cameraToFrag = normalize( vWorldPosition - cameraPosition ); - } - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - #ifdef ENVMAP_MODE_REFLECTION - vec3 reflectVec = reflect( cameraToFrag, worldNormal ); - #else - vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); - #endif - #else - vec3 reflectVec = vReflect; - #endif - #ifdef ENVMAP_TYPE_CUBE - vec4 envColor = textureCube( envMap, envMapRotation * reflectVec ); - #ifdef ENVMAP_BLENDING_MULTIPLY - outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); - #elif defined( ENVMAP_BLENDING_MIX ) - outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); - #elif defined( ENVMAP_BLENDING_ADD ) - outgoingLight += envColor.xyz * specularStrength * reflectivity; - #endif - #endif -#endif`,envmap_common_pars_fragment:`#ifdef USE_ENVMAP - uniform float envMapIntensity; - uniform mat3 envMapRotation; - #ifdef ENVMAP_TYPE_CUBE - uniform samplerCube envMap; - #else - uniform sampler2D envMap; - #endif -#endif`,envmap_pars_fragment:`#ifdef USE_ENVMAP - uniform float reflectivity; - #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) - #define ENV_WORLDPOS - #endif - #ifdef ENV_WORLDPOS - varying vec3 vWorldPosition; - uniform float refractionRatio; - #else - varying vec3 vReflect; - #endif -#endif`,envmap_pars_vertex:`#ifdef USE_ENVMAP - #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) - #define ENV_WORLDPOS - #endif - #ifdef ENV_WORLDPOS - - varying vec3 vWorldPosition; - #else - varying vec3 vReflect; - uniform float refractionRatio; - #endif -#endif`,envmap_physical_pars_fragment:`#ifdef USE_ENVMAP - vec3 getIBLIrradiance( const in vec3 normal ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); - return PI * envMapColor.rgb * envMapIntensity; - #else - return vec3( 0.0 ); - #endif - } - vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 reflectVec = reflect( - viewDir, normal ); - reflectVec = normalize( mix( reflectVec, normal, pow4( roughness ) ) ); - reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); - vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); - return envMapColor.rgb * envMapIntensity; - #else - return vec3( 0.0 ); - #endif - } - #ifdef USE_ANISOTROPY - vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { - #ifdef ENVMAP_TYPE_CUBE_UV - vec3 bentNormal = cross( bitangent, viewDir ); - bentNormal = normalize( cross( bentNormal, bitangent ) ); - bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); - return getIBLRadiance( viewDir, bentNormal, roughness ); - #else - return vec3( 0.0 ); - #endif - } - #endif -#endif`,envmap_vertex:`#ifdef USE_ENVMAP - #ifdef ENV_WORLDPOS - vWorldPosition = worldPosition.xyz; - #else - vec3 cameraToVertex; - if ( isOrthographic ) { - cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); - } else { - cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); - } - vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); - #ifdef ENVMAP_MODE_REFLECTION - vReflect = reflect( cameraToVertex, worldNormal ); - #else - vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); - #endif - #endif -#endif`,fog_vertex:`#ifdef USE_FOG - vFogDepth = - mvPosition.z; -#endif`,fog_pars_vertex:`#ifdef USE_FOG - varying float vFogDepth; -#endif`,fog_fragment:`#ifdef USE_FOG - #ifdef FOG_EXP2 - float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); - #else - float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); - #endif - gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`,fog_pars_fragment:`#ifdef USE_FOG - uniform vec3 fogColor; - varying float vFogDepth; - #ifdef FOG_EXP2 - uniform float fogDensity; - #else - uniform float fogNear; - uniform float fogFar; - #endif -#endif`,gradientmap_pars_fragment:`#ifdef USE_GRADIENTMAP - uniform sampler2D gradientMap; -#endif -vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { - float dotNL = dot( normal, lightDirection ); - vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); - #ifdef USE_GRADIENTMAP - return vec3( texture2D( gradientMap, coord ).r ); - #else - vec2 fw = fwidth( coord ) * 0.5; - return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); - #endif -}`,lightmap_pars_fragment:`#ifdef USE_LIGHTMAP - uniform sampler2D lightMap; - uniform float lightMapIntensity; -#endif`,lights_lambert_fragment:`LambertMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,lights_lambert_pars_fragment:`varying vec3 vViewPosition; -struct LambertMaterial { - vec3 diffuseColor; - float specularStrength; -}; -void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,lights_pars_begin:`uniform bool receiveShadow; -uniform vec3 ambientLightColor; -#if defined( USE_LIGHT_PROBES ) - uniform vec3 lightProbe[ 9 ]; -#endif -vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { - float x = normal.x, y = normal.y, z = normal.z; - vec3 result = shCoefficients[ 0 ] * 0.886227; - result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; - result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; - result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; - result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; - result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; - result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); - result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; - result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); - return result; -} -vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { - vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); - vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); - return irradiance; -} -vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { - vec3 irradiance = ambientLightColor; - return irradiance; -} -float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { - float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); - if ( cutoffDistance > 0.0 ) { - distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); - } - return distanceFalloff; -} -float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { - return smoothstep( coneCosine, penumbraCosine, angleCosine ); -} -#if NUM_DIR_LIGHTS > 0 - struct DirectionalLight { - vec3 direction; - vec3 color; - }; - uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; - void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { - light.color = directionalLight.color; - light.direction = directionalLight.direction; - light.visible = true; - } -#endif -#if NUM_POINT_LIGHTS > 0 - struct PointLight { - vec3 position; - vec3 color; - float distance; - float decay; - }; - uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; - void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { - vec3 lVector = pointLight.position - geometryPosition; - light.direction = normalize( lVector ); - float lightDistance = length( lVector ); - light.color = pointLight.color; - light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); - light.visible = ( light.color != vec3( 0.0 ) ); - } -#endif -#if NUM_SPOT_LIGHTS > 0 - struct SpotLight { - vec3 position; - vec3 direction; - vec3 color; - float distance; - float decay; - float coneCos; - float penumbraCos; - }; - uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; - void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { - vec3 lVector = spotLight.position - geometryPosition; - light.direction = normalize( lVector ); - float angleCos = dot( light.direction, spotLight.direction ); - float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); - if ( spotAttenuation > 0.0 ) { - float lightDistance = length( lVector ); - light.color = spotLight.color * spotAttenuation; - light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); - light.visible = ( light.color != vec3( 0.0 ) ); - } else { - light.color = vec3( 0.0 ); - light.visible = false; - } - } -#endif -#if NUM_RECT_AREA_LIGHTS > 0 - struct RectAreaLight { - vec3 color; - vec3 position; - vec3 halfWidth; - vec3 halfHeight; - }; - uniform sampler2D ltc_1; uniform sampler2D ltc_2; - uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; -#endif -#if NUM_HEMI_LIGHTS > 0 - struct HemisphereLight { - vec3 direction; - vec3 skyColor; - vec3 groundColor; - }; - uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; - vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { - float dotNL = dot( normal, hemiLight.direction ); - float hemiDiffuseWeight = 0.5 * dotNL + 0.5; - vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); - return irradiance; - } -#endif -#include `,lights_toon_fragment:`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,lights_toon_pars_fragment:`varying vec3 vViewPosition; -struct ToonMaterial { - vec3 diffuseColor; -}; -void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { - vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,lights_phong_fragment:`BlinnPhongMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.specularColor = specular; -material.specularShininess = shininess; -material.specularStrength = specularStrength;`,lights_phong_pars_fragment:`varying vec3 vViewPosition; -struct BlinnPhongMaterial { - vec3 diffuseColor; - vec3 specularColor; - float specularShininess; - float specularStrength; -}; -void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); - reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; -} -void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { - reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); -} -#define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,lights_physical_fragment:`PhysicalMaterial material; -material.diffuseColor = diffuseColor.rgb; -material.diffuseContribution = diffuseColor.rgb * ( 1.0 - metalnessFactor ); -material.metalness = metalnessFactor; -vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); -float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); -material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; -material.roughness = min( material.roughness, 1.0 ); -#ifdef IOR - material.ior = ior; - #ifdef USE_SPECULAR - float specularIntensityFactor = specularIntensity; - vec3 specularColorFactor = specularColor; - #ifdef USE_SPECULAR_COLORMAP - specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; - #endif - #ifdef USE_SPECULAR_INTENSITYMAP - specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; - #endif - material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); - #else - float specularIntensityFactor = 1.0; - vec3 specularColorFactor = vec3( 1.0 ); - material.specularF90 = 1.0; - #endif - material.specularColor = min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor; - material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); -#else - material.specularColor = vec3( 0.04 ); - material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); - material.specularF90 = 1.0; -#endif -#ifdef USE_CLEARCOAT - material.clearcoat = clearcoat; - material.clearcoatRoughness = clearcoatRoughness; - material.clearcoatF0 = vec3( 0.04 ); - material.clearcoatF90 = 1.0; - #ifdef USE_CLEARCOATMAP - material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; - #endif - #ifdef USE_CLEARCOAT_ROUGHNESSMAP - material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; - #endif - material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); - material.clearcoatRoughness += geometryRoughness; - material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); -#endif -#ifdef USE_DISPERSION - material.dispersion = dispersion; -#endif -#ifdef USE_IRIDESCENCE - material.iridescence = iridescence; - material.iridescenceIOR = iridescenceIOR; - #ifdef USE_IRIDESCENCEMAP - material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; - #endif - #ifdef USE_IRIDESCENCE_THICKNESSMAP - material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; - #else - material.iridescenceThickness = iridescenceThicknessMaximum; - #endif -#endif -#ifdef USE_SHEEN - material.sheenColor = sheenColor; - #ifdef USE_SHEEN_COLORMAP - material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; - #endif - material.sheenRoughness = clamp( sheenRoughness, 0.0001, 1.0 ); - #ifdef USE_SHEEN_ROUGHNESSMAP - material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; - #endif -#endif -#ifdef USE_ANISOTROPY - #ifdef USE_ANISOTROPYMAP - mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); - vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; - vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; - #else - vec2 anisotropyV = anisotropyVector; - #endif - material.anisotropy = length( anisotropyV ); - if( material.anisotropy == 0.0 ) { - anisotropyV = vec2( 1.0, 0.0 ); - } else { - anisotropyV /= material.anisotropy; - material.anisotropy = saturate( material.anisotropy ); - } - material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); - material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; - material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; -#endif`,lights_physical_pars_fragment:`uniform sampler2D dfgLUT; -struct PhysicalMaterial { - vec3 diffuseColor; - vec3 diffuseContribution; - vec3 specularColor; - vec3 specularColorBlended; - float roughness; - float metalness; - float specularF90; - float dispersion; - #ifdef USE_CLEARCOAT - float clearcoat; - float clearcoatRoughness; - vec3 clearcoatF0; - float clearcoatF90; - #endif - #ifdef USE_IRIDESCENCE - float iridescence; - float iridescenceIOR; - float iridescenceThickness; - vec3 iridescenceFresnel; - vec3 iridescenceF0; - vec3 iridescenceFresnelDielectric; - vec3 iridescenceFresnelMetallic; - #endif - #ifdef USE_SHEEN - vec3 sheenColor; - float sheenRoughness; - #endif - #ifdef IOR - float ior; - #endif - #ifdef USE_TRANSMISSION - float transmission; - float transmissionAlpha; - float thickness; - float attenuationDistance; - vec3 attenuationColor; - #endif - #ifdef USE_ANISOTROPY - float anisotropy; - float alphaT; - vec3 anisotropyT; - vec3 anisotropyB; - #endif -}; -vec3 clearcoatSpecularDirect = vec3( 0.0 ); -vec3 clearcoatSpecularIndirect = vec3( 0.0 ); -vec3 sheenSpecularDirect = vec3( 0.0 ); -vec3 sheenSpecularIndirect = vec3(0.0 ); -vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { - float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); - float x2 = x * x; - float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); - return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); -} -float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { - float a2 = pow2( alpha ); - float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); - float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); - return 0.5 / max( gv + gl, EPSILON ); -} -float D_GGX( const in float alpha, const in float dotNH ) { - float a2 = pow2( alpha ); - float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; - return RECIPROCAL_PI * a2 / pow2( denom ); -} -#ifdef USE_ANISOTROPY - float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { - float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); - float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); - return 0.5 / max( gv + gl, EPSILON ); - } - float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { - float a2 = alphaT * alphaB; - highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); - highp float v2 = dot( v, v ); - float w2 = a2 / v2; - return RECIPROCAL_PI * a2 * pow2 ( w2 ); - } -#endif -#ifdef USE_CLEARCOAT - vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { - vec3 f0 = material.clearcoatF0; - float f90 = material.clearcoatF90; - float roughness = material.clearcoatRoughness; - float alpha = pow2( roughness ); - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float dotVH = saturate( dot( viewDir, halfDir ) ); - vec3 F = F_Schlick( f0, f90, dotVH ); - float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); - float D = D_GGX( alpha, dotNH ); - return F * ( V * D ); - } -#endif -vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { - vec3 f0 = material.specularColorBlended; - float f90 = material.specularF90; - float roughness = material.roughness; - float alpha = pow2( roughness ); - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float dotVH = saturate( dot( viewDir, halfDir ) ); - vec3 F = F_Schlick( f0, f90, dotVH ); - #ifdef USE_IRIDESCENCE - F = mix( F, material.iridescenceFresnel, material.iridescence ); - #endif - #ifdef USE_ANISOTROPY - float dotTL = dot( material.anisotropyT, lightDir ); - float dotTV = dot( material.anisotropyT, viewDir ); - float dotTH = dot( material.anisotropyT, halfDir ); - float dotBL = dot( material.anisotropyB, lightDir ); - float dotBV = dot( material.anisotropyB, viewDir ); - float dotBH = dot( material.anisotropyB, halfDir ); - float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); - float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); - #else - float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); - float D = D_GGX( alpha, dotNH ); - #endif - return F * ( V * D ); -} -vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { - const float LUT_SIZE = 64.0; - const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; - const float LUT_BIAS = 0.5 / LUT_SIZE; - float dotNV = saturate( dot( N, V ) ); - vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); - uv = uv * LUT_SCALE + LUT_BIAS; - return uv; -} -float LTC_ClippedSphereFormFactor( const in vec3 f ) { - float l = length( f ); - return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); -} -vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { - float x = dot( v1, v2 ); - float y = abs( x ); - float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; - float b = 3.4175940 + ( 4.1616724 + y ) * y; - float v = a / b; - float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; - return cross( v1, v2 ) * theta_sintheta; -} -vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { - vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; - vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; - vec3 lightNormal = cross( v1, v2 ); - if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); - vec3 T1, T2; - T1 = normalize( V - N * dot( V, N ) ); - T2 = - cross( N, T1 ); - mat3 mat = mInv * transpose( mat3( T1, T2, N ) ); - vec3 coords[ 4 ]; - coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); - coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); - coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); - coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); - coords[ 0 ] = normalize( coords[ 0 ] ); - coords[ 1 ] = normalize( coords[ 1 ] ); - coords[ 2 ] = normalize( coords[ 2 ] ); - coords[ 3 ] = normalize( coords[ 3 ] ); - vec3 vectorFormFactor = vec3( 0.0 ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); - vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); - float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); - return vec3( result ); -} -#if defined( USE_SHEEN ) -float D_Charlie( float roughness, float dotNH ) { - float alpha = pow2( roughness ); - float invAlpha = 1.0 / alpha; - float cos2h = dotNH * dotNH; - float sin2h = max( 1.0 - cos2h, 0.0078125 ); - return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); -} -float V_Neubelt( float dotNV, float dotNL ) { - return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); -} -vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { - vec3 halfDir = normalize( lightDir + viewDir ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - float dotNH = saturate( dot( normal, halfDir ) ); - float D = D_Charlie( sheenRoughness, dotNH ); - float V = V_Neubelt( dotNV, dotNL ); - return sheenColor * ( D * V ); -} -#endif -float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { - float dotNV = saturate( dot( normal, viewDir ) ); - float r2 = roughness * roughness; - float rInv = 1.0 / ( roughness + 0.1 ); - float a = -1.9362 + 1.0678 * roughness + 0.4573 * r2 - 0.8469 * rInv; - float b = -0.6014 + 0.5538 * roughness - 0.4670 * r2 - 0.1255 * rInv; - float DG = exp( a * dotNV + b ); - return saturate( DG ); -} -vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { - float dotNV = saturate( dot( normal, viewDir ) ); - vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; - return specularColor * fab.x + specularF90 * fab.y; -} -#ifdef USE_IRIDESCENCE -void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { -#else -void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { -#endif - float dotNV = saturate( dot( normal, viewDir ) ); - vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; - #ifdef USE_IRIDESCENCE - vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); - #else - vec3 Fr = specularColor; - #endif - vec3 FssEss = Fr * fab.x + specularF90 * fab.y; - float Ess = fab.x + fab.y; - float Ems = 1.0 - Ess; - vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); - singleScatter += FssEss; - multiScatter += Fms * Ems; -} -vec3 BRDF_GGX_Multiscatter( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { - vec3 singleScatter = BRDF_GGX( lightDir, viewDir, normal, material ); - float dotNL = saturate( dot( normal, lightDir ) ); - float dotNV = saturate( dot( normal, viewDir ) ); - vec2 dfgV = texture2D( dfgLUT, vec2( material.roughness, dotNV ) ).rg; - vec2 dfgL = texture2D( dfgLUT, vec2( material.roughness, dotNL ) ).rg; - vec3 FssEss_V = material.specularColorBlended * dfgV.x + material.specularF90 * dfgV.y; - vec3 FssEss_L = material.specularColorBlended * dfgL.x + material.specularF90 * dfgL.y; - float Ess_V = dfgV.x + dfgV.y; - float Ess_L = dfgL.x + dfgL.y; - float Ems_V = 1.0 - Ess_V; - float Ems_L = 1.0 - Ess_L; - vec3 Favg = material.specularColorBlended + ( 1.0 - material.specularColorBlended ) * 0.047619; - vec3 Fms = FssEss_V * FssEss_L * Favg / ( 1.0 - Ems_V * Ems_L * Favg + EPSILON ); - float compensationFactor = Ems_V * Ems_L; - vec3 multiScatter = Fms * compensationFactor; - return singleScatter + multiScatter; -} -#if NUM_RECT_AREA_LIGHTS > 0 - void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - vec3 normal = geometryNormal; - vec3 viewDir = geometryViewDir; - vec3 position = geometryPosition; - vec3 lightPos = rectAreaLight.position; - vec3 halfWidth = rectAreaLight.halfWidth; - vec3 halfHeight = rectAreaLight.halfHeight; - vec3 lightColor = rectAreaLight.color; - float roughness = material.roughness; - vec3 rectCoords[ 4 ]; - rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; - rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; - rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; - vec2 uv = LTC_Uv( normal, viewDir, roughness ); - vec4 t1 = texture2D( ltc_1, uv ); - vec4 t2 = texture2D( ltc_2, uv ); - mat3 mInv = mat3( - vec3( t1.x, 0, t1.y ), - vec3( 0, 1, 0 ), - vec3( t1.z, 0, t1.w ) - ); - vec3 fresnel = ( material.specularColorBlended * t2.x + ( material.specularF90 - material.specularColorBlended ) * t2.y ); - reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); - reflectedLight.directDiffuse += lightColor * material.diffuseContribution * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); - #ifdef USE_CLEARCOAT - vec3 Ncc = geometryClearcoatNormal; - vec2 uvClearcoat = LTC_Uv( Ncc, viewDir, material.clearcoatRoughness ); - vec4 t1Clearcoat = texture2D( ltc_1, uvClearcoat ); - vec4 t2Clearcoat = texture2D( ltc_2, uvClearcoat ); - mat3 mInvClearcoat = mat3( - vec3( t1Clearcoat.x, 0, t1Clearcoat.y ), - vec3( 0, 1, 0 ), - vec3( t1Clearcoat.z, 0, t1Clearcoat.w ) - ); - vec3 fresnelClearcoat = material.clearcoatF0 * t2Clearcoat.x + ( material.clearcoatF90 - material.clearcoatF0 ) * t2Clearcoat.y; - clearcoatSpecularDirect += lightColor * fresnelClearcoat * LTC_Evaluate( Ncc, viewDir, position, mInvClearcoat, rectCoords ); - #endif - } -#endif -void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); - vec3 irradiance = dotNL * directLight.color; - #ifdef USE_CLEARCOAT - float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); - vec3 ccIrradiance = dotNLcc * directLight.color; - clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); - #endif - #ifdef USE_SHEEN - - sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); - - float sheenAlbedoV = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); - float sheenAlbedoL = IBLSheenBRDF( geometryNormal, directLight.direction, material.sheenRoughness ); - - float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * max( sheenAlbedoV, sheenAlbedoL ); - - irradiance *= sheenEnergyComp; - - #endif - reflectedLight.directSpecular += irradiance * BRDF_GGX_Multiscatter( directLight.direction, geometryViewDir, geometryNormal, material ); - reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseContribution ); -} -void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { - vec3 diffuse = irradiance * BRDF_Lambert( material.diffuseContribution ); - #ifdef USE_SHEEN - float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); - float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; - diffuse *= sheenEnergyComp; - #endif - reflectedLight.indirectDiffuse += diffuse; -} -void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { - #ifdef USE_CLEARCOAT - clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); - #endif - #ifdef USE_SHEEN - sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ) * RECIPROCAL_PI; - #endif - vec3 singleScatteringDielectric = vec3( 0.0 ); - vec3 multiScatteringDielectric = vec3( 0.0 ); - vec3 singleScatteringMetallic = vec3( 0.0 ); - vec3 multiScatteringMetallic = vec3( 0.0 ); - #ifdef USE_IRIDESCENCE - computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnelDielectric, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); - computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.iridescence, material.iridescenceFresnelMetallic, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); - #else - computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); - computeMultiscattering( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); - #endif - vec3 singleScattering = mix( singleScatteringDielectric, singleScatteringMetallic, material.metalness ); - vec3 multiScattering = mix( multiScatteringDielectric, multiScatteringMetallic, material.metalness ); - vec3 totalScatteringDielectric = singleScatteringDielectric + multiScatteringDielectric; - vec3 diffuse = material.diffuseContribution * ( 1.0 - totalScatteringDielectric ); - vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; - vec3 indirectSpecular = radiance * singleScattering; - indirectSpecular += multiScattering * cosineWeightedIrradiance; - vec3 indirectDiffuse = diffuse * cosineWeightedIrradiance; - #ifdef USE_SHEEN - float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); - float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; - indirectSpecular *= sheenEnergyComp; - indirectDiffuse *= sheenEnergyComp; - #endif - reflectedLight.indirectSpecular += indirectSpecular; - reflectedLight.indirectDiffuse += indirectDiffuse; -} -#define RE_Direct RE_Direct_Physical -#define RE_Direct_RectArea RE_Direct_RectArea_Physical -#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical -#define RE_IndirectSpecular RE_IndirectSpecular_Physical -float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { - return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`,lights_fragment_begin:` -vec3 geometryPosition = - vViewPosition; -vec3 geometryNormal = normal; -vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); -vec3 geometryClearcoatNormal = vec3( 0.0 ); -#ifdef USE_CLEARCOAT - geometryClearcoatNormal = clearcoatNormal; -#endif -#ifdef USE_IRIDESCENCE - float dotNVi = saturate( dot( normal, geometryViewDir ) ); - if ( material.iridescenceThickness == 0.0 ) { - material.iridescence = 0.0; - } else { - material.iridescence = saturate( material.iridescence ); - } - if ( material.iridescence > 0.0 ) { - material.iridescenceFresnelDielectric = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); - material.iridescenceFresnelMetallic = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.diffuseColor ); - material.iridescenceFresnel = mix( material.iridescenceFresnelDielectric, material.iridescenceFresnelMetallic, material.metalness ); - material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); - } -#endif -IncidentLight directLight; -#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) - PointLight pointLight; - #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 - PointLightShadow pointLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { - pointLight = pointLights[ i ]; - getPointLightInfo( pointLight, geometryPosition, directLight ); - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) - pointLightShadow = pointLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) - SpotLight spotLight; - vec4 spotColor; - vec3 spotLightCoord; - bool inSpotLightMap; - #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { - spotLight = spotLights[ i ]; - getSpotLightInfo( spotLight, geometryPosition, directLight ); - #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) - #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX - #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS - #else - #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) - #endif - #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) - spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; - inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); - spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); - directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; - #endif - #undef SPOT_LIGHT_MAP_INDEX - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - spotLightShadow = spotLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) - DirectionalLight directionalLight; - #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLightShadow; - #endif - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { - directionalLight = directionalLights[ i ]; - getDirectionalLightInfo( directionalLight, directLight ); - #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) - directionalLightShadow = directionalLightShadows[ i ]; - directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - #endif - RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) - RectAreaLight rectAreaLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { - rectAreaLight = rectAreaLights[ i ]; - RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); - } - #pragma unroll_loop_end -#endif -#if defined( RE_IndirectDiffuse ) - vec3 iblIrradiance = vec3( 0.0 ); - vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); - #if defined( USE_LIGHT_PROBES ) - irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); - #endif - #if ( NUM_HEMI_LIGHTS > 0 ) - #pragma unroll_loop_start - for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { - irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); - } - #pragma unroll_loop_end - #endif - #ifdef USE_LIGHT_PROBES_GRID - vec3 probeWorldPos = ( ( vec4( geometryPosition, 1.0 ) - viewMatrix[ 3 ] ) * viewMatrix ).xyz; - vec3 probeWorldNormal = inverseTransformDirection( geometryNormal, viewMatrix ); - irradiance += getLightProbeGridIrradiance( probeWorldPos, probeWorldNormal ); - #endif -#endif -#if defined( RE_IndirectSpecular ) - vec3 radiance = vec3( 0.0 ); - vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,lights_fragment_maps:`#if defined( RE_IndirectDiffuse ) - #ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; - irradiance += lightMapIrradiance; - #endif - #if defined( USE_ENVMAP ) && defined( ENVMAP_TYPE_CUBE_UV ) - #if defined( STANDARD ) || defined( LAMBERT ) || defined( PHONG ) - iblIrradiance += getIBLIrradiance( geometryNormal ); - #endif - #endif -#endif -#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) - #ifdef USE_ANISOTROPY - radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); - #else - radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); - #endif - #ifdef USE_CLEARCOAT - clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); - #endif -#endif`,lights_fragment_end:`#if defined( RE_IndirectDiffuse ) - #if defined( LAMBERT ) || defined( PHONG ) - irradiance += iblIrradiance; - #endif - RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif -#if defined( RE_IndirectSpecular ) - RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif`,lightprobes_pars_fragment:`#ifdef USE_LIGHT_PROBES_GRID -uniform highp sampler3D probesSH; -uniform vec3 probesMin; -uniform vec3 probesMax; -uniform vec3 probesResolution; -vec3 getLightProbeGridIrradiance( vec3 worldPos, vec3 worldNormal ) { - vec3 res = probesResolution; - vec3 gridRange = probesMax - probesMin; - vec3 resMinusOne = res - 1.0; - vec3 probeSpacing = gridRange / resMinusOne; - vec3 samplePos = worldPos + worldNormal * probeSpacing * 0.5; - vec3 uvw = clamp( ( samplePos - probesMin ) / gridRange, 0.0, 1.0 ); - uvw = uvw * resMinusOne / res + 0.5 / res; - float nz = res.z; - float paddedSlices = nz + 2.0; - float atlasDepth = 7.0 * paddedSlices; - float uvZBase = uvw.z * nz + 1.0; - vec4 s0 = texture( probesSH, vec3( uvw.xy, ( uvZBase ) / atlasDepth ) ); - vec4 s1 = texture( probesSH, vec3( uvw.xy, ( uvZBase + paddedSlices ) / atlasDepth ) ); - vec4 s2 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 2.0 * paddedSlices ) / atlasDepth ) ); - vec4 s3 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 3.0 * paddedSlices ) / atlasDepth ) ); - vec4 s4 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 4.0 * paddedSlices ) / atlasDepth ) ); - vec4 s5 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 5.0 * paddedSlices ) / atlasDepth ) ); - vec4 s6 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 6.0 * paddedSlices ) / atlasDepth ) ); - vec3 c0 = s0.xyz; - vec3 c1 = vec3( s0.w, s1.xy ); - vec3 c2 = vec3( s1.zw, s2.x ); - vec3 c3 = s2.yzw; - vec3 c4 = s3.xyz; - vec3 c5 = vec3( s3.w, s4.xy ); - vec3 c6 = vec3( s4.zw, s5.x ); - vec3 c7 = s5.yzw; - vec3 c8 = s6.xyz; - float x = worldNormal.x, y = worldNormal.y, z = worldNormal.z; - vec3 result = c0 * 0.886227; - result += c1 * 2.0 * 0.511664 * y; - result += c2 * 2.0 * 0.511664 * z; - result += c3 * 2.0 * 0.511664 * x; - result += c4 * 2.0 * 0.429043 * x * y; - result += c5 * 2.0 * 0.429043 * y * z; - result += c6 * ( 0.743125 * z * z - 0.247708 ); - result += c7 * 2.0 * 0.429043 * x * z; - result += c8 * 0.429043 * ( x * x - y * y ); - return max( result, vec3( 0.0 ) ); -} -#endif`,logdepthbuf_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) - gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`,logdepthbuf_pars_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) - uniform float logDepthBufFC; - varying float vFragDepth; - varying float vIsPerspective; -#endif`,logdepthbuf_pars_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER - varying float vFragDepth; - varying float vIsPerspective; -#endif`,logdepthbuf_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER - vFragDepth = 1.0 + gl_Position.w; - vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); -#endif`,map_fragment:`#ifdef USE_MAP - vec4 sampledDiffuseColor = texture2D( map, vMapUv ); - #ifdef DECODE_VIDEO_TEXTURE - sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); - #endif - diffuseColor *= sampledDiffuseColor; -#endif`,map_pars_fragment:`#ifdef USE_MAP - uniform sampler2D map; -#endif`,map_particle_fragment:`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) - #if defined( USE_POINTS_UV ) - vec2 uv = vUv; - #else - vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; - #endif -#endif -#ifdef USE_MAP - diffuseColor *= texture2D( map, uv ); -#endif -#ifdef USE_ALPHAMAP - diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,map_particle_pars_fragment:`#if defined( USE_POINTS_UV ) - varying vec2 vUv; -#else - #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) - uniform mat3 uvTransform; - #endif -#endif -#ifdef USE_MAP - uniform sampler2D map; -#endif -#ifdef USE_ALPHAMAP - uniform sampler2D alphaMap; -#endif`,metalnessmap_fragment:`float metalnessFactor = metalness; -#ifdef USE_METALNESSMAP - vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); - metalnessFactor *= texelMetalness.b; -#endif`,metalnessmap_pars_fragment:`#ifdef USE_METALNESSMAP - uniform sampler2D metalnessMap; -#endif`,morphinstance_vertex:`#ifdef USE_INSTANCING_MORPH - float morphTargetInfluences[ MORPHTARGETS_COUNT ]; - float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; - } -#endif`,morphcolor_vertex:`#if defined( USE_MORPHCOLORS ) - vColor *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - #if defined( USE_COLOR_ALPHA ) - if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; - #elif defined( USE_COLOR ) - if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; - #endif - } -#endif`,morphnormal_vertex:`#ifdef USE_MORPHNORMALS - objectNormal *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; - } -#endif`,morphtarget_pars_vertex:`#ifdef USE_MORPHTARGETS - #ifndef USE_INSTANCING_MORPH - uniform float morphTargetBaseInfluence; - uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; - #endif - uniform sampler2DArray morphTargetsTexture; - uniform ivec2 morphTargetsTextureSize; - vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { - int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; - int y = texelIndex / morphTargetsTextureSize.x; - int x = texelIndex - y * morphTargetsTextureSize.x; - ivec3 morphUV = ivec3( x, y, morphTargetIndex ); - return texelFetch( morphTargetsTexture, morphUV, 0 ); - } -#endif`,morphtarget_vertex:`#ifdef USE_MORPHTARGETS - transformed *= morphTargetBaseInfluence; - for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { - if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; - } -#endif`,normal_fragment_begin:`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; -#ifdef FLAT_SHADED - vec3 fdx = dFdx( vViewPosition ); - vec3 fdy = dFdy( vViewPosition ); - vec3 normal = normalize( cross( fdx, fdy ) ); -#else - vec3 normal = normalize( vNormal ); - #ifdef DOUBLE_SIDED - normal *= faceDirection; - #endif -#endif -#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) - #ifdef USE_TANGENT - mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - #else - mat3 tbn = getTangentFrame( - vViewPosition, normal, - #if defined( USE_NORMALMAP ) - vNormalMapUv - #elif defined( USE_CLEARCOAT_NORMALMAP ) - vClearcoatNormalMapUv - #else - vUv - #endif - ); - #endif - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - tbn[0] *= faceDirection; - tbn[1] *= faceDirection; - #endif -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - #ifdef USE_TANGENT - mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); - #else - mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); - #endif - #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) - tbn2[0] *= faceDirection; - tbn2[1] *= faceDirection; - #endif -#endif -vec3 nonPerturbedNormal = normal;`,normal_fragment_maps:`#ifdef USE_NORMALMAP_OBJECTSPACE - normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; - #ifdef FLIP_SIDED - normal = - normal; - #endif - #ifdef DOUBLE_SIDED - normal = normal * faceDirection; - #endif - normal = normalize( normalMatrix * normal ); -#elif defined( USE_NORMALMAP_TANGENTSPACE ) - vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; - #if defined( USE_PACKED_NORMALMAP ) - mapN = vec3( mapN.xy, sqrt( saturate( 1.0 - dot( mapN.xy, mapN.xy ) ) ) ); - #endif - mapN.xy *= normalScale; - normal = normalize( tbn * mapN ); -#elif defined( USE_BUMPMAP ) - normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,normal_pars_fragment:`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif -#endif`,normal_pars_vertex:`#ifndef FLAT_SHADED - varying vec3 vNormal; - #ifdef USE_TANGENT - varying vec3 vTangent; - varying vec3 vBitangent; - #endif -#endif`,normal_vertex:`#ifndef FLAT_SHADED - vNormal = normalize( transformedNormal ); - #ifdef USE_TANGENT - vTangent = normalize( transformedTangent ); - vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); - #endif -#endif`,normalmap_pars_fragment:`#ifdef USE_NORMALMAP - uniform sampler2D normalMap; - uniform vec2 normalScale; -#endif -#ifdef USE_NORMALMAP_OBJECTSPACE - uniform mat3 normalMatrix; -#endif -#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) - mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { - vec3 q0 = dFdx( eye_pos.xyz ); - vec3 q1 = dFdy( eye_pos.xyz ); - vec2 st0 = dFdx( uv.st ); - vec2 st1 = dFdy( uv.st ); - vec3 N = surf_norm; - vec3 q1perp = cross( q1, N ); - vec3 q0perp = cross( N, q0 ); - vec3 T = q1perp * st0.x + q0perp * st1.x; - vec3 B = q1perp * st0.y + q0perp * st1.y; - float det = max( dot( T, T ), dot( B, B ) ); - float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); - return mat3( T * scale, B * scale, N ); - } -#endif`,clearcoat_normal_fragment_begin:`#ifdef USE_CLEARCOAT - vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,clearcoat_normal_fragment_maps:`#ifdef USE_CLEARCOAT_NORMALMAP - vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; - clearcoatMapN.xy *= clearcoatNormalScale; - clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,clearcoat_pars_fragment:`#ifdef USE_CLEARCOATMAP - uniform sampler2D clearcoatMap; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - uniform sampler2D clearcoatNormalMap; - uniform vec2 clearcoatNormalScale; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - uniform sampler2D clearcoatRoughnessMap; -#endif`,iridescence_pars_fragment:`#ifdef USE_IRIDESCENCEMAP - uniform sampler2D iridescenceMap; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - uniform sampler2D iridescenceThicknessMap; -#endif`,opaque_fragment:`#ifdef OPAQUE -diffuseColor.a = 1.0; -#endif -#ifdef USE_TRANSMISSION -diffuseColor.a *= material.transmissionAlpha; -#endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,packing:`vec3 packNormalToRGB( const in vec3 normal ) { - return normalize( normal ) * 0.5 + 0.5; -} -vec3 unpackRGBToNormal( const in vec3 rgb ) { - return 2.0 * rgb.xyz - 1.0; -} -const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; -const float Inv255 = 1. / 255.; -const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); -const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); -const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); -const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); -vec4 packDepthToRGBA( const in float v ) { - if( v <= 0.0 ) - return vec4( 0., 0., 0., 0. ); - if( v >= 1.0 ) - return vec4( 1., 1., 1., 1. ); - float vuf; - float af = modf( v * PackFactors.a, vuf ); - float bf = modf( vuf * ShiftRight8, vuf ); - float gf = modf( vuf * ShiftRight8, vuf ); - return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); -} -vec3 packDepthToRGB( const in float v ) { - if( v <= 0.0 ) - return vec3( 0., 0., 0. ); - if( v >= 1.0 ) - return vec3( 1., 1., 1. ); - float vuf; - float bf = modf( v * PackFactors.b, vuf ); - float gf = modf( vuf * ShiftRight8, vuf ); - return vec3( vuf * Inv255, gf * PackUpscale, bf ); -} -vec2 packDepthToRG( const in float v ) { - if( v <= 0.0 ) - return vec2( 0., 0. ); - if( v >= 1.0 ) - return vec2( 1., 1. ); - float vuf; - float gf = modf( v * 256., vuf ); - return vec2( vuf * Inv255, gf ); -} -float unpackRGBAToDepth( const in vec4 v ) { - return dot( v, UnpackFactors4 ); -} -float unpackRGBToDepth( const in vec3 v ) { - return dot( v, UnpackFactors3 ); -} -float unpackRGToDepth( const in vec2 v ) { - return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; -} -vec4 pack2HalfToRGBA( const in vec2 v ) { - vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); - return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); -} -vec2 unpackRGBATo2Half( const in vec4 v ) { - return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); -} -float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { - return ( viewZ + near ) / ( near - far ); -} -float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { - #ifdef USE_REVERSED_DEPTH_BUFFER - - return depth * ( far - near ) - far; - #else - return depth * ( near - far ) - near; - #endif -} -float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { - return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); -} -float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { - - #ifdef USE_REVERSED_DEPTH_BUFFER - return ( near * far ) / ( ( near - far ) * depth - near ); - #else - return ( near * far ) / ( ( far - near ) * depth - far ); - #endif -}`,premultiplied_alpha_fragment:`#ifdef PREMULTIPLIED_ALPHA - gl_FragColor.rgb *= gl_FragColor.a; -#endif`,project_vertex:`vec4 mvPosition = vec4( transformed, 1.0 ); -#ifdef USE_BATCHING - mvPosition = batchingMatrix * mvPosition; -#endif -#ifdef USE_INSTANCING - mvPosition = instanceMatrix * mvPosition; -#endif -mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,dithering_fragment:`#ifdef DITHERING - gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,dithering_pars_fragment:`#ifdef DITHERING - vec3 dithering( vec3 color ) { - float grid_position = rand( gl_FragCoord.xy ); - vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); - dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); - return color + dither_shift_RGB; - } -#endif`,roughnessmap_fragment:`float roughnessFactor = roughness; -#ifdef USE_ROUGHNESSMAP - vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); - roughnessFactor *= texelRoughness.g; -#endif`,roughnessmap_pars_fragment:`#ifdef USE_ROUGHNESSMAP - uniform sampler2D roughnessMap; -#endif`,shadowmap_pars_fragment:`#if NUM_SPOT_LIGHT_COORDS > 0 - varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; -#endif -#if NUM_SPOT_LIGHT_MAPS > 0 - uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; -#endif -#ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - #if defined( SHADOWMAP_TYPE_PCF ) - uniform sampler2DShadow directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; - #else - uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; - struct DirectionalLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - #if defined( SHADOWMAP_TYPE_PCF ) - uniform sampler2DShadow spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; - #else - uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - struct SpotLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - #if defined( SHADOWMAP_TYPE_PCF ) - uniform samplerCubeShadow pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; - #elif defined( SHADOWMAP_TYPE_BASIC ) - uniform samplerCube pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; - #endif - varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; - struct PointLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - float shadowCameraNear; - float shadowCameraFar; - }; - uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; - #endif - #if defined( SHADOWMAP_TYPE_PCF ) - float interleavedGradientNoise( vec2 position ) { - return fract( 52.9829189 * fract( dot( position, vec2( 0.06711056, 0.00583715 ) ) ) ); - } - vec2 vogelDiskSample( int sampleIndex, int samplesCount, float phi ) { - const float goldenAngle = 2.399963229728653; - float r = sqrt( ( float( sampleIndex ) + 0.5 ) / float( samplesCount ) ); - float theta = float( sampleIndex ) * goldenAngle + phi; - return vec2( cos( theta ), sin( theta ) ) * r; - } - #endif - #if defined( SHADOWMAP_TYPE_PCF ) - float getShadow( sampler2DShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { - float shadow = 1.0; - shadowCoord.xyz /= shadowCoord.w; - shadowCoord.z += shadowBias; - bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; - bool frustumTest = inFrustum && shadowCoord.z <= 1.0; - if ( frustumTest ) { - vec2 texelSize = vec2( 1.0 ) / shadowMapSize; - float radius = shadowRadius * texelSize.x; - float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2; - shadow = ( - texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 0, 5, phi ) * radius, shadowCoord.z ) ) + - texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 1, 5, phi ) * radius, shadowCoord.z ) ) + - texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 2, 5, phi ) * radius, shadowCoord.z ) ) + - texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 3, 5, phi ) * radius, shadowCoord.z ) ) + - texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 4, 5, phi ) * radius, shadowCoord.z ) ) - ) * 0.2; - } - return mix( 1.0, shadow, shadowIntensity ); - } - #elif defined( SHADOWMAP_TYPE_VSM ) - float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { - float shadow = 1.0; - shadowCoord.xyz /= shadowCoord.w; - #ifdef USE_REVERSED_DEPTH_BUFFER - shadowCoord.z -= shadowBias; - #else - shadowCoord.z += shadowBias; - #endif - bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; - bool frustumTest = inFrustum && shadowCoord.z <= 1.0; - if ( frustumTest ) { - vec2 distribution = texture2D( shadowMap, shadowCoord.xy ).rg; - float mean = distribution.x; - float variance = distribution.y * distribution.y; - #ifdef USE_REVERSED_DEPTH_BUFFER - float hard_shadow = step( mean, shadowCoord.z ); - #else - float hard_shadow = step( shadowCoord.z, mean ); - #endif - - if ( hard_shadow == 1.0 ) { - shadow = 1.0; - } else { - variance = max( variance, 0.0000001 ); - float d = shadowCoord.z - mean; - float p_max = variance / ( variance + d * d ); - p_max = clamp( ( p_max - 0.3 ) / 0.65, 0.0, 1.0 ); - shadow = max( hard_shadow, p_max ); - } - } - return mix( 1.0, shadow, shadowIntensity ); - } - #else - float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { - float shadow = 1.0; - shadowCoord.xyz /= shadowCoord.w; - #ifdef USE_REVERSED_DEPTH_BUFFER - shadowCoord.z -= shadowBias; - #else - shadowCoord.z += shadowBias; - #endif - bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; - bool frustumTest = inFrustum && shadowCoord.z <= 1.0; - if ( frustumTest ) { - float depth = texture2D( shadowMap, shadowCoord.xy ).r; - #ifdef USE_REVERSED_DEPTH_BUFFER - shadow = step( depth, shadowCoord.z ); - #else - shadow = step( shadowCoord.z, depth ); - #endif - } - return mix( 1.0, shadow, shadowIntensity ); - } - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - #if defined( SHADOWMAP_TYPE_PCF ) - float getPointShadow( samplerCubeShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { - float shadow = 1.0; - vec3 lightToPosition = shadowCoord.xyz; - vec3 bd3D = normalize( lightToPosition ); - vec3 absVec = abs( lightToPosition ); - float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); - if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { - #ifdef USE_REVERSED_DEPTH_BUFFER - float dp = ( shadowCameraNear * ( shadowCameraFar - viewSpaceZ ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); - dp -= shadowBias; - #else - float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); - dp += shadowBias; - #endif - float texelSize = shadowRadius / shadowMapSize.x; - vec3 absDir = abs( bd3D ); - vec3 tangent = absDir.x > absDir.z ? vec3( 0.0, 1.0, 0.0 ) : vec3( 1.0, 0.0, 0.0 ); - tangent = normalize( cross( bd3D, tangent ) ); - vec3 bitangent = cross( bd3D, tangent ); - float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2; - vec2 sample0 = vogelDiskSample( 0, 5, phi ); - vec2 sample1 = vogelDiskSample( 1, 5, phi ); - vec2 sample2 = vogelDiskSample( 2, 5, phi ); - vec2 sample3 = vogelDiskSample( 3, 5, phi ); - vec2 sample4 = vogelDiskSample( 4, 5, phi ); - shadow = ( - texture( shadowMap, vec4( bd3D + ( tangent * sample0.x + bitangent * sample0.y ) * texelSize, dp ) ) + - texture( shadowMap, vec4( bd3D + ( tangent * sample1.x + bitangent * sample1.y ) * texelSize, dp ) ) + - texture( shadowMap, vec4( bd3D + ( tangent * sample2.x + bitangent * sample2.y ) * texelSize, dp ) ) + - texture( shadowMap, vec4( bd3D + ( tangent * sample3.x + bitangent * sample3.y ) * texelSize, dp ) ) + - texture( shadowMap, vec4( bd3D + ( tangent * sample4.x + bitangent * sample4.y ) * texelSize, dp ) ) - ) * 0.2; - } - return mix( 1.0, shadow, shadowIntensity ); - } - #elif defined( SHADOWMAP_TYPE_BASIC ) - float getPointShadow( samplerCube shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { - float shadow = 1.0; - vec3 lightToPosition = shadowCoord.xyz; - vec3 absVec = abs( lightToPosition ); - float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); - if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { - float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); - dp += shadowBias; - vec3 bd3D = normalize( lightToPosition ); - float depth = textureCube( shadowMap, bd3D ).r; - #ifdef USE_REVERSED_DEPTH_BUFFER - depth = 1.0 - depth; - #endif - shadow = step( dp, depth ); - } - return mix( 1.0, shadow, shadowIntensity ); - } - #endif - #endif -#endif`,shadowmap_pars_vertex:`#if NUM_SPOT_LIGHT_COORDS > 0 - uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; - varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; -#endif -#ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; - varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; - struct DirectionalLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - struct SpotLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - }; - uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; - varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; - struct PointLightShadow { - float shadowIntensity; - float shadowBias; - float shadowNormalBias; - float shadowRadius; - vec2 shadowMapSize; - float shadowCameraNear; - float shadowCameraFar; - }; - uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; - #endif -#endif`,shadowmap_vertex:`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) - #ifdef HAS_NORMAL - vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); - #else - vec3 shadowWorldNormal = vec3( 0.0 ); - #endif - vec4 shadowWorldPosition; -#endif -#if defined( USE_SHADOWMAP ) - #if NUM_DIR_LIGHT_SHADOWS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { - shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); - vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { - shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); - vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end - #endif -#endif -#if NUM_SPOT_LIGHT_COORDS > 0 - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { - shadowWorldPosition = worldPosition; - #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) - shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; - #endif - vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; - } - #pragma unroll_loop_end -#endif`,shadowmask_pars_fragment:`float getShadowMask() { - float shadow = 1.0; - #ifdef USE_SHADOWMAP - #if NUM_DIR_LIGHT_SHADOWS > 0 - DirectionalLightShadow directionalLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { - directionalLight = directionalLightShadows[ i ]; - shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; - } - #pragma unroll_loop_end - #endif - #if NUM_SPOT_LIGHT_SHADOWS > 0 - SpotLightShadow spotLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { - spotLight = spotLightShadows[ i ]; - shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; - } - #pragma unroll_loop_end - #endif - #if NUM_POINT_LIGHT_SHADOWS > 0 && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) - PointLightShadow pointLight; - #pragma unroll_loop_start - for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { - pointLight = pointLightShadows[ i ]; - shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; - } - #pragma unroll_loop_end - #endif - #endif - return shadow; -}`,skinbase_vertex:`#ifdef USE_SKINNING - mat4 boneMatX = getBoneMatrix( skinIndex.x ); - mat4 boneMatY = getBoneMatrix( skinIndex.y ); - mat4 boneMatZ = getBoneMatrix( skinIndex.z ); - mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,skinning_pars_vertex:`#ifdef USE_SKINNING - uniform mat4 bindMatrix; - uniform mat4 bindMatrixInverse; - uniform highp sampler2D boneTexture; - mat4 getBoneMatrix( const in float i ) { - int size = textureSize( boneTexture, 0 ).x; - int j = int( i ) * 4; - int x = j % size; - int y = j / size; - vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); - vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); - vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); - vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); - return mat4( v1, v2, v3, v4 ); - } -#endif`,skinning_vertex:`#ifdef USE_SKINNING - vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); - vec4 skinned = vec4( 0.0 ); - skinned += boneMatX * skinVertex * skinWeight.x; - skinned += boneMatY * skinVertex * skinWeight.y; - skinned += boneMatZ * skinVertex * skinWeight.z; - skinned += boneMatW * skinVertex * skinWeight.w; - transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,skinnormal_vertex:`#ifdef USE_SKINNING - mat4 skinMatrix = mat4( 0.0 ); - skinMatrix += skinWeight.x * boneMatX; - skinMatrix += skinWeight.y * boneMatY; - skinMatrix += skinWeight.z * boneMatZ; - skinMatrix += skinWeight.w * boneMatW; - skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; - objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; - #ifdef USE_TANGENT - objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; - #endif -#endif`,specularmap_fragment:`float specularStrength; -#ifdef USE_SPECULARMAP - vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); - specularStrength = texelSpecular.r; -#else - specularStrength = 1.0; -#endif`,specularmap_pars_fragment:`#ifdef USE_SPECULARMAP - uniform sampler2D specularMap; -#endif`,tonemapping_fragment:`#if defined( TONE_MAPPING ) - gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,tonemapping_pars_fragment:`#ifndef saturate -#define saturate( a ) clamp( a, 0.0, 1.0 ) -#endif -uniform float toneMappingExposure; -vec3 LinearToneMapping( vec3 color ) { - return saturate( toneMappingExposure * color ); -} -vec3 ReinhardToneMapping( vec3 color ) { - color *= toneMappingExposure; - return saturate( color / ( vec3( 1.0 ) + color ) ); -} -vec3 CineonToneMapping( vec3 color ) { - color *= toneMappingExposure; - color = max( vec3( 0.0 ), color - 0.004 ); - return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); -} -vec3 RRTAndODTFit( vec3 v ) { - vec3 a = v * ( v + 0.0245786 ) - 0.000090537; - vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; - return a / b; -} -vec3 ACESFilmicToneMapping( vec3 color ) { - const mat3 ACESInputMat = mat3( - vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), - vec3( 0.04823, 0.01566, 0.83777 ) - ); - const mat3 ACESOutputMat = mat3( - vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), - vec3( -0.07367, -0.00605, 1.07602 ) - ); - color *= toneMappingExposure / 0.6; - color = ACESInputMat * color; - color = RRTAndODTFit( color ); - color = ACESOutputMat * color; - return saturate( color ); -} -const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( - vec3( 1.6605, - 0.1246, - 0.0182 ), - vec3( - 0.5876, 1.1329, - 0.1006 ), - vec3( - 0.0728, - 0.0083, 1.1187 ) -); -const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( - vec3( 0.6274, 0.0691, 0.0164 ), - vec3( 0.3293, 0.9195, 0.0880 ), - vec3( 0.0433, 0.0113, 0.8956 ) -); -vec3 agxDefaultContrastApprox( vec3 x ) { - vec3 x2 = x * x; - vec3 x4 = x2 * x2; - return + 15.5 * x4 * x2 - - 40.14 * x4 * x - + 31.96 * x4 - - 6.868 * x2 * x - + 0.4298 * x2 - + 0.1191 * x - - 0.00232; -} -vec3 AgXToneMapping( vec3 color ) { - const mat3 AgXInsetMatrix = mat3( - vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), - vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), - vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) - ); - const mat3 AgXOutsetMatrix = mat3( - vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), - vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), - vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) - ); - const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; - color *= toneMappingExposure; - color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; - color = AgXInsetMatrix * color; - color = max( color, 1e-10 ); color = log2( color ); - color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); - color = clamp( color, 0.0, 1.0 ); - color = agxDefaultContrastApprox( color ); - color = AgXOutsetMatrix * color; - color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); - color = LINEAR_REC2020_TO_LINEAR_SRGB * color; - color = clamp( color, 0.0, 1.0 ); - return color; -} -vec3 NeutralToneMapping( vec3 color ) { - const float StartCompression = 0.8 - 0.04; - const float Desaturation = 0.15; - color *= toneMappingExposure; - float x = min( color.r, min( color.g, color.b ) ); - float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; - color -= offset; - float peak = max( color.r, max( color.g, color.b ) ); - if ( peak < StartCompression ) return color; - float d = 1. - StartCompression; - float newPeak = 1. - d * d / ( peak + d - StartCompression ); - color *= newPeak / peak; - float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); - return mix( color, vec3( newPeak ), g ); -} -vec3 CustomToneMapping( vec3 color ) { return color; }`,transmission_fragment:`#ifdef USE_TRANSMISSION - material.transmission = transmission; - material.transmissionAlpha = 1.0; - material.thickness = thickness; - material.attenuationDistance = attenuationDistance; - material.attenuationColor = attenuationColor; - #ifdef USE_TRANSMISSIONMAP - material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; - #endif - #ifdef USE_THICKNESSMAP - material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; - #endif - vec3 pos = vWorldPosition; - vec3 v = normalize( cameraPosition - pos ); - vec3 n = inverseTransformDirection( normal, viewMatrix ); - vec4 transmitted = getIBLVolumeRefraction( - n, v, material.roughness, material.diffuseContribution, material.specularColorBlended, material.specularF90, - pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, - material.attenuationColor, material.attenuationDistance ); - material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); - totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,transmission_pars_fragment:`#ifdef USE_TRANSMISSION - uniform float transmission; - uniform float thickness; - uniform float attenuationDistance; - uniform vec3 attenuationColor; - #ifdef USE_TRANSMISSIONMAP - uniform sampler2D transmissionMap; - #endif - #ifdef USE_THICKNESSMAP - uniform sampler2D thicknessMap; - #endif - uniform vec2 transmissionSamplerSize; - uniform sampler2D transmissionSamplerMap; - uniform mat4 modelMatrix; - uniform mat4 projectionMatrix; - varying vec3 vWorldPosition; - float w0( float a ) { - return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); - } - float w1( float a ) { - return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); - } - float w2( float a ){ - return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); - } - float w3( float a ) { - return ( 1.0 / 6.0 ) * ( a * a * a ); - } - float g0( float a ) { - return w0( a ) + w1( a ); - } - float g1( float a ) { - return w2( a ) + w3( a ); - } - float h0( float a ) { - return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); - } - float h1( float a ) { - return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); - } - vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { - uv = uv * texelSize.zw + 0.5; - vec2 iuv = floor( uv ); - vec2 fuv = fract( uv ); - float g0x = g0( fuv.x ); - float g1x = g1( fuv.x ); - float h0x = h0( fuv.x ); - float h1x = h1( fuv.x ); - float h0y = h0( fuv.y ); - float h1y = h1( fuv.y ); - vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; - vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; - vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; - vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; - return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + - g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); - } - vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { - vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); - vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); - vec2 fLodSizeInv = 1.0 / fLodSize; - vec2 cLodSizeInv = 1.0 / cLodSize; - vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); - vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); - return mix( fSample, cSample, fract( lod ) ); - } - vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { - vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); - vec3 modelScale; - modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); - modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); - modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); - return normalize( refractionVector ) * thickness * modelScale; - } - float applyIorToRoughness( const in float roughness, const in float ior ) { - return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); - } - vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { - float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); - return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); - } - vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { - if ( isinf( attenuationDistance ) ) { - return vec3( 1.0 ); - } else { - vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; - vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; - } - } - vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, - const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, - const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, - const in vec3 attenuationColor, const in float attenuationDistance ) { - vec4 transmittedLight; - vec3 transmittance; - #ifdef USE_DISPERSION - float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; - vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); - for ( int i = 0; i < 3; i ++ ) { - vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); - vec3 refractedRayExit = position + transmissionRay; - vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); - vec2 refractionCoords = ndcPos.xy / ndcPos.w; - refractionCoords += 1.0; - refractionCoords /= 2.0; - vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); - transmittedLight[ i ] = transmissionSample[ i ]; - transmittedLight.a += transmissionSample.a; - transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; - } - transmittedLight.a /= 3.0; - #else - vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); - vec3 refractedRayExit = position + transmissionRay; - vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); - vec2 refractionCoords = ndcPos.xy / ndcPos.w; - refractionCoords += 1.0; - refractionCoords /= 2.0; - transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); - transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); - #endif - vec3 attenuatedColor = transmittance * transmittedLight.rgb; - vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); - float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; - return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); - } -#endif`,uv_pars_fragment:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - varying vec2 vUv; -#endif -#ifdef USE_MAP - varying vec2 vMapUv; -#endif -#ifdef USE_ALPHAMAP - varying vec2 vAlphaMapUv; -#endif -#ifdef USE_LIGHTMAP - varying vec2 vLightMapUv; -#endif -#ifdef USE_AOMAP - varying vec2 vAoMapUv; -#endif -#ifdef USE_BUMPMAP - varying vec2 vBumpMapUv; -#endif -#ifdef USE_NORMALMAP - varying vec2 vNormalMapUv; -#endif -#ifdef USE_EMISSIVEMAP - varying vec2 vEmissiveMapUv; -#endif -#ifdef USE_METALNESSMAP - varying vec2 vMetalnessMapUv; -#endif -#ifdef USE_ROUGHNESSMAP - varying vec2 vRoughnessMapUv; -#endif -#ifdef USE_ANISOTROPYMAP - varying vec2 vAnisotropyMapUv; -#endif -#ifdef USE_CLEARCOATMAP - varying vec2 vClearcoatMapUv; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - varying vec2 vClearcoatNormalMapUv; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - varying vec2 vClearcoatRoughnessMapUv; -#endif -#ifdef USE_IRIDESCENCEMAP - varying vec2 vIridescenceMapUv; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - varying vec2 vIridescenceThicknessMapUv; -#endif -#ifdef USE_SHEEN_COLORMAP - varying vec2 vSheenColorMapUv; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - varying vec2 vSheenRoughnessMapUv; -#endif -#ifdef USE_SPECULARMAP - varying vec2 vSpecularMapUv; -#endif -#ifdef USE_SPECULAR_COLORMAP - varying vec2 vSpecularColorMapUv; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - varying vec2 vSpecularIntensityMapUv; -#endif -#ifdef USE_TRANSMISSIONMAP - uniform mat3 transmissionMapTransform; - varying vec2 vTransmissionMapUv; -#endif -#ifdef USE_THICKNESSMAP - uniform mat3 thicknessMapTransform; - varying vec2 vThicknessMapUv; -#endif`,uv_pars_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - varying vec2 vUv; -#endif -#ifdef USE_MAP - uniform mat3 mapTransform; - varying vec2 vMapUv; -#endif -#ifdef USE_ALPHAMAP - uniform mat3 alphaMapTransform; - varying vec2 vAlphaMapUv; -#endif -#ifdef USE_LIGHTMAP - uniform mat3 lightMapTransform; - varying vec2 vLightMapUv; -#endif -#ifdef USE_AOMAP - uniform mat3 aoMapTransform; - varying vec2 vAoMapUv; -#endif -#ifdef USE_BUMPMAP - uniform mat3 bumpMapTransform; - varying vec2 vBumpMapUv; -#endif -#ifdef USE_NORMALMAP - uniform mat3 normalMapTransform; - varying vec2 vNormalMapUv; -#endif -#ifdef USE_DISPLACEMENTMAP - uniform mat3 displacementMapTransform; - varying vec2 vDisplacementMapUv; -#endif -#ifdef USE_EMISSIVEMAP - uniform mat3 emissiveMapTransform; - varying vec2 vEmissiveMapUv; -#endif -#ifdef USE_METALNESSMAP - uniform mat3 metalnessMapTransform; - varying vec2 vMetalnessMapUv; -#endif -#ifdef USE_ROUGHNESSMAP - uniform mat3 roughnessMapTransform; - varying vec2 vRoughnessMapUv; -#endif -#ifdef USE_ANISOTROPYMAP - uniform mat3 anisotropyMapTransform; - varying vec2 vAnisotropyMapUv; -#endif -#ifdef USE_CLEARCOATMAP - uniform mat3 clearcoatMapTransform; - varying vec2 vClearcoatMapUv; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - uniform mat3 clearcoatNormalMapTransform; - varying vec2 vClearcoatNormalMapUv; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - uniform mat3 clearcoatRoughnessMapTransform; - varying vec2 vClearcoatRoughnessMapUv; -#endif -#ifdef USE_SHEEN_COLORMAP - uniform mat3 sheenColorMapTransform; - varying vec2 vSheenColorMapUv; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - uniform mat3 sheenRoughnessMapTransform; - varying vec2 vSheenRoughnessMapUv; -#endif -#ifdef USE_IRIDESCENCEMAP - uniform mat3 iridescenceMapTransform; - varying vec2 vIridescenceMapUv; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - uniform mat3 iridescenceThicknessMapTransform; - varying vec2 vIridescenceThicknessMapUv; -#endif -#ifdef USE_SPECULARMAP - uniform mat3 specularMapTransform; - varying vec2 vSpecularMapUv; -#endif -#ifdef USE_SPECULAR_COLORMAP - uniform mat3 specularColorMapTransform; - varying vec2 vSpecularColorMapUv; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - uniform mat3 specularIntensityMapTransform; - varying vec2 vSpecularIntensityMapUv; -#endif -#ifdef USE_TRANSMISSIONMAP - uniform mat3 transmissionMapTransform; - varying vec2 vTransmissionMapUv; -#endif -#ifdef USE_THICKNESSMAP - uniform mat3 thicknessMapTransform; - varying vec2 vThicknessMapUv; -#endif`,uv_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) - vUv = vec3( uv, 1 ).xy; -#endif -#ifdef USE_MAP - vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ALPHAMAP - vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_LIGHTMAP - vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_AOMAP - vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_BUMPMAP - vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_NORMALMAP - vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_DISPLACEMENTMAP - vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_EMISSIVEMAP - vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_METALNESSMAP - vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ROUGHNESSMAP - vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_ANISOTROPYMAP - vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOATMAP - vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOAT_NORMALMAP - vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_CLEARCOAT_ROUGHNESSMAP - vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_IRIDESCENCEMAP - vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_IRIDESCENCE_THICKNESSMAP - vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SHEEN_COLORMAP - vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SHEEN_ROUGHNESSMAP - vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULARMAP - vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULAR_COLORMAP - vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_SPECULAR_INTENSITYMAP - vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_TRANSMISSIONMAP - vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; -#endif -#ifdef USE_THICKNESSMAP - vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,worldpos_vertex:`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 - vec4 worldPosition = vec4( transformed, 1.0 ); - #ifdef USE_BATCHING - worldPosition = batchingMatrix * worldPosition; - #endif - #ifdef USE_INSTANCING - worldPosition = instanceMatrix * worldPosition; - #endif - worldPosition = modelMatrix * worldPosition; -#endif`,background_vert:`varying vec2 vUv; -uniform mat3 uvTransform; -void main() { - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`,background_frag:`uniform sampler2D t2D; -uniform float backgroundIntensity; -varying vec2 vUv; -void main() { - vec4 texColor = texture2D( t2D, vUv ); - #ifdef DECODE_VIDEO_TEXTURE - texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); - #endif - texColor.rgb *= backgroundIntensity; - gl_FragColor = texColor; - #include - #include -}`,backgroundCube_vert:`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include - gl_Position.z = gl_Position.w; -}`,backgroundCube_frag:`#ifdef ENVMAP_TYPE_CUBE - uniform samplerCube envMap; -#elif defined( ENVMAP_TYPE_CUBE_UV ) - uniform sampler2D envMap; -#endif -uniform float backgroundBlurriness; -uniform float backgroundIntensity; -uniform mat3 backgroundRotation; -varying vec3 vWorldDirection; -#include -void main() { - #ifdef ENVMAP_TYPE_CUBE - vec4 texColor = textureCube( envMap, backgroundRotation * vWorldDirection ); - #elif defined( ENVMAP_TYPE_CUBE_UV ) - vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); - #else - vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - #endif - texColor.rgb *= backgroundIntensity; - gl_FragColor = texColor; - #include - #include -}`,cube_vert:`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include - gl_Position.z = gl_Position.w; -}`,cube_frag:`uniform samplerCube tCube; -uniform float tFlip; -uniform float opacity; -varying vec3 vWorldDirection; -void main() { - vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); - gl_FragColor = texColor; - gl_FragColor.a *= opacity; - #include - #include -}`,depth_vert:`#include -#include -#include -#include -#include -#include -#include -#include -varying vec2 vHighPrecisionZW; -void main() { - #include - #include - #include - #include - #ifdef USE_DISPLACEMENTMAP - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - vHighPrecisionZW = gl_Position.zw; -}`,depth_frag:`#if DEPTH_PACKING == 3200 - uniform float opacity; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -varying vec2 vHighPrecisionZW; -void main() { - vec4 diffuseColor = vec4( 1.0 ); - #include - #if DEPTH_PACKING == 3200 - diffuseColor.a = opacity; - #endif - #include - #include - #include - #include - #include - #ifdef USE_REVERSED_DEPTH_BUFFER - float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ]; - #else - float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5; - #endif - #if DEPTH_PACKING == 3200 - gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); - #elif DEPTH_PACKING == 3201 - gl_FragColor = packDepthToRGBA( fragCoordZ ); - #elif DEPTH_PACKING == 3202 - gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); - #elif DEPTH_PACKING == 3203 - gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); - #endif -}`,distance_vert:`#define DISTANCE -varying vec3 vWorldPosition; -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #ifdef USE_DISPLACEMENTMAP - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - vWorldPosition = worldPosition.xyz; -}`,distance_frag:`#define DISTANCE -uniform vec3 referencePosition; -uniform float nearDistance; -uniform float farDistance; -varying vec3 vWorldPosition; -#include -#include -#include -#include -#include -#include -#include -void main () { - vec4 diffuseColor = vec4( 1.0 ); - #include - #include - #include - #include - #include - float dist = length( vWorldPosition - referencePosition ); - dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); - dist = saturate( dist ); - gl_FragColor = vec4( dist, 0.0, 0.0, 1.0 ); -}`,equirect_vert:`varying vec3 vWorldDirection; -#include -void main() { - vWorldDirection = transformDirection( position, modelMatrix ); - #include - #include -}`,equirect_frag:`uniform sampler2D tEquirect; -varying vec3 vWorldDirection; -#include -void main() { - vec3 direction = normalize( vWorldDirection ); - vec2 sampleUV = equirectUv( direction ); - gl_FragColor = texture2D( tEquirect, sampleUV ); - #include - #include -}`,linedashed_vert:`uniform float scale; -attribute float lineDistance; -varying float vLineDistance; -#include -#include -#include -#include -#include -#include -#include -void main() { - vLineDistance = scale * lineDistance; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,linedashed_frag:`uniform vec3 diffuse; -uniform float opacity; -uniform float dashSize; -uniform float totalSize; -varying float vLineDistance; -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - if ( mod( vLineDistance, totalSize ) > dashSize ) { - discard; - } - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include - #include -}`,meshbasic_vert:`#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) - #include - #include - #include - #include - #include - #endif - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,meshbasic_frag:`uniform vec3 diffuse; -uniform float opacity; -#ifndef FLAT_SHADED - varying vec3 vNormal; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - #include - #include - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - #ifdef USE_LIGHTMAP - vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); - reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; - #else - reflectedLight.indirectDiffuse += vec3( 1.0 ); - #endif - #include - reflectedLight.indirectDiffuse *= diffuseColor.rgb; - vec3 outgoingLight = reflectedLight.indirectDiffuse; - #include - #include - #include - #include - #include - #include - #include -}`,meshlambert_vert:`#define LAMBERT -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include - #include -}`,meshlambert_frag:`#define LAMBERT -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include - #include -}`,meshmatcap_vert:`#define MATCAP -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; -}`,meshmatcap_frag:`#define MATCAP -uniform vec3 diffuse; -uniform float opacity; -uniform sampler2D matcap; -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 viewDir = normalize( vViewPosition ); - vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); - vec3 y = cross( viewDir, x ); - vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; - #ifdef USE_MATCAP - vec4 matcapColor = texture2D( matcap, uv ); - #else - vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); - #endif - vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; - #include - #include - #include - #include - #include - #include -}`,meshnormal_vert:`#define NORMAL -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - varying vec3 vViewPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - vViewPosition = - mvPosition.xyz; -#endif -}`,meshnormal_frag:`#define NORMAL -uniform float opacity; -#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) - varying vec3 vViewPosition; -#endif -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); - #include - #include - #include - #include - gl_FragColor = vec4( normalize( normal ) * 0.5 + 0.5, diffuseColor.a ); - #ifdef OPAQUE - gl_FragColor.a = 1.0; - #endif -}`,meshphong_vert:`#define PHONG -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include - #include -}`,meshphong_frag:`#define PHONG -uniform vec3 diffuse; -uniform vec3 emissive; -uniform vec3 specular; -uniform float shininess; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include - #include -}`,meshphysical_vert:`#define STANDARD -varying vec3 vViewPosition; -#ifdef USE_TRANSMISSION - varying vec3 vWorldPosition; -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include -#ifdef USE_TRANSMISSION - vWorldPosition = worldPosition.xyz; -#endif -}`,meshphysical_frag:`#define STANDARD -#ifdef PHYSICAL - #define IOR - #define USE_SPECULAR -#endif -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float roughness; -uniform float metalness; -uniform float opacity; -#ifdef IOR - uniform float ior; -#endif -#ifdef USE_SPECULAR - uniform float specularIntensity; - uniform vec3 specularColor; - #ifdef USE_SPECULAR_COLORMAP - uniform sampler2D specularColorMap; - #endif - #ifdef USE_SPECULAR_INTENSITYMAP - uniform sampler2D specularIntensityMap; - #endif -#endif -#ifdef USE_CLEARCOAT - uniform float clearcoat; - uniform float clearcoatRoughness; -#endif -#ifdef USE_DISPERSION - uniform float dispersion; -#endif -#ifdef USE_IRIDESCENCE - uniform float iridescence; - uniform float iridescenceIOR; - uniform float iridescenceThicknessMinimum; - uniform float iridescenceThicknessMaximum; -#endif -#ifdef USE_SHEEN - uniform vec3 sheenColor; - uniform float sheenRoughness; - #ifdef USE_SHEEN_COLORMAP - uniform sampler2D sheenColorMap; - #endif - #ifdef USE_SHEEN_ROUGHNESSMAP - uniform sampler2D sheenRoughnessMap; - #endif -#endif -#ifdef USE_ANISOTROPY - uniform vec2 anisotropyVector; - #ifdef USE_ANISOTROPYMAP - uniform sampler2D anisotropyMap; - #endif -#endif -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; - vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; - #include - vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; - #ifdef USE_SHEEN - - outgoingLight = outgoingLight + sheenSpecularDirect + sheenSpecularIndirect; - - #endif - #ifdef USE_CLEARCOAT - float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); - vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); - outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; - #endif - #include - #include - #include - #include - #include - #include -}`,meshtoon_vert:`#define TOON -varying vec3 vViewPosition; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vViewPosition = - mvPosition.xyz; - #include - #include - #include -}`,meshtoon_frag:`#define TOON -uniform vec3 diffuse; -uniform vec3 emissive; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); - vec3 totalEmissiveRadiance = emissive; - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; - #include - #include - #include - #include - #include - #include -}`,points_vert:`uniform float size; -uniform float scale; -#include -#include -#include -#include -#include -#include -#ifdef USE_POINTS_UV - varying vec2 vUv; - uniform mat3 uvTransform; -#endif -void main() { - #ifdef USE_POINTS_UV - vUv = ( uvTransform * vec3( uv, 1 ) ).xy; - #endif - #include - #include - #include - #include - #include - #include - gl_PointSize = size; - #ifdef USE_SIZEATTENUATION - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); - #endif - #include - #include - #include - #include -}`,points_frag:`uniform vec3 diffuse; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include - #include -}`,shadow_vert:`#include -#include -#include -#include -#include -#include -#include -void main() { - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include - #include -}`,shadow_frag:`uniform vec3 color; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -void main() { - #include - gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); - #include - #include - #include - #include -}`,sprite_vert:`uniform float rotation; -uniform vec2 center; -#include -#include -#include -#include -#include -void main() { - #include - vec4 mvPosition = modelViewMatrix[ 3 ]; - vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); - #ifndef USE_SIZEATTENUATION - bool isPerspective = isPerspectiveMatrix( projectionMatrix ); - if ( isPerspective ) scale *= - mvPosition.z; - #endif - vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; - vec2 rotatedPosition; - rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; - rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; - mvPosition.xy += rotatedPosition; - gl_Position = projectionMatrix * mvPosition; - #include - #include - #include -}`,sprite_frag:`uniform vec3 diffuse; -uniform float opacity; -#include -#include -#include -#include -#include -#include -#include -#include -#include -void main() { - vec4 diffuseColor = vec4( diffuse, opacity ); - #include - vec3 outgoingLight = vec3( 0.0 ); - #include - #include - #include - #include - #include - outgoingLight = diffuseColor.rgb; - #include - #include - #include - #include -}`},$={common:{diffuse:{value:new Z(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Y},alphaMap:{value:null},alphaMapTransform:{value:new Y},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Y}},envmap:{envMap:{value:null},envMapRotation:{value:new Y},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Y}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Y}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Y},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Y},normalScale:{value:new nr(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Y},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Y}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Y}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Y}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Z(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new J},probesMax:{value:new J},probesResolution:{value:new J}},points:{diffuse:{value:new Z(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Y},alphaTest:{value:0},uvTransform:{value:new Y}},sprite:{diffuse:{value:new Z(16777215)},opacity:{value:1},center:{value:new nr(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Y},alphaMap:{value:null},alphaMapTransform:{value:new Y},alphaTest:{value:0}}},xs={basic:{uniforms:lo([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.fog]),vertexShader:Q.meshbasic_vert,fragmentShader:Q.meshbasic_frag},lambert:{uniforms:lo([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.fog,$.lights,{emissive:{value:new Z(0)},envMapIntensity:{value:1}}]),vertexShader:Q.meshlambert_vert,fragmentShader:Q.meshlambert_frag},phong:{uniforms:lo([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.fog,$.lights,{emissive:{value:new Z(0)},specular:{value:new Z(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:Q.meshphong_vert,fragmentShader:Q.meshphong_frag},standard:{uniforms:lo([$.common,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.roughnessmap,$.metalnessmap,$.fog,$.lights,{emissive:{value:new Z(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Q.meshphysical_vert,fragmentShader:Q.meshphysical_frag},toon:{uniforms:lo([$.common,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.gradientmap,$.fog,$.lights,{emissive:{value:new Z(0)}}]),vertexShader:Q.meshtoon_vert,fragmentShader:Q.meshtoon_frag},matcap:{uniforms:lo([$.common,$.bumpmap,$.normalmap,$.displacementmap,$.fog,{matcap:{value:null}}]),vertexShader:Q.meshmatcap_vert,fragmentShader:Q.meshmatcap_frag},points:{uniforms:lo([$.points,$.fog]),vertexShader:Q.points_vert,fragmentShader:Q.points_frag},dashed:{uniforms:lo([$.common,$.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Q.linedashed_vert,fragmentShader:Q.linedashed_frag},depth:{uniforms:lo([$.common,$.displacementmap]),vertexShader:Q.depth_vert,fragmentShader:Q.depth_frag},normal:{uniforms:lo([$.common,$.bumpmap,$.normalmap,$.displacementmap,{opacity:{value:1}}]),vertexShader:Q.meshnormal_vert,fragmentShader:Q.meshnormal_frag},sprite:{uniforms:lo([$.sprite,$.fog]),vertexShader:Q.sprite_vert,fragmentShader:Q.sprite_frag},background:{uniforms:{uvTransform:{value:new Y},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Q.background_vert,fragmentShader:Q.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Y}},vertexShader:Q.backgroundCube_vert,fragmentShader:Q.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Q.cube_vert,fragmentShader:Q.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Q.equirect_vert,fragmentShader:Q.equirect_frag},distance:{uniforms:lo([$.common,$.displacementmap,{referencePosition:{value:new J},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Q.distance_vert,fragmentShader:Q.distance_frag},shadow:{uniforms:lo([$.lights,$.fog,{color:{value:new Z(0)},opacity:{value:1}}]),vertexShader:Q.shadow_vert,fragmentShader:Q.shadow_frag}};xs.physical={uniforms:lo([xs.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Y},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Y},clearcoatNormalScale:{value:new nr(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Y},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Y},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Y},sheen:{value:0},sheenColor:{value:new Z(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Y},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Y},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Y},transmissionSamplerSize:{value:new nr},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Y},attenuationDistance:{value:0},attenuationColor:{value:new Z(0)},specularColor:{value:new Z(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Y},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Y},anisotropyVector:{value:new nr},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Y}}]),vertexShader:Q.meshphysical_vert,fragmentShader:Q.meshphysical_frag};var Ss={r:0,b:0,g:0},Cs=new Tr,ws=new Y;ws.set(-1,0,0,0,1,0,0,0,1);function Ts(e,t,n,r,i,a){let o=new Z(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new wa(new oo(1,1,1),new _o({name:`BackgroundCubeMaterial`,uniforms:co(xs.backgroundCube.uniforms),vertexShader:xs.backgroundCube.vertexShader,fragmentShader:xs.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,`envMap`,{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(Cs.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(ws),l.material.toneMapped=X.getTransfer(i.colorSpace)!==jn,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new wa(new so(2,2),new _o({name:`BackgroundMaterial`,uniforms:co(xs.background.uniforms),vertexShader:xs.background.vertexShader,fragmentShader:xs.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,`map`,{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=X.getTransfer(i.colorSpace)!==jn,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(Ss,po(e)),n.buffers.color.setClear(Ss.r,Ss.g,Ss.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Es(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(G(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&G(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function ks(e){let t=this,n=null,r=0,i=!1,a=!1,o=new ja,s=new Y,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Js(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=qs(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=Js()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=qs());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;Ws(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,Ps)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;td-As?n-d+As:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,Ws(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,Ps),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,Ws(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,Ps)}_blur(e,t,n,r,i){let a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,r,`latitudinal`,i),this._halfBlur(a,e,n,n,r,`longitudinal`,i)}_halfBlur(e,t,n,r,i,a,o){let s=this._renderer,c=this._blurMaterial;a!==`latitudinal`&&a!==`longitudinal`&&K(`blur direction must be either latitudinal or longitudinal!`);let l=this._lodMeshes[r];l.material=c;let u=c.uniforms,d=this._sizeLods[n]-1,f=isFinite(i)?Math.PI/(2*d):2*Math.PI/(2*Ms-1),p=i/f,m=isFinite(i)?1+Math.floor(3*p):Ms;m>Ms&&G(`sigmaRadians, ${i}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${Ms}`);let h=[],g=0;for(let e=0;e_-As?r-_+As:0),4*(this._cubeSize-v),3*v,2*v),s.setRenderTarget(t),s.render(l,Ps)}};function Hs(e){let t=[],n=[],r=[],i=e,a=e-As+1+js.length;for(let o=0;oe-As?s=js[o-e+As-1]:o===0&&(s=0),n.push(s);let c=1/(a-2),l=-c,u=1+c,d=[l,l,u,l,u,u,l,l,u,u,l,u],f=new Float32Array(108),p=new Float32Array(72),m=new Float32Array(36);for(let e=0;e<6;e++){let t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];f.set(r,18*e),p.set(d,12*e);let i=[e,e,e,e,e,e];m.set(i,6*e)}let h=new ta;h.setAttribute(`position`,new Bi(f,3)),h.setAttribute(`uv`,new Bi(p,2)),h.setAttribute(`faceIndex`,new Bi(m,1)),r.push(new wa(h,null)),i>As&&i--}return{lodMeshes:r,sizeLods:t,sigmas:n}}function Us(e,t,n){let r=new Sr(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function Ws(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Gs(e,t,n){return new _o({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:Ns,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:Ys(),fragmentShader:` - - precision highp float; - precision highp int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - uniform float roughness; - uniform float mipInt; - - #define ENVMAP_TYPE_CUBE_UV - #include - - #define PI 3.14159265359 - - // Van der Corput radical inverse - float radicalInverse_VdC(uint bits) { - bits = (bits << 16u) | (bits >> 16u); - bits = ((bits & 0x55555555u) << 1u) | ((bits & 0xAAAAAAAAu) >> 1u); - bits = ((bits & 0x33333333u) << 2u) | ((bits & 0xCCCCCCCCu) >> 2u); - bits = ((bits & 0x0F0F0F0Fu) << 4u) | ((bits & 0xF0F0F0F0u) >> 4u); - bits = ((bits & 0x00FF00FFu) << 8u) | ((bits & 0xFF00FF00u) >> 8u); - return float(bits) * 2.3283064365386963e-10; // / 0x100000000 - } - - // Hammersley sequence - vec2 hammersley(uint i, uint N) { - return vec2(float(i) / float(N), radicalInverse_VdC(i)); - } - - // GGX VNDF importance sampling (Eric Heitz 2018) - // "Sampling the GGX Distribution of Visible Normals" - // https://jcgt.org/published/0007/04/01/ - vec3 importanceSampleGGX_VNDF(vec2 Xi, vec3 V, float roughness) { - float alpha = roughness * roughness; - - // Section 4.1: Orthonormal basis - vec3 T1 = vec3(1.0, 0.0, 0.0); - vec3 T2 = cross(V, T1); - - // Section 4.2: Parameterization of projected area - float r = sqrt(Xi.x); - float phi = 2.0 * PI * Xi.y; - float t1 = r * cos(phi); - float t2 = r * sin(phi); - float s = 0.5 * (1.0 + V.z); - t2 = (1.0 - s) * sqrt(1.0 - t1 * t1) + s * t2; - - // Section 4.3: Reprojection onto hemisphere - vec3 Nh = t1 * T1 + t2 * T2 + sqrt(max(0.0, 1.0 - t1 * t1 - t2 * t2)) * V; - - // Section 3.4: Transform back to ellipsoid configuration - return normalize(vec3(alpha * Nh.x, alpha * Nh.y, max(0.0, Nh.z))); - } - - void main() { - vec3 N = normalize(vOutputDirection); - vec3 V = N; // Assume view direction equals normal for pre-filtering - - vec3 prefilteredColor = vec3(0.0); - float totalWeight = 0.0; - - // For very low roughness, just sample the environment directly - if (roughness < 0.001) { - gl_FragColor = vec4(bilinearCubeUV(envMap, N, mipInt), 1.0); - return; - } - - // Tangent space basis for VNDF sampling - vec3 up = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0); - vec3 tangent = normalize(cross(up, N)); - vec3 bitangent = cross(N, tangent); - - for(uint i = 0u; i < uint(GGX_SAMPLES); i++) { - vec2 Xi = hammersley(i, uint(GGX_SAMPLES)); - - // For PMREM, V = N, so in tangent space V is always (0, 0, 1) - vec3 H_tangent = importanceSampleGGX_VNDF(Xi, vec3(0.0, 0.0, 1.0), roughness); - - // Transform H back to world space - vec3 H = normalize(tangent * H_tangent.x + bitangent * H_tangent.y + N * H_tangent.z); - vec3 L = normalize(2.0 * dot(V, H) * H - V); - - float NdotL = max(dot(N, L), 0.0); - - if(NdotL > 0.0) { - // Sample environment at fixed mip level - // VNDF importance sampling handles the distribution filtering - vec3 sampleColor = bilinearCubeUV(envMap, L, mipInt); - - // Weight by NdotL for the split-sum approximation - // VNDF PDF naturally accounts for the visible microfacet distribution - prefilteredColor += sampleColor * NdotL; - totalWeight += NdotL; - } - } - - if (totalWeight > 0.0) { - prefilteredColor = prefilteredColor / totalWeight; - } - - gl_FragColor = vec4(prefilteredColor, 1.0); - } - `,blending:0,depthTest:!1,depthWrite:!1})}function Ks(e,t,n){let r=new Float32Array(Ms),i=new J(0,1,0);return new _o({name:`SphericalGaussianBlur`,defines:{n:Ms,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:Ys(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - uniform int samples; - uniform float weights[ n ]; - uniform bool latitudinal; - uniform float dTheta; - uniform float mipInt; - uniform vec3 poleAxis; - - #define ENVMAP_TYPE_CUBE_UV - #include - - vec3 getSample( float theta, vec3 axis ) { - - float cosTheta = cos( theta ); - // Rodrigues' axis-angle rotation - vec3 sampleDirection = vOutputDirection * cosTheta - + cross( axis, vOutputDirection ) * sin( theta ) - + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); - - return bilinearCubeUV( envMap, sampleDirection, mipInt ); - - } - - void main() { - - vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); - - if ( all( equal( axis, vec3( 0.0 ) ) ) ) { - - axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); - - } - - axis = normalize( axis ); - - gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); - gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); - - for ( int i = 1; i < n; i++ ) { - - if ( i >= samples ) { - - break; - - } - - float theta = dTheta * float( i ); - gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); - gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); - - } - - } - `,blending:0,depthTest:!1,depthWrite:!1})}function qs(){return new _o({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:Ys(),fragmentShader:` - - precision mediump float; - precision mediump int; - - varying vec3 vOutputDirection; - - uniform sampler2D envMap; - - #include - - void main() { - - vec3 outputDirection = normalize( vOutputDirection ); - vec2 uv = equirectUv( outputDirection ); - - gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); - - } - `,blending:0,depthTest:!1,depthWrite:!1})}function Js(){return new _o({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Ys(),fragmentShader:` - - precision mediump float; - precision mediump int; - - uniform float flipEnvMap; - - varying vec3 vOutputDirection; - - uniform samplerCube envMap; - - void main() { - - gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); - - } - `,blending:0,depthTest:!1,depthWrite:!1})}function Ys(){return` - - precision mediump float; - precision mediump int; - - attribute float faceIndex; - - varying vec3 vOutputDirection; - - // RH coordinate system; PMREM face-indexing convention - vec3 getDirection( vec2 uv, float face ) { - - uv = 2.0 * uv - 1.0; - - vec3 direction = vec3( uv, 1.0 ); - - if ( face == 0.0 ) { - - direction = direction.zyx; // ( 1, v, u ) pos x - - } else if ( face == 1.0 ) { - - direction = direction.xzy; - direction.xz *= -1.0; // ( -u, 1, -v ) pos y - - } else if ( face == 2.0 ) { - - direction.x *= -1.0; // ( -u, v, 1 ) pos z - - } else if ( face == 3.0 ) { - - direction = direction.zyx; - direction.xz *= -1.0; // ( -1, v, -u ) neg x - - } else if ( face == 4.0 ) { - - direction = direction.xzy; - direction.xy *= -1.0; // ( -u, -1, v ) neg y - - } else if ( face == 5.0 ) { - - direction.z *= -1.0; // ( u, v, -1 ) neg z - - } - - return direction; - - } - - void main() { - - vOutputDirection = getDirection( uv, faceIndex ); - gl_Position = vec4( position, 1.0 ); - - } - `}var Xs=class extends Sr{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new no(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` - - varying vec3 vWorldDirection; - - vec3 transformDirection( in vec3 dir, in mat4 matrix ) { - - return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); - - } - - void main() { - - vWorldDirection = transformDirection( position, modelMatrix ); - - #include - #include - - } - `,fragmentShader:` - - uniform sampler2D tEquirect; - - varying vec3 vWorldDirection; - - #include - - void main() { - - vec3 direction = normalize( vWorldDirection ); - - vec2 sampleUV = equirectUv( direction ); - - gl_FragColor = texture2D( tEquirect, sampleUV ); - - } - `},r=new oo(5,5,5),i=new _o({name:`CubemapFromEquirect`,uniforms:co(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});i.uniforms.tEquirect.value=t;let a=new wa(r,i),o=t.minFilter;return t.minFilter===1008&&(t.minFilter=dt),new rs(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,r=!0){let i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}};function Zs(e){let t=new WeakMap,n=new WeakMap,r=null;function i(e,t=!1){return e==null?null:t?o(e):a(e)}function a(n){if(n&&n.isTexture){let r=n.mapping;if(r===303||r===304)if(t.has(n)){let e=t.get(n).texture;return s(e,n.mapping)}else{let r=n.image;if(r&&r.height>0){let i=new Xs(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}else return null}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new Vs(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new Vs(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function Qs(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&Wn(`WebGLRenderer: `+e+` extension not supported.`),t}}}function $s(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0?t:(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++,t)}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t=65535?Hi:Vi)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.versiont.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Cr(h,p,m,u);g.type=bt,g.needsUpdate=!0;let _=f*4;for(let t=0;t - #include - - void main() { - gl_FragColor = texture2D( tDiffuse, vUv ); - - #ifdef LINEAR_TONE_MAPPING - gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb ); - #elif defined( REINHARD_TONE_MAPPING ) - gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb ); - #elif defined( CINEON_TONE_MAPPING ) - gl_FragColor.rgb = CineonToneMapping( gl_FragColor.rgb ); - #elif defined( ACES_FILMIC_TONE_MAPPING ) - gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb ); - #elif defined( AGX_TONE_MAPPING ) - gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb ); - #elif defined( NEUTRAL_TONE_MAPPING ) - gl_FragColor.rgb = NeutralToneMapping( gl_FragColor.rgb ); - #elif defined( CUSTOM_TONE_MAPPING ) - gl_FragColor.rgb = CustomToneMapping( gl_FragColor.rgb ); - #endif - - #ifdef SRGB_TRANSFER - gl_FragColor = sRGBTransferOETF( gl_FragColor ); - #endif - }`,depthTest:!1,depthWrite:!1}),l=new wa(s,c),u=new Zo(-1,1,1,-1,0,1),d=null,f=null,p=!1,m,h=null,g=[],_=!1;this.setSize=function(e,t){a.setSize(e,t),o.setSize(e,t);for(let n=0;n0&&g[0].isRenderPass===!0;let t=a.width,n=a.height;for(let e=0;e0)return e;let i=t*n,a=dc[i];if(a===void 0&&(a=new Float32Array(i),dc[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function _c(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function pl(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var ml=37297,hl=0;function gl(e,t){let n=e.split(` -`),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e`:` `} ${i}: ${n[e]}`)}return r.join(` -`)}var _l=new Y;function vl(e){X._getMatrix(_l,X.workingColorSpace,e);let t=`mat3( ${_l.elements.map(e=>e.toFixed(4))} )`;switch(X.getTransfer(e)){case An:return[t,`LinearTransferOETF`];case jn:return[t,`sRGBTransferOETF`];default:return G(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function yl(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+` - -`+i+` - -`+gl(e.getShaderSource(t),r)}else return i}function bl(e,t){let n=vl(t);return[`vec4 ${e}( vec4 value ) {`,` return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,`}`].join(` -`)}var xl={1:`Linear`,2:`Reinhard`,3:`Cineon`,4:`ACESFilmic`,6:`AgX`,7:`Neutral`,5:`Custom`};function Sl(e,t){let n=xl[t];return n===void 0?(G(`WebGLProgram: Unsupported toneMapping:`,t),`vec3 `+e+`( vec3 color ) { return LinearToneMapping( color ); }`):`vec3 `+e+`( vec3 color ) { return `+n+`ToneMapping( color ); }`}var Cl=new J;function wl(){return X.getLuminanceCoefficients(Cl),[`float luminance( const in vec3 rgb ) {`,` const vec3 weights = vec3( ${Cl.x.toFixed(4)}, ${Cl.y.toFixed(4)}, ${Cl.z.toFixed(4)} );`,` return dot( weights, rgb );`,`}`].join(` -`)}function Tl(e){return[e.extensionClipCullDistance?`#extension GL_ANGLE_clip_cull_distance : require`:``,e.extensionMultiDraw?`#extension GL_ANGLE_multi_draw : require`:``].filter(Ol).join(` -`)}function El(e){let t=[];for(let n in e){let r=e[n];r!==!1&&t.push(`#define `+n+` `+r)}return t.join(` -`)}function Dl(e,t){let n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function Ml(e){return e.replace(jl,Pl)}var Nl=new Map;function Pl(e,t){let n=Q[t];if(n===void 0){let e=Nl.get(t);if(e!==void 0)n=Q[e],G(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`Can not resolve #include <`+t+`>`)}return Ml(n)}var Fl=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Il(e){return e.replace(Fl,Ll)}function Ll(e,t,n,r){let i=``;for(let e=parseInt(t);e0&&(g+=` -`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(Ol).join(` -`),_.length>0&&(_+=` -`)):(g=[Rl(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` -`].filter(Ol).join(` -`),_=[Rl(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.numLightProbeGrids>0?`#define USE_LIGHT_PROBES_GRID`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:Q.tonemapping_pars_fragment,n.toneMapping===0?``:Sl(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,Q.colorspace_pars_fragment,bl(`linearToOutputTexel`,n.outputColorSpace),wl(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` -`].filter(Ol).join(` -`)),o=Ml(o),o=kl(o,n),o=Al(o,n),s=Ml(s),s=kl(s,n),s=Al(s,n),o=Il(o),s=Il(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es -`,g=[p,`#define attribute in`,`#define varying out`,`#define texture2D texture`].join(` -`)+` -`+g,_=[`#define varying in`,n.glslVersion===`300 es`?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===`300 es`?``:`#define gl_FragColor pc_fragColor`,`#define gl_FragDepthEXT gl_FragDepth`,`#define texture2D texture`,`#define textureCube texture`,`#define texture2DProj textureProj`,`#define texture2DLodEXT textureLod`,`#define texture2DProjLodEXT textureProjLod`,`#define textureCubeLodEXT textureLod`,`#define texture2DGradEXT textureGrad`,`#define texture2DProjGradEXT textureProjGrad`,`#define textureCubeGradEXT textureGrad`].join(` -`)+` -`+_);let y=v+g+o,b=v+_+s,x=pl(i,i.VERTEX_SHADER,y),S=pl(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.morphTargets===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1)if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=yl(i,x,`vertex`),n=yl(i,S,`fragment`);K(`THREE.WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` - -Material Name: `+t.name+` -Material Type: `+t.type+` - -Program Info Log: `+o+` -`+e+` -`+n)}else o===``?(s===``||c===``)&&(u=!1):G(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new fl(i,h),T=Dl(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,ml)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=hl++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var Yl=0,Xl=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){let t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return a.has(r)===!1&&(a.add(r),r.usedTimes++),a.has(i)===!1&&(a.add(i),i.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new Zl(e),t.set(e,n)),n}},Zl=class{constructor(e){this.id=Yl++,this.code=e,this.usedTimes=0}};function Ql(e){return e===1030||e===37490||e===36285}function $l(e,t,n,r,i,a){let o=new Ir,s=new Xl,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,p={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&G(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,A;if(C){let e=xs[C];D=e.vertexShader,O=e.fragmentShader}else D=i.vertexShader,O=i.fragmentShader,s.update(i),k=s.getVertexShaderID(i),A=s.getFragmentShaderID(i);let j=e.getRenderTarget(),M=e.state.buffers.depth.getReversed(),N=h.isInstancedMesh===!0,P=h.isBatchedMesh===!0,F=!!i.map,I=!!i.matcap,ee=!!x,L=!!i.aoMap,te=!!i.lightMap,ne=!!i.bumpMap,re=!!i.normalMap,ie=!!i.displacementMap,ae=!!i.emissiveMap,oe=!!i.metalnessMap,se=!!i.roughnessMap,ce=i.anisotropy>0,le=i.clearcoat>0,ue=i.dispersion>0,R=i.iridescence>0,de=i.sheen>0,fe=i.transmission>0,pe=ce&&!!i.anisotropyMap,me=le&&!!i.clearcoatMap,he=le&&!!i.clearcoatNormalMap,z=le&&!!i.clearcoatRoughnessMap,B=R&&!!i.iridescenceMap,V=R&&!!i.iridescenceThicknessMap,ge=de&&!!i.sheenColorMap,H=de&&!!i.sheenRoughnessMap,_e=!!i.specularMap,U=!!i.specularColorMap,W=!!i.specularIntensityMap,ve=fe&&!!i.transmissionMap,ye=fe&&!!i.thicknessMap,be=!!i.gradientMap,xe=!!i.alphaMap,Se=i.alphaTest>0,Ce=!!i.alphaHash,we=!!i.extensions,Te=0;i.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(Te=e.toneMapping);let Ee={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:A,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:P,batchingColor:P&&h._colorsTexture!==null,instancing:N,instancingColor:N&&h.instanceColor!==null,instancingMorph:N&&h.morphTexture!==null,outputColorSpace:j===null?e.outputColorSpace:j.isXRRenderTarget===!0?j.texture.colorSpace:X.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:F,matcap:I,envMap:ee,envMapMode:ee&&x.mapping,envMapCubeUVHeight:S,aoMap:L,lightMap:te,bumpMap:ne,normalMap:re,displacementMap:ie,emissiveMap:ae,normalMapObjectSpace:re&&i.normalMapType===1,normalMapTangentSpace:re&&i.normalMapType===0,packedNormalMap:re&&i.normalMapType===0&&Ql(i.normalMap.format),metalnessMap:oe,roughnessMap:se,anisotropy:ce,anisotropyMap:pe,clearcoat:le,clearcoatMap:me,clearcoatNormalMap:he,clearcoatRoughnessMap:z,dispersion:ue,iridescence:R,iridescenceMap:B,iridescenceThicknessMap:V,sheen:de,sheenColorMap:ge,sheenRoughnessMap:H,specularMap:_e,specularColorMap:U,specularIntensityMap:W,transmission:fe,transmissionMap:ve,thicknessMap:ye,gradientMap:be,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:xe,alphaTest:Se,alphaHash:Ce,combine:i.combine,mapUv:F&&m(i.map.channel),aoMapUv:L&&m(i.aoMap.channel),lightMapUv:te&&m(i.lightMap.channel),bumpMapUv:ne&&m(i.bumpMap.channel),normalMapUv:re&&m(i.normalMap.channel),displacementMapUv:ie&&m(i.displacementMap.channel),emissiveMapUv:ae&&m(i.emissiveMap.channel),metalnessMapUv:oe&&m(i.metalnessMap.channel),roughnessMapUv:se&&m(i.roughnessMap.channel),anisotropyMapUv:pe&&m(i.anisotropyMap.channel),clearcoatMapUv:me&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:he&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:z&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:B&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:V&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:ge&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:H&&m(i.sheenRoughnessMap.channel),specularMapUv:_e&&m(i.specularMap.channel),specularColorMapUv:U&&m(i.specularColorMap.channel),specularIntensityMapUv:W&&m(i.specularIntensityMap.channel),transmissionMapUv:ve&&m(i.transmissionMap.channel),thicknessMapUv:ye&&m(i.thicknessMap.channel),alphaMapUv:xe&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(re||ce),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(F||xe),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&re===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:M,skinning:h.isSkinnedMesh===!0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:Te,decodeVideoTexture:F&&i.map.isVideoTexture===!0&&X.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:ae&&i.emissiveMap.isVideoTexture===!0&&X.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:we&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(we&&i.extensions.multiDraw===!0||P)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return Ee.vertexUv1s=c.has(1),Ee.vertexUv2s=c.has(2),Ee.vertexUv3s=c.has(3),c.clear(),Ee}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=xs[t];n=mo.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new Jl(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function eu(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function tu(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function nu(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function ru(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.push(u):a.transparent===!0?i.push(u):n.push(u)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||tu),r.length>1&&r.sort(t||nu),i.length>1&&i.sort(t||nu)}function d(){for(let n=t,r=e.length;n=r.length?(i=new ru,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function au(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={direction:new J,color:new Z};break;case`SpotLight`:n={position:new J,direction:new J,color:new Z,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new J,color:new Z,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new J,skyColor:new Z,groundColor:new Z};break;case`RectAreaLight`:n={color:new Z,position:new J,halfWidth:new J,halfHeight:new J};break}return e[t.id]=n,n}}}function ou(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new nr};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new nr};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new nr,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}var su=0;function cu(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function lu(e){let t=new au,n=ou(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new J);let i=new J,a=new Tr,o=new Tr;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0;i.sort(cu);for(let e=0,y=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=$.LTC_FLOAT_1,r.rectAreaLTC2=$.LTC_FLOAT_2):(r.rectAreaLTC1=$.LTC_HALF_1,r.rectAreaLTC2=$.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let y=r.hash;(y.directionalLength!==c||y.pointLength!==l||y.spotLength!==u||y.rectAreaLength!==d||y.hemiLength!==f||y.numDirectionalShadows!==p||y.numPointShadows!==m||y.numSpotShadows!==h||y.numSpotMaps!==g||y.numLightProbes!==v)&&(r.directional.length=c,r.spot.length=u,r.rectArea.length=d,r.point.length=l,r.hemi.length=f,r.directionalShadow.length=p,r.directionalShadowMap.length=p,r.pointShadow.length=m,r.pointShadowMap.length=m,r.spotShadow.length=h,r.spotShadowMap.length=h,r.directionalShadowMatrix.length=p,r.pointShadowMatrix.length=m,r.spotLightMatrix.length=h+g-_,r.spotLightMap.length=g,r.numSpotLightShadowsWithMaps=_,r.numLightProbes=v,y.directionalLength=c,y.pointLength=l,y.spotLength=u,y.rectAreaLength=d,y.hemiLength=f,y.numDirectionalShadows=p,y.numPointShadows=m,y.numSpotShadows=h,y.numSpotMaps=g,y.numLightProbes=v,r.version=su++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=t.matrixWorldInverse;for(let t=0,f=e.length;t=i.length?(a=new uu(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var fu=`void main() { - gl_Position = vec4( position, 1.0 ); -}`,pu=`uniform sampler2D shadow_pass; -uniform vec2 resolution; -uniform float radius; -void main() { - const float samples = float( VSM_SAMPLES ); - float mean = 0.0; - float squared_mean = 0.0; - float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); - float uvStart = samples <= 1.0 ? 0.0 : - 1.0; - for ( float i = 0.0; i < samples; i ++ ) { - float uvOffset = uvStart + i * uvStride; - #ifdef HORIZONTAL_PASS - vec2 distribution = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ).rg; - mean += distribution.x; - squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; - #else - float depth = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ).r; - mean += depth; - squared_mean += depth * depth; - #endif - } - mean = mean / samples; - squared_mean = squared_mean / samples; - float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) ); - gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 ); -}`,mu=[new J(1,0,0),new J(-1,0,0),new J(0,1,0),new J(0,-1,0),new J(0,0,1),new J(0,0,-1)],hu=[new J(0,-1,0),new J(0,-1,0),new J(0,0,1),new J(0,0,-1),new J(0,-1,0),new J(0,-1,0)],gu=new Tr,_u=new J,vu=new J;function yu(e,t,n){let r=new Fa,i=new nr,a=new nr,o=new br,s=new bo,c=new xo,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new _o({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new nr},radius:{value:4}},vertexShader:fu,fragmentShader:pu}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new ta;m.setAttribute(`position`,new Bi(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new wa(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(G(`WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){G(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new Sr(i.x,i.y,{format:Pt,type:xt,minFilter:dt,magFilter:dt,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new ro(i.x,i.y,bt),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=At,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=ct,d.map.depthTexture.magFilter=ct}else l.isPointLight?(d.map=new Xs(i.x),d.map.depthTexture=new io(i.x,yt)):(d.map=new Sr(i.x,i.y),d.map.depthTexture=new ro(i.x,i.y,yt)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=At,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=dt,d.map.depthTexture.magFilter=dt):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=ct,d.map.depthTexture.magFilter=ct);d.camera.updateProjectionMatrix()}let g=d.map.isWebGLCubeRenderTarget?6:1;for(let t=0;t0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(P=parseFloat(/^WebGL (\d)/.exec(F)[1]),N=P>=1);let I=null,ee={},L=e.getParameter(e.SCISSOR_BOX),te=e.getParameter(e.VIEWPORT),ne=new br().fromArray(L),re=new br().fromArray(te);function ie(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new nr,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):Rn(`canvas`)}function g(e,t,n){let r=1,i=U(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1)if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),G(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}else return`data`in e&&G(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e;return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];G(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||G(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?An:X.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,G(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function S(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),T(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function w(e){let t=e.target;t.removeEventListener(`dispose`,w),D(t)}function T(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&E(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function E(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function D(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&G(`WebGLTextures: Trying to use `+e+` texture units while this GPU supports only `+i.maxTextures),O+=1,e}function N(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function P(t,i){let a=r.get(t);if(t.isVideoTexture&&H(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)G(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)G(`WebGLRenderer: Texture marked for update but image is incomplete`);else{se(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function F(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){se(a,t,i);return}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i)}function I(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){se(a,t,i);return}n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function ee(t,i){let a=r.get(t);if(t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version){ce(a,t,i);return}n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let L={[at]:e.REPEAT,[ot]:e.CLAMP_TO_EDGE,[st]:e.MIRRORED_REPEAT},te={[ct]:e.NEAREST,[lt]:e.NEAREST_MIPMAP_NEAREST,[ut]:e.NEAREST_MIPMAP_LINEAR,[dt]:e.LINEAR,[ft]:e.LINEAR_MIPMAP_NEAREST,[pt]:e.LINEAR_MIPMAP_LINEAR},ne={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function re(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&G(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,L[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,L[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,L[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,te[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,te[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,ne[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function ie(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,C));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=N(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&E(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function ae(e,t,n){return Math.floor(Math.floor(e/n)/t)}function oe(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let t=_s(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}o.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0);else G(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`);else C?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data)}else{C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let i=_s(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isData3DTexture)C?(w&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(w)if(C)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t>=1,a>>=1}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}let r=e.RGBA,i=e.RGBA,a=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,r,i,a,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(C&&w){let t=U(y[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=y.length;t0&&D++;let t=U(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),ge(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,V(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function ue(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;ge(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,V(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,V(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer)if(a)for(let e=0;e<6;e++)R(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?R(i.__webglFramebuffer[0],t,0):R(i.__webglFramebuffer,t,0)}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),ue(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),ue(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function fe(t,n,i){let a=r.get(t);n!==void 0&&le(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&de(t)}function pe(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,w);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&ge(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(ge(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function H(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function _e(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(X.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&G(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):K(`WebGLTextures: Unsupported texture color space:`,n)),t}function U(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=M,this.resetTextureUnits=k,this.getTextureUnits=A,this.setTextureUnits=j,this.setTexture2D=P,this.setTexture2DArray=F,this.setTexture3D=I,this.setTextureCube=ee,this.rebindTextures=fe,this.setupRenderTarget=pe,this.updateRenderTargetMipmap=me,this.updateMultisampleRenderTarget=B,this.setupDepthRenderbuffer=de,this.setupFrameBufferTexture=le,this.useMultisampledRTT=ge,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function Su(e,t){function n(n,r=``){let i,a=X.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779)if(a===`srgb`)if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===35840||n===35841||n===35842||n===35843)if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491)if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null;if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821)if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===36492||n===36494||n===36495)if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===36283||n===36284||n===36285||n===36286)if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var Cu=` -void main() { - - gl_Position = vec4( position, 1.0 ); - -}`,wu=` -uniform sampler2DArray depthColor; -uniform float depthWidth; -uniform float depthHeight; - -void main() { - - vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); - - if ( coord.x >= 1.0 ) { - - gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; - - } else { - - gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; - - } - -}`,Tu=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new ao(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new _o({vertexShader:Cu,fragmentShader:wu,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new wa(new so(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},Eu=class extends qn{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=typeof XRWebGLBinding<`u`,h=new Tu,g={},_=t.getContextAttributes(),v=null,y=null,b=[],x=[],S=new nr,C=null,w=new Xo;w.viewport=new br;let T=new Xo;T.viewport=new br;let E=[w,T],D=new is,O=null,k=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=b[e];return t===void 0&&(t=new ti,b[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=b[e];return t===void 0&&(t=new ti,b[e]=t),t.getGripSpace()},this.getHand=function(e){let t=b[e];return t===void 0&&(t=new ti,b[e]=t),t.getHandSpace()};function A(e){let t=x.indexOf(e.inputSource);if(t===-1)return;let n=b[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function j(){r.removeEventListener(`select`,A),r.removeEventListener(`selectstart`,A),r.removeEventListener(`selectend`,A),r.removeEventListener(`squeeze`,A),r.removeEventListener(`squeezestart`,A),r.removeEventListener(`squeezeend`,A),r.removeEventListener(`end`,j),r.removeEventListener(`inputsourceschange`,M);for(let e=0;e=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let N=new J,P=new J;function F(e,t,n){N.setFromMatrixPosition(t.matrixWorld),P.setFromMatrixPosition(n.matrixWorld);let r=N.distanceTo(P),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function I(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),D.near=T.near=w.near=t,D.far=T.far=w.far=n,(O!==D.near||k!==D.far)&&(r.updateRenderState({depthNear:D.near,depthFar:D.far}),O=D.near,k=D.far),D.layers.mask=e.layers.mask|6,w.layers.mask=D.layers.mask&-5,T.layers.mask=D.layers.mask&-3;let i=e.parent,a=D.cameras;I(D,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(Du.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(Ou),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function Au(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(m(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,g));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function h(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?G(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):G(`WebGLRenderer: Unsupported uniform value type.`,e),t}function g(t){let n=t.target;n.removeEventListener(`dispose`,g);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function _(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:_}}var ju=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),Mu=null;function Nu(){return Mu===null&&(Mu=new Da(ju,16,16,Pt,xt),Mu.name=`DFG_LUT`,Mu.minFilter=dt,Mu.magFilter=dt,Mu.wrapS=ot,Mu.wrapT=ot,Mu.generateMipmaps=!1,Mu.needsUpdate=!0),Mu}var Pu=class{constructor(e={}){let{canvas:t=zn(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=mt}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([It,Ft,Nt]),g=new Set([mt,yt,_t,wt,St,Ct]),_=new Uint32Array(4),v=new Int32Array(4),y=new J,b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null;this._outputColorSpace=On;let O=0,k=0,A=null,j=-1,M=null,N=new br,P=new br,F=null,I=new Z(0),ee=0,L=t.width,te=t.height,ne=1,re=null,ie=null,ae=new br(0,0,L,te),oe=new br(0,0,L,te),se=!1,ce=new Fa,le=!1,ue=!1,R=new Tr,de=new J,fe=new br,pe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},me=!1;function he(){return A===null?ne:1}let z=n;function B(e,n){return t.getContext(e,n)}try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r184`),t.addEventListener(`webglcontextlost`,Le,!1),t.addEventListener(`webglcontextrestored`,Re,!1),t.addEventListener(`webglcontextcreationerror`,ze,!1),z===null){let t=`webgl2`;if(z=B(t,e),z===null)throw B(t)?Error(`Error creating WebGL context with your selected attributes.`):Error(`Error creating WebGL context.`)}}catch(e){throw K(`WebGLRenderer: `+e.message),e}let V,ge,H,_e,U,W,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe;function Fe(){V=new Qs(z),V.init(),Me=new Su(z,V),ge=new Os(z,V,e,Me),H=new bu(z,V),ge.reversedDepthBuffer&&d&&H.buffers.depth.setReversed(!0),_e=new tc(z),U=new eu,W=new xu(z,V,H,U,ge,Me,_e),ve=new Zs(T),ye=new bs(z),Ne=new Es(z,ye),be=new $s(z,ye,_e,Ne),xe=new rc(z,be,ye,Ne,_e),ke=new nc(z,ge,W),Ee=new ks(U),Se=new $l(T,ve,V,ge,Ne,Ee),Ce=new ku(T,U),we=new iu,Te=new du(V),Oe=new Ts(T,ve,H,xe,p,s),De=new yu(T,xe,ge),Pe=new Au(z,_e,ge,H),Ae=new Ds(z,V,_e),je=new ec(z,V,_e),_e.programs=Se.programs,T.capabilities=ge,T.extensions=V,T.properties=U,T.renderLists=we,T.shadowMap=De,T.state=H,T.info=_e}Fe(),m!==1009&&(w=new ac(m,t.width,t.height,r,i));let Ie=new Eu(T,z);this.xr=Ie,this.getContext=function(){return z},this.getContextAttributes=function(){return z.getContextAttributes()},this.forceContextLoss=function(){let e=V.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=V.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return ne},this.setPixelRatio=function(e){e!==void 0&&(ne=e,this.setSize(L,te,!1))},this.getSize=function(e){return e.set(L,te)},this.setSize=function(e,n,r=!0){if(Ie.isPresenting){G(`WebGLRenderer: Can't change size while VR device is presenting.`);return}L=e,te=n,t.width=Math.floor(e*ne),t.height=Math.floor(n*ne),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n)},this.getDrawingBufferSize=function(e){return e.set(L*ne,te*ne).floor()},this.setDrawingBufferSize=function(e,n,r){L=e,te=n,ne=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009){K(`THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);return}if(e){for(let t=0;t{function n(){if(r.forEach(function(e){U.get(e).currentProgram.isReady()&&r.delete(e)}),r.size===0){t(e);return}setTimeout(n,10)}V.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let We=null;function Ge(e){We&&We(e)}function Ke(){Je.stop()}function qe(){Je.start()}let Je=new ys;Je.setAnimationLoop(Ge),typeof self<`u`&&Je.setContext(self),this.setAnimationLoop=function(e){We=e,Ie.setAnimationLoop(e),e===null?Je.stop():Je.start()},Ie.addEventListener(`sessionstart`,Ke),Ie.addEventListener(`sessionend`,qe),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){K(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=Ie.enabled===!0&&Ie.isPresenting===!0,r=w!==null&&(A===null||n)&&w.begin(T,A);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),Ie.enabled===!0&&Ie.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(Ie.cameraAutoUpdate===!0&&Ie.updateCamera(t),t=Ie.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,A),x=Te.get(e,C.length),x.init(t),x.state.textureUnits=W.getTextureUnits(),C.push(x),R.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),ce.setFromProjectionMatrix(R,Fn,t.reversedDepth),ue=this.localClippingEnabled,le=Ee.init(this.clippingPlanes,ue),b=we.get(e,S.length),b.init(),S.push(b),Ie.enabled===!0&&Ie.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&Ye(e,t,-1/0,T.sortObjects)}Ye(e,t,0,T.sortObjects),b.finish(),T.sortObjects===!0&&b.sort(re,ie),me=Ie.enabled===!1||Ie.isPresenting===!1||Ie.hasDepthSensing()===!1,me&&Oe.addToRenderList(b,e),this.info.render.frame++,le===!0&&Ee.beginShadows();let i=x.state.shadowsArray;if(De.render(i,e,t),le===!0&&Ee.endShadows(),this.info.autoReset===!0&&this.info.reset(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t0&&Ze(n,r,e,t),me&&Oe.render(e),Xe(b,e,t)}A!==null&&k===0&&(W.updateMultisampleRenderTarget(A),W.updateRenderTargetMipmap(A)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),Ne.resetDefaultState(),j=-1,M=null,C.pop(),C.length>0?(x=C[C.length-1],W.setTextureUnits(x.state.textureUnits),le===!0&&Ee.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function Ye(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||ce.intersectsSprite(e)){r&&fe.setFromMatrixPosition(e.matrixWorld).applyMatrix4(R);let t=xe.update(e),i=e.material;i.visible&&b.push(e,t,i,n,fe.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||ce.intersectsObject(e))){let t=xe.update(e),i=e.material;if(r&&(e.boundingSphere===void 0?(t.boundingSphere===null&&t.computeBoundingSphere(),fe.copy(t.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),fe.copy(e.boundingSphere.center)),fe.applyMatrix4(e.matrixWorld).applyMatrix4(R)),Array.isArray(i)){let r=t.groups;for(let a=0,o=r.length;a0&&Qe(i,t,n),a.length>0&&Qe(a,t,n),o.length>0&&Qe(o,t,n),H.buffers.depth.setTest(!0),H.buffers.depth.setMask(!0),H.buffers.color.setMask(!0),H.setPolygonOffset(!1)}function Ze(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=V.has(`EXT_color_buffer_half_float`)||V.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new Sr(1,1,{generateMipmaps:!0,type:e?xt:mt,minFilter:pt,samples:Math.max(4,ge.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:X.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||N;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(I),ee=T.getClearAlpha(),ee<1&&T.setClearColor(16777215,.5),T.clear(),me&&Oe.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),le===!0&&Ee.setGlobalState(T.clippingPlanes,r),Qe(e,n,r),W.updateMultisampleRenderTarget(a),W.updateRenderTargetMipmap(a),V.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0,r.currentProgram=d,r.uniformsList=null,d}function tt(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=fl.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function nt(e,t){let n=U.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function rt(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=U.get(r),y=x.state.lights;if(le===!0&&(ue===!0||e!==M)){let t=e===M&&r.id===j;Ee.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i.colorTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i.colorTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Ee.numPlanes||v.numIntersection!==Ee.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=et(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(H.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==j&&(j=r.id,w=!0),v.needsLights){let e=rt(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||M!==e){H.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(z,`projectionMatrix`,e.projectionMatrix),O.setValue(z,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(z,de.setFromMatrixPosition(e.matrixWorld)),ge.logarithmicDepthBuffer&&O.setValue(z,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(z,`isOrthographic`,e.isOrthographicCamera===!0),M!==e&&(M=e,w=!0,E=!0)}if(v.needsLights&&(y.state.directionalShadowMap.length>0&&O.setValue(z,`directionalShadowMap`,y.state.directionalShadowMap,W),y.state.spotShadowMap.length>0&&O.setValue(z,`spotShadowMap`,y.state.spotShadowMap,W),y.state.pointShadowMap.length>0&&O.setValue(z,`pointShadowMap`,y.state.pointShadowMap,W)),i.isSkinnedMesh){O.setOptional(z,i,`bindMatrix`),O.setOptional(z,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(z,`boneTexture`,e.boneTexture,W))}i.isBatchedMesh&&(O.setOptional(z,i,`batchingTexture`),O.setValue(z,`batchingTexture`,i._matricesTexture,W),O.setOptional(z,i,`batchingIdTexture`),O.setValue(z,`batchingIdTexture`,i._indirectTexture,W),O.setOptional(z,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(z,`batchingColorTexture`,i._colorsTexture,W));let N=n.morphAttributes;if((N.position!==void 0||N.normal!==void 0||N.color!==void 0)&&ke.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(z,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=Nu()),w){if(O.setValue(z,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&&at(k,E),a&&r.fog===!0&&Ce.refreshFogUniforms(k,a),Ce.refreshMaterialUniforms(k,r,ne,te,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}fl.upload(z,tt(v),k,W)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(fl.upload(z,tt(v),k,W),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(z,`center`,i.center),O.setValue(z,`modelViewMatrix`,i.modelViewMatrix),O.setValue(z,`normalMatrix`,i.normalMatrix),O.setValue(z,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&W.useMultisampledRTT(e)===!1?U.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,N.copy(e.viewport),P.copy(e.scissor),F=e.scissorTest}else N.copy(ae).multiplyScalar(ne).floor(),P.copy(oe).multiplyScalar(ne).floor(),F=se;if(n!==0&&(r=st),H.bindFramebuffer(z.FRAMEBUFFER,r)&&H.drawBuffers(e,r),H.viewport(N),H.scissor(P),H.setScissorTest(F),i){let r=U.get(e.texture);z.framebufferTexture2D(z.FRAMEBUFFER,z.COLOR_ATTACHMENT0,z.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t1&&z.readBuffer(z.COLOR_ATTACHMENT0+s),!ge.textureFormatReadable(c)){K(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(!ge.textureTypeReadable(l)){K(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&z.readPixels(t,n,r,i,Me.convert(c),Me.convert(l),a)}finally{let e=A===null?null:U.get(A).__webglFramebuffer;H.bindFramebuffer(z.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=U.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c)if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){H.bindFramebuffer(z.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;if(e.textures.length>1&&z.readBuffer(z.COLOR_ATTACHMENT0+s),!ge.textureFormatReadable(l))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(!ge.textureTypeReadable(u))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let d=z.createBuffer();z.bindBuffer(z.PIXEL_PACK_BUFFER,d),z.bufferData(z.PIXEL_PACK_BUFFER,a.byteLength,z.STREAM_READ),z.readPixels(t,n,r,i,Me.convert(l),Me.convert(u),0);let f=A===null?null:U.get(A).__webglFramebuffer;H.bindFramebuffer(z.FRAMEBUFFER,f);let p=z.fenceSync(z.SYNC_GPU_COMMANDS_COMPLETE,0);return z.flush(),await Gn(z,p,4),z.bindBuffer(z.PIXEL_PACK_BUFFER,d),z.getBufferSubData(z.PIXEL_PACK_BUFFER,0,a),z.deleteBuffer(d),z.deleteSync(p),a}else throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;W.setTexture2D(e,0),z.copyTexSubImage2D(z.TEXTURE_2D,n,0,0,o,s,i,a),H.unbindTexture()};let ct=z.createFramebuffer(),lt=z.createFramebuffer();this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Me.convert(t.format),_=Me.convert(t.type),v;t.isData3DTexture?(W.setTexture3D(t,0),v=z.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(W.setTexture2DArray(t,0),v=z.TEXTURE_2D_ARRAY):(W.setTexture2D(t,0),v=z.TEXTURE_2D),H.activeTexture(z.TEXTURE0),H.pixelStorei(z.UNPACK_FLIP_Y_WEBGL,t.flipY),H.pixelStorei(z.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),H.pixelStorei(z.UNPACK_ALIGNMENT,t.unpackAlignment);let y=H.getParameter(z.UNPACK_ROW_LENGTH),b=H.getParameter(z.UNPACK_IMAGE_HEIGHT),x=H.getParameter(z.UNPACK_SKIP_PIXELS),S=H.getParameter(z.UNPACK_SKIP_ROWS),C=H.getParameter(z.UNPACK_SKIP_IMAGES);H.pixelStorei(z.UNPACK_ROW_LENGTH,h.width),H.pixelStorei(z.UNPACK_IMAGE_HEIGHT,h.height),H.pixelStorei(z.UNPACK_SKIP_PIXELS,l),H.pixelStorei(z.UNPACK_SKIP_ROWS,u),H.pixelStorei(z.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=U.get(e),r=U.get(t),h=U.get(n.__renderTarget),g=U.get(r.__renderTarget);H.bindFramebuffer(z.READ_FRAMEBUFFER,h.__webglFramebuffer),H.bindFramebuffer(z.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n 0.5) discard; // outside circle → transparent - // soft anti-alias ring at the edge - float alpha = 1.0 - smoothstep(0.45, 0.5, dist); - gl_FragColor = vec4(vColor, alpha * uOpacity); - } - `,transparent:!0,depthWrite:!1})}function Wu(e,t,n,r){return new _o({uniforms:{uSizeMin:{value:e},uSizeMax:{value:t},uAmp:{value:n},uOpacity:{value:r}},vertexShader:` - attribute vec3 color; - varying vec3 vColor; - uniform float uSizeMin; - uniform float uSizeMax; - uniform float uAmp; - void main() { - vColor = color; - // Map Z (-amp..+amp) → (sizeMin..sizeMax) - float t = clamp((position.z + uAmp) / (2.0 * uAmp), 0.0, 1.0); - gl_PointSize = mix(uSizeMin, uSizeMax, t); - gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); - } - `,fragmentShader:` - varying vec3 vColor; - uniform float uOpacity; - void main() { - vec2 uv = gl_PointCoord - vec2(0.5); - float dist = length(uv); - if (dist > 0.5) discard; - float alpha = 1.0 - smoothstep(0.45, 0.5, dist); - gl_FragColor = vec4(vColor, alpha * uOpacity); - } - `,transparent:!0,depthWrite:!1})}function Gu(e,t,n,r,i,a){let o=e+1,s=t+1,c=o*s,l=a/2,u=n/e,d=r/t,f=new Float32Array(c*3),p=new Float32Array(c*4*3),m=new Float32Array(c*4*3);for(let e=0;e{let o=Lu(a/Math.max(s*c-1,1),i);for(let i=0;i<2;i++){let[a,s]=i===0?[e,t]:[n,r];p[g*3]=a,p[g*3+1]=s,p[g*3+2]=0,m[g*3]=a,m[g*3+1]=s,m[g*3+2]=0,h[g*3]=o.r,h[g*3+1]=o.g,h[g*3+2]=o.b,g++}};if(a!==`vertical`)for(let t=0;t{let t=(0,Qe.c)(68),{className:n,style:r,lines:i,colors:a,cameraPosition:o,planeWidth:s,planeHeight:c,segmentsX:l,segmentsY:u,speed:d,amplitude:f,frequency:p,opacity:m,paused:g,mouseInfluence:_,mouseRotation:v,dotSize:y,dotSizeMin:b,crossSize:x,dashRatio:S,contourLevels:C,maxPixelRatio:w,onReady:T}=e,E=r===void 0?`grid`:r,D=i===void 0?`both`:i,O;t[0]===o?O=t[1]:(O=o===void 0?{x:0,y:0,z:10}:o,t[0]=o,t[1]=O);let k=O,A=s===void 0?80:s,j=c===void 0?40:c,M=l===void 0?60:l,N=u===void 0?30:u,P=d===void 0?1:d,F=f===void 0?1.5:f,I=p===void 0?.3:p,ee=m===void 0?.6:m,L=g===void 0?!1:g,te=_===void 0?2:_,ne=v===void 0?.1:v,re=y===void 0?3:y,ie=b===void 0?1:b,ae=x===void 0?.3:x,oe=S===void 0?.5:S,se=C===void 0?6:C,ce=w===void 0?2:w,le=(0,B.useRef)(null),ue;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(ue={width:0,height:0},t[2]=ue):ue=t[2];let[R,de]=(0,B.useState)(ue),fe;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(fe={x:0,y:0},t[3]=fe):fe=t[3];let pe=(0,B.useRef)(fe),me=(0,B.useRef)(P),he=(0,B.useRef)(L),z=(0,B.useRef)(F),ge=(0,B.useRef)(I),H=(0,B.useRef)(te),_e=(0,B.useRef)(ne),U=(0,B.useRef)(ee),W,ve;t[4]===P?(W=t[5],ve=t[6]):(W=()=>{me.current=P},ve=[P],t[4]=P,t[5]=W,t[6]=ve),(0,B.useEffect)(W,ve);let ye,be;t[7]===L?(ye=t[8],be=t[9]):(ye=()=>{he.current=L},be=[L],t[7]=L,t[8]=ye,t[9]=be),(0,B.useEffect)(ye,be);let xe,Se;t[10]===F?(xe=t[11],Se=t[12]):(xe=()=>{z.current=F},Se=[F],t[10]=F,t[11]=xe,t[12]=Se),(0,B.useEffect)(xe,Se);let Ce,we;t[13]===I?(Ce=t[14],we=t[15]):(Ce=()=>{ge.current=I},we=[I],t[13]=I,t[14]=Ce,t[15]=we),(0,B.useEffect)(Ce,we);let Te,Ee;t[16]===te?(Te=t[17],Ee=t[18]):(Te=()=>{H.current=te},Ee=[te],t[16]=te,t[17]=Te,t[18]=Ee),(0,B.useEffect)(Te,Ee);let De,Oe;t[19]===ne?(De=t[20],Oe=t[21]):(De=()=>{_e.current=ne},Oe=[ne],t[19]=ne,t[20]=De,t[21]=Oe),(0,B.useEffect)(De,Oe);let ke,Ae;t[22]===ee?(ke=t[23],Ae=t[24]):(ke=()=>{U.current=ee},Ae=[ee],t[22]=ee,t[23]=ke,t[24]=Ae),(0,B.useEffect)(ke,Ae);let je,Me;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(je=()=>{let e=le.current;if(!e)return;let t=new ResizeObserver(e=>{let t=e[0].contentRect;de({width:t.width,height:t.height})});return t.observe(e),()=>t.disconnect()},Me=[],t[25]=je,t[26]=Me):(je=t[25],Me=t[26]),(0,B.useEffect)(je,Me);let Ne;t[27]!==F||t[28]!==k||t[29]!==a||t[30]!==se||t[31]!==ae||t[32]!==oe||t[33]!==re||t[34]!==ie||t[35]!==D||t[36]!==ce||t[37]!==T||t[38]!==j||t[39]!==A||t[40]!==M||t[41]!==N||t[42]!==R.height||t[43]!==R.width||t[44]!==E?(Ne=()=>{let e=le.current;if(!e||R.width===0||R.height===0)return;let t=new si,n=new Xo(75,R.width/R.height,.1,1e3);n.position.set(k.x,k.y,k.z),n.lookAt(0,0,0);let r=new Pu({alpha:!0,antialias:!0});r.setPixelRatio(Math.min(window.devicePixelRatio,ce)),r.setSize(R.width,R.height),r.setClearColor(0,0),e.appendChild(r.domElement);let i=document.documentElement.classList.contains(`dark`),o=(a??(i?Iu:Fu)).map($u),s,c,l,u=null,d=null,f=null,p=null,m=null,h=null,g=null,_=[],v=[],y=M,b=N;if(E===`wireframe`){let e=new so(A,j,y,b);e.setAttribute(`color`,new Bi(Ru(e.attributes.position.count,o),3));let t=new fa({vertexColors:!0,wireframe:!0,transparent:!0,opacity:U.current});s=new wa(e,t),f=e.attributes.position,u=f.array,c=e,l=t}else if(E===`grid`){let{geo:e,pos:t}=Vu(y,b,A,j,o,D),n=new Ia({vertexColors:!0,transparent:!0,opacity:U.current});s=new Ja(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`dots`){let{geo:e,pos:t}=Hu(y,b,A,j,o),n=Uu(re*2,U.current);s=new eo(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`dots-wave`){let{geo:e,pos:t}=Hu(y,b,A,j,o),n=Wu(ie*2,re*2,F,U.current);s=new eo(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`crosses`){let{geo:e,centers:t,pos:n}=Gu(y,b,A,j,o,ae),r=new Ia({vertexColors:!0,transparent:!0,opacity:U.current});s=new Ja(e,r),f=e.attributes.position,u=n,p=t,c=e,l=r}else if(E===`diagonal-left`||E===`diagonal-right`){let{geo:e,pos:t}=Ku(y,b,A,j,o,E===`diagonal-left`?`left`:`right`),n=new Ia({vertexColors:!0,transparent:!0,opacity:U.current});s=new Ja(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`zigzag`){let{geo:e,pos:t}=qu(y,b,A,j,o),n=new Ia({vertexColors:!0,transparent:!0,opacity:U.current});s=new Ja(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`hexagons`){let{geo:e,pos:t,hexCenters:n}=Ju(y,b,A,j,o),r=new Ia({vertexColors:!0,transparent:!0,opacity:U.current});s=new Ja(e,r),f=e.attributes.position,h=t,m=n,c=e,l=r}else if(E===`dashes`){let{geo:e,pos:t,basePos:n}=Yu(y,b,A,j,o,D,oe),r=new Ia({vertexColors:!0,transparent:!0,opacity:U.current});s=new Ja(e,r),f=e.attributes.position,u=t,d=n,c=e,l=r}else if(E===`contour`){let{geo:e,vtxGrid:t}=Xu(y,b,A,j,o,se),n=new Ia({vertexColors:!0,transparent:!0,opacity:U.current});s=new Ja(e,n),f=e.attributes.position,g=t,c=e,l=n}else{let{geo:e,pos:n}=Zu(y,b,A,j,o),r=new yo({vertexColors:!0,transparent:!0,opacity:U.current,side:2,shininess:60}),i=new $o(16777215,1.2);i.position.set(5,10,7);let a=new es(16777215,.4);t.add(i,a),v=[i,a],s=new wa(e,r),f=e.attributes.position,u=n,c=e,l=r}t.add(s);let x=()=>{n.aspect=e.clientWidth/e.clientHeight,n.updateProjectionMatrix(),r.setSize(e.clientWidth,e.clientHeight)},S=e=>{pe.current.x=e.clientX/window.innerWidth*2-1,pe.current.y=-(e.clientY/window.innerHeight)*2+1};window.addEventListener(`resize`,x),window.addEventListener(`mousemove`,S);let C=(e,t,n,r,i)=>{let a=y+1,c=0,l=r.array,u=i.array;for(let r of n){let n=Lu((r-(-F-1))/((F+1)*2),o);for(let i=0;i{if(e=2&&c+6<=l.length)for(let e=0;e<2;e++)l[c]=E[e][0],l[c+1]=E[e][1],l[c+2]=E[e][2],u[c]=n.r,u[c+1]=n.g,u[c+2]=n.b,c+=3}}r.needsUpdate=!0,i.needsUpdate=!0,s.geometry.setDrawRange(0,c/3)},w=E===`contour`?new Float32Array((y+1)*(b+1)):null,O,P=()=>{if(O=requestAnimationFrame(P),l.opacity!==void 0&&(l.opacity=U.current),l.uniforms?.uOpacity&&(l.uniforms.uOpacity.value=U.current),!he.current){let e=performance.now()*.001*me.current,t=ge.current,n=z.current,r=H.current,i=pe.current.x,a=pe.current.y;if(E===`crosses`&&p&&f&&u){let o=(y+1)*(b+1);for(let s=0;s{cancelAnimationFrame(O),window.removeEventListener(`resize`,x),window.removeEventListener(`mousemove`,S),v.forEach(e=>t.remove(e)),t.remove(s),c.dispose(),l.dispose(),_.forEach(ed),r.dispose(),e.contains(r.domElement)&&e.removeChild(r.domElement)}},t[27]=F,t[28]=k,t[29]=a,t[30]=se,t[31]=ae,t[32]=oe,t[33]=re,t[34]=ie,t[35]=D,t[36]=ce,t[37]=T,t[38]=j,t[39]=A,t[40]=M,t[41]=N,t[42]=R.height,t[43]=R.width,t[44]=E,t[45]=Ne):Ne=t[45];let Pe;t[46]!==k||t[47]!==a||t[48]!==se||t[49]!==ae||t[50]!==oe||t[51]!==re||t[52]!==ie||t[53]!==D||t[54]!==ce||t[55]!==T||t[56]!==j||t[57]!==A||t[58]!==M||t[59]!==N||t[60]!==R.height||t[61]!==R.width||t[62]!==E?(Pe=[R.width,R.height,E,a,D,k,A,j,M,N,re,ie,ae,oe,se,ce,T],t[46]=k,t[47]=a,t[48]=se,t[49]=ae,t[50]=oe,t[51]=re,t[52]=ie,t[53]=D,t[54]=ce,t[55]=T,t[56]=j,t[57]=A,t[58]=M,t[59]=N,t[60]=R.height,t[61]=R.width,t[62]=E,t[63]=Pe):Pe=t[63],(0,B.useEffect)(Ne,Pe);let Fe;t[64]===n?Fe=t[65]:(Fe=h(`pointer-events-none absolute inset-0`,n),t[64]=n,t[65]=Fe);let Ie;return t[66]===Fe?Ie=t[67]:(Ie=(0,V.jsx)(`div`,{ref:le,className:Fe,"aria-hidden":`true`}),t[66]=Fe,t[67]=Ie),Ie};function $u(e){return new Z(e)}function ed(e){return e.dispose()}var td=()=>{let e=(0,Qe.c)(15),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(i,{colors:`var(--primary)`,className:`absolute inset-0`}),n=(0,V.jsx)(i,{colors:`var(--primary)`,borderWidth:15,className:`absolute -inset-2 opacity-25 blur-xs`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsx)(`p`,{className:`font-mono text-xs tracking-wide text-balance text-primary md:text-sm`,children:`copy it, paste it, ship it`}),e[2]=r):r=e[2];let a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(i,{size:150,borderWidth:2,colors:[`var(--color-accent)`,`var(--color-primary)`]}),e[3]=a):a=e[3];let o;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,V.jsxs)(`div`,{className:`relative mx-auto inline-flex translate-y-2 justify-center rounded-full border border-border px-6 py-1`,children:[r,a,(0,V.jsx)(i,{size:150,borderWidth:4,className:`blur`,colors:[`var(--color-accent)`,`var(--color-primary)`]})]}),e[4]=o):o=e[4];let s,c;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,V.jsxs)(`h1`,{className:`flex gap-2 text-center text-[clamp(1rem,6vw,5rem)] font-black`,children:[(0,V.jsx)(`span`,{className:`inline-block tracking-tighter`,children:`Component`}),(0,V.jsx)(`span`,{className:`inline-block scale-150 px-2 text-center font-serif`,children:`&`}),(0,V.jsx)(`span`,{className:`inline-block tracking-tighter`,children:`Animations`})]}),c=(0,V.jsx)(`p`,{className:`mx-auto max-w-3xl text-center text-sm tracking-wide text-balance md:text-lg`,children:`We are a team of passionate designers and developers dedicated to creating beautiful and functional user interfaces.`}),e[5]=s,e[6]=c):(s=e[5],c=e[6]);let l;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=[`var(--primary)`,`var(--color-muted)`],e[7]=l):l=e[7];let u;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,V.jsx)(i,{size:150,colors:[`var(--primary), transparent`],borderWidth:3,className:`absolute -inset-1 blur-xs`}),e[8]=u):u=e[8];let d;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,V.jsx)(i,{size:150,colors:[`var(--primary), transparent`],borderWidth:2,className:`absolute -inset-0.5`}),e[9]=d):d=e[9];let f;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,V.jsxs)(it,{colors:l,className:`text-xs md:text-sm`,children:[u,d,(0,V.jsx)(i,{size:150,colors:[`var(--primary), transparent`],borderWidth:2,className:`absolute -inset-1.5 mix-blend-color-dodge blur-xs`}),(0,V.jsx)(re,{className:`group-hover:text-brand size-4`}),(0,V.jsx)(`span`,{children:`Premium`})]}),e[10]=f):f=e[10];let p;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=[`var(--secondary)`,`var(--color-muted)`],e[11]=p):p=e[11];let m;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,V.jsxs)(`div`,{className:`flex flex-col space-y-3 p-6`,children:[o,s,c,(0,V.jsxs)(`div`,{className:`group flex justify-center space-x-2`,children:[f,(0,V.jsxs)(it,{colors:p,className:`text-xs md:text-sm`,variant:`secondary`,children:[(0,V.jsx)(i,{colors:`var(--primary)`,size:150,borderWidth:3,className:`absolute -inset-1 blur-xs`}),(0,V.jsx)(i,{colors:`var(--primary)`,size:150,borderWidth:2,className:`absolute -inset-0.5`}),(0,V.jsx)(i,{colors:`var(--primary)`,size:150,borderWidth:2,className:`absolute -inset-1.5 mix-blend-color-dodge blur-xs`}),`Themes`]})]})]}),e[12]=m):m=e[12];let h;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(h={x:0,y:-20,z:5},e[13]=h):h=e[13];let g;return e[14]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,V.jsxs)(`section`,{className:`relative isolate my-4 grid min-h-90 place-items-center rounded-md border border-border md:min-h-120`,children:[t,n,m,(0,V.jsx)(Qu,{cameraPosition:h,style:`wireframe`,colors:[`#a1a1a1`,`#646464`],className:`mask-linear inset-0 -z-20 rounded-[inherit] mask-linear-from-10% mask-linear-to-50% opacity-20`})]}),e[14]=g):g=e[14],g};td.displayName=`Hero`;function nd(){let e=(0,Qe.c)(2),[t,n]=(0,B.useState)(rd),r,i;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=new MutationObserver(()=>{n({primary:L(`--primary`,`hex`)??`#e54545`,secondary:L(`--secondary`,`hex`)??`#0bdec4`})});return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`style`]}),()=>e.disconnect()},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,B.useEffect)(r,i),t}function rd(){return{primary:L(`--primary`,`hex`)??`#e54545`,secondary:L(`--secondary`,`hex`)??`#0bdec4`}}function id(e){let t=(0,Qe.c)(24),{analyser:n,isPlaying:r,style:i,primaryColor:a,secondaryColor:o}=e,s=(0,B.useRef)(null),c=(0,B.useRef)(null),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=[],t[0]=l):l=t[0];let u=(0,B.useRef)(l),d;t[1]!==a||t[2]!==o?(d=(e,t,n,r)=>{let i=t.length,s=n/i*2.5,c=0;for(let n=0;n{let i=t.length,s=n/i;e.lineWidth=3,e.strokeStyle=a||`#e54545`,e.shadowColor=a||`#e54545`,e.shadowBlur=10,e.beginPath();let c=0;for(let n=0;n{let i=n/2,s=r/2,c=Math.min(n,r)*.35,l=t.length;for(let n=0;n{let i=t.reduce(ad,0)/t.length;if(i>50)for(let e=0;e(t.x+=t.vx,t.y+=t.vy,t.vy+=.05,t.life-=.015,t.life<=0?!1:(e.beginPath(),e.arc(t.x,t.y,t.size*t.life,0,Math.PI*2),e.fillStyle=t.life>.5?a||`#e54545`:o||`#ff7b7b`,e.globalAlpha=t.life,e.fill(),e.globalAlpha=1,t.life>0)));let s=n/10;for(let n=0;n<10;n++){let i=t[Math.floor(n/10*t.length)]/255*r*.3;e.fillStyle=`${a||`#e54545`}88`,e.fillRect(n*s,r-i,s-2,i)}},t[10]=a,t[11]=o,t[12]=_):_=t[12];let v=_,y,b;t[13]!==n||t[14]!==f||t[15]!==g||t[16]!==v||t[17]!==m||t[18]!==r||t[19]!==a||t[20]!==i?(y=()=>{let e=s.current;if(!e)return;let t=e.getContext(`2d`);if(!t)return;let o=()=>{let n=e.getBoundingClientRect();e.width=n.width*window.devicePixelRatio,e.height=n.height*window.devicePixelRatio,t.scale(window.devicePixelRatio,window.devicePixelRatio)};o(),window.addEventListener(`resize`,o);let l=()=>{let o=e.getBoundingClientRect(),s=o.width,u=o.height;if(t.clearRect(0,0,s,u),n&&r){let e=n.frequencyBinCount,r=new Uint8Array(e);n.getByteFrequencyData(r);bb113:switch(i){case`bars`:f(t,r,s,u);break bb113;case`wave`:n.getByteTimeDomainData(r),m(t,r,s,u);break bb113;case`circular`:g(t,r,s,u);break bb113;case`particles`:v(t,r,s,u)}}else{let e=Date.now()/1e3,n=o.width/22;for(let r=0;r<22;r++){let i=(Math.sin(e*2+r*.3)+1)*10+5;t.fillStyle=`${a||`#e54545`}88`,t.fillRect(r*n,u-i,n-2,i)}}c.current=requestAnimationFrame(l)};return l(),()=>{window.removeEventListener(`resize`,o),c.current&&cancelAnimationFrame(c.current)}},b=[n,r,i,f,m,g,v,a],t[13]=n,t[14]=f,t[15]=g,t[16]=v,t[17]=m,t[18]=r,t[19]=a,t[20]=i,t[21]=y,t[22]=b):(y=t[21],b=t[22]),(0,B.useEffect)(y,b);let x;return t[23]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,V.jsx)(`canvas`,{ref:s,className:`h-full w-full`,style:{display:`block`}}),t[23]=x):x=t[23],x}function ad(e,t){return e+t}function od(e){let t=(0,Qe.c)(38),{isPlaying:n,onPlayPause:r,onPrevious:i,onNext:a,onShuffle:o,onRepeat:s,isShuffled:c,repeatMode:l,disabled:u}=e,d=u===void 0?!1:u,f=c?`text-primary`:`text-muted-foreground hover:text-foreground`,p;t[0]===f?p=t[1]:(p=h(`h-9 w-9 md:h-10 md:w-10`,f),t[0]=f,t[1]=p);let m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,V.jsx)(ue,{className:`h-4 w-4 md:h-5 md:w-5`}),t[2]=m):m=t[2];let g;t[3]!==d||t[4]!==o||t[5]!==p?(g=(0,V.jsx)(v,{variant:`ghost`,size:`icon`,onClick:o,disabled:d,className:p,"aria-label":`Shuffle`,children:m}),t[3]=d,t[4]=o,t[5]=p,t[6]=g):g=t[6];let _;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,V.jsx)(R,{className:`h-5 w-5 md:h-6 md:w-6`}),t[7]=_):_=t[7];let y;t[8]!==d||t[9]!==i?(y=(0,V.jsx)(v,{variant:`ghost`,size:`icon`,onClick:i,disabled:d,className:`h-10 w-10 text-foreground hover:text-primary md:h-12 md:w-12`,"aria-label":`Previous track`,children:_}),t[8]=d,t[9]=i,t[10]=y):y=t[10];let b;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=h(`h-14 w-14 rounded-full md:h-16 md:w-16`,`bg-primary text-primary-foreground hover:bg-primary/90`,`shadow-lg shadow-primary/25 transition-all`,`hover:scale-105 active:scale-95`),t[11]=b):b=t[11];let x=n?`Pause`:`Play`,S;t[12]===n?S=t[13]:(S=n?(0,V.jsx)(oe,{className:`h-6 w-6 md:h-7 md:w-7`}):(0,V.jsx)(se,{className:`ml-1 h-6 w-6 md:h-7 md:w-7`}),t[12]=n,t[13]=S);let C;t[14]!==d||t[15]!==r||t[16]!==S||t[17]!==x?(C=(0,V.jsx)(v,{onClick:r,disabled:d,className:b,"aria-label":x,children:S}),t[14]=d,t[15]=r,t[16]=S,t[17]=x,t[18]=C):C=t[18];let w;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,V.jsx)(de,{className:`h-5 w-5 md:h-6 md:w-6`}),t[19]=w):w=t[19];let T;t[20]!==d||t[21]!==a?(T=(0,V.jsx)(v,{variant:`ghost`,size:`icon`,onClick:a,disabled:d,className:`h-10 w-10 text-foreground hover:text-primary md:h-12 md:w-12`,"aria-label":`Next track`,children:w}),t[20]=d,t[21]=a,t[22]=T):T=t[22];let E=l===`off`?`text-muted-foreground hover:text-foreground`:`text-primary`,D;t[23]===E?D=t[24]:(D=h(`h-9 w-9 md:h-10 md:w-10`,E),t[23]=E,t[24]=D);let O;t[25]===l?O=t[26]:(O=l===`one`?(0,V.jsx)(ce,{className:`h-4 w-4 md:h-5 md:w-5`}):(0,V.jsx)(le,{className:`h-4 w-4 md:h-5 md:w-5`}),t[25]=l,t[26]=O);let k;t[27]!==d||t[28]!==s||t[29]!==D||t[30]!==O?(k=(0,V.jsx)(v,{variant:`ghost`,size:`icon`,onClick:s,disabled:d,className:D,"aria-label":`Repeat`,children:O}),t[27]=d,t[28]=s,t[29]=D,t[30]=O,t[31]=k):k=t[31];let A;return t[32]!==C||t[33]!==T||t[34]!==k||t[35]!==g||t[36]!==y?(A=(0,V.jsxs)(`div`,{className:`flex items-center justify-center gap-2 md:gap-4`,children:[g,y,C,T,k]}),t[32]=C,t[33]=T,t[34]=k,t[35]=g,t[36]=y,t[37]=A):A=t[37],A}var sd=[{id:`1`,title:`Cold Steel Sheets`,artist:`Iron & Oak`,album:`Forged`,duration:475,src:`/music/cold-steel-sheets.mp3`,coverUrl:`https://images.unsplash.com/photo-1614149162883-504ce4d13909?w=400&h=400&fit=crop`},{id:`2`,title:`Laughter at the Gale`,artist:`Storm Chaser`,album:`Braving the Wind`,duration:353,src:`/music/laughter-at-the-gale.mp3`,coverUrl:`https://images.unsplash.com/photo-1557672172-298e090bd0f1?w=400&h=400&fit=crop`},{id:`3`,title:`Roses in the Sink`,artist:`Violet Glass`,album:`Fading Petals`,duration:393,src:`/music/roses-in-the-sink.mp3`,coverUrl:`https://images.unsplash.com/photo-1518837695005-2083093ee35b?w=400&h=400&fit=crop`},{id:`4`,title:`Storm Walker's Oath`,artist:`Thunder Pass`,album:`The Reckoning`,duration:462,src:`/music/storm-walkers-oath.mp3`,coverUrl:`https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?w=400&h=400&fit=crop`},{id:`5`,title:`The Empty Chair`,artist:`Silent Hollow`,album:`Left Behind`,duration:259,src:`/music/the-empty-chair.mp3`,coverUrl:`https://images.unsplash.com/photo-1462331940025-496dfbfc7564?w=400&h=400&fit=crop`}],cd=[{id:`1`,name:`Chill Vibes`,tracks:[sd[0],sd[2],sd[4]],coverUrl:sd[0].coverUrl},{id:`2`,name:`Dark & Stormy`,tracks:[sd[1],sd[3]],coverUrl:sd[1].coverUrl},{id:`3`,name:`All Tracks`,tracks:sd,coverUrl:sd[3].coverUrl}],ld=e=>`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`;function ud(e){let t=(0,Qe.c)(47),{playlists:n,currentPlaylist:i,currentTrack:o,onSelectPlaylist:s,onSelectTrack:l,onCreatePlaylist:u,isOpen:d,onClose:f}=e,[p,m]=(0,B.useState)(!1),[g,_]=(0,B.useState)(``),[y,x]=(0,B.useState)(null),S;t[0]!==g||t[1]!==u?(S=()=>{g.trim()&&(u(g.trim()),_(``),m(!1))},t[0]=g,t[1]=u,t[2]=S):S=t[2];let C=S,w;t[3]===y?w=t[4]:(w=e=>{x(y===e?null:e)},t[3]=y,t[4]=w);let T=w,E;t[5]!==d||t[6]!==f?(E=d&&(0,V.jsx)(`div`,{className:`fixed inset-0 z-40 bg-background/80 backdrop-blur-sm lg:hidden`,onClick:f}),t[5]=d,t[6]=f,t[7]=E):E=t[7];let D=d?`translate-x-0`:`-translate-x-full lg:translate-x-0`,O;t[8]===D?O=t[9]:(O=h(`fixed top-0 left-0 z-50 h-full w-80 border-r border-border bg-card lg:relative`,`transform transition-transform duration-300 ease-in-out`,D),t[8]=D,t[9]=O);let k;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,V.jsx)(`h2`,{className:`text-lg font-semibold text-foreground`,children:`Playlists`}),t[10]=k):k=t[10];let A;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>m(!0),t[11]=A):A=t[11];let j;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,V.jsx)(v,{variant:`ghost`,size:`icon`,onClick:A,className:`text-muted-foreground hover:text-foreground`,"aria-label":`Create playlist`,children:(0,V.jsx)(r,{className:`h-5 w-5`})}),t[12]=j):j=t[12];let M;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,V.jsx)(c,{className:`h-5 w-5`}),t[13]=M):M=t[13];let N;t[14]===f?N=t[15]:(N=(0,V.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border p-4`,children:[k,(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[j,(0,V.jsx)(v,{variant:`ghost`,size:`icon`,onClick:f,className:`text-muted-foreground hover:text-foreground lg:hidden`,"aria-label":`Close sidebar`,children:M})]})]}),t[14]=f,t[15]=N);let P;t[16]!==C||t[17]!==p||t[18]!==g?(P=p&&(0,V.jsxs)(`div`,{className:`border-b border-border p-4`,children:[(0,V.jsx)(a,{type:`text`,placeholder:`Playlist name...`,value:g,onChange:e=>_(e.target.value),onKeyDown:e=>e.key===`Enter`&&C(),className:`mb-2`,autoFocus:!0}),(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsx)(v,{size:`sm`,onClick:C,className:`flex-1`,children:`Create`}),(0,V.jsx)(v,{size:`sm`,variant:`outline`,onClick:()=>{m(!1),_(``)},children:`Cancel`})]})]}),t[16]=C,t[17]=p,t[18]=g,t[19]=P):P=t[19];let F;if(t[20]!==i?.id||t[21]!==o?.id||t[22]!==y||t[23]!==s||t[24]!==l||t[25]!==n||t[26]!==T){let e;t[28]!==i?.id||t[29]!==o?.id||t[30]!==y||t[31]!==s||t[32]!==l||t[33]!==T?(e=e=>(0,V.jsxs)(`div`,{className:`border-b border-border/50`,children:[(0,V.jsxs)(`button`,{onClick:()=>{s(e),T(e.id)},className:h(`flex w-full items-center gap-3 p-4 transition-colors hover:bg-muted/50`,i?.id===e.id&&`bg-muted`),children:[(0,V.jsx)(`div`,{className:`relative h-12 w-12 flex-shrink-0 overflow-hidden rounded-lg bg-muted`,children:e.coverUrl?(0,V.jsx)(`img`,{src:e.coverUrl,alt:e.name,className:`absolute inset-0 object-cover`}):(0,V.jsx)(`div`,{className:`flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/50 to-primary/20`,children:(0,V.jsx)(ae,{className:`h-6 w-6 text-primary`})})}),(0,V.jsxs)(`div`,{className:`min-w-0 flex-1 text-left`,children:[(0,V.jsx)(`p`,{className:`truncate font-medium text-foreground`,children:e.name}),(0,V.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[e.tracks.length,` tracks`]})]}),(0,V.jsx)(b,{className:h(`h-5 w-5 text-muted-foreground transition-transform`,y===e.id&&`rotate-90`)})]}),y===e.id&&(0,V.jsx)(`div`,{className:`bg-muted/30`,children:e.tracks.map((t,n)=>(0,V.jsxs)(`button`,{onClick:()=>l(t,e),className:h(`flex w-full items-center gap-3 px-4 py-2 transition-colors hover:bg-muted/50`,o?.id===t.id&&`bg-primary/10`),children:[(0,V.jsx)(`span`,{className:`w-6 text-center text-xs text-muted-foreground`,children:o?.id===t.id?(0,V.jsx)(se,{className:`mx-auto h-3 w-3 fill-primary text-primary`}):n+1}),(0,V.jsxs)(`div`,{className:`min-w-0 flex-1 text-left`,children:[(0,V.jsx)(`p`,{className:h(`truncate text-sm`,o?.id===t.id?`text-primary`:`text-foreground`),children:t.title}),(0,V.jsx)(`p`,{className:`truncate text-xs text-muted-foreground`,children:t.artist})]}),(0,V.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:ld(t.duration)})]},t.id))})]},e.id),t[28]=i?.id,t[29]=o?.id,t[30]=y,t[31]=s,t[32]=l,t[33]=T,t[34]=e):e=t[34],F=n.map(e),t[20]=i?.id,t[21]=o?.id,t[22]=y,t[23]=s,t[24]=l,t[25]=n,t[26]=T,t[27]=F}else F=t[27];let I;t[35]===F?I=t[36]:(I=(0,V.jsx)(`div`,{className:`flex-1 overflow-y-auto`,children:F}),t[35]=F,t[36]=I);let ee;t[37]!==N||t[38]!==P||t[39]!==I?(ee=(0,V.jsxs)(`div`,{className:`flex h-full flex-col`,children:[N,P,I]}),t[37]=N,t[38]=P,t[39]=I,t[40]=ee):ee=t[40];let L;t[41]!==ee||t[42]!==O?(L=(0,V.jsx)(`aside`,{className:O,children:ee}),t[41]=ee,t[42]=O,t[43]=L):L=t[43];let te;return t[44]!==L||t[45]!==E?(te=(0,V.jsxs)(V.Fragment,{children:[E,L]}),t[44]=L,t[45]=E,t[46]=te):te=t[46],te}function dd(e){let t=(0,Qe.c)(52),{currentTime:n,duration:r,onSeek:i}=e,a=(0,B.useRef)(null),[o,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(null),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=e=>{if(!a.current)return 0;let t=a.current.getBoundingClientRect(),n=(e-t.left)/t.width;return Math.max(0,Math.min(1,n))},t[0]=u):u=t[0];let d=u,f;t[1]!==r||t[2]!==i?(f=e=>{s(!0),i(d(e.clientX)*r)},t[1]=r,t[2]=i,t[3]=f):f=t[3];let p=f,m;t[4]!==r||t[5]!==o||t[6]!==i?(m=e=>{let t=d(e.clientX);l(t),o&&i(t*r)},t[4]=r,t[5]=o,t[6]=i,t[7]=m):m=t[7];let h=m,g;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{s(!1)},t[8]=g):g=t[8];let _=g,v;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{l(null),s(!1)},t[9]=v):v=t[9];let y=v,b;t[10]!==r||t[11]!==i?(b=e=>{let t=e.touches[0];i(d(t.clientX)*r),s(!0)},t[10]=r,t[11]=i,t[12]=b):b=t[12];let x=b,S;t[13]!==r||t[14]!==o||t[15]!==i?(S=e=>{if(!o)return;let t=e.touches[0];i(d(t.clientX)*r)},t[13]=r,t[14]=o,t[15]=i,t[16]=S):S=t[16];let C=S,w;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{s(!1)},t[17]=w):w=t[17];let T=w,E=r>0?n/r*100:0,D=`${E}%`,O;t[18]===D?O=t[19]:(O=(0,V.jsx)(`div`,{className:`absolute top-0 left-0 h-full rounded-full bg-primary transition-all`,style:{width:D}}),t[18]=D,t[19]=O);let k;t[20]===c?k=t[21]:(k=c!==null&&(0,V.jsx)(`div`,{className:`absolute top-0 h-full rounded-full bg-foreground/20`,style:{width:`${c*100}%`}}),t[20]=c,t[21]=k);let A=`calc(${E}% - 8px)`,j;t[22]===A?j=t[23]:(j=(0,V.jsx)(`div`,{className:`absolute top-1/2 h-4 w-4 -translate-y-1/2 rounded-full bg-primary opacity-0 shadow-lg transition-opacity group-hover:opacity-100`,style:{left:A}}),t[22]=A,t[23]=j);let M;t[24]!==r||t[25]!==c?(M=c!==null&&(0,V.jsx)(`div`,{className:`absolute -top-8 rounded bg-card px-2 py-1 text-xs text-foreground shadow-lg`,style:{left:`calc(${c*100}% - 20px)`},children:ld(c*r)}),t[24]=r,t[25]=c,t[26]=M):M=t[26];let N;t[27]!==n||t[28]!==r||t[29]!==p||t[30]!==h||t[31]!==C||t[32]!==x||t[33]!==O||t[34]!==k||t[35]!==j||t[36]!==M?(N=(0,V.jsxs)(`div`,{ref:a,className:`group relative h-2 cursor-pointer rounded-full bg-muted`,onMouseDown:p,onMouseMove:h,onMouseUp:_,onMouseLeave:y,onTouchStart:x,onTouchMove:C,onTouchEnd:T,role:`slider`,"aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":n,"aria-label":`Seek`,tabIndex:0,children:[O,k,j,M]}),t[27]=n,t[28]=r,t[29]=p,t[30]=h,t[31]=C,t[32]=x,t[33]=O,t[34]=k,t[35]=j,t[36]=M,t[37]=N):N=t[37];let P;t[38]===n?P=t[39]:(P=ld(n),t[38]=n,t[39]=P);let F;t[40]===P?F=t[41]:(F=(0,V.jsx)(`span`,{children:P}),t[40]=P,t[41]=F);let I;t[42]===r?I=t[43]:(I=ld(r),t[42]=r,t[43]=I);let ee;t[44]===I?ee=t[45]:(ee=(0,V.jsx)(`span`,{children:I}),t[44]=I,t[45]=ee);let L;t[46]!==F||t[47]!==ee?(L=(0,V.jsxs)(`div`,{className:`flex justify-between text-xs text-muted-foreground`,children:[F,ee]}),t[46]=F,t[47]=ee,t[48]=L):L=t[48];let te;return t[49]!==N||t[50]!==L?(te=(0,V.jsxs)(`div`,{className:`w-full space-y-1`,children:[N,L]}),t[49]=N,t[50]=L,t[51]=te):te=t[51],te}function fd(t){let n=(0,Qe.c)(28),{track:r,isFavorite:i,onToggleFavorite:a}=t;if(!r){let e;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,V.jsx)(`div`,{className:`h-16 w-16 animate-pulse rounded-lg bg-muted`}),n[0]=e):e=n[0];let t;return n[1]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsxs)(`div`,{className:`flex items-center gap-4`,children:[e,(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`}),(0,V.jsx)(`div`,{className:`h-3 w-24 animate-pulse rounded bg-muted`})]})]}),n[1]=t):t=n[1],t}let o;n[2]!==r.album||n[3]!==r.coverUrl||n[4]!==r.title?(o=(0,V.jsx)(`div`,{className:`group relative h-16 w-16 overflow-hidden rounded-lg shadow-lg md:h-20 md:w-20`,children:r.coverUrl?(0,V.jsx)(`img`,{src:r.coverUrl,alt:`${r.album} cover`,className:`object-cover transition-transform group-hover:scale-110`,crossOrigin:`anonymous`}):(0,V.jsx)(`div`,{className:`flex h-full w-full items-center justify-center bg-gradient-to-br from-primary to-primary/50`,children:(0,V.jsx)(`span`,{className:`text-2xl font-bold text-primary-foreground`,children:r.title[0]})})}),n[2]=r.album,n[3]=r.coverUrl,n[4]=r.title,n[5]=o):o=n[5];let s;n[6]===r.title?s=n[7]:(s=(0,V.jsx)(`h3`,{className:`truncate text-sm font-semibold text-foreground md:text-base`,children:r.title}),n[6]=r.title,n[7]=s);let c;n[8]===r.artist?c=n[9]:(c=(0,V.jsx)(`p`,{className:`truncate text-xs text-muted-foreground md:text-sm`,children:r.artist}),n[8]=r.artist,n[9]=c);let l;n[10]===r.album?l=n[11]:(l=(0,V.jsx)(`p`,{className:`truncate text-xs text-muted-foreground/70`,children:r.album}),n[10]=r.album,n[11]=l);let u;n[12]!==s||n[13]!==c||n[14]!==l?(u=(0,V.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[s,c,l]}),n[12]=s,n[13]=c,n[14]=l,n[15]=u):u=n[15];let d=i?`Remove from favorites`:`Add to favorites`,f=i?`scale-110 fill-primary text-primary`:`text-muted-foreground hover:text-primary`,p;n[16]===f?p=n[17]:(p=h(`h-5 w-5 transition-all`,f),n[16]=f,n[17]=p);let m;n[18]===p?m=n[19]:(m=(0,V.jsx)(e,{className:p}),n[18]=p,n[19]=m);let g;n[20]!==a||n[21]!==d||n[22]!==m?(g=(0,V.jsx)(`button`,{onClick:a,className:`rounded-full p-2 transition-colors hover:bg-muted`,"aria-label":d,children:m}),n[20]=a,n[21]=d,n[22]=m,n[23]=g):g=n[23];let _;return n[24]!==o||n[25]!==g||n[26]!==u?(_=(0,V.jsxs)(`div`,{className:`flex items-center gap-4`,children:[o,u,g]}),n[24]=o,n[25]=g,n[26]=u,n[27]=_):_=n[27],_}function pd(e){let t=(0,Qe.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Je,{"data-slot":`popover`,...n}),t[2]=n,t[3]=r),r}function md(e){let t=(0,Qe.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,V.jsx)(Ye,{"data-slot":`popover-trigger`,...n}),t[2]=n,t[3]=r),r}function hd(e){let t=(0,Qe.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,align:i,sideOffset:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`center`:i,s=a===void 0?4:a,c;t[5]===n?c=t[6]:(c=h(`z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,n),t[5]=n,t[6]=c);let l;return t[7]!==o||t[8]!==r||t[9]!==s||t[10]!==c?(l=(0,V.jsx)(Xe,{children:(0,V.jsx)(Ze,{"data-slot":`popover-content`,align:o,sideOffset:s,className:c,...r})}),t[7]=o,t[8]=r,t[9]=s,t[10]=c,t[11]=l):l=t[11],l}var gd=[{style:`bars`,label:`Bars`,icon:(0,V.jsx)(te,{className:`size-4`})},{style:`wave`,label:`Wave`,icon:(0,V.jsx)(z,{className:`size-4`})},{style:`circular`,label:`Circular`,icon:(0,V.jsx)(ne,{className:`size-4`})},{style:`particles`,label:`Particles`,icon:(0,V.jsx)(fe,{className:`size-4`})}];function _d(e){let t=(0,Qe.c)(7),{currentStyle:n,onStyleChange:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,V.jsx)(md,{asChild:!0,children:(0,V.jsx)(v,{variant:`ghost`,size:`icon`,className:`size-9 text-muted-foreground hover:text-foreground`,"aria-label":`Visualizer settings`,children:(0,V.jsx)(g,{className:`size-5`})})}),t[0]=i):i=t[0];let a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,V.jsx)(`h4`,{className:`text-sm font-medium text-foreground`,children:`Visualizer Style`}),t[1]=a):a=t[1];let o;t[2]!==n||t[3]!==r?(o=gd.map(e=>(0,V.jsxs)(v,{variant:`outline`,size:`sm`,onClick:()=>r(e.style),className:h(`justify-start gap-2`,n===e.style&&`border-primary bg-primary text-primary-foreground hover:bg-primary/90 hover:text-primary-foreground`),children:[e.icon,e.label]},e.style)),t[2]=n,t[3]=r,t[4]=o):o=t[4];let s;return t[5]===o?s=t[6]:(s=(0,V.jsxs)(pd,{children:[i,(0,V.jsx)(hd,{className:`w-64`,align:`end`,children:(0,V.jsxs)(`div`,{className:`space-y-2`,children:[a,(0,V.jsx)(`div`,{className:`grid grid-cols-2 gap-2`,children:o})]})})]}),t[5]=o,t[6]=s),s}function vd(e){let t=(0,Qe.c)(26),{volume:n,onVolumeChange:r}=e,[i,a]=(0,B.useState)(n),[o,s]=(0,B.useState)(!1),c;t[0]!==r||t[1]!==i||t[2]!==n?(c=()=>{n>0?(a(n),r(0)):r(i||.7)},t[0]=r,t[1]=i,t[2]=n,t[3]=c):c=t[3];let l=c,u=n===0?he:n<.5?pe:me,d,f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>s(!0),f=()=>s(!1),t[4]=d,t[5]=f):(d=t[4],f=t[5]);let p=n===0?`Unmute`:`Mute`,m;t[6]===u?m=t[7]:(m=(0,V.jsx)(u,{className:`h-5 w-5`}),t[6]=u,t[7]=m);let h;t[8]!==p||t[9]!==m||t[10]!==l?(h=(0,V.jsx)(v,{variant:`ghost`,size:`icon`,onClick:l,className:`h-9 w-9 text-muted-foreground hover:text-foreground`,"aria-label":p,children:m}),t[8]=p,t[9]=m,t[10]=l,t[11]=h):h=t[11];let g=`overflow-hidden transition-all duration-200 ${o?`w-24 opacity-100`:`w-0 opacity-0 md:w-24 md:opacity-100`} `,_;t[12]===r?_=t[13]:(_=e=>r(parseFloat(e.target.value)),t[12]=r,t[13]=_);let y=`linear-gradient(to right, var(--primary) ${n*100}%, var(--muted) ${n*100}%)`,b;t[14]===y?b=t[15]:(b={background:y},t[14]=y,t[15]=b);let x;t[16]!==b||t[17]!==_||t[18]!==n?(x=(0,V.jsx)(`input`,{type:`range`,min:0,max:1,step:.01,value:n,onChange:_,className:`h-2 w-full cursor-pointer appearance-none rounded-lg bg-muted accent-primary`,style:b,"aria-label":`Volume`}),t[16]=b,t[17]=_,t[18]=n,t[19]=x):x=t[19];let S;t[20]!==x||t[21]!==g?(S=(0,V.jsx)(`div`,{className:g,children:x}),t[20]=x,t[21]=g,t[22]=S):S=t[22];let C;return t[23]!==S||t[24]!==h?(C=(0,V.jsxs)(`div`,{className:`group flex items-center gap-2`,onMouseEnter:d,onMouseLeave:f,children:[h,S]}),t[23]=S,t[24]=h,t[25]=C):C=t[25],C}function yd(){let e=(0,B.useRef)(null),n=(0,B.useRef)(null),r=(0,B.useRef)(null),i=(0,B.useRef)(null),[a,o]=(0,B.useState)(!1),[s,c]=(0,B.useState)(0),[l,u]=(0,B.useState)(0),[d,f]=(0,B.useState)(.7),[p,m]=(0,B.useState)(!1),[h,g]=(0,B.useState)(`off`),[_,y]=(0,B.useState)(cd),[b,x]=(0,B.useState)(cd[2]),[S,C]=(0,B.useState)(0),[w,T]=(0,B.useState)(new Set),[E,D]=(0,B.useState)(!1),[O,k]=(0,B.useState)(`bars`),[,A]=(0,B.useState)(!1),[j,M]=(0,B.useState)(null),N=(0,B.useMemo)(()=>{if(!b)return[];let e=Array.from({length:b.tracks.length},(e,t)=>t);if(p)for(let t=e.length-1;t>0;t--){let n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e},[b,p]),P=b?.tracks[p?N[S]||0:S]||null,{primary:F,secondary:I}=nd(),ee=(0,B.useCallback)(()=>{if(!(!e.current||n.current))try{let t=new(window.AudioContext||window.webkitAudioContext),a=t.createAnalyser();a.fftSize=256,a.smoothingTimeConstant=.8;let o=t.createMediaElementSource(e.current);o.connect(a),a.connect(t.destination),n.current=t,r.current=a,i.current=o,M(a)}catch(e){console.log(`[v0] Error initializing audio context:`,e)}},[]),L=(0,B.useCallback)(()=>{b&&(S{e.current&&(e.current.currentTime>3?e.current.currentTime=0:S>0&&C(S-1))};(0,B.useEffect)(()=>{let t=e.current;if(!t)return;let n=()=>c(t.currentTime),r=()=>u(t.duration||0),i=()=>{h===`one`?(t.currentTime=0,t.play()):L()},a=()=>A(!0);return t.addEventListener(`timeupdate`,n),t.addEventListener(`durationchange`,r),t.addEventListener(`ended`,i),t.addEventListener(`canplay`,a),()=>{t.removeEventListener(`timeupdate`,n),t.removeEventListener(`durationchange`,r),t.removeEventListener(`ended`,i),t.removeEventListener(`canplay`,a)}},[h,L]),(0,B.useEffect)(()=>{e.current&&(e.current.volume=d)},[d]);let ne=async()=>{if(!(!e.current||!P)){if(n.current||ee(),n.current?.state===`suspended`&&await n.current.resume(),a)e.current.pause();else try{await e.current.play()}catch(e){console.log(`[v0] Playback error:`,e)}o(!a)}},re=t=>{e.current&&(e.current.currentTime=t)},ae=()=>m(!p),oe=()=>{let e=[`off`,`all`,`one`];g(e[(e.indexOf(h)+1)%e.length])},se=()=>{if(!P)return;let e=new Set(w);e.has(P.id)?e.delete(P.id):e.add(P.id),T(e)},ce=e=>{x(e),C(0),o(!1)},le=(e,t)=>{b?.id!==t.id&&x(t);let n=t.tracks.findIndex(t=>t.id===e.id);C(n>=0?n:0),o(!0)},ue=e=>{let t={id:Date.now().toString(),name:e,tracks:[]};y([..._,t])};(0,B.useEffect)(()=>{e.current&&a&&P&&(e.current.load(),n.current||ee(),(async()=>{if(n.current?.state===`suspended`)try{await n.current.resume()}catch(e){console.log(`[v0] Resume failed:`,e)}try{await e.current?.play()}catch(e){console.error(e)}})())},[P,a,ee]);let R=a?j:null;return(0,V.jsxs)(`div`,{className:`flex h-screen bg-background`,children:[(0,V.jsx)(`audio`,{ref:e,src:P?.src,preload:`metadata`}),(0,V.jsx)(ud,{playlists:_,currentPlaylist:b,currentTrack:P,onSelectPlaylist:ce,onSelectTrack:le,onCreatePlaylist:ue,isOpen:E,onClose:()=>D(!1)}),(0,V.jsxs)(`main`,{className:`flex flex-1 flex-col overflow-hidden`,children:[(0,V.jsxs)(`header`,{className:`flex items-center justify-between border-b border-border p-4`,children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,V.jsx)(v,{variant:`ghost`,size:`icon`,onClick:()=>D(!0),className:`text-muted-foreground hover:text-foreground lg:hidden`,"aria-label":`Open playlist`,children:(0,V.jsx)(t,{className:`h-5 w-5`})}),(0,V.jsxs)(`h1`,{className:`text-xl font-bold text-foreground`,children:[`Sonic`,(0,V.jsx)(`span`,{className:`text-primary`,children:`Wave`})]})]}),(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(_d,{currentStyle:O,onStyleChange:k}),(0,V.jsx)(v,{variant:`ghost`,size:`icon`,onClick:()=>D(!E),className:`hidden text-muted-foreground hover:text-foreground lg:flex`,"aria-label":`Toggle playlist`,children:(0,V.jsx)(ie,{className:`h-5 w-5`})})]})]}),(0,V.jsxs)(`div`,{className:`relative flex-1 overflow-hidden`,children:[P?.coverUrl&&(0,V.jsxs)(`div`,{className:`absolute inset-0`,children:[(0,V.jsx)(`img`,{src:P.coverUrl,alt:``,className:`absolute inset-0 scale-110 object-cover opacity-30 blur-3xl`}),(0,V.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-background via-background/80 to-background/40`})]}),(0,V.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center p-8`,children:(0,V.jsx)(`div`,{className:`h-full max-h-96 w-full max-w-4xl`,children:(0,V.jsx)(id,{analyser:R,isPlaying:a,style:O,primaryColor:F,secondaryColor:I})})}),P?.coverUrl&&(0,V.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,V.jsxs)(`div`,{className:`relative h-32 w-32 overflow-hidden rounded-2xl shadow-2xl shadow-primary/20 md:h-48 md:w-48 lg:h-56 lg:w-56`,children:[(0,V.jsx)(`img`,{src:P.coverUrl,alt:`${P.album} cover`,className:`absolute inset-0 object-cover`}),(0,V.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-background/60 to-transparent`})]})})]}),(0,V.jsx)(`div`,{className:`border-t border-border bg-card/80 backdrop-blur-lg`,children:(0,V.jsxs)(`div`,{className:`mx-auto max-w-4xl space-y-4 p-4 md:p-6`,children:[(0,V.jsx)(fd,{track:P,isFavorite:P?w.has(P.id):!1,onToggleFavorite:se}),(0,V.jsx)(dd,{currentTime:s,duration:l,onSeek:re}),(0,V.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,V.jsx)(`div`,{className:`hidden flex-1 md:block`,children:(0,V.jsx)(vd,{volume:d,onVolumeChange:f})}),(0,V.jsx)(od,{isPlaying:a,onPlayPause:ne,onPrevious:te,onNext:L,onShuffle:ae,onRepeat:oe,isShuffled:p,repeatMode:h,disabled:!P}),(0,V.jsx)(`div`,{className:`flex flex-1 justify-end md:hidden`,children:(0,V.jsx)(vd,{volume:d,onVolumeChange:f})}),(0,V.jsx)(`div`,{className:`hidden flex-1 md:block`})]})]})})]})]})}function bd(){let e=(0,Qe.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,V.jsx)(S,{title:`Home`,children:(0,V.jsx)(`meta`,{name:`description`,content:`my components library`})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,V.jsx)(td,{}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,V.jsxs)(`div`,{className:`relative`,children:[t,(0,V.jsxs)(ee,{as:`section`,children:[n,(0,V.jsx)(`div`,{className:`my-6 grid grid-cols-1`,children:(0,V.jsx)(yd,{})})]})]}),e[2]=r):r=e[2],r}bd.layout=n,bd.displayName=`home`;export{bd as default}; \ No newline at end of file diff --git a/public/build/assets/home-C3JgkfjT.js b/public/build/assets/home-C3JgkfjT.js new file mode 100644 index 0000000..15b532d --- /dev/null +++ b/public/build/assets/home-C3JgkfjT.js @@ -0,0 +1,4211 @@ +import{t as e}from"./heart-BDAPM7f6.js";import{c as t,t as n}from"./main-layout-qej9zSi0.js";import{t as r}from"./plus-D1KRmSaN.js";import{i,n as a,r as o,t as s}from"./popover-B2UUPq8p.js";import{B as c,G as l,H as u,K as d,Q as f,U as p,V as m,W as h,Wt as g,Yt as _,ln as v,q as y,qt as b,rn as x}from"./app-D7MKN1zp.js";import{l as S}from"./glow-stack-BaNii-nE.js";import{t as C}from"./glow-radial-CIe4ekoG.js";import{r as w}from"./color-utils-DTvyGxAC.js";var T=l(`ChartColumn`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),E=l(`Circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),D=l(`Crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),O=l(`ListMusic`,[[`path`,{d:`M21 15V6`,key:`h1cx4g`}],[`path`,{d:`M18.5 18a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,key:`8saifv`}],[`path`,{d:`M12 12H3`,key:`18klou`}],[`path`,{d:`M16 6H3`,key:`1wxfjs`}],[`path`,{d:`M12 18H3`,key:`11ftsu`}]]),k=l(`Music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),A=l(`Pause`,[[`rect`,{x:`14`,y:`4`,width:`4`,height:`16`,rx:`1`,key:`zuxfzm`}],[`rect`,{x:`6`,y:`4`,width:`4`,height:`16`,rx:`1`,key:`1okwgv`}]]),j=l(`Play`,[[`polygon`,{points:`6 3 20 12 6 21 6 3`,key:`1oa8hb`}]]),M=l(`Repeat1`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}],[`path`,{d:`M11 10h1v4`,key:`70cz1p`}]]),N=l(`Repeat`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]),P=l(`Shuffle`,[[`path`,{d:`m18 14 4 4-4 4`,key:`10pe0f`}],[`path`,{d:`m18 2 4 4-4 4`,key:`pucp1d`}],[`path`,{d:`M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22`,key:`1ailkh`}],[`path`,{d:`M2 6h1.972a4 4 0 0 1 3.6 2.2`,key:`km57vx`}],[`path`,{d:`M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45`,key:`os18l9`}]]),F=l(`SkipBack`,[[`polygon`,{points:`19 20 9 12 19 4 19 20`,key:`o2sva`}],[`line`,{x1:`5`,x2:`5`,y1:`19`,y2:`5`,key:`1ocqjk`}]]),I=l(`SkipForward`,[[`polygon`,{points:`5 4 15 12 5 20 5 4`,key:`16p6eg`}],[`line`,{x1:`19`,x2:`19`,y1:`5`,y2:`19`,key:`futhcm`}]]),ee=l(`Volume1`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}]]),L=l(`Volume2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),te=l(`VolumeX`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`line`,{x1:`22`,x2:`16`,y1:`9`,y2:`15`,key:`1ewh16`}],[`line`,{x1:`16`,x2:`22`,y1:`9`,y2:`15`,key:`5ykzw1`}]]),R=l(`Waves`,[[`path`,{d:`M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`knzxuh`}],[`path`,{d:`M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`2jd2cc`}],[`path`,{d:`M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`rd2r6e`}]]),ne=b(),z=v(x(),1),B=g(),re=d(`relative isolate inline-flex items-center justify-center gap-2 overflow-visible rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40`,outline:`border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}}),ie=20,ae=`button-particle-styles-v2`;function oe(e){if(typeof document>`u`)return;let t=document.getElementById(ae),n=``,r=0;if(t){if(n=t.textContent||``,r=parseInt(t.dataset.maxIndex||`0`,10),r>=e)return}else t=document.createElement(`style`),t.id=ae;t.dataset.maxIndex=String(e);let i=n;i||=` + .bp-particle { + position: absolute; + border-radius: 50%; + pointer-events: none; + z-index: 99999; + will-change: transform, opacity; + } + `;for(let t=r+1;t<=e;t++)i+=` + @keyframes particle-burst-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } + } + .bp-particle[data-particle="burst"][data-idx="${t}"] { + animation: particle-burst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + } + + @keyframes sparkle-burst-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(180deg) scale(0.3); opacity: 0; } + } + .bp-particle[data-particle="sparkle"][data-idx="${t}"] { + animation: sparkle-burst-${t} var(--pdur) cubic-bezier(0.2, 0.8, 0.2, 1) forwards; + } + + @keyframes confetti-spray-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(360deg) scale(0.5); opacity: 0; } + } + .bp-particle[data-particle="confetti"][data-idx="${t}"] { + animation: confetti-spray-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + } + + @keyframes vburst-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } + } + .bp-particle[data-particle="vburst"][data-idx="${t}"] { + animation: vburst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + } + + @keyframes hburst-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) scale(0); opacity: 0; } + } + .bp-particle[data-particle="hburst"][data-idx="${t}"] { + animation: hburst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + } + + @keyframes spiral-burst-${t} { + 0% { transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); opacity: 1; } + 60% { opacity: 0.9; } + 100% { transform: translate(-50%, -50%) translate(var(--pdx), var(--pdy)) rotate(720deg) scale(0); opacity: 0; } + } + .bp-particle[data-particle="spiral"][data-idx="${t}"] { + animation: spiral-burst-${t} var(--pdur) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + } + `;t.textContent=i,document.head.appendChild(t)}oe(ie);var se=[`#ff0083`,`#ff6b6b`,`#ffd93d`,`#6bcb77`,`#4d96ff`,`#c77dff`,`#ff9f1c`,`#00f5d4`];function ce({className:e,variant:t,size:n,particle:r=`burst`,particles:i=ie,colors:a=se,children:o,asChild:s=!1,...c}){let l=s?y:`button`,u=(0,z.useRef)(null);(0,z.useEffect)(()=>{oe(i)},[i]);let d=(e,t,n,i)=>{if(!e)return;let o=document.createElement(`div`);o.classList.add(`bp-particle`),o.dataset.idx=String(i),o.dataset.particle=r;let s=a[Math.floor(Math.random()*a.length)],c=i%2==1;switch(r){case`burst`:{let r=Math.random()*2*Math.PI,i=70+Math.random()*90,a=14+Math.random()*14;o.style.width=`${a}px`,o.style.height=`${a}px`,c?(o.style.backgroundColor=`transparent`,o.style.border=`3px solid ${s}`):(o.style.backgroundColor=s,o.style.border=`none`);let l=550+Math.random()*400;o.style.setProperty(`--pdx`,`${Math.cos(r)*i}px`),o.style.setProperty(`--pdy`,`${Math.sin(r)*i}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-a/2}px`,o.style.top=`${n-a/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`sparkle`:{let r=(Math.random()-.5)*80,i=-(60+Math.random()*100),a=8+Math.random()*12;o.style.width=`${a}px`,o.style.height=`${a}px`,c?(o.style.backgroundColor=`transparent`,o.style.border=`2px solid ${s}`):(o.style.backgroundColor=s,o.style.border=`none`);let l=600+Math.random()*400;o.style.setProperty(`--pdx`,`${r}px`),o.style.setProperty(`--pdy`,`${i}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-a/2}px`,o.style.top=`${n-a/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`confetti`:{let r=(Math.random()-.5)*Math.PI*.8,i=-Math.PI/2+r,a=80+Math.random()*120,c=Math.cos(i)*a,l=Math.sin(i)*a-40,u=10+Math.random()*8;o.style.width=`${u}px`,o.style.height=`${u*.5}px`,o.style.borderRadius=`2px`,o.style.backgroundColor=s,o.style.border=`none`;let d=700+Math.random()*400;o.style.setProperty(`--pdx`,`${c}px`),o.style.setProperty(`--pdy`,`${l}px`),o.style.setProperty(`--pdur`,`${d}ms`),o.style.left=`${t-u/2}px`,o.style.top=`${n-u/4}px`,e.appendChild(o),setTimeout(()=>o.remove(),d+50);break}case`vburst`:{let r=i%2==0,a=80+Math.random()*100,c=12+Math.random()*12;o.style.width=`${c}px`,o.style.height=`${c}px`,o.style.backgroundColor=s,o.style.border=`none`;let l=550+Math.random()*400;o.style.setProperty(`--pdx`,`${(Math.random()-.5)*20}px`),o.style.setProperty(`--pdy`,`${r?-a:a}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-c/2}px`,o.style.top=`${n-c/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`hburst`:{let r=i%2==0,a=80+Math.random()*100,c=12+Math.random()*12;o.style.width=`${c}px`,o.style.height=`${c}px`,o.style.backgroundColor=s,o.style.border=`none`;let l=550+Math.random()*400;o.style.setProperty(`--pdx`,`${r?a:-a}px`),o.style.setProperty(`--pdy`,`${(Math.random()-.5)*40}px`),o.style.setProperty(`--pdur`,`${l}ms`),o.style.left=`${t-c/2}px`,o.style.top=`${n-c/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),l+50);break}case`spiral`:{let r=Math.random()*2*Math.PI,i=60+Math.random()*100,a=8+Math.random()*8;o.style.width=`${a}px`,o.style.height=`${a}px`,o.style.backgroundColor=s,o.style.border=`none`;let c=600+Math.random()*400;o.style.setProperty(`--pdx`,`${Math.cos(r)*i}px`),o.style.setProperty(`--pdy`,`${Math.sin(r)*i}px`),o.style.setProperty(`--pdur`,`${c}ms`),o.style.left=`${t-a/2}px`,o.style.top=`${n-a/2}px`,e.appendChild(o),setTimeout(()=>o.remove(),c+50);break}}},p=e=>{if(!u.current||(c.onClick?.(e),e.defaultPrevented))return;let t=u.current.offsetWidth/2,n=u.current.offsetHeight/2,r=u.current;for(let e=1;e<=i;e++)setTimeout(()=>d(r,t,n,e),e*12)};return(0,B.jsx)(l,{ref:u,"data-slot":`button`,"data-particle":r,className:f(re({variant:t,size:n,className:e})),...c,onClick:p,children:o})}var le=1e3,ue=1001,de=1002,fe=1003,pe=1004,V=1005,me=1006,he=1007,ge=1008,_e=1009,ve=1010,H=1011,ye=1012,be=1013,xe=1014,U=1015,Se=1016,Ce=1017,we=1018,Te=1020,W=35902,Ee=35899,De=1021,Oe=1022,ke=1023,Ae=1026,je=1027,Me=1028,Ne=1029,Pe=1030,Fe=1031,Ie=1033,Le=33776,Re=33777,ze=33778,Be=33779,Ve=35840,He=35841,Ue=35842,We=35843,Ge=36196,Ke=37492,qe=37496,Je=37488,Ye=37489,Xe=37490,Ze=37491,Qe=37808,$e=37809,et=37810,tt=37811,nt=37812,rt=37813,it=37814,at=37815,ot=37816,st=37817,ct=37818,lt=37819,ut=37820,dt=37821,ft=36492,pt=36494,mt=36495,ht=36283,gt=36284,_t=36285,vt=36286,yt=2300,bt=2301,xt=2302,St=2303,Ct=2400,wt=2401,Tt=2402,Et=3200,Dt=`srgb`,Ot=`srgb-linear`,kt=`linear`,At=`srgb`,jt=7680,Mt=35044,Nt=35048,Pt=2e3;function Ft(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function It(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Lt(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function Rt(){let e=Lt(`canvas`);return e.style.display=`block`,e}var zt={},Bt=null;function Vt(...e){let t=`THREE.`+e.shift();Bt?Bt(`log`,t,...e):console.log(t,...e)}function Ht(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function G(...e){e=Ht(e);let t=`THREE.`+e.shift();if(Bt)Bt(`warn`,t,...e);else{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function K(...e){e=Ht(e);let t=`THREE.`+e.shift();if(Bt)Bt(`error`,t,...e);else{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function Ut(...e){let t=e.join(` `);t in zt||(zt[t]=!0,G(...e))}function Wt(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var Gt={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},Kt=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n===void 0?!1:n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+qt[e>>16&255]+qt[e>>24&255]+`-`+qt[t&255]+qt[t>>8&255]+`-`+qt[t>>16&15|64]+qt[t>>24&255]+`-`+qt[n&63|128]+qt[n>>8&255]+`-`+qt[n>>16&255]+qt[n>>24&255]+qt[r&255]+qt[r>>8&255]+qt[r>>16&255]+qt[r>>24&255]).toLowerCase()}function q(e,t,n){return Math.max(t,Math.min(n,e))}function Zt(e,t){return(e%t+t)%t}function Qt(e,t,n){return(1-n)*e+n*t}function $t(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`Invalid component type.`)}}function en(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`Invalid component type.`)}}var tn=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=q(this.x,e.x,t.x),this.y=q(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=q(this.x,e,t),this.y=q(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(q(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(q(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},nn=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:G(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(q(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},J=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(an.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(an.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=q(this.x,e.x,t.x),this.y=q(this.y,e.y,t.y),this.z=q(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=q(this.x,e,t),this.y=q(this.y,e,t),this.z=q(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(q(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return rn.copy(this).projectOnVector(e),this.sub(rn)}reflect(e){return this.sub(rn.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(q(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},rn=new J,an=new nn,Y=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(on.makeScale(e,t)),this}rotate(e){return this.premultiply(on.makeRotation(-e)),this}translate(e,t){return this.premultiply(on.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},on=new Y,sn=new Y().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),cn=new Y().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function ln(){let e={enabled:!0,workingColorSpace:Ot,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n?e:(this.spaces[t].transfer===`srgb`&&(e.r=un(e.r),e.g=un(e.g),e.b=un(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=dn(e.r),e.g=dn(e.g),e.b=dn(e.b)),e)},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?kt:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Ut(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Ut(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[Ot]:{primaries:t,whitePoint:r,transfer:kt,toXYZ:sn,fromXYZ:cn,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:Dt},outputColorSpaceConfig:{drawingBufferColorSpace:Dt}},[Dt]:{primaries:t,whitePoint:r,transfer:At,toXYZ:sn,fromXYZ:cn,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:Dt}}}),e}var X=ln();function un(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function dn(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var fn,pn=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{fn===void 0&&(fn=Lt(`canvas`)),fn.width=e.width,fn.height=e.height;let t=fn.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=fn}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=Lt(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(vn).x}get height(){return this.source.getSize(vn).y}get depth(){return this.source.getSize(vn).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){G(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){G(`Texture.setValues(): property '${t}' does not exist.`);continue}r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case le:e.x-=Math.floor(e.x);break;case ue:e.x=e.x<0?0:1;break;case de:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case le:e.y-=Math.floor(e.y);break;case ue:e.y=e.y<0?0:1;break;case de:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};yn.DEFAULT_IMAGE=null,yn.DEFAULT_MAPPING=300,yn.DEFAULT_ANISOTROPY=1;var bn=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;ts+l?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=s-l&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(er)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new $n;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},nr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},rr={h:0,s:0,l:0},ir={h:0,s:0,l:0};function ar(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var Z=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Dt){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,X.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=X.workingColorSpace){return this.r=e,this.g=t,this.b=n,X.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=X.workingColorSpace){if(e=Zt(e,1),t=q(t,0,1),n=q(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=ar(i,r,e+1/3),this.g=ar(i,r,e),this.b=ar(i,r,e-1/3)}return X.colorSpaceToWorking(this,r),this}setStyle(e,t=Dt){function n(t){t!==void 0&&parseFloat(t)<1&&G(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:G(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);G(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Dt){let n=nr[e.toLowerCase()];return n===void 0?G(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=un(e.r),this.g=un(e.g),this.b=un(e.b),this}copyLinearToSRGB(e){return this.r=dn(e.r),this.g=dn(e.g),this.b=dn(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Dt){return X.workingToColorSpace(or.copy(this),e),Math.round(q(or.r*255,0,255))*65536+Math.round(q(or.g*255,0,255))*256+Math.round(q(or.b*255,0,255))}getHexString(e=Dt){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=X.workingColorSpace){X.workingToColorSpace(or.copy(this),t);let n=or.r,r=or.g,i=or.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}},cr=new J,lr=new J,ur=new J,dr=new J,fr=new J,pr=new J,mr=new J,hr=new J,gr=new J,_r=new J,vr=new bn,yr=new bn,br=new bn,xr=class e{constructor(e=new J,t=new J,n=new J){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,r){r.subVectors(n,t),cr.subVectors(e,t),r.cross(cr);let i=r.lengthSq();return i>0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){cr.subVectors(r,t),lr.subVectors(n,t),ur.subVectors(e,t);let a=cr.dot(cr),o=cr.dot(lr),s=cr.dot(ur),c=lr.dot(lr),l=lr.dot(ur),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,dr)===null?!1:dr.x>=0&&dr.y>=0&&dr.x+dr.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,dr)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,dr.x),s.addScaledVector(a,dr.y),s.addScaledVector(o,dr.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return vr.setScalar(0),yr.setScalar(0),br.setScalar(0),vr.fromBufferAttribute(e,t),yr.fromBufferAttribute(e,n),br.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(vr,i.x),a.addScaledVector(yr,i.y),a.addScaledVector(br,i.z),a}static isFrontFacing(e,t,n,r){return cr.subVectors(n,t),lr.subVectors(e,t),cr.cross(lr).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return cr.subVectors(this.c,this.b),lr.subVectors(this.a,this.b),cr.cross(lr).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;fr.subVectors(r,n),pr.subVectors(i,n),hr.subVectors(e,n);let s=fr.dot(hr),c=pr.dot(hr);if(s<=0&&c<=0)return t.copy(n);gr.subVectors(e,r);let l=fr.dot(gr),u=pr.dot(gr);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(fr,a);_r.subVectors(e,i);let f=fr.dot(_r),p=pr.dot(_r);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(pr,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return mr.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(mr,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(fr,a).addScaledVector(pr,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},Sr=class{constructor(e=new J(1/0,1/0,1/0),t=new J(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,wr),wr.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Mr),Nr.subVectors(this.max,Mr),Er.subVectors(e.a,Mr),Dr.subVectors(e.b,Mr),Or.subVectors(e.c,Mr),kr.subVectors(Dr,Er),Ar.subVectors(Or,Dr),jr.subVectors(Er,Or);let t=[0,-kr.z,kr.y,0,-Ar.z,Ar.y,0,-jr.z,jr.y,kr.z,0,-kr.x,Ar.z,0,-Ar.x,jr.z,0,-jr.x,-kr.y,kr.x,0,-Ar.y,Ar.x,0,-jr.y,jr.x,0];return!Ir(t,Er,Dr,Or,Nr)||(t=[1,0,0,0,1,0,0,0,1],!Ir(t,Er,Dr,Or,Nr))?!1:(Pr.crossVectors(kr,Ar),t=[Pr.x,Pr.y,Pr.z],Ir(t,Er,Dr,Or,Nr))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,wr).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(wr).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Cr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Cr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Cr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Cr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Cr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Cr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Cr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Cr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Cr),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},Cr=[new J,new J,new J,new J,new J,new J,new J,new J],wr=new J,Tr=new Sr,Er=new J,Dr=new J,Or=new J,kr=new J,Ar=new J,jr=new J,Mr=new J,Nr=new J,Pr=new J,Fr=new J;function Ir(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Fr.fromArray(e,a);let o=i.x*Math.abs(Fr.x)+i.y*Math.abs(Fr.y)+i.z*Math.abs(Fr.z),s=t.dot(Fr),c=n.dot(Fr),l=r.dot(Fr);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var Lr=new J,Rr=new tn,zr=0,Br=class extends Kt{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,`id`,{value:zr++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=Mt,this.updateRanges=[],this.gpuType=U,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Gr.subVectors(e,this.center);let t=Gr.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(Gr,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Kr.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Gr.copy(e.center).add(Kr)),this.expandByPoint(Gr.copy(e.center).sub(Kr))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},Jr=0,Yr=new Tn,Xr=new Qn,Zr=new J,Qr=new Sr,$r=new Sr,ei=new J,ti=class e extends Kt{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,`id`,{value:Jr++}),this.uuid=Xt(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(Ft(e)?Hr:Vr)(e,1):this.index=e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new Y().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return Yr.makeRotationFromQuaternion(e),this.applyMatrix4(Yr),this}rotateX(e){return Yr.makeRotationX(e),this.applyMatrix4(Yr),this}rotateY(e){return Yr.makeRotationY(e),this.applyMatrix4(Yr),this}rotateZ(e){return Yr.makeRotationZ(e),this.applyMatrix4(Yr),this}translate(e,t,n){return Yr.makeTranslation(e,t,n),this.applyMatrix4(Yr),this}scale(e,t,n){return Yr.makeScale(e,t,n),this.applyMatrix4(Yr),this}lookAt(e){return Xr.lookAt(e),Xr.updateMatrix(),this.applyMatrix4(Xr.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Zr).negate(),this.translate(Zr.x,Zr.y,Zr.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;nt.count&&G(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Sr);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){K(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new J(-1/0,-1/0,-1/0),new J(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){G(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];if(r===void 0){G(`Material: '${t}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,this.name!==``&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==1&&(n.blending=this.blending),this.side!==0&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==204&&(n.blendSrc=this.blendSrc),this.blendDst!==205&&(n.blendDst=this.blendDst),this.blendEquation!==100&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==3&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==519&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==7680&&(n.stencilFail=this.stencilFail),this.stencilZFail!==7680&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==7680&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.allowOverride===!1&&(n.allowOverride=!1),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==`round`&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==`round`&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},ii=new J,ai=new J,oi=new J,si=new J,ci=new J,li=new J,ui=new J,di=class{constructor(e=new J,t=new J(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ii)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=ii.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ii.copy(this.origin).addScaledVector(this.direction,t),ii.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){ai.copy(e).add(t).multiplyScalar(.5),oi.copy(t).sub(e).normalize(),si.copy(this.origin).sub(ai);let i=e.distanceTo(t)*.5,a=-this.direction.dot(oi),o=si.dot(this.direction),s=-si.dot(oi),c=si.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0)if(u=a*s-o,d=a*o-s,p=i*l,u>=0)if(d>=-p)if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c);else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(ai).addScaledVector(oi,d),f}intersectSphere(e,t){ii.subVectors(e.center,this.origin);let n=ii.dot(this.direction),r=ii.dot(ii)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,ii)!==null}intersectTriangle(e,t,n,r,i){ci.subVectors(t,e),li.subVectors(n,e),ui.crossVectors(ci,li);let a=this.direction.dot(ui),o;if(a>0){if(r)return null;o=1}else if(a<0)o=-1,a=-a;else return null;si.subVectors(this.origin,e);let s=o*this.direction.dot(li.crossVectors(si,li));if(s<0)return null;let c=o*this.direction.dot(ci.cross(si));if(c<0||s+c>a)return null;let l=-o*si.dot(ui);return l<0?null:this.at(l/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},fi=class extends ri{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new Z(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Fn,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},pi=new Tn,mi=new di,hi=new qr,gi=new J,_i=new J,vi=new J,yi=new J,bi=new J,xi=new J,Si=new J,Ci=new J,wi=class extends Qn{constructor(e=new ti,t=new fi){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2))&&(pi.copy(i).invert(),mi.copy(e.ray).applyMatrix4(pi),!(n.boundingBox!==null&&mi.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,mi)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null)if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Ci.clone(),object:e}}function Ei(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,_i),e.getVertexPosition(c,vi),e.getVertexPosition(l,yi);let u=Ti(e,t,n,r,_i,vi,yi,Si);if(u){let e=new J;xr.getBarycoord(Si,_i,vi,yi,e),i&&(u.uv=xr.getInterpolatedAttribute(i,s,c,l,e,new tn)),a&&(u.uv1=xr.getInterpolatedAttribute(a,s,c,l,e,new tn)),o&&(u.normal=xr.getInterpolatedAttribute(o,s,c,l,e,new J),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new J,materialIndex:0};xr.getNormal(_i,vi,yi,t.normal),u.face=t,u.barycoord=e}return u}var Di=class extends yn{constructor(e=null,t=1,n=1,r,i,a,o,s,c=fe,l=fe,u,d){super(null,a,o,s,c,l,r,i,u,d),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}},Oi=new J,ki=new J,Ai=new Y,ji=class{constructor(e=new J(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){let r=Oi.subVectors(n,t).cross(ki.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){let e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t,n=!0){let r=e.delta(Oi),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;let a=-(e.start.dot(this.normal)+this.constant)/i;return n===!0&&(a<0||a>1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||Ai.getNormalMatrix(e),r=this.coplanarPoint(Oi).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}},Mi=new qr,Ni=new tn(.5,.5),Pi=new J,Fi=class{constructor(e=new ji,t=new ji,n=new ji,r=new ji,i=new ji,a=new ji){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){let o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(r),o[4].copy(i),o[5].copy(a),this}copy(e){let t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=Pt,n=!1){let r=this.planes,i=e.elements,a=i[0],o=i[1],s=i[2],c=i[3],l=i[4],u=i[5],d=i[6],f=i[7],p=i[8],m=i[9],h=i[10],g=i[11],_=i[12],v=i[13],y=i[14],b=i[15];if(r[0].setComponents(c-a,f-l,g-p,b-_).normalize(),r[1].setComponents(c+a,f+l,g+p,b+_).normalize(),r[2].setComponents(c+o,f+u,g+m,b+v).normalize(),r[3].setComponents(c-o,f-u,g-m,b-v).normalize(),n)r[4].setComponents(s,d,h,y).normalize(),r[5].setComponents(c-s,f-d,g-h,b-y).normalize();else if(r[4].setComponents(c-s,f-d,g-h,b-y).normalize(),t===2e3)r[5].setComponents(c+s,f+d,g+h,b+y).normalize();else if(t===2001)r[5].setComponents(s,d,h,y).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Mi.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{let t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Mi.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Mi)}intersectsSprite(e){return Mi.center.set(0,0,0),Mi.radius=.7071067811865476+Ni.distanceTo(e.center),Mi.applyMatrix4(e.matrixWorld),this.intersectsSphere(Mi)}intersectsSphere(e){let t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)0?e.max.x:e.min.x,Pi.y=r.normal.y>0?e.max.y:e.min.y,Pi.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Pi)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},Ii=class extends ri{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new Z(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},Li=new J,Ri=new J,zi=new Tn,Bi=new di,Vi=new qr,Hi=new J,Ui=new J,Wi=class extends Qn{constructor(e=new ti,t=new Ii){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;Hi.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(Hi);if(!(ct.far))return{distance:c,point:Ui.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var Ki=new J,qi=new J,Ji=class extends Wi{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var na=class extends yn{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},ra=class extends yn{constructor(e,t,n=xe,r,i,a,o=fe,s=fe,c,l=Ae,u=1){if(l!==1026&&l!==1027)throw Error(`DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new hn(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}},ia=class extends ra{constructor(e,t=xe,n=301,r,i,a=fe,o=fe,s,c=Ae){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},aa=class extends yn{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},oa=class e extends ti{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new Ur(c,3)),this.setAttribute(`normal`,new Ur(l,3)),this.setAttribute(`uv`,new Ur(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new J;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}},_a=class extends ga{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},va=class extends ri{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new Z(16777215),this.specular=new Z(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Z(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Fn,this.combine=0,this.reflectivity=1,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.envMapIntensity=e.envMapIntensity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},ya=class extends ri{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=Et,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},ba=class extends ri{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function xa(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}var Sa=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(K(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(K(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){K(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){K(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&It(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){K(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===xt,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}};Da.prototype.ValueTypeName=``,Da.prototype.TimeBufferType=Float32Array,Da.prototype.ValueBufferType=Float32Array,Da.prototype.DefaultInterpolation=bt;var Oa=class extends Da{constructor(e,t,n){super(e,t,n)}};Oa.prototype.ValueTypeName=`bool`,Oa.prototype.ValueBufferType=Array,Oa.prototype.DefaultInterpolation=yt,Oa.prototype.InterpolantFactoryMethodLinear=void 0,Oa.prototype.InterpolantFactoryMethodSmooth=void 0;var ka=class extends Da{constructor(e,t,n,r){super(e,t,n,r)}};ka.prototype.ValueTypeName=`color`;var Aa=class extends Da{constructor(e,t,n,r){super(e,t,n,r)}};Aa.prototype.ValueTypeName=`number`;var ja=class extends Sa{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)nn.slerpFlat(i,0,a,c-o,a,c,s);return i}},Ma=class extends Da{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new ja(this.times,this.values,this.getValueSize(),e)}};Ma.prototype.ValueTypeName=`quaternion`,Ma.prototype.InterpolantFactoryMethodSmooth=void 0;var Na=class extends Da{constructor(e,t,n){super(e,t,n)}};Na.prototype.ValueTypeName=`string`,Na.prototype.ValueBufferType=Array,Na.prototype.DefaultInterpolation=yt,Na.prototype.InterpolantFactoryMethodLinear=void 0,Na.prototype.InterpolantFactoryMethodSmooth=void 0;var Pa=class extends Da{constructor(e,t,n,r){super(e,t,n,r)}};Pa.prototype.ValueTypeName=`vector`;var Fa=new class{constructor(e,t,n){let r=this,i=!1,a=0,o=0,s,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this._abortController=null,this.itemStart=function(e){o++,i===!1&&r.onStart!==void 0&&r.onStart(e,a,o),i=!0},this.itemEnd=function(e){a++,r.onProgress!==void 0&&r.onProgress(e,a,o),a===o&&(i=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(e){r.onError!==void 0&&r.onError(e)},this.resolveURL=function(e){return s?s(e):e},this.setURLModifier=function(e){return s=e,this},this.addHandler=function(e,t){return c.push(e,t),this},this.removeHandler=function(e){let t=c.indexOf(e);return t!==-1&&c.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=c.length;te.start-t.start);let t=0;for(let e=1;e 0 + vec4 plane; + #ifdef ALPHA_TO_COVERAGE + float distanceToPlane, distanceGradient; + float clipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + if ( clipOpacity == 0.0 ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + float unionClipOpacity = 1.0; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; + distanceGradient = fwidth( distanceToPlane ) / 2.0; + unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); + } + #pragma unroll_loop_end + clipOpacity *= 1.0 - unionClipOpacity; + #endif + diffuseColor.a *= clipOpacity; + if ( diffuseColor.a == 0.0 ) discard; + #else + #pragma unroll_loop_start + for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; + } + #pragma unroll_loop_end + #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES + bool clipped = true; + #pragma unroll_loop_start + for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { + plane = clippingPlanes[ i ]; + clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; + } + #pragma unroll_loop_end + if ( clipped ) discard; + #endif + #endif +#endif`,clipping_planes_pars_fragment:`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; + uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; +#endif`,clipping_planes_pars_vertex:`#if NUM_CLIPPING_PLANES > 0 + varying vec3 vClipPosition; +#endif`,clipping_planes_vertex:`#if NUM_CLIPPING_PLANES > 0 + vClipPosition = - mvPosition.xyz; +#endif`,color_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) + diffuseColor *= vColor; +#endif`,color_pars_fragment:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) + varying vec4 vColor; +#endif`,color_pars_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) + varying vec4 vColor; +#endif`,color_vertex:`#if defined( USE_COLOR ) || defined( USE_COLOR_ALPHA ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) + vColor = vec4( 1.0 ); +#endif +#ifdef USE_COLOR_ALPHA + vColor *= color; +#elif defined( USE_COLOR ) + vColor.rgb *= color; +#endif +#ifdef USE_INSTANCING_COLOR + vColor.rgb *= instanceColor.rgb; +#endif +#ifdef USE_BATCHING_COLOR + vColor *= getBatchingColor( getIndirectIndex( gl_DrawID ) ); +#endif`,common:`#define PI 3.141592653589793 +#define PI2 6.283185307179586 +#define PI_HALF 1.5707963267948966 +#define RECIPROCAL_PI 0.3183098861837907 +#define RECIPROCAL_PI2 0.15915494309189535 +#define EPSILON 1e-6 +#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +#define whiteComplement( a ) ( 1.0 - saturate( a ) ) +float pow2( const in float x ) { return x*x; } +vec3 pow2( const in vec3 x ) { return x*x; } +float pow3( const in float x ) { return x*x*x; } +float pow4( const in float x ) { float x2 = x*x; return x2*x2; } +float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } +float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } +highp float rand( const in vec2 uv ) { + const highp float a = 12.9898, b = 78.233, c = 43758.5453; + highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); + return fract( sin( sn ) * c ); +} +#ifdef HIGH_PRECISION + float precisionSafeLength( vec3 v ) { return length( v ); } +#else + float precisionSafeLength( vec3 v ) { + float maxComponent = max3( abs( v ) ); + return length( v / maxComponent ) * maxComponent; + } +#endif +struct IncidentLight { + vec3 color; + vec3 direction; + bool visible; +}; +struct ReflectedLight { + vec3 directDiffuse; + vec3 directSpecular; + vec3 indirectDiffuse; + vec3 indirectSpecular; +}; +#ifdef USE_ALPHAHASH + varying vec3 vPosition; +#endif +vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); +} +vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { + return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); +} +bool isPerspectiveMatrix( mat4 m ) { + return m[ 2 ][ 3 ] == - 1.0; +} +vec2 equirectUv( in vec3 dir ) { + float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; + float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; + return vec2( u, v ); +} +vec3 BRDF_Lambert( const in vec3 diffuseColor ) { + return RECIPROCAL_PI * diffuseColor; +} +vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} +float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { + float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); + return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); +} // validated`,cube_uv_reflection_fragment:`#ifdef ENVMAP_TYPE_CUBE_UV + #define cubeUV_minMipLevel 4.0 + #define cubeUV_minTileSize 16.0 + float getFace( vec3 direction ) { + vec3 absDirection = abs( direction ); + float face = - 1.0; + if ( absDirection.x > absDirection.z ) { + if ( absDirection.x > absDirection.y ) + face = direction.x > 0.0 ? 0.0 : 3.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } else { + if ( absDirection.z > absDirection.y ) + face = direction.z > 0.0 ? 2.0 : 5.0; + else + face = direction.y > 0.0 ? 1.0 : 4.0; + } + return face; + } + vec2 getUV( vec3 direction, float face ) { + vec2 uv; + if ( face == 0.0 ) { + uv = vec2( direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 1.0 ) { + uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); + } else if ( face == 2.0 ) { + uv = vec2( - direction.x, direction.y ) / abs( direction.z ); + } else if ( face == 3.0 ) { + uv = vec2( - direction.z, direction.y ) / abs( direction.x ); + } else if ( face == 4.0 ) { + uv = vec2( - direction.x, direction.z ) / abs( direction.y ); + } else { + uv = vec2( direction.x, direction.y ) / abs( direction.z ); + } + return 0.5 * ( uv + 1.0 ); + } + vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { + float face = getFace( direction ); + float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); + mipInt = max( mipInt, cubeUV_minMipLevel ); + float faceSize = exp2( mipInt ); + highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; + if ( face > 2.0 ) { + uv.y += faceSize; + face -= 3.0; + } + uv.x += face * faceSize; + uv.x += filterInt * 3.0 * cubeUV_minTileSize; + uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); + uv.x *= CUBEUV_TEXEL_WIDTH; + uv.y *= CUBEUV_TEXEL_HEIGHT; + #ifdef texture2DGradEXT + return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; + #else + return texture2D( envMap, uv ).rgb; + #endif + } + #define cubeUV_r0 1.0 + #define cubeUV_m0 - 2.0 + #define cubeUV_r1 0.8 + #define cubeUV_m1 - 1.0 + #define cubeUV_r4 0.4 + #define cubeUV_m4 2.0 + #define cubeUV_r5 0.305 + #define cubeUV_m5 3.0 + #define cubeUV_r6 0.21 + #define cubeUV_m6 4.0 + float roughnessToMip( float roughness ) { + float mip = 0.0; + if ( roughness >= cubeUV_r1 ) { + mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; + } else if ( roughness >= cubeUV_r4 ) { + mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; + } else if ( roughness >= cubeUV_r5 ) { + mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; + } else if ( roughness >= cubeUV_r6 ) { + mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; + } else { + mip = - 2.0 * log2( 1.16 * roughness ); } + return mip; + } + vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { + float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); + float mipF = fract( mip ); + float mipInt = floor( mip ); + vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); + if ( mipF == 0.0 ) { + return vec4( color0, 1.0 ); + } else { + vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); + return vec4( mix( color0, color1, mipF ), 1.0 ); + } + } +#endif`,defaultnormal_vertex:`vec3 transformedNormal = objectNormal; +#ifdef USE_TANGENT + vec3 transformedTangent = objectTangent; +#endif +#ifdef USE_BATCHING + mat3 bm = mat3( batchingMatrix ); + transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); + transformedNormal = bm * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = bm * transformedTangent; + #endif +#endif +#ifdef USE_INSTANCING + mat3 im = mat3( instanceMatrix ); + transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); + transformedNormal = im * transformedNormal; + #ifdef USE_TANGENT + transformedTangent = im * transformedTangent; + #endif +#endif +transformedNormal = normalMatrix * transformedNormal; +#ifdef FLIP_SIDED + transformedNormal = - transformedNormal; +#endif +#ifdef USE_TANGENT + transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; + #ifdef FLIP_SIDED + transformedTangent = - transformedTangent; + #endif +#endif`,displacementmap_pars_vertex:`#ifdef USE_DISPLACEMENTMAP + uniform sampler2D displacementMap; + uniform float displacementScale; + uniform float displacementBias; +#endif`,displacementmap_vertex:`#ifdef USE_DISPLACEMENTMAP + transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); +#endif`,emissivemap_fragment:`#ifdef USE_EMISSIVEMAP + vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); + #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE + emissiveColor = sRGBTransferEOTF( emissiveColor ); + #endif + totalEmissiveRadiance *= emissiveColor.rgb; +#endif`,emissivemap_pars_fragment:`#ifdef USE_EMISSIVEMAP + uniform sampler2D emissiveMap; +#endif`,colorspace_fragment:`gl_FragColor = linearToOutputTexel( gl_FragColor );`,colorspace_pars_fragment:`vec4 LinearTransferOETF( in vec4 value ) { + return value; +} +vec4 sRGBTransferEOTF( in vec4 value ) { + return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); +} +vec4 sRGBTransferOETF( in vec4 value ) { + return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); +}`,envmap_fragment:`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vec3 cameraToFrag; + if ( isOrthographic ) { + cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToFrag = normalize( vWorldPosition - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vec3 reflectVec = reflect( cameraToFrag, worldNormal ); + #else + vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); + #endif + #else + vec3 reflectVec = vReflect; + #endif + #ifdef ENVMAP_TYPE_CUBE + vec4 envColor = textureCube( envMap, envMapRotation * reflectVec ); + #ifdef ENVMAP_BLENDING_MULTIPLY + outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_MIX ) + outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); + #elif defined( ENVMAP_BLENDING_ADD ) + outgoingLight += envColor.xyz * specularStrength * reflectivity; + #endif + #endif +#endif`,envmap_common_pars_fragment:`#ifdef USE_ENVMAP + uniform float envMapIntensity; + uniform mat3 envMapRotation; + #ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; + #else + uniform sampler2D envMap; + #endif +#endif`,envmap_pars_fragment:`#ifdef USE_ENVMAP + uniform float reflectivity; + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + varying vec3 vWorldPosition; + uniform float refractionRatio; + #else + varying vec3 vReflect; + #endif +#endif`,envmap_pars_vertex:`#ifdef USE_ENVMAP + #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) + #define ENV_WORLDPOS + #endif + #ifdef ENV_WORLDPOS + + varying vec3 vWorldPosition; + #else + varying vec3 vReflect; + uniform float refractionRatio; + #endif +#endif`,envmap_physical_pars_fragment:`#ifdef USE_ENVMAP + vec3 getIBLIrradiance( const in vec3 normal ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); + return PI * envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 reflectVec = reflect( - viewDir, normal ); + reflectVec = normalize( mix( reflectVec, normal, pow4( roughness ) ) ); + reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); + vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); + return envMapColor.rgb * envMapIntensity; + #else + return vec3( 0.0 ); + #endif + } + #ifdef USE_ANISOTROPY + vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { + #ifdef ENVMAP_TYPE_CUBE_UV + vec3 bentNormal = cross( bitangent, viewDir ); + bentNormal = normalize( cross( bentNormal, bitangent ) ); + bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); + return getIBLRadiance( viewDir, bentNormal, roughness ); + #else + return vec3( 0.0 ); + #endif + } + #endif +#endif`,envmap_vertex:`#ifdef USE_ENVMAP + #ifdef ENV_WORLDPOS + vWorldPosition = worldPosition.xyz; + #else + vec3 cameraToVertex; + if ( isOrthographic ) { + cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); + } else { + cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); + } + vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #ifdef ENVMAP_MODE_REFLECTION + vReflect = reflect( cameraToVertex, worldNormal ); + #else + vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); + #endif + #endif +#endif`,fog_vertex:`#ifdef USE_FOG + vFogDepth = - mvPosition.z; +#endif`,fog_pars_vertex:`#ifdef USE_FOG + varying float vFogDepth; +#endif`,fog_fragment:`#ifdef USE_FOG + #ifdef FOG_EXP2 + float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); + #else + float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); + #endif + gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); +#endif`,fog_pars_fragment:`#ifdef USE_FOG + uniform vec3 fogColor; + varying float vFogDepth; + #ifdef FOG_EXP2 + uniform float fogDensity; + #else + uniform float fogNear; + uniform float fogFar; + #endif +#endif`,gradientmap_pars_fragment:`#ifdef USE_GRADIENTMAP + uniform sampler2D gradientMap; +#endif +vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { + float dotNL = dot( normal, lightDirection ); + vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); + #ifdef USE_GRADIENTMAP + return vec3( texture2D( gradientMap, coord ).r ); + #else + vec2 fw = fwidth( coord ) * 0.5; + return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); + #endif +}`,lightmap_pars_fragment:`#ifdef USE_LIGHTMAP + uniform sampler2D lightMap; + uniform float lightMapIntensity; +#endif`,lights_lambert_fragment:`LambertMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularStrength = specularStrength;`,lights_lambert_pars_fragment:`varying vec3 vViewPosition; +struct LambertMaterial { + vec3 diffuseColor; + float specularStrength; +}; +void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Lambert +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,lights_pars_begin:`uniform bool receiveShadow; +uniform vec3 ambientLightColor; +#if defined( USE_LIGHT_PROBES ) + uniform vec3 lightProbe[ 9 ]; +#endif +vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { + float x = normal.x, y = normal.y, z = normal.z; + vec3 result = shCoefficients[ 0 ] * 0.886227; + result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; + result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; + result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; + result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; + result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; + result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); + result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; + result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); + return result; +} +vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { + vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); + vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); + return irradiance; +} +vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { + vec3 irradiance = ambientLightColor; + return irradiance; +} +float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { + float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); + if ( cutoffDistance > 0.0 ) { + distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); + } + return distanceFalloff; +} +float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { + return smoothstep( coneCosine, penumbraCosine, angleCosine ); +} +#if NUM_DIR_LIGHTS > 0 + struct DirectionalLight { + vec3 direction; + vec3 color; + }; + uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; + void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { + light.color = directionalLight.color; + light.direction = directionalLight.direction; + light.visible = true; + } +#endif +#if NUM_POINT_LIGHTS > 0 + struct PointLight { + vec3 position; + vec3 color; + float distance; + float decay; + }; + uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; + void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = pointLight.position - geometryPosition; + light.direction = normalize( lVector ); + float lightDistance = length( lVector ); + light.color = pointLight.color; + light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } +#endif +#if NUM_SPOT_LIGHTS > 0 + struct SpotLight { + vec3 position; + vec3 direction; + vec3 color; + float distance; + float decay; + float coneCos; + float penumbraCos; + }; + uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; + void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { + vec3 lVector = spotLight.position - geometryPosition; + light.direction = normalize( lVector ); + float angleCos = dot( light.direction, spotLight.direction ); + float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); + if ( spotAttenuation > 0.0 ) { + float lightDistance = length( lVector ); + light.color = spotLight.color * spotAttenuation; + light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); + light.visible = ( light.color != vec3( 0.0 ) ); + } else { + light.color = vec3( 0.0 ); + light.visible = false; + } + } +#endif +#if NUM_RECT_AREA_LIGHTS > 0 + struct RectAreaLight { + vec3 color; + vec3 position; + vec3 halfWidth; + vec3 halfHeight; + }; + uniform sampler2D ltc_1; uniform sampler2D ltc_2; + uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; +#endif +#if NUM_HEMI_LIGHTS > 0 + struct HemisphereLight { + vec3 direction; + vec3 skyColor; + vec3 groundColor; + }; + uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; + vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { + float dotNL = dot( normal, hemiLight.direction ); + float hemiDiffuseWeight = 0.5 * dotNL + 0.5; + vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); + return irradiance; + } +#endif +#include `,lights_toon_fragment:`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,lights_toon_pars_fragment:`varying vec3 vViewPosition; +struct ToonMaterial { + vec3 diffuseColor; +}; +void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_Toon +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,lights_phong_fragment:`BlinnPhongMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.specularColor = specular; +material.specularShininess = shininess; +material.specularStrength = specularStrength;`,lights_phong_pars_fragment:`varying vec3 vViewPosition; +struct BlinnPhongMaterial { + vec3 diffuseColor; + vec3 specularColor; + float specularShininess; + float specularStrength; +}; +void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); + reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; +} +void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { + reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); +} +#define RE_Direct RE_Direct_BlinnPhong +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,lights_physical_fragment:`PhysicalMaterial material; +material.diffuseColor = diffuseColor.rgb; +material.diffuseContribution = diffuseColor.rgb * ( 1.0 - metalnessFactor ); +material.metalness = metalnessFactor; +vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); +float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); +material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; +material.roughness = min( material.roughness, 1.0 ); +#ifdef IOR + material.ior = ior; + #ifdef USE_SPECULAR + float specularIntensityFactor = specularIntensity; + vec3 specularColorFactor = specularColor; + #ifdef USE_SPECULAR_COLORMAP + specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; + #endif + material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); + #else + float specularIntensityFactor = 1.0; + vec3 specularColorFactor = vec3( 1.0 ); + material.specularF90 = 1.0; + #endif + material.specularColor = min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor; + material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); +#else + material.specularColor = vec3( 0.04 ); + material.specularColorBlended = mix( material.specularColor, diffuseColor.rgb, metalnessFactor ); + material.specularF90 = 1.0; +#endif +#ifdef USE_CLEARCOAT + material.clearcoat = clearcoat; + material.clearcoatRoughness = clearcoatRoughness; + material.clearcoatF0 = vec3( 0.04 ); + material.clearcoatF90 = 1.0; + #ifdef USE_CLEARCOATMAP + material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; + #endif + #ifdef USE_CLEARCOAT_ROUGHNESSMAP + material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; + #endif + material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); + material.clearcoatRoughness += geometryRoughness; + material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); +#endif +#ifdef USE_DISPERSION + material.dispersion = dispersion; +#endif +#ifdef USE_IRIDESCENCE + material.iridescence = iridescence; + material.iridescenceIOR = iridescenceIOR; + #ifdef USE_IRIDESCENCEMAP + material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; + #endif + #ifdef USE_IRIDESCENCE_THICKNESSMAP + material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; + #else + material.iridescenceThickness = iridescenceThicknessMaximum; + #endif +#endif +#ifdef USE_SHEEN + material.sheenColor = sheenColor; + #ifdef USE_SHEEN_COLORMAP + material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; + #endif + material.sheenRoughness = clamp( sheenRoughness, 0.0001, 1.0 ); + #ifdef USE_SHEEN_ROUGHNESSMAP + material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; + #endif +#endif +#ifdef USE_ANISOTROPY + #ifdef USE_ANISOTROPYMAP + mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); + vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; + vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; + #else + vec2 anisotropyV = anisotropyVector; + #endif + material.anisotropy = length( anisotropyV ); + if( material.anisotropy == 0.0 ) { + anisotropyV = vec2( 1.0, 0.0 ); + } else { + anisotropyV /= material.anisotropy; + material.anisotropy = saturate( material.anisotropy ); + } + material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); + material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; + material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; +#endif`,lights_physical_pars_fragment:`uniform sampler2D dfgLUT; +struct PhysicalMaterial { + vec3 diffuseColor; + vec3 diffuseContribution; + vec3 specularColor; + vec3 specularColorBlended; + float roughness; + float metalness; + float specularF90; + float dispersion; + #ifdef USE_CLEARCOAT + float clearcoat; + float clearcoatRoughness; + vec3 clearcoatF0; + float clearcoatF90; + #endif + #ifdef USE_IRIDESCENCE + float iridescence; + float iridescenceIOR; + float iridescenceThickness; + vec3 iridescenceFresnel; + vec3 iridescenceF0; + vec3 iridescenceFresnelDielectric; + vec3 iridescenceFresnelMetallic; + #endif + #ifdef USE_SHEEN + vec3 sheenColor; + float sheenRoughness; + #endif + #ifdef IOR + float ior; + #endif + #ifdef USE_TRANSMISSION + float transmission; + float transmissionAlpha; + float thickness; + float attenuationDistance; + vec3 attenuationColor; + #endif + #ifdef USE_ANISOTROPY + float anisotropy; + float alphaT; + vec3 anisotropyT; + vec3 anisotropyB; + #endif +}; +vec3 clearcoatSpecularDirect = vec3( 0.0 ); +vec3 clearcoatSpecularIndirect = vec3( 0.0 ); +vec3 sheenSpecularDirect = vec3( 0.0 ); +vec3 sheenSpecularIndirect = vec3(0.0 ); +vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { + float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); + float x2 = x * x; + float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); + return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); +} +float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { + float a2 = pow2( alpha ); + float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); + float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); +} +float D_GGX( const in float alpha, const in float dotNH ) { + float a2 = pow2( alpha ); + float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; + return RECIPROCAL_PI * a2 / pow2( denom ); +} +#ifdef USE_ANISOTROPY + float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { + float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); + float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); + return 0.5 / max( gv + gl, EPSILON ); + } + float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { + float a2 = alphaT * alphaB; + highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); + highp float v2 = dot( v, v ); + float w2 = a2 / v2; + return RECIPROCAL_PI * a2 * pow2 ( w2 ); + } +#endif +#ifdef USE_CLEARCOAT + vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { + vec3 f0 = material.clearcoatF0; + float f90 = material.clearcoatF90; + float roughness = material.clearcoatRoughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + return F * ( V * D ); + } +#endif +vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 f0 = material.specularColorBlended; + float f90 = material.specularF90; + float roughness = material.roughness; + float alpha = pow2( roughness ); + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float dotVH = saturate( dot( viewDir, halfDir ) ); + vec3 F = F_Schlick( f0, f90, dotVH ); + #ifdef USE_IRIDESCENCE + F = mix( F, material.iridescenceFresnel, material.iridescence ); + #endif + #ifdef USE_ANISOTROPY + float dotTL = dot( material.anisotropyT, lightDir ); + float dotTV = dot( material.anisotropyT, viewDir ); + float dotTH = dot( material.anisotropyT, halfDir ); + float dotBL = dot( material.anisotropyB, lightDir ); + float dotBV = dot( material.anisotropyB, viewDir ); + float dotBH = dot( material.anisotropyB, halfDir ); + float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); + float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); + #else + float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); + float D = D_GGX( alpha, dotNH ); + #endif + return F * ( V * D ); +} +vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { + const float LUT_SIZE = 64.0; + const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; + const float LUT_BIAS = 0.5 / LUT_SIZE; + float dotNV = saturate( dot( N, V ) ); + vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); + uv = uv * LUT_SCALE + LUT_BIAS; + return uv; +} +float LTC_ClippedSphereFormFactor( const in vec3 f ) { + float l = length( f ); + return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); +} +vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { + float x = dot( v1, v2 ); + float y = abs( x ); + float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; + float b = 3.4175940 + ( 4.1616724 + y ) * y; + float v = a / b; + float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; + return cross( v1, v2 ) * theta_sintheta; +} +vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { + vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; + vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; + vec3 lightNormal = cross( v1, v2 ); + if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); + vec3 T1, T2; + T1 = normalize( V - N * dot( V, N ) ); + T2 = - cross( N, T1 ); + mat3 mat = mInv * transpose( mat3( T1, T2, N ) ); + vec3 coords[ 4 ]; + coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); + coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); + coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); + coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); + coords[ 0 ] = normalize( coords[ 0 ] ); + coords[ 1 ] = normalize( coords[ 1 ] ); + coords[ 2 ] = normalize( coords[ 2 ] ); + coords[ 3 ] = normalize( coords[ 3 ] ); + vec3 vectorFormFactor = vec3( 0.0 ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); + vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); + float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); + return vec3( result ); +} +#if defined( USE_SHEEN ) +float D_Charlie( float roughness, float dotNH ) { + float alpha = pow2( roughness ); + float invAlpha = 1.0 / alpha; + float cos2h = dotNH * dotNH; + float sin2h = max( 1.0 - cos2h, 0.0078125 ); + return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); +} +float V_Neubelt( float dotNV, float dotNL ) { + return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); +} +vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { + vec3 halfDir = normalize( lightDir + viewDir ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + float dotNH = saturate( dot( normal, halfDir ) ); + float D = D_Charlie( sheenRoughness, dotNH ); + float V = V_Neubelt( dotNV, dotNL ); + return sheenColor * ( D * V ); +} +#endif +float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + float r2 = roughness * roughness; + float rInv = 1.0 / ( roughness + 0.1 ); + float a = -1.9362 + 1.0678 * roughness + 0.4573 * r2 - 0.8469 * rInv; + float b = -0.6014 + 0.5538 * roughness - 0.4670 * r2 - 0.1255 * rInv; + float DG = exp( a * dotNV + b ); + return saturate( DG ); +} +vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { + float dotNV = saturate( dot( normal, viewDir ) ); + vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; + return specularColor * fab.x + specularF90 * fab.y; +} +#ifdef USE_IRIDESCENCE +void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#else +void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { +#endif + float dotNV = saturate( dot( normal, viewDir ) ); + vec2 fab = texture2D( dfgLUT, vec2( roughness, dotNV ) ).rg; + #ifdef USE_IRIDESCENCE + vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); + #else + vec3 Fr = specularColor; + #endif + vec3 FssEss = Fr * fab.x + specularF90 * fab.y; + float Ess = fab.x + fab.y; + float Ems = 1.0 - Ess; + vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); + singleScatter += FssEss; + multiScatter += Fms * Ems; +} +vec3 BRDF_GGX_Multiscatter( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { + vec3 singleScatter = BRDF_GGX( lightDir, viewDir, normal, material ); + float dotNL = saturate( dot( normal, lightDir ) ); + float dotNV = saturate( dot( normal, viewDir ) ); + vec2 dfgV = texture2D( dfgLUT, vec2( material.roughness, dotNV ) ).rg; + vec2 dfgL = texture2D( dfgLUT, vec2( material.roughness, dotNL ) ).rg; + vec3 FssEss_V = material.specularColorBlended * dfgV.x + material.specularF90 * dfgV.y; + vec3 FssEss_L = material.specularColorBlended * dfgL.x + material.specularF90 * dfgL.y; + float Ess_V = dfgV.x + dfgV.y; + float Ess_L = dfgL.x + dfgL.y; + float Ems_V = 1.0 - Ess_V; + float Ems_L = 1.0 - Ess_L; + vec3 Favg = material.specularColorBlended + ( 1.0 - material.specularColorBlended ) * 0.047619; + vec3 Fms = FssEss_V * FssEss_L * Favg / ( 1.0 - Ems_V * Ems_L * Favg + EPSILON ); + float compensationFactor = Ems_V * Ems_L; + vec3 multiScatter = Fms * compensationFactor; + return singleScatter + multiScatter; +} +#if NUM_RECT_AREA_LIGHTS > 0 + void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 normal = geometryNormal; + vec3 viewDir = geometryViewDir; + vec3 position = geometryPosition; + vec3 lightPos = rectAreaLight.position; + vec3 halfWidth = rectAreaLight.halfWidth; + vec3 halfHeight = rectAreaLight.halfHeight; + vec3 lightColor = rectAreaLight.color; + float roughness = material.roughness; + vec3 rectCoords[ 4 ]; + rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; + rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; + rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; + vec2 uv = LTC_Uv( normal, viewDir, roughness ); + vec4 t1 = texture2D( ltc_1, uv ); + vec4 t2 = texture2D( ltc_2, uv ); + mat3 mInv = mat3( + vec3( t1.x, 0, t1.y ), + vec3( 0, 1, 0 ), + vec3( t1.z, 0, t1.w ) + ); + vec3 fresnel = ( material.specularColorBlended * t2.x + ( material.specularF90 - material.specularColorBlended ) * t2.y ); + reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); + reflectedLight.directDiffuse += lightColor * material.diffuseContribution * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); + #ifdef USE_CLEARCOAT + vec3 Ncc = geometryClearcoatNormal; + vec2 uvClearcoat = LTC_Uv( Ncc, viewDir, material.clearcoatRoughness ); + vec4 t1Clearcoat = texture2D( ltc_1, uvClearcoat ); + vec4 t2Clearcoat = texture2D( ltc_2, uvClearcoat ); + mat3 mInvClearcoat = mat3( + vec3( t1Clearcoat.x, 0, t1Clearcoat.y ), + vec3( 0, 1, 0 ), + vec3( t1Clearcoat.z, 0, t1Clearcoat.w ) + ); + vec3 fresnelClearcoat = material.clearcoatF0 * t2Clearcoat.x + ( material.clearcoatF90 - material.clearcoatF0 ) * t2Clearcoat.y; + clearcoatSpecularDirect += lightColor * fresnelClearcoat * LTC_Evaluate( Ncc, viewDir, position, mInvClearcoat, rectCoords ); + #endif + } +#endif +void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); + vec3 irradiance = dotNL * directLight.color; + #ifdef USE_CLEARCOAT + float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); + vec3 ccIrradiance = dotNLcc * directLight.color; + clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); + #endif + #ifdef USE_SHEEN + + sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); + + float sheenAlbedoV = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + float sheenAlbedoL = IBLSheenBRDF( geometryNormal, directLight.direction, material.sheenRoughness ); + + float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * max( sheenAlbedoV, sheenAlbedoL ); + + irradiance *= sheenEnergyComp; + + #endif + reflectedLight.directSpecular += irradiance * BRDF_GGX_Multiscatter( directLight.direction, geometryViewDir, geometryNormal, material ); + reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseContribution ); +} +void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { + vec3 diffuse = irradiance * BRDF_Lambert( material.diffuseContribution ); + #ifdef USE_SHEEN + float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; + diffuse *= sheenEnergyComp; + #endif + reflectedLight.indirectDiffuse += diffuse; +} +void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { + #ifdef USE_CLEARCOAT + clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); + #endif + #ifdef USE_SHEEN + sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ) * RECIPROCAL_PI; + #endif + vec3 singleScatteringDielectric = vec3( 0.0 ); + vec3 multiScatteringDielectric = vec3( 0.0 ); + vec3 singleScatteringMetallic = vec3( 0.0 ); + vec3 multiScatteringMetallic = vec3( 0.0 ); + #ifdef USE_IRIDESCENCE + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnelDielectric, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); + computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.iridescence, material.iridescenceFresnelMetallic, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); + #else + computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScatteringDielectric, multiScatteringDielectric ); + computeMultiscattering( geometryNormal, geometryViewDir, material.diffuseColor, material.specularF90, material.roughness, singleScatteringMetallic, multiScatteringMetallic ); + #endif + vec3 singleScattering = mix( singleScatteringDielectric, singleScatteringMetallic, material.metalness ); + vec3 multiScattering = mix( multiScatteringDielectric, multiScatteringMetallic, material.metalness ); + vec3 totalScatteringDielectric = singleScatteringDielectric + multiScatteringDielectric; + vec3 diffuse = material.diffuseContribution * ( 1.0 - totalScatteringDielectric ); + vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; + vec3 indirectSpecular = radiance * singleScattering; + indirectSpecular += multiScattering * cosineWeightedIrradiance; + vec3 indirectDiffuse = diffuse * cosineWeightedIrradiance; + #ifdef USE_SHEEN + float sheenAlbedo = IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); + float sheenEnergyComp = 1.0 - max3( material.sheenColor ) * sheenAlbedo; + indirectSpecular *= sheenEnergyComp; + indirectDiffuse *= sheenEnergyComp; + #endif + reflectedLight.indirectSpecular += indirectSpecular; + reflectedLight.indirectDiffuse += indirectDiffuse; +} +#define RE_Direct RE_Direct_Physical +#define RE_Direct_RectArea RE_Direct_RectArea_Physical +#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical +#define RE_IndirectSpecular RE_IndirectSpecular_Physical +float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { + return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); +}`,lights_fragment_begin:` +vec3 geometryPosition = - vViewPosition; +vec3 geometryNormal = normal; +vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); +vec3 geometryClearcoatNormal = vec3( 0.0 ); +#ifdef USE_CLEARCOAT + geometryClearcoatNormal = clearcoatNormal; +#endif +#ifdef USE_IRIDESCENCE + float dotNVi = saturate( dot( normal, geometryViewDir ) ); + if ( material.iridescenceThickness == 0.0 ) { + material.iridescence = 0.0; + } else { + material.iridescence = saturate( material.iridescence ); + } + if ( material.iridescence > 0.0 ) { + material.iridescenceFresnelDielectric = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); + material.iridescenceFresnelMetallic = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.diffuseColor ); + material.iridescenceFresnel = mix( material.iridescenceFresnelDielectric, material.iridescenceFresnelMetallic, material.metalness ); + material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); + } +#endif +IncidentLight directLight; +#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) + PointLight pointLight; + #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 + PointLightShadow pointLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { + pointLight = pointLights[ i ]; + getPointLightInfo( pointLight, geometryPosition, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) + pointLightShadow = pointLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) + SpotLight spotLight; + vec4 spotColor; + vec3 spotLightCoord; + bool inSpotLightMap; + #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { + spotLight = spotLights[ i ]; + getSpotLightInfo( spotLight, geometryPosition, directLight ); + #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX + #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS + #else + #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) + #endif + #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) + spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; + inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); + spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); + directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; + #endif + #undef SPOT_LIGHT_MAP_INDEX + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + spotLightShadow = spotLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) + DirectionalLight directionalLight; + #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLightShadow; + #endif + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { + directionalLight = directionalLights[ i ]; + getDirectionalLightInfo( directionalLight, directLight ); + #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) + directionalLightShadow = directionalLightShadows[ i ]; + directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + #endif + RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) + RectAreaLight rectAreaLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { + rectAreaLight = rectAreaLights[ i ]; + RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); + } + #pragma unroll_loop_end +#endif +#if defined( RE_IndirectDiffuse ) + vec3 iblIrradiance = vec3( 0.0 ); + vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); + #if defined( USE_LIGHT_PROBES ) + irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); + #endif + #if ( NUM_HEMI_LIGHTS > 0 ) + #pragma unroll_loop_start + for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { + irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); + } + #pragma unroll_loop_end + #endif + #ifdef USE_LIGHT_PROBES_GRID + vec3 probeWorldPos = ( ( vec4( geometryPosition, 1.0 ) - viewMatrix[ 3 ] ) * viewMatrix ).xyz; + vec3 probeWorldNormal = inverseTransformDirection( geometryNormal, viewMatrix ); + irradiance += getLightProbeGridIrradiance( probeWorldPos, probeWorldNormal ); + #endif +#endif +#if defined( RE_IndirectSpecular ) + vec3 radiance = vec3( 0.0 ); + vec3 clearcoatRadiance = vec3( 0.0 ); +#endif`,lights_fragment_maps:`#if defined( RE_IndirectDiffuse ) + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; + irradiance += lightMapIrradiance; + #endif + #if defined( USE_ENVMAP ) && defined( ENVMAP_TYPE_CUBE_UV ) + #if defined( STANDARD ) || defined( LAMBERT ) || defined( PHONG ) + iblIrradiance += getIBLIrradiance( geometryNormal ); + #endif + #endif +#endif +#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) + #ifdef USE_ANISOTROPY + radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); + #else + radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); + #endif + #ifdef USE_CLEARCOAT + clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); + #endif +#endif`,lights_fragment_end:`#if defined( RE_IndirectDiffuse ) + #if defined( LAMBERT ) || defined( PHONG ) + irradiance += iblIrradiance; + #endif + RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif +#if defined( RE_IndirectSpecular ) + RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); +#endif`,lightprobes_pars_fragment:`#ifdef USE_LIGHT_PROBES_GRID +uniform highp sampler3D probesSH; +uniform vec3 probesMin; +uniform vec3 probesMax; +uniform vec3 probesResolution; +vec3 getLightProbeGridIrradiance( vec3 worldPos, vec3 worldNormal ) { + vec3 res = probesResolution; + vec3 gridRange = probesMax - probesMin; + vec3 resMinusOne = res - 1.0; + vec3 probeSpacing = gridRange / resMinusOne; + vec3 samplePos = worldPos + worldNormal * probeSpacing * 0.5; + vec3 uvw = clamp( ( samplePos - probesMin ) / gridRange, 0.0, 1.0 ); + uvw = uvw * resMinusOne / res + 0.5 / res; + float nz = res.z; + float paddedSlices = nz + 2.0; + float atlasDepth = 7.0 * paddedSlices; + float uvZBase = uvw.z * nz + 1.0; + vec4 s0 = texture( probesSH, vec3( uvw.xy, ( uvZBase ) / atlasDepth ) ); + vec4 s1 = texture( probesSH, vec3( uvw.xy, ( uvZBase + paddedSlices ) / atlasDepth ) ); + vec4 s2 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 2.0 * paddedSlices ) / atlasDepth ) ); + vec4 s3 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 3.0 * paddedSlices ) / atlasDepth ) ); + vec4 s4 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 4.0 * paddedSlices ) / atlasDepth ) ); + vec4 s5 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 5.0 * paddedSlices ) / atlasDepth ) ); + vec4 s6 = texture( probesSH, vec3( uvw.xy, ( uvZBase + 6.0 * paddedSlices ) / atlasDepth ) ); + vec3 c0 = s0.xyz; + vec3 c1 = vec3( s0.w, s1.xy ); + vec3 c2 = vec3( s1.zw, s2.x ); + vec3 c3 = s2.yzw; + vec3 c4 = s3.xyz; + vec3 c5 = vec3( s3.w, s4.xy ); + vec3 c6 = vec3( s4.zw, s5.x ); + vec3 c7 = s5.yzw; + vec3 c8 = s6.xyz; + float x = worldNormal.x, y = worldNormal.y, z = worldNormal.z; + vec3 result = c0 * 0.886227; + result += c1 * 2.0 * 0.511664 * y; + result += c2 * 2.0 * 0.511664 * z; + result += c3 * 2.0 * 0.511664 * x; + result += c4 * 2.0 * 0.429043 * x * y; + result += c5 * 2.0 * 0.429043 * y * z; + result += c6 * ( 0.743125 * z * z - 0.247708 ); + result += c7 * 2.0 * 0.429043 * x * z; + result += c8 * 0.429043 * ( x * x - y * y ); + return max( result, vec3( 0.0 ) ); +} +#endif`,logdepthbuf_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) + gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; +#endif`,logdepthbuf_pars_fragment:`#if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) + uniform float logDepthBufFC; + varying float vFragDepth; + varying float vIsPerspective; +#endif`,logdepthbuf_pars_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER + varying float vFragDepth; + varying float vIsPerspective; +#endif`,logdepthbuf_vertex:`#ifdef USE_LOGARITHMIC_DEPTH_BUFFER + vFragDepth = 1.0 + gl_Position.w; + vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); +#endif`,map_fragment:`#ifdef USE_MAP + vec4 sampledDiffuseColor = texture2D( map, vMapUv ); + #ifdef DECODE_VIDEO_TEXTURE + sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); + #endif + diffuseColor *= sampledDiffuseColor; +#endif`,map_pars_fragment:`#ifdef USE_MAP + uniform sampler2D map; +#endif`,map_particle_fragment:`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + #if defined( USE_POINTS_UV ) + vec2 uv = vUv; + #else + vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; + #endif +#endif +#ifdef USE_MAP + diffuseColor *= texture2D( map, uv ); +#endif +#ifdef USE_ALPHAMAP + diffuseColor.a *= texture2D( alphaMap, uv ).g; +#endif`,map_particle_pars_fragment:`#if defined( USE_POINTS_UV ) + varying vec2 vUv; +#else + #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) + uniform mat3 uvTransform; + #endif +#endif +#ifdef USE_MAP + uniform sampler2D map; +#endif +#ifdef USE_ALPHAMAP + uniform sampler2D alphaMap; +#endif`,metalnessmap_fragment:`float metalnessFactor = metalness; +#ifdef USE_METALNESSMAP + vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); + metalnessFactor *= texelMetalness.b; +#endif`,metalnessmap_pars_fragment:`#ifdef USE_METALNESSMAP + uniform sampler2D metalnessMap; +#endif`,morphinstance_vertex:`#ifdef USE_INSTANCING_MORPH + float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; + } +#endif`,morphcolor_vertex:`#if defined( USE_MORPHCOLORS ) + vColor *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + #if defined( USE_COLOR_ALPHA ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; + #elif defined( USE_COLOR ) + if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; + #endif + } +#endif`,morphnormal_vertex:`#ifdef USE_MORPHNORMALS + objectNormal *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; + } +#endif`,morphtarget_pars_vertex:`#ifdef USE_MORPHTARGETS + #ifndef USE_INSTANCING_MORPH + uniform float morphTargetBaseInfluence; + uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; + #endif + uniform sampler2DArray morphTargetsTexture; + uniform ivec2 morphTargetsTextureSize; + vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { + int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; + int y = texelIndex / morphTargetsTextureSize.x; + int x = texelIndex - y * morphTargetsTextureSize.x; + ivec3 morphUV = ivec3( x, y, morphTargetIndex ); + return texelFetch( morphTargetsTexture, morphUV, 0 ); + } +#endif`,morphtarget_vertex:`#ifdef USE_MORPHTARGETS + transformed *= morphTargetBaseInfluence; + for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { + if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; + } +#endif`,normal_fragment_begin:`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#ifdef FLAT_SHADED + vec3 fdx = dFdx( vViewPosition ); + vec3 fdy = dFdy( vViewPosition ); + vec3 normal = normalize( cross( fdx, fdy ) ); +#else + vec3 normal = normalize( vNormal ); + #ifdef DOUBLE_SIDED + normal *= faceDirection; + #endif +#endif +#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) + #ifdef USE_TANGENT + mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn = getTangentFrame( - vViewPosition, normal, + #if defined( USE_NORMALMAP ) + vNormalMapUv + #elif defined( USE_CLEARCOAT_NORMALMAP ) + vClearcoatNormalMapUv + #else + vUv + #endif + ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn[0] *= faceDirection; + tbn[1] *= faceDirection; + #endif +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + #ifdef USE_TANGENT + mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); + #else + mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); + #endif + #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) + tbn2[0] *= faceDirection; + tbn2[1] *= faceDirection; + #endif +#endif +vec3 nonPerturbedNormal = normal;`,normal_fragment_maps:`#ifdef USE_NORMALMAP_OBJECTSPACE + normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #ifdef FLIP_SIDED + normal = - normal; + #endif + #ifdef DOUBLE_SIDED + normal = normal * faceDirection; + #endif + normal = normalize( normalMatrix * normal ); +#elif defined( USE_NORMALMAP_TANGENTSPACE ) + vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; + #if defined( USE_PACKED_NORMALMAP ) + mapN = vec3( mapN.xy, sqrt( saturate( 1.0 - dot( mapN.xy, mapN.xy ) ) ) ); + #endif + mapN.xy *= normalScale; + normal = normalize( tbn * mapN ); +#elif defined( USE_BUMPMAP ) + normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); +#endif`,normal_pars_fragment:`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,normal_pars_vertex:`#ifndef FLAT_SHADED + varying vec3 vNormal; + #ifdef USE_TANGENT + varying vec3 vTangent; + varying vec3 vBitangent; + #endif +#endif`,normal_vertex:`#ifndef FLAT_SHADED + vNormal = normalize( transformedNormal ); + #ifdef USE_TANGENT + vTangent = normalize( transformedTangent ); + vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); + #endif +#endif`,normalmap_pars_fragment:`#ifdef USE_NORMALMAP + uniform sampler2D normalMap; + uniform vec2 normalScale; +#endif +#ifdef USE_NORMALMAP_OBJECTSPACE + uniform mat3 normalMatrix; +#endif +#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) + mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { + vec3 q0 = dFdx( eye_pos.xyz ); + vec3 q1 = dFdy( eye_pos.xyz ); + vec2 st0 = dFdx( uv.st ); + vec2 st1 = dFdy( uv.st ); + vec3 N = surf_norm; + vec3 q1perp = cross( q1, N ); + vec3 q0perp = cross( N, q0 ); + vec3 T = q1perp * st0.x + q0perp * st1.x; + vec3 B = q1perp * st0.y + q0perp * st1.y; + float det = max( dot( T, T ), dot( B, B ) ); + float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); + return mat3( T * scale, B * scale, N ); + } +#endif`,clearcoat_normal_fragment_begin:`#ifdef USE_CLEARCOAT + vec3 clearcoatNormal = nonPerturbedNormal; +#endif`,clearcoat_normal_fragment_maps:`#ifdef USE_CLEARCOAT_NORMALMAP + vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; + clearcoatMapN.xy *= clearcoatNormalScale; + clearcoatNormal = normalize( tbn2 * clearcoatMapN ); +#endif`,clearcoat_pars_fragment:`#ifdef USE_CLEARCOATMAP + uniform sampler2D clearcoatMap; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform sampler2D clearcoatNormalMap; + uniform vec2 clearcoatNormalScale; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform sampler2D clearcoatRoughnessMap; +#endif`,iridescence_pars_fragment:`#ifdef USE_IRIDESCENCEMAP + uniform sampler2D iridescenceMap; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform sampler2D iridescenceThicknessMap; +#endif`,opaque_fragment:`#ifdef OPAQUE +diffuseColor.a = 1.0; +#endif +#ifdef USE_TRANSMISSION +diffuseColor.a *= material.transmissionAlpha; +#endif +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,packing:`vec3 packNormalToRGB( const in vec3 normal ) { + return normalize( normal ) * 0.5 + 0.5; +} +vec3 unpackRGBToNormal( const in vec3 rgb ) { + return 2.0 * rgb.xyz - 1.0; +} +const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; +const float Inv255 = 1. / 255.; +const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); +const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); +const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); +const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); +vec4 packDepthToRGBA( const in float v ) { + if( v <= 0.0 ) + return vec4( 0., 0., 0., 0. ); + if( v >= 1.0 ) + return vec4( 1., 1., 1., 1. ); + float vuf; + float af = modf( v * PackFactors.a, vuf ); + float bf = modf( vuf * ShiftRight8, vuf ); + float gf = modf( vuf * ShiftRight8, vuf ); + return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); +} +vec3 packDepthToRGB( const in float v ) { + if( v <= 0.0 ) + return vec3( 0., 0., 0. ); + if( v >= 1.0 ) + return vec3( 1., 1., 1. ); + float vuf; + float bf = modf( v * PackFactors.b, vuf ); + float gf = modf( vuf * ShiftRight8, vuf ); + return vec3( vuf * Inv255, gf * PackUpscale, bf ); +} +vec2 packDepthToRG( const in float v ) { + if( v <= 0.0 ) + return vec2( 0., 0. ); + if( v >= 1.0 ) + return vec2( 1., 1. ); + float vuf; + float gf = modf( v * 256., vuf ); + return vec2( vuf * Inv255, gf ); +} +float unpackRGBAToDepth( const in vec4 v ) { + return dot( v, UnpackFactors4 ); +} +float unpackRGBToDepth( const in vec3 v ) { + return dot( v, UnpackFactors3 ); +} +float unpackRGToDepth( const in vec2 v ) { + return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; +} +vec4 pack2HalfToRGBA( const in vec2 v ) { + vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); + return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); +} +vec2 unpackRGBATo2Half( const in vec4 v ) { + return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); +} +float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { + return ( viewZ + near ) / ( near - far ); +} +float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { + #ifdef USE_REVERSED_DEPTH_BUFFER + + return depth * ( far - near ) - far; + #else + return depth * ( near - far ) - near; + #endif +} +float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { + return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); +} +float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { + + #ifdef USE_REVERSED_DEPTH_BUFFER + return ( near * far ) / ( ( near - far ) * depth - near ); + #else + return ( near * far ) / ( ( far - near ) * depth - far ); + #endif +}`,premultiplied_alpha_fragment:`#ifdef PREMULTIPLIED_ALPHA + gl_FragColor.rgb *= gl_FragColor.a; +#endif`,project_vertex:`vec4 mvPosition = vec4( transformed, 1.0 ); +#ifdef USE_BATCHING + mvPosition = batchingMatrix * mvPosition; +#endif +#ifdef USE_INSTANCING + mvPosition = instanceMatrix * mvPosition; +#endif +mvPosition = modelViewMatrix * mvPosition; +gl_Position = projectionMatrix * mvPosition;`,dithering_fragment:`#ifdef DITHERING + gl_FragColor.rgb = dithering( gl_FragColor.rgb ); +#endif`,dithering_pars_fragment:`#ifdef DITHERING + vec3 dithering( vec3 color ) { + float grid_position = rand( gl_FragCoord.xy ); + vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); + dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); + return color + dither_shift_RGB; + } +#endif`,roughnessmap_fragment:`float roughnessFactor = roughness; +#ifdef USE_ROUGHNESSMAP + vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); + roughnessFactor *= texelRoughness.g; +#endif`,roughnessmap_pars_fragment:`#ifdef USE_ROUGHNESSMAP + uniform sampler2D roughnessMap; +#endif`,shadowmap_pars_fragment:`#if NUM_SPOT_LIGHT_COORDS > 0 + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#if NUM_SPOT_LIGHT_MAPS > 0 + uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + #if defined( SHADOWMAP_TYPE_PCF ) + uniform sampler2DShadow directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + #else + uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + #if defined( SHADOWMAP_TYPE_PCF ) + uniform sampler2DShadow spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + #else + uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + struct SpotLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #if defined( SHADOWMAP_TYPE_PCF ) + uniform samplerCubeShadow pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + #elif defined( SHADOWMAP_TYPE_BASIC ) + uniform samplerCube pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif + #if defined( SHADOWMAP_TYPE_PCF ) + float interleavedGradientNoise( vec2 position ) { + return fract( 52.9829189 * fract( dot( position, vec2( 0.06711056, 0.00583715 ) ) ) ); + } + vec2 vogelDiskSample( int sampleIndex, int samplesCount, float phi ) { + const float goldenAngle = 2.399963229728653; + float r = sqrt( ( float( sampleIndex ) + 0.5 ) / float( samplesCount ) ); + float theta = float( sampleIndex ) * goldenAngle + phi; + return vec2( cos( theta ), sin( theta ) ) * r; + } + #endif + #if defined( SHADOWMAP_TYPE_PCF ) + float getShadow( sampler2DShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + shadowCoord.z += shadowBias; + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + vec2 texelSize = vec2( 1.0 ) / shadowMapSize; + float radius = shadowRadius * texelSize.x; + float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2; + shadow = ( + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 0, 5, phi ) * radius, shadowCoord.z ) ) + + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 1, 5, phi ) * radius, shadowCoord.z ) ) + + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 2, 5, phi ) * radius, shadowCoord.z ) ) + + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 3, 5, phi ) * radius, shadowCoord.z ) ) + + texture( shadowMap, vec3( shadowCoord.xy + vogelDiskSample( 4, 5, phi ) * radius, shadowCoord.z ) ) + ) * 0.2; + } + return mix( 1.0, shadow, shadowIntensity ); + } + #elif defined( SHADOWMAP_TYPE_VSM ) + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + #ifdef USE_REVERSED_DEPTH_BUFFER + shadowCoord.z -= shadowBias; + #else + shadowCoord.z += shadowBias; + #endif + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + vec2 distribution = texture2D( shadowMap, shadowCoord.xy ).rg; + float mean = distribution.x; + float variance = distribution.y * distribution.y; + #ifdef USE_REVERSED_DEPTH_BUFFER + float hard_shadow = step( mean, shadowCoord.z ); + #else + float hard_shadow = step( shadowCoord.z, mean ); + #endif + + if ( hard_shadow == 1.0 ) { + shadow = 1.0; + } else { + variance = max( variance, 0.0000001 ); + float d = shadowCoord.z - mean; + float p_max = variance / ( variance + d * d ); + p_max = clamp( ( p_max - 0.3 ) / 0.65, 0.0, 1.0 ); + shadow = max( hard_shadow, p_max ); + } + } + return mix( 1.0, shadow, shadowIntensity ); + } + #else + float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { + float shadow = 1.0; + shadowCoord.xyz /= shadowCoord.w; + #ifdef USE_REVERSED_DEPTH_BUFFER + shadowCoord.z -= shadowBias; + #else + shadowCoord.z += shadowBias; + #endif + bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; + bool frustumTest = inFrustum && shadowCoord.z <= 1.0; + if ( frustumTest ) { + float depth = texture2D( shadowMap, shadowCoord.xy ).r; + #ifdef USE_REVERSED_DEPTH_BUFFER + shadow = step( depth, shadowCoord.z ); + #else + shadow = step( shadowCoord.z, depth ); + #endif + } + return mix( 1.0, shadow, shadowIntensity ); + } + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #if defined( SHADOWMAP_TYPE_PCF ) + float getPointShadow( samplerCubeShadow shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + float shadow = 1.0; + vec3 lightToPosition = shadowCoord.xyz; + vec3 bd3D = normalize( lightToPosition ); + vec3 absVec = abs( lightToPosition ); + float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); + if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { + #ifdef USE_REVERSED_DEPTH_BUFFER + float dp = ( shadowCameraNear * ( shadowCameraFar - viewSpaceZ ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); + dp -= shadowBias; + #else + float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); + dp += shadowBias; + #endif + float texelSize = shadowRadius / shadowMapSize.x; + vec3 absDir = abs( bd3D ); + vec3 tangent = absDir.x > absDir.z ? vec3( 0.0, 1.0, 0.0 ) : vec3( 1.0, 0.0, 0.0 ); + tangent = normalize( cross( bd3D, tangent ) ); + vec3 bitangent = cross( bd3D, tangent ); + float phi = interleavedGradientNoise( gl_FragCoord.xy ) * PI2; + vec2 sample0 = vogelDiskSample( 0, 5, phi ); + vec2 sample1 = vogelDiskSample( 1, 5, phi ); + vec2 sample2 = vogelDiskSample( 2, 5, phi ); + vec2 sample3 = vogelDiskSample( 3, 5, phi ); + vec2 sample4 = vogelDiskSample( 4, 5, phi ); + shadow = ( + texture( shadowMap, vec4( bd3D + ( tangent * sample0.x + bitangent * sample0.y ) * texelSize, dp ) ) + + texture( shadowMap, vec4( bd3D + ( tangent * sample1.x + bitangent * sample1.y ) * texelSize, dp ) ) + + texture( shadowMap, vec4( bd3D + ( tangent * sample2.x + bitangent * sample2.y ) * texelSize, dp ) ) + + texture( shadowMap, vec4( bd3D + ( tangent * sample3.x + bitangent * sample3.y ) * texelSize, dp ) ) + + texture( shadowMap, vec4( bd3D + ( tangent * sample4.x + bitangent * sample4.y ) * texelSize, dp ) ) + ) * 0.2; + } + return mix( 1.0, shadow, shadowIntensity ); + } + #elif defined( SHADOWMAP_TYPE_BASIC ) + float getPointShadow( samplerCube shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { + float shadow = 1.0; + vec3 lightToPosition = shadowCoord.xyz; + vec3 absVec = abs( lightToPosition ); + float viewSpaceZ = max( max( absVec.x, absVec.y ), absVec.z ); + if ( viewSpaceZ - shadowCameraFar <= 0.0 && viewSpaceZ - shadowCameraNear >= 0.0 ) { + float dp = ( shadowCameraFar * ( viewSpaceZ - shadowCameraNear ) ) / ( viewSpaceZ * ( shadowCameraFar - shadowCameraNear ) ); + dp += shadowBias; + vec3 bd3D = normalize( lightToPosition ); + float depth = textureCube( shadowMap, bd3D ).r; + #ifdef USE_REVERSED_DEPTH_BUFFER + depth = 1.0 - depth; + #endif + shadow = step( dp, depth ); + } + return mix( 1.0, shadow, shadowIntensity ); + } + #endif + #endif +#endif`,shadowmap_pars_vertex:`#if NUM_SPOT_LIGHT_COORDS > 0 + uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; + varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; +#endif +#ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; + varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; + struct DirectionalLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + struct SpotLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + }; + uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; + varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; + struct PointLightShadow { + float shadowIntensity; + float shadowBias; + float shadowNormalBias; + float shadowRadius; + vec2 shadowMapSize; + float shadowCameraNear; + float shadowCameraFar; + }; + uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; + #endif +#endif`,shadowmap_vertex:`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) + #ifdef HAS_NORMAL + vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); + #else + vec3 shadowWorldNormal = vec3( 0.0 ); + #endif + vec4 shadowWorldPosition; +#endif +#if defined( USE_SHADOWMAP ) + #if NUM_DIR_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); + vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); + vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end + #endif +#endif +#if NUM_SPOT_LIGHT_COORDS > 0 + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { + shadowWorldPosition = worldPosition; + #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) + shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; + #endif + vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; + } + #pragma unroll_loop_end +#endif`,shadowmask_pars_fragment:`float getShadowMask() { + float shadow = 1.0; + #ifdef USE_SHADOWMAP + #if NUM_DIR_LIGHT_SHADOWS > 0 + DirectionalLightShadow directionalLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { + directionalLight = directionalLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_SPOT_LIGHT_SHADOWS > 0 + SpotLightShadow spotLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { + spotLight = spotLightShadows[ i ]; + shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; + } + #pragma unroll_loop_end + #endif + #if NUM_POINT_LIGHT_SHADOWS > 0 && ( defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_BASIC ) ) + PointLightShadow pointLight; + #pragma unroll_loop_start + for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { + pointLight = pointLightShadows[ i ]; + shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; + } + #pragma unroll_loop_end + #endif + #endif + return shadow; +}`,skinbase_vertex:`#ifdef USE_SKINNING + mat4 boneMatX = getBoneMatrix( skinIndex.x ); + mat4 boneMatY = getBoneMatrix( skinIndex.y ); + mat4 boneMatZ = getBoneMatrix( skinIndex.z ); + mat4 boneMatW = getBoneMatrix( skinIndex.w ); +#endif`,skinning_pars_vertex:`#ifdef USE_SKINNING + uniform mat4 bindMatrix; + uniform mat4 bindMatrixInverse; + uniform highp sampler2D boneTexture; + mat4 getBoneMatrix( const in float i ) { + int size = textureSize( boneTexture, 0 ).x; + int j = int( i ) * 4; + int x = j % size; + int y = j / size; + vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); + vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); + vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); + vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); + return mat4( v1, v2, v3, v4 ); + } +#endif`,skinning_vertex:`#ifdef USE_SKINNING + vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); + vec4 skinned = vec4( 0.0 ); + skinned += boneMatX * skinVertex * skinWeight.x; + skinned += boneMatY * skinVertex * skinWeight.y; + skinned += boneMatZ * skinVertex * skinWeight.z; + skinned += boneMatW * skinVertex * skinWeight.w; + transformed = ( bindMatrixInverse * skinned ).xyz; +#endif`,skinnormal_vertex:`#ifdef USE_SKINNING + mat4 skinMatrix = mat4( 0.0 ); + skinMatrix += skinWeight.x * boneMatX; + skinMatrix += skinWeight.y * boneMatY; + skinMatrix += skinWeight.z * boneMatZ; + skinMatrix += skinWeight.w * boneMatW; + skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; + objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; + #ifdef USE_TANGENT + objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; + #endif +#endif`,specularmap_fragment:`float specularStrength; +#ifdef USE_SPECULARMAP + vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); + specularStrength = texelSpecular.r; +#else + specularStrength = 1.0; +#endif`,specularmap_pars_fragment:`#ifdef USE_SPECULARMAP + uniform sampler2D specularMap; +#endif`,tonemapping_fragment:`#if defined( TONE_MAPPING ) + gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); +#endif`,tonemapping_pars_fragment:`#ifndef saturate +#define saturate( a ) clamp( a, 0.0, 1.0 ) +#endif +uniform float toneMappingExposure; +vec3 LinearToneMapping( vec3 color ) { + return saturate( toneMappingExposure * color ); +} +vec3 ReinhardToneMapping( vec3 color ) { + color *= toneMappingExposure; + return saturate( color / ( vec3( 1.0 ) + color ) ); +} +vec3 CineonToneMapping( vec3 color ) { + color *= toneMappingExposure; + color = max( vec3( 0.0 ), color - 0.004 ); + return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); +} +vec3 RRTAndODTFit( vec3 v ) { + vec3 a = v * ( v + 0.0245786 ) - 0.000090537; + vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; + return a / b; +} +vec3 ACESFilmicToneMapping( vec3 color ) { + const mat3 ACESInputMat = mat3( + vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), + vec3( 0.04823, 0.01566, 0.83777 ) + ); + const mat3 ACESOutputMat = mat3( + vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), + vec3( -0.07367, -0.00605, 1.07602 ) + ); + color *= toneMappingExposure / 0.6; + color = ACESInputMat * color; + color = RRTAndODTFit( color ); + color = ACESOutputMat * color; + return saturate( color ); +} +const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( + vec3( 1.6605, - 0.1246, - 0.0182 ), + vec3( - 0.5876, 1.1329, - 0.1006 ), + vec3( - 0.0728, - 0.0083, 1.1187 ) +); +const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( + vec3( 0.6274, 0.0691, 0.0164 ), + vec3( 0.3293, 0.9195, 0.0880 ), + vec3( 0.0433, 0.0113, 0.8956 ) +); +vec3 agxDefaultContrastApprox( vec3 x ) { + vec3 x2 = x * x; + vec3 x4 = x2 * x2; + return + 15.5 * x4 * x2 + - 40.14 * x4 * x + + 31.96 * x4 + - 6.868 * x2 * x + + 0.4298 * x2 + + 0.1191 * x + - 0.00232; +} +vec3 AgXToneMapping( vec3 color ) { + const mat3 AgXInsetMatrix = mat3( + vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), + vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), + vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) + ); + const mat3 AgXOutsetMatrix = mat3( + vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), + vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), + vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) + ); + const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; + color *= toneMappingExposure; + color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; + color = AgXInsetMatrix * color; + color = max( color, 1e-10 ); color = log2( color ); + color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); + color = clamp( color, 0.0, 1.0 ); + color = agxDefaultContrastApprox( color ); + color = AgXOutsetMatrix * color; + color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); + color = LINEAR_REC2020_TO_LINEAR_SRGB * color; + color = clamp( color, 0.0, 1.0 ); + return color; +} +vec3 NeutralToneMapping( vec3 color ) { + const float StartCompression = 0.8 - 0.04; + const float Desaturation = 0.15; + color *= toneMappingExposure; + float x = min( color.r, min( color.g, color.b ) ); + float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; + color -= offset; + float peak = max( color.r, max( color.g, color.b ) ); + if ( peak < StartCompression ) return color; + float d = 1. - StartCompression; + float newPeak = 1. - d * d / ( peak + d - StartCompression ); + color *= newPeak / peak; + float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); + return mix( color, vec3( newPeak ), g ); +} +vec3 CustomToneMapping( vec3 color ) { return color; }`,transmission_fragment:`#ifdef USE_TRANSMISSION + material.transmission = transmission; + material.transmissionAlpha = 1.0; + material.thickness = thickness; + material.attenuationDistance = attenuationDistance; + material.attenuationColor = attenuationColor; + #ifdef USE_TRANSMISSIONMAP + material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; + #endif + #ifdef USE_THICKNESSMAP + material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; + #endif + vec3 pos = vWorldPosition; + vec3 v = normalize( cameraPosition - pos ); + vec3 n = inverseTransformDirection( normal, viewMatrix ); + vec4 transmitted = getIBLVolumeRefraction( + n, v, material.roughness, material.diffuseContribution, material.specularColorBlended, material.specularF90, + pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, + material.attenuationColor, material.attenuationDistance ); + material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); + totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); +#endif`,transmission_pars_fragment:`#ifdef USE_TRANSMISSION + uniform float transmission; + uniform float thickness; + uniform float attenuationDistance; + uniform vec3 attenuationColor; + #ifdef USE_TRANSMISSIONMAP + uniform sampler2D transmissionMap; + #endif + #ifdef USE_THICKNESSMAP + uniform sampler2D thicknessMap; + #endif + uniform vec2 transmissionSamplerSize; + uniform sampler2D transmissionSamplerMap; + uniform mat4 modelMatrix; + uniform mat4 projectionMatrix; + varying vec3 vWorldPosition; + float w0( float a ) { + return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); + } + float w1( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); + } + float w2( float a ){ + return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); + } + float w3( float a ) { + return ( 1.0 / 6.0 ) * ( a * a * a ); + } + float g0( float a ) { + return w0( a ) + w1( a ); + } + float g1( float a ) { + return w2( a ) + w3( a ); + } + float h0( float a ) { + return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); + } + float h1( float a ) { + return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); + } + vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { + uv = uv * texelSize.zw + 0.5; + vec2 iuv = floor( uv ); + vec2 fuv = fract( uv ); + float g0x = g0( fuv.x ); + float g1x = g1( fuv.x ); + float h0x = h0( fuv.x ); + float h1x = h1( fuv.x ); + float h0y = h0( fuv.y ); + float h1y = h1( fuv.y ); + vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; + vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; + return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); + } + vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { + vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); + vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); + vec2 fLodSizeInv = 1.0 / fLodSize; + vec2 cLodSizeInv = 1.0 / cLodSize; + vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); + vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); + return mix( fSample, cSample, fract( lod ) ); + } + vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { + vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); + vec3 modelScale; + modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); + modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); + modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); + return normalize( refractionVector ) * thickness * modelScale; + } + float applyIorToRoughness( const in float roughness, const in float ior ) { + return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); + } + vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { + float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); + return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); + } + vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { + if ( isinf( attenuationDistance ) ) { + return vec3( 1.0 ); + } else { + vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; + vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; + } + } + vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, + const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, + const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, + const in vec3 attenuationColor, const in float attenuationDistance ) { + vec4 transmittedLight; + vec3 transmittance; + #ifdef USE_DISPERSION + float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; + vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); + for ( int i = 0; i < 3; i ++ ) { + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); + transmittedLight[ i ] = transmissionSample[ i ]; + transmittedLight.a += transmissionSample.a; + transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; + } + transmittedLight.a /= 3.0; + #else + vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); + vec3 refractedRayExit = position + transmissionRay; + vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); + vec2 refractionCoords = ndcPos.xy / ndcPos.w; + refractionCoords += 1.0; + refractionCoords /= 2.0; + transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); + transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); + #endif + vec3 attenuatedColor = transmittance * transmittedLight.rgb; + vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); + float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; + return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); + } +#endif`,uv_pars_fragment:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + varying vec2 vNormalMapUv; +#endif +#ifdef USE_EMISSIVEMAP + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_SPECULARMAP + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,uv_pars_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + varying vec2 vUv; +#endif +#ifdef USE_MAP + uniform mat3 mapTransform; + varying vec2 vMapUv; +#endif +#ifdef USE_ALPHAMAP + uniform mat3 alphaMapTransform; + varying vec2 vAlphaMapUv; +#endif +#ifdef USE_LIGHTMAP + uniform mat3 lightMapTransform; + varying vec2 vLightMapUv; +#endif +#ifdef USE_AOMAP + uniform mat3 aoMapTransform; + varying vec2 vAoMapUv; +#endif +#ifdef USE_BUMPMAP + uniform mat3 bumpMapTransform; + varying vec2 vBumpMapUv; +#endif +#ifdef USE_NORMALMAP + uniform mat3 normalMapTransform; + varying vec2 vNormalMapUv; +#endif +#ifdef USE_DISPLACEMENTMAP + uniform mat3 displacementMapTransform; + varying vec2 vDisplacementMapUv; +#endif +#ifdef USE_EMISSIVEMAP + uniform mat3 emissiveMapTransform; + varying vec2 vEmissiveMapUv; +#endif +#ifdef USE_METALNESSMAP + uniform mat3 metalnessMapTransform; + varying vec2 vMetalnessMapUv; +#endif +#ifdef USE_ROUGHNESSMAP + uniform mat3 roughnessMapTransform; + varying vec2 vRoughnessMapUv; +#endif +#ifdef USE_ANISOTROPYMAP + uniform mat3 anisotropyMapTransform; + varying vec2 vAnisotropyMapUv; +#endif +#ifdef USE_CLEARCOATMAP + uniform mat3 clearcoatMapTransform; + varying vec2 vClearcoatMapUv; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + uniform mat3 clearcoatNormalMapTransform; + varying vec2 vClearcoatNormalMapUv; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + uniform mat3 clearcoatRoughnessMapTransform; + varying vec2 vClearcoatRoughnessMapUv; +#endif +#ifdef USE_SHEEN_COLORMAP + uniform mat3 sheenColorMapTransform; + varying vec2 vSheenColorMapUv; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + uniform mat3 sheenRoughnessMapTransform; + varying vec2 vSheenRoughnessMapUv; +#endif +#ifdef USE_IRIDESCENCEMAP + uniform mat3 iridescenceMapTransform; + varying vec2 vIridescenceMapUv; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + uniform mat3 iridescenceThicknessMapTransform; + varying vec2 vIridescenceThicknessMapUv; +#endif +#ifdef USE_SPECULARMAP + uniform mat3 specularMapTransform; + varying vec2 vSpecularMapUv; +#endif +#ifdef USE_SPECULAR_COLORMAP + uniform mat3 specularColorMapTransform; + varying vec2 vSpecularColorMapUv; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + uniform mat3 specularIntensityMapTransform; + varying vec2 vSpecularIntensityMapUv; +#endif +#ifdef USE_TRANSMISSIONMAP + uniform mat3 transmissionMapTransform; + varying vec2 vTransmissionMapUv; +#endif +#ifdef USE_THICKNESSMAP + uniform mat3 thicknessMapTransform; + varying vec2 vThicknessMapUv; +#endif`,uv_vertex:`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) + vUv = vec3( uv, 1 ).xy; +#endif +#ifdef USE_MAP + vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ALPHAMAP + vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_LIGHTMAP + vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_AOMAP + vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_BUMPMAP + vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_NORMALMAP + vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_DISPLACEMENTMAP + vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_EMISSIVEMAP + vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_METALNESSMAP + vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ROUGHNESSMAP + vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_ANISOTROPYMAP + vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOATMAP + vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_NORMALMAP + vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_CLEARCOAT_ROUGHNESSMAP + vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCEMAP + vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_IRIDESCENCE_THICKNESSMAP + vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_COLORMAP + vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SHEEN_ROUGHNESSMAP + vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULARMAP + vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_COLORMAP + vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_SPECULAR_INTENSITYMAP + vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_TRANSMISSIONMAP + vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; +#endif +#ifdef USE_THICKNESSMAP + vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; +#endif`,worldpos_vertex:`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 + vec4 worldPosition = vec4( transformed, 1.0 ); + #ifdef USE_BATCHING + worldPosition = batchingMatrix * worldPosition; + #endif + #ifdef USE_INSTANCING + worldPosition = instanceMatrix * worldPosition; + #endif + worldPosition = modelMatrix * worldPosition; +#endif`,background_vert:`varying vec2 vUv; +uniform mat3 uvTransform; +void main() { + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + gl_Position = vec4( position.xy, 1.0, 1.0 ); +}`,background_frag:`uniform sampler2D t2D; +uniform float backgroundIntensity; +varying vec2 vUv; +void main() { + vec4 texColor = texture2D( t2D, vUv ); + #ifdef DECODE_VIDEO_TEXTURE + texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,backgroundCube_vert:`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,backgroundCube_frag:`#ifdef ENVMAP_TYPE_CUBE + uniform samplerCube envMap; +#elif defined( ENVMAP_TYPE_CUBE_UV ) + uniform sampler2D envMap; +#endif +uniform float backgroundBlurriness; +uniform float backgroundIntensity; +uniform mat3 backgroundRotation; +varying vec3 vWorldDirection; +#include +void main() { + #ifdef ENVMAP_TYPE_CUBE + vec4 texColor = textureCube( envMap, backgroundRotation * vWorldDirection ); + #elif defined( ENVMAP_TYPE_CUBE_UV ) + vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); + #else + vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + #endif + texColor.rgb *= backgroundIntensity; + gl_FragColor = texColor; + #include + #include +}`,cube_vert:`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include + gl_Position.z = gl_Position.w; +}`,cube_frag:`uniform samplerCube tCube; +uniform float tFlip; +uniform float opacity; +varying vec3 vWorldDirection; +void main() { + vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); + gl_FragColor = texColor; + gl_FragColor.a *= opacity; + #include + #include +}`,depth_vert:`#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vHighPrecisionZW = gl_Position.zw; +}`,depth_frag:`#if DEPTH_PACKING == 3200 + uniform float opacity; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +varying vec2 vHighPrecisionZW; +void main() { + vec4 diffuseColor = vec4( 1.0 ); + #include + #if DEPTH_PACKING == 3200 + diffuseColor.a = opacity; + #endif + #include + #include + #include + #include + #include + #ifdef USE_REVERSED_DEPTH_BUFFER + float fragCoordZ = vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ]; + #else + float fragCoordZ = 0.5 * vHighPrecisionZW[ 0 ] / vHighPrecisionZW[ 1 ] + 0.5; + #endif + #if DEPTH_PACKING == 3200 + gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); + #elif DEPTH_PACKING == 3201 + gl_FragColor = packDepthToRGBA( fragCoordZ ); + #elif DEPTH_PACKING == 3202 + gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); + #elif DEPTH_PACKING == 3203 + gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); + #endif +}`,distance_vert:`#define DISTANCE +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #ifdef USE_DISPLACEMENTMAP + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + vWorldPosition = worldPosition.xyz; +}`,distance_frag:`#define DISTANCE +uniform vec3 referencePosition; +uniform float nearDistance; +uniform float farDistance; +varying vec3 vWorldPosition; +#include +#include +#include +#include +#include +#include +#include +void main () { + vec4 diffuseColor = vec4( 1.0 ); + #include + #include + #include + #include + #include + float dist = length( vWorldPosition - referencePosition ); + dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); + dist = saturate( dist ); + gl_FragColor = vec4( dist, 0.0, 0.0, 1.0 ); +}`,equirect_vert:`varying vec3 vWorldDirection; +#include +void main() { + vWorldDirection = transformDirection( position, modelMatrix ); + #include + #include +}`,equirect_frag:`uniform sampler2D tEquirect; +varying vec3 vWorldDirection; +#include +void main() { + vec3 direction = normalize( vWorldDirection ); + vec2 sampleUV = equirectUv( direction ); + gl_FragColor = texture2D( tEquirect, sampleUV ); + #include + #include +}`,linedashed_vert:`uniform float scale; +attribute float lineDistance; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vLineDistance = scale * lineDistance; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,linedashed_frag:`uniform vec3 diffuse; +uniform float opacity; +uniform float dashSize; +uniform float totalSize; +varying float vLineDistance; +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + if ( mod( vLineDistance, totalSize ) > dashSize ) { + discard; + } + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,meshbasic_vert:`#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) + #include + #include + #include + #include + #include + #endif + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,meshbasic_frag:`uniform vec3 diffuse; +uniform float opacity; +#ifndef FLAT_SHADED + varying vec3 vNormal; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + #ifdef USE_LIGHTMAP + vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); + reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; + #else + reflectedLight.indirectDiffuse += vec3( 1.0 ); + #endif + #include + reflectedLight.indirectDiffuse *= diffuseColor.rgb; + vec3 outgoingLight = reflectedLight.indirectDiffuse; + #include + #include + #include + #include + #include + #include + #include +}`,meshlambert_vert:`#define LAMBERT +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,meshlambert_frag:`#define LAMBERT +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,meshmatcap_vert:`#define MATCAP +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; +}`,meshmatcap_frag:`#define MATCAP +uniform vec3 diffuse; +uniform float opacity; +uniform sampler2D matcap; +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 viewDir = normalize( vViewPosition ); + vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); + vec3 y = cross( viewDir, x ); + vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; + #ifdef USE_MATCAP + vec4 matcapColor = texture2D( matcap, uv ); + #else + vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); + #endif + vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; + #include + #include + #include + #include + #include + #include +}`,meshnormal_vert:`#define NORMAL +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + vViewPosition = - mvPosition.xyz; +#endif +}`,meshnormal_frag:`#define NORMAL +uniform float opacity; +#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) + varying vec3 vViewPosition; +#endif +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); + #include + #include + #include + #include + gl_FragColor = vec4( normalize( normal ) * 0.5 + 0.5, diffuseColor.a ); + #ifdef OPAQUE + gl_FragColor.a = 1.0; + #endif +}`,meshphong_vert:`#define PHONG +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include + #include +}`,meshphong_frag:`#define PHONG +uniform vec3 diffuse; +uniform vec3 emissive; +uniform vec3 specular; +uniform float shininess; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include + #include +}`,meshphysical_vert:`#define STANDARD +varying vec3 vViewPosition; +#ifdef USE_TRANSMISSION + varying vec3 vWorldPosition; +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +#ifdef USE_TRANSMISSION + vWorldPosition = worldPosition.xyz; +#endif +}`,meshphysical_frag:`#define STANDARD +#ifdef PHYSICAL + #define IOR + #define USE_SPECULAR +#endif +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float roughness; +uniform float metalness; +uniform float opacity; +#ifdef IOR + uniform float ior; +#endif +#ifdef USE_SPECULAR + uniform float specularIntensity; + uniform vec3 specularColor; + #ifdef USE_SPECULAR_COLORMAP + uniform sampler2D specularColorMap; + #endif + #ifdef USE_SPECULAR_INTENSITYMAP + uniform sampler2D specularIntensityMap; + #endif +#endif +#ifdef USE_CLEARCOAT + uniform float clearcoat; + uniform float clearcoatRoughness; +#endif +#ifdef USE_DISPERSION + uniform float dispersion; +#endif +#ifdef USE_IRIDESCENCE + uniform float iridescence; + uniform float iridescenceIOR; + uniform float iridescenceThicknessMinimum; + uniform float iridescenceThicknessMaximum; +#endif +#ifdef USE_SHEEN + uniform vec3 sheenColor; + uniform float sheenRoughness; + #ifdef USE_SHEEN_COLORMAP + uniform sampler2D sheenColorMap; + #endif + #ifdef USE_SHEEN_ROUGHNESSMAP + uniform sampler2D sheenRoughnessMap; + #endif +#endif +#ifdef USE_ANISOTROPY + uniform vec2 anisotropyVector; + #ifdef USE_ANISOTROPYMAP + uniform sampler2D anisotropyMap; + #endif +#endif +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; + vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; + #include + vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; + #ifdef USE_SHEEN + + outgoingLight = outgoingLight + sheenSpecularDirect + sheenSpecularIndirect; + + #endif + #ifdef USE_CLEARCOAT + float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); + vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); + outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; + #endif + #include + #include + #include + #include + #include + #include +}`,meshtoon_vert:`#define TOON +varying vec3 vViewPosition; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vViewPosition = - mvPosition.xyz; + #include + #include + #include +}`,meshtoon_frag:`#define TOON +uniform vec3 diffuse; +uniform vec3 emissive; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); + vec3 totalEmissiveRadiance = emissive; + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; + #include + #include + #include + #include + #include + #include +}`,points_vert:`uniform float size; +uniform float scale; +#include +#include +#include +#include +#include +#include +#ifdef USE_POINTS_UV + varying vec2 vUv; + uniform mat3 uvTransform; +#endif +void main() { + #ifdef USE_POINTS_UV + vUv = ( uvTransform * vec3( uv, 1 ) ).xy; + #endif + #include + #include + #include + #include + #include + #include + gl_PointSize = size; + #ifdef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); + #endif + #include + #include + #include + #include +}`,points_frag:`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include + #include +}`,shadow_vert:`#include +#include +#include +#include +#include +#include +#include +void main() { + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +}`,shadow_frag:`uniform vec3 color; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +void main() { + #include + gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); + #include + #include + #include + #include +}`,sprite_vert:`uniform float rotation; +uniform vec2 center; +#include +#include +#include +#include +#include +void main() { + #include + vec4 mvPosition = modelViewMatrix[ 3 ]; + vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); + #ifndef USE_SIZEATTENUATION + bool isPerspective = isPerspectiveMatrix( projectionMatrix ); + if ( isPerspective ) scale *= - mvPosition.z; + #endif + vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; + vec2 rotatedPosition; + rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; + rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; + mvPosition.xy += rotatedPosition; + gl_Position = projectionMatrix * mvPosition; + #include + #include + #include +}`,sprite_frag:`uniform vec3 diffuse; +uniform float opacity; +#include +#include +#include +#include +#include +#include +#include +#include +#include +void main() { + vec4 diffuseColor = vec4( diffuse, opacity ); + #include + vec3 outgoingLight = vec3( 0.0 ); + #include + #include + #include + #include + #include + outgoingLight = diffuseColor.rgb; + #include + #include + #include + #include +}`},$={common:{diffuse:{value:new Z(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Y},alphaMap:{value:null},alphaMapTransform:{value:new Y},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Y}},envmap:{envMap:{value:null},envMapRotation:{value:new Y},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Y}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Y}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Y},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Y},normalScale:{value:new tn(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Y},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Y}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Y}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Y}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Z(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new J},probesMax:{value:new J},probesResolution:{value:new J}},points:{diffuse:{value:new Z(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Y},alphaTest:{value:0},uvTransform:{value:new Y}},sprite:{diffuse:{value:new Z(16777215)},opacity:{value:1},center:{value:new tn(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Y},alphaMap:{value:null},alphaMapTransform:{value:new Y},alphaTest:{value:0}}},xo={basic:{uniforms:la([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.fog]),vertexShader:Q.meshbasic_vert,fragmentShader:Q.meshbasic_frag},lambert:{uniforms:la([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.fog,$.lights,{emissive:{value:new Z(0)},envMapIntensity:{value:1}}]),vertexShader:Q.meshlambert_vert,fragmentShader:Q.meshlambert_frag},phong:{uniforms:la([$.common,$.specularmap,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.fog,$.lights,{emissive:{value:new Z(0)},specular:{value:new Z(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:Q.meshphong_vert,fragmentShader:Q.meshphong_frag},standard:{uniforms:la([$.common,$.envmap,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.roughnessmap,$.metalnessmap,$.fog,$.lights,{emissive:{value:new Z(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Q.meshphysical_vert,fragmentShader:Q.meshphysical_frag},toon:{uniforms:la([$.common,$.aomap,$.lightmap,$.emissivemap,$.bumpmap,$.normalmap,$.displacementmap,$.gradientmap,$.fog,$.lights,{emissive:{value:new Z(0)}}]),vertexShader:Q.meshtoon_vert,fragmentShader:Q.meshtoon_frag},matcap:{uniforms:la([$.common,$.bumpmap,$.normalmap,$.displacementmap,$.fog,{matcap:{value:null}}]),vertexShader:Q.meshmatcap_vert,fragmentShader:Q.meshmatcap_frag},points:{uniforms:la([$.points,$.fog]),vertexShader:Q.points_vert,fragmentShader:Q.points_frag},dashed:{uniforms:la([$.common,$.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Q.linedashed_vert,fragmentShader:Q.linedashed_frag},depth:{uniforms:la([$.common,$.displacementmap]),vertexShader:Q.depth_vert,fragmentShader:Q.depth_frag},normal:{uniforms:la([$.common,$.bumpmap,$.normalmap,$.displacementmap,{opacity:{value:1}}]),vertexShader:Q.meshnormal_vert,fragmentShader:Q.meshnormal_frag},sprite:{uniforms:la([$.sprite,$.fog]),vertexShader:Q.sprite_vert,fragmentShader:Q.sprite_frag},background:{uniforms:{uvTransform:{value:new Y},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Q.background_vert,fragmentShader:Q.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Y}},vertexShader:Q.backgroundCube_vert,fragmentShader:Q.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Q.cube_vert,fragmentShader:Q.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Q.equirect_vert,fragmentShader:Q.equirect_frag},distance:{uniforms:la([$.common,$.displacementmap,{referencePosition:{value:new J},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Q.distance_vert,fragmentShader:Q.distance_frag},shadow:{uniforms:la([$.lights,$.fog,{color:{value:new Z(0)},opacity:{value:1}}]),vertexShader:Q.shadow_vert,fragmentShader:Q.shadow_frag}};xo.physical={uniforms:la([xo.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Y},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Y},clearcoatNormalScale:{value:new tn(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Y},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Y},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Y},sheen:{value:0},sheenColor:{value:new Z(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Y},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Y},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Y},transmissionSamplerSize:{value:new tn},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Y},attenuationDistance:{value:0},attenuationColor:{value:new Z(0)},specularColor:{value:new Z(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Y},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Y},anisotropyVector:{value:new tn},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Y}}]),vertexShader:Q.meshphysical_vert,fragmentShader:Q.meshphysical_frag};var So={r:0,b:0,g:0},Co=new Tn,wo=new Y;wo.set(-1,0,0,0,1,0,0,0,1);function To(e,t,n,r,i,a){let o=new Z(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new wi(new oa(1,1,1),new ga({name:`BackgroundCubeMaterial`,uniforms:ca(xo.backgroundCube.uniforms),vertexShader:xo.backgroundCube.vertexShader,fragmentShader:xo.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,`envMap`,{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(Co.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(wo),l.material.toneMapped=X.getTransfer(i.colorSpace)!==At,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new wi(new sa(2,2),new ga({name:`BackgroundMaterial`,uniforms:ca(xo.background.uniforms),vertexShader:xo.background.vertexShader,fragmentShader:xo.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,`map`,{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=X.getTransfer(i.colorSpace)!==At,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(So,fa(e)),n.buffers.color.setClear(So.r,So.g,So.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Eo(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(G(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&G(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function ko(e){let t=this,n=null,r=0,i=!1,a=!1,o=new ji,s=new Y,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Jo(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=qo(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=Jo()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=qo());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;Wo(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,Po)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;td-Ao?n-d+Ao:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,Wo(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,Po),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,Wo(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,Po)}_blur(e,t,n,r,i){let a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,r,`latitudinal`,i),this._halfBlur(a,e,n,n,r,`longitudinal`,i)}_halfBlur(e,t,n,r,i,a,o){let s=this._renderer,c=this._blurMaterial;a!==`latitudinal`&&a!==`longitudinal`&&K(`blur direction must be either latitudinal or longitudinal!`);let l=this._lodMeshes[r];l.material=c;let u=c.uniforms,d=this._sizeLods[n]-1,f=isFinite(i)?Math.PI/(2*d):2*Math.PI/(2*Mo-1),p=i/f,m=isFinite(i)?1+Math.floor(3*p):Mo;m>Mo&&G(`sigmaRadians, ${i}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${Mo}`);let h=[],g=0;for(let e=0;e_-Ao?r-_+Ao:0),4*(this._cubeSize-v),3*v,2*v),s.setRenderTarget(t),s.render(l,Po)}};function Ho(e){let t=[],n=[],r=[],i=e,a=e-Ao+1+jo.length;for(let o=0;oe-Ao?s=jo[o-e+Ao-1]:o===0&&(s=0),n.push(s);let c=1/(a-2),l=-c,u=1+c,d=[l,l,u,l,u,u,l,l,u,u,l,u],f=new Float32Array(108),p=new Float32Array(72),m=new Float32Array(36);for(let e=0;e<6;e++){let t=e%3*2/3-1,n=e>2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];f.set(r,18*e),p.set(d,12*e);let i=[e,e,e,e,e,e];m.set(i,6*e)}let h=new ti;h.setAttribute(`position`,new Br(f,3)),h.setAttribute(`uv`,new Br(p,2)),h.setAttribute(`faceIndex`,new Br(m,1)),r.push(new wi(h,null)),i>Ao&&i--}return{lodMeshes:r,sizeLods:t,sigmas:n}}function Uo(e,t,n){let r=new Sn(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function Wo(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Go(e,t,n){return new ga({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:No,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:Yo(),fragmentShader:` + + precision highp float; + precision highp int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform float roughness; + uniform float mipInt; + + #define ENVMAP_TYPE_CUBE_UV + #include + + #define PI 3.14159265359 + + // Van der Corput radical inverse + float radicalInverse_VdC(uint bits) { + bits = (bits << 16u) | (bits >> 16u); + bits = ((bits & 0x55555555u) << 1u) | ((bits & 0xAAAAAAAAu) >> 1u); + bits = ((bits & 0x33333333u) << 2u) | ((bits & 0xCCCCCCCCu) >> 2u); + bits = ((bits & 0x0F0F0F0Fu) << 4u) | ((bits & 0xF0F0F0F0u) >> 4u); + bits = ((bits & 0x00FF00FFu) << 8u) | ((bits & 0xFF00FF00u) >> 8u); + return float(bits) * 2.3283064365386963e-10; // / 0x100000000 + } + + // Hammersley sequence + vec2 hammersley(uint i, uint N) { + return vec2(float(i) / float(N), radicalInverse_VdC(i)); + } + + // GGX VNDF importance sampling (Eric Heitz 2018) + // "Sampling the GGX Distribution of Visible Normals" + // https://jcgt.org/published/0007/04/01/ + vec3 importanceSampleGGX_VNDF(vec2 Xi, vec3 V, float roughness) { + float alpha = roughness * roughness; + + // Section 4.1: Orthonormal basis + vec3 T1 = vec3(1.0, 0.0, 0.0); + vec3 T2 = cross(V, T1); + + // Section 4.2: Parameterization of projected area + float r = sqrt(Xi.x); + float phi = 2.0 * PI * Xi.y; + float t1 = r * cos(phi); + float t2 = r * sin(phi); + float s = 0.5 * (1.0 + V.z); + t2 = (1.0 - s) * sqrt(1.0 - t1 * t1) + s * t2; + + // Section 4.3: Reprojection onto hemisphere + vec3 Nh = t1 * T1 + t2 * T2 + sqrt(max(0.0, 1.0 - t1 * t1 - t2 * t2)) * V; + + // Section 3.4: Transform back to ellipsoid configuration + return normalize(vec3(alpha * Nh.x, alpha * Nh.y, max(0.0, Nh.z))); + } + + void main() { + vec3 N = normalize(vOutputDirection); + vec3 V = N; // Assume view direction equals normal for pre-filtering + + vec3 prefilteredColor = vec3(0.0); + float totalWeight = 0.0; + + // For very low roughness, just sample the environment directly + if (roughness < 0.001) { + gl_FragColor = vec4(bilinearCubeUV(envMap, N, mipInt), 1.0); + return; + } + + // Tangent space basis for VNDF sampling + vec3 up = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0); + vec3 tangent = normalize(cross(up, N)); + vec3 bitangent = cross(N, tangent); + + for(uint i = 0u; i < uint(GGX_SAMPLES); i++) { + vec2 Xi = hammersley(i, uint(GGX_SAMPLES)); + + // For PMREM, V = N, so in tangent space V is always (0, 0, 1) + vec3 H_tangent = importanceSampleGGX_VNDF(Xi, vec3(0.0, 0.0, 1.0), roughness); + + // Transform H back to world space + vec3 H = normalize(tangent * H_tangent.x + bitangent * H_tangent.y + N * H_tangent.z); + vec3 L = normalize(2.0 * dot(V, H) * H - V); + + float NdotL = max(dot(N, L), 0.0); + + if(NdotL > 0.0) { + // Sample environment at fixed mip level + // VNDF importance sampling handles the distribution filtering + vec3 sampleColor = bilinearCubeUV(envMap, L, mipInt); + + // Weight by NdotL for the split-sum approximation + // VNDF PDF naturally accounts for the visible microfacet distribution + prefilteredColor += sampleColor * NdotL; + totalWeight += NdotL; + } + } + + if (totalWeight > 0.0) { + prefilteredColor = prefilteredColor / totalWeight; + } + + gl_FragColor = vec4(prefilteredColor, 1.0); + } + `,blending:0,depthTest:!1,depthWrite:!1})}function Ko(e,t,n){let r=new Float32Array(Mo),i=new J(0,1,0);return new ga({name:`SphericalGaussianBlur`,defines:{n:Mo,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:Yo(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + uniform int samples; + uniform float weights[ n ]; + uniform bool latitudinal; + uniform float dTheta; + uniform float mipInt; + uniform vec3 poleAxis; + + #define ENVMAP_TYPE_CUBE_UV + #include + + vec3 getSample( float theta, vec3 axis ) { + + float cosTheta = cos( theta ); + // Rodrigues' axis-angle rotation + vec3 sampleDirection = vOutputDirection * cosTheta + + cross( axis, vOutputDirection ) * sin( theta ) + + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); + + return bilinearCubeUV( envMap, sampleDirection, mipInt ); + + } + + void main() { + + vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); + + if ( all( equal( axis, vec3( 0.0 ) ) ) ) { + + axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); + + } + + axis = normalize( axis ); + + gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); + gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); + + for ( int i = 1; i < n; i++ ) { + + if ( i >= samples ) { + + break; + + } + + float theta = dTheta * float( i ); + gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); + gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); + + } + + } + `,blending:0,depthTest:!1,depthWrite:!1})}function qo(){return new ga({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:Yo(),fragmentShader:` + + precision mediump float; + precision mediump int; + + varying vec3 vOutputDirection; + + uniform sampler2D envMap; + + #include + + void main() { + + vec3 outputDirection = normalize( vOutputDirection ); + vec2 uv = equirectUv( outputDirection ); + + gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); + + } + `,blending:0,depthTest:!1,depthWrite:!1})}function Jo(){return new ga({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Yo(),fragmentShader:` + + precision mediump float; + precision mediump int; + + uniform float flipEnvMap; + + varying vec3 vOutputDirection; + + uniform samplerCube envMap; + + void main() { + + gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); + + } + `,blending:0,depthTest:!1,depthWrite:!1})}function Yo(){return` + + precision mediump float; + precision mediump int; + + attribute float faceIndex; + + varying vec3 vOutputDirection; + + // RH coordinate system; PMREM face-indexing convention + vec3 getDirection( vec2 uv, float face ) { + + uv = 2.0 * uv - 1.0; + + vec3 direction = vec3( uv, 1.0 ); + + if ( face == 0.0 ) { + + direction = direction.zyx; // ( 1, v, u ) pos x + + } else if ( face == 1.0 ) { + + direction = direction.xzy; + direction.xz *= -1.0; // ( -u, 1, -v ) pos y + + } else if ( face == 2.0 ) { + + direction.x *= -1.0; // ( -u, v, 1 ) pos z + + } else if ( face == 3.0 ) { + + direction = direction.zyx; + direction.xz *= -1.0; // ( -1, v, -u ) neg x + + } else if ( face == 4.0 ) { + + direction = direction.xzy; + direction.xy *= -1.0; // ( -u, -1, v ) neg y + + } else if ( face == 5.0 ) { + + direction.z *= -1.0; // ( u, v, -1 ) neg z + + } + + return direction; + + } + + void main() { + + vOutputDirection = getDirection( uv, faceIndex ); + gl_Position = vec4( position, 1.0 ); + + } + `}var Xo=class extends Sn{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new na(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` + + varying vec3 vWorldDirection; + + vec3 transformDirection( in vec3 dir, in mat4 matrix ) { + + return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); + + } + + void main() { + + vWorldDirection = transformDirection( position, modelMatrix ); + + #include + #include + + } + `,fragmentShader:` + + uniform sampler2D tEquirect; + + varying vec3 vWorldDirection; + + #include + + void main() { + + vec3 direction = normalize( vWorldDirection ); + + vec2 sampleUV = equirectUv( direction ); + + gl_FragColor = texture2D( tEquirect, sampleUV ); + + } + `},r=new oa(5,5,5),i=new ga({name:`CubemapFromEquirect`,uniforms:ca(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});i.uniforms.tEquirect.value=t;let a=new wi(r,i),o=t.minFilter;return t.minFilter===1008&&(t.minFilter=me),new no(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,r=!0){let i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}};function Zo(e){let t=new WeakMap,n=new WeakMap,r=null;function i(e,t=!1){return e==null?null:t?o(e):a(e)}function a(n){if(n&&n.isTexture){let r=n.mapping;if(r===303||r===304)if(t.has(n)){let e=t.get(n).texture;return s(e,n.mapping)}else{let r=n.image;if(r&&r.height>0){let i=new Xo(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}else return null}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new Vo(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new Vo(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function Qo(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&Ut(`WebGLRenderer: `+e+` extension not supported.`),t}}}function $o(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0?t:(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++,t)}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t=65535?Hr:Vr)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.versiont.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Cn(h,p,m,u);g.type=U,g.needsUpdate=!0;let _=f*4;for(let t=0;t + #include + + void main() { + gl_FragColor = texture2D( tDiffuse, vUv ); + + #ifdef LINEAR_TONE_MAPPING + gl_FragColor.rgb = LinearToneMapping( gl_FragColor.rgb ); + #elif defined( REINHARD_TONE_MAPPING ) + gl_FragColor.rgb = ReinhardToneMapping( gl_FragColor.rgb ); + #elif defined( CINEON_TONE_MAPPING ) + gl_FragColor.rgb = CineonToneMapping( gl_FragColor.rgb ); + #elif defined( ACES_FILMIC_TONE_MAPPING ) + gl_FragColor.rgb = ACESFilmicToneMapping( gl_FragColor.rgb ); + #elif defined( AGX_TONE_MAPPING ) + gl_FragColor.rgb = AgXToneMapping( gl_FragColor.rgb ); + #elif defined( NEUTRAL_TONE_MAPPING ) + gl_FragColor.rgb = NeutralToneMapping( gl_FragColor.rgb ); + #elif defined( CUSTOM_TONE_MAPPING ) + gl_FragColor.rgb = CustomToneMapping( gl_FragColor.rgb ); + #endif + + #ifdef SRGB_TRANSFER + gl_FragColor = sRGBTransferOETF( gl_FragColor ); + #endif + }`,depthTest:!1,depthWrite:!1}),l=new wi(s,c),u=new Xa(-1,1,1,-1,0,1),d=null,f=null,p=!1,m,h=null,g=[],_=!1;this.setSize=function(e,t){a.setSize(e,t),o.setSize(e,t);for(let n=0;n0&&g[0].isRenderPass===!0;let t=a.width,n=a.height;for(let e=0;e0)return e;let i=t*n,a=ds[i];if(a===void 0&&(a=new Float32Array(i),ds[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function _s(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function pc(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var mc=37297,hc=0;function gc(e,t){let n=e.split(` +`),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e`:` `} ${i}: ${n[e]}`)}return r.join(` +`)}var _c=new Y;function vc(e){X._getMatrix(_c,X.workingColorSpace,e);let t=`mat3( ${_c.elements.map(e=>e.toFixed(4))} )`;switch(X.getTransfer(e)){case kt:return[t,`LinearTransferOETF`];case At:return[t,`sRGBTransferOETF`];default:return G(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function yc(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+` + +`+i+` + +`+gc(e.getShaderSource(t),r)}else return i}function bc(e,t){let n=vc(t);return[`vec4 ${e}( vec4 value ) {`,` return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,`}`].join(` +`)}var xc={1:`Linear`,2:`Reinhard`,3:`Cineon`,4:`ACESFilmic`,6:`AgX`,7:`Neutral`,5:`Custom`};function Sc(e,t){let n=xc[t];return n===void 0?(G(`WebGLProgram: Unsupported toneMapping:`,t),`vec3 `+e+`( vec3 color ) { return LinearToneMapping( color ); }`):`vec3 `+e+`( vec3 color ) { return `+n+`ToneMapping( color ); }`}var Cc=new J;function wc(){return X.getLuminanceCoefficients(Cc),[`float luminance( const in vec3 rgb ) {`,` const vec3 weights = vec3( ${Cc.x.toFixed(4)}, ${Cc.y.toFixed(4)}, ${Cc.z.toFixed(4)} );`,` return dot( weights, rgb );`,`}`].join(` +`)}function Tc(e){return[e.extensionClipCullDistance?`#extension GL_ANGLE_clip_cull_distance : require`:``,e.extensionMultiDraw?`#extension GL_ANGLE_multi_draw : require`:``].filter(Oc).join(` +`)}function Ec(e){let t=[];for(let n in e){let r=e[n];r!==!1&&t.push(`#define `+n+` `+r)}return t.join(` +`)}function Dc(e,t){let n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function Mc(e){return e.replace(jc,Pc)}var Nc=new Map;function Pc(e,t){let n=Q[t];if(n===void 0){let e=Nc.get(t);if(e!==void 0)n=Q[e],G(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`Can not resolve #include <`+t+`>`)}return Mc(n)}var Fc=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Ic(e){return e.replace(Fc,Lc)}function Lc(e,t,n,r){let i=``;for(let e=parseInt(t);e0&&(g+=` +`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(Oc).join(` +`),_.length>0&&(_+=` +`)):(g=[Rc(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` +`].filter(Oc).join(` +`),_=[Rc(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.numLightProbeGrids>0?`#define USE_LIGHT_PROBES_GRID`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:Q.tonemapping_pars_fragment,n.toneMapping===0?``:Sc(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,Q.colorspace_pars_fragment,bc(`linearToOutputTexel`,n.outputColorSpace),wc(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` +`].filter(Oc).join(` +`)),o=Mc(o),o=kc(o,n),o=Ac(o,n),s=Mc(s),s=kc(s,n),s=Ac(s,n),o=Ic(o),s=Ic(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es +`,g=[p,`#define attribute in`,`#define varying out`,`#define texture2D texture`].join(` +`)+` +`+g,_=[`#define varying in`,n.glslVersion===`300 es`?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===`300 es`?``:`#define gl_FragColor pc_fragColor`,`#define gl_FragDepthEXT gl_FragDepth`,`#define texture2D texture`,`#define textureCube texture`,`#define texture2DProj textureProj`,`#define texture2DLodEXT textureLod`,`#define texture2DProjLodEXT textureProjLod`,`#define textureCubeLodEXT textureLod`,`#define texture2DGradEXT textureGrad`,`#define texture2DProjGradEXT textureProjGrad`,`#define textureCubeGradEXT textureGrad`].join(` +`)+` +`+_);let y=v+g+o,b=v+_+s,x=pc(i,i.VERTEX_SHADER,y),S=pc(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.morphTargets===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1)if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=yc(i,x,`vertex`),n=yc(i,S,`fragment`);K(`THREE.WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` + +Material Name: `+t.name+` +Material Type: `+t.type+` + +Program Info Log: `+o+` +`+e+` +`+n)}else o===``?(s===``||c===``)&&(u=!1):G(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new fc(i,h),T=Dc(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,mc)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=hc++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var Yc=0,Xc=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){let t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return a.has(r)===!1&&(a.add(r),r.usedTimes++),a.has(i)===!1&&(a.add(i),i.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new Zc(e),t.set(e,n)),n}},Zc=class{constructor(e){this.id=Yc++,this.code=e,this.usedTimes=0}};function Qc(e){return e===1030||e===37490||e===36285}function $c(e,t,n,r,i,a){let o=new In,s=new Xc,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,p={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&G(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,A;if(C){let e=xo[C];D=e.vertexShader,O=e.fragmentShader}else D=i.vertexShader,O=i.fragmentShader,s.update(i),k=s.getVertexShaderID(i),A=s.getFragmentShaderID(i);let j=e.getRenderTarget(),M=e.state.buffers.depth.getReversed(),N=h.isInstancedMesh===!0,P=h.isBatchedMesh===!0,F=!!i.map,I=!!i.matcap,ee=!!x,L=!!i.aoMap,te=!!i.lightMap,R=!!i.bumpMap,ne=!!i.normalMap,z=!!i.displacementMap,B=!!i.emissiveMap,re=!!i.metalnessMap,ie=!!i.roughnessMap,ae=i.anisotropy>0,oe=i.clearcoat>0,se=i.dispersion>0,ce=i.iridescence>0,le=i.sheen>0,ue=i.transmission>0,de=ae&&!!i.anisotropyMap,fe=oe&&!!i.clearcoatMap,pe=oe&&!!i.clearcoatNormalMap,V=oe&&!!i.clearcoatRoughnessMap,me=ce&&!!i.iridescenceMap,he=ce&&!!i.iridescenceThicknessMap,ge=le&&!!i.sheenColorMap,_e=le&&!!i.sheenRoughnessMap,ve=!!i.specularMap,H=!!i.specularColorMap,ye=!!i.specularIntensityMap,be=ue&&!!i.transmissionMap,xe=ue&&!!i.thicknessMap,U=!!i.gradientMap,Se=!!i.alphaMap,Ce=i.alphaTest>0,we=!!i.alphaHash,Te=!!i.extensions,W=0;i.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(W=e.toneMapping);let Ee={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:A,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:P,batchingColor:P&&h._colorsTexture!==null,instancing:N,instancingColor:N&&h.instanceColor!==null,instancingMorph:N&&h.morphTexture!==null,outputColorSpace:j===null?e.outputColorSpace:j.isXRRenderTarget===!0?j.texture.colorSpace:X.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:F,matcap:I,envMap:ee,envMapMode:ee&&x.mapping,envMapCubeUVHeight:S,aoMap:L,lightMap:te,bumpMap:R,normalMap:ne,displacementMap:z,emissiveMap:B,normalMapObjectSpace:ne&&i.normalMapType===1,normalMapTangentSpace:ne&&i.normalMapType===0,packedNormalMap:ne&&i.normalMapType===0&&Qc(i.normalMap.format),metalnessMap:re,roughnessMap:ie,anisotropy:ae,anisotropyMap:de,clearcoat:oe,clearcoatMap:fe,clearcoatNormalMap:pe,clearcoatRoughnessMap:V,dispersion:se,iridescence:ce,iridescenceMap:me,iridescenceThicknessMap:he,sheen:le,sheenColorMap:ge,sheenRoughnessMap:_e,specularMap:ve,specularColorMap:H,specularIntensityMap:ye,transmission:ue,transmissionMap:be,thicknessMap:xe,gradientMap:U,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:Se,alphaTest:Ce,alphaHash:we,combine:i.combine,mapUv:F&&m(i.map.channel),aoMapUv:L&&m(i.aoMap.channel),lightMapUv:te&&m(i.lightMap.channel),bumpMapUv:R&&m(i.bumpMap.channel),normalMapUv:ne&&m(i.normalMap.channel),displacementMapUv:z&&m(i.displacementMap.channel),emissiveMapUv:B&&m(i.emissiveMap.channel),metalnessMapUv:re&&m(i.metalnessMap.channel),roughnessMapUv:ie&&m(i.roughnessMap.channel),anisotropyMapUv:de&&m(i.anisotropyMap.channel),clearcoatMapUv:fe&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:pe&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:V&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:me&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:he&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:ge&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:_e&&m(i.sheenRoughnessMap.channel),specularMapUv:ve&&m(i.specularMap.channel),specularColorMapUv:H&&m(i.specularColorMap.channel),specularIntensityMapUv:ye&&m(i.specularIntensityMap.channel),transmissionMapUv:be&&m(i.transmissionMap.channel),thicknessMapUv:xe&&m(i.thicknessMap.channel),alphaMapUv:Se&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(ne||ae),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(F||Se),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&ne===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:M,skinning:h.isSkinnedMesh===!0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:W,decodeVideoTexture:F&&i.map.isVideoTexture===!0&&X.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:B&&i.emissiveMap.isVideoTexture===!0&&X.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:Te&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Te&&i.extensions.multiDraw===!0||P)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return Ee.vertexUv1s=c.has(1),Ee.vertexUv2s=c.has(2),Ee.vertexUv3s=c.has(3),c.clear(),Ee}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=xo[t];n=pa.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new Jc(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function el(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function tl(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function nl(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function rl(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.push(u):a.transparent===!0?i.push(u):n.push(u)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||tl),r.length>1&&r.sort(t||nl),i.length>1&&i.sort(t||nl)}function d(){for(let n=t,r=e.length;n=r.length?(i=new rl,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function al(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={direction:new J,color:new Z};break;case`SpotLight`:n={position:new J,direction:new J,color:new Z,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new J,color:new Z,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new J,skyColor:new Z,groundColor:new Z};break;case`RectAreaLight`:n={color:new Z,position:new J,halfWidth:new J,halfHeight:new J};break}return e[t.id]=n,n}}}function ol(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tn};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tn};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tn,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}var sl=0;function cl(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function ll(e){let t=new al,n=ol(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new J);let i=new J,a=new Tn,o=new Tn;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0;i.sort(cl);for(let e=0,y=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=$.LTC_FLOAT_1,r.rectAreaLTC2=$.LTC_FLOAT_2):(r.rectAreaLTC1=$.LTC_HALF_1,r.rectAreaLTC2=$.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let y=r.hash;(y.directionalLength!==c||y.pointLength!==l||y.spotLength!==u||y.rectAreaLength!==d||y.hemiLength!==f||y.numDirectionalShadows!==p||y.numPointShadows!==m||y.numSpotShadows!==h||y.numSpotMaps!==g||y.numLightProbes!==v)&&(r.directional.length=c,r.spot.length=u,r.rectArea.length=d,r.point.length=l,r.hemi.length=f,r.directionalShadow.length=p,r.directionalShadowMap.length=p,r.pointShadow.length=m,r.pointShadowMap.length=m,r.spotShadow.length=h,r.spotShadowMap.length=h,r.directionalShadowMatrix.length=p,r.pointShadowMatrix.length=m,r.spotLightMatrix.length=h+g-_,r.spotLightMap.length=g,r.numSpotLightShadowsWithMaps=_,r.numLightProbes=v,y.directionalLength=c,y.pointLength=l,y.spotLength=u,y.rectAreaLength=d,y.hemiLength=f,y.numDirectionalShadows=p,y.numPointShadows=m,y.numSpotShadows=h,y.numSpotMaps=g,y.numLightProbes=v,r.version=sl++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=t.matrixWorldInverse;for(let t=0,f=e.length;t=i.length?(a=new ul(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var fl=`void main() { + gl_Position = vec4( position, 1.0 ); +}`,pl=`uniform sampler2D shadow_pass; +uniform vec2 resolution; +uniform float radius; +void main() { + const float samples = float( VSM_SAMPLES ); + float mean = 0.0; + float squared_mean = 0.0; + float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); + float uvStart = samples <= 1.0 ? 0.0 : - 1.0; + for ( float i = 0.0; i < samples; i ++ ) { + float uvOffset = uvStart + i * uvStride; + #ifdef HORIZONTAL_PASS + vec2 distribution = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ).rg; + mean += distribution.x; + squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; + #else + float depth = texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ).r; + mean += depth; + squared_mean += depth * depth; + #endif + } + mean = mean / samples; + squared_mean = squared_mean / samples; + float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) ); + gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 ); +}`,ml=[new J(1,0,0),new J(-1,0,0),new J(0,1,0),new J(0,-1,0),new J(0,0,1),new J(0,0,-1)],hl=[new J(0,-1,0),new J(0,-1,0),new J(0,0,1),new J(0,0,-1),new J(0,-1,0),new J(0,-1,0)],gl=new Tn,_l=new J,vl=new J;function yl(e,t,n){let r=new Fi,i=new tn,a=new tn,o=new bn,s=new ya,c=new ba,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new ga({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new tn},radius:{value:4}},vertexShader:fl,fragmentShader:pl}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new ti;m.setAttribute(`position`,new Br(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new wi(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(G(`WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){G(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new Sn(i.x,i.y,{format:Pe,type:Se,minFilter:me,magFilter:me,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new ra(i.x,i.y,U),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=Ae,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=fe,d.map.depthTexture.magFilter=fe}else l.isPointLight?(d.map=new Xo(i.x),d.map.depthTexture=new ia(i.x,xe)):(d.map=new Sn(i.x,i.y),d.map.depthTexture=new ra(i.x,i.y,xe)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=Ae,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=me,d.map.depthTexture.magFilter=me):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=fe,d.map.depthTexture.magFilter=fe);d.camera.updateProjectionMatrix()}let g=d.map.isWebGLCubeRenderTarget?6:1;for(let t=0;t0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(P=parseFloat(/^WebGL (\d)/.exec(F)[1]),N=P>=1);let I=null,ee={},L=e.getParameter(e.SCISSOR_BOX),te=e.getParameter(e.VIEWPORT),R=new bn().fromArray(L),ne=new bn().fromArray(te);function z(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new tn,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):Lt(`canvas`)}function g(e,t,n){let r=1,i=W(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1)if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),G(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}else return`data`in e&&G(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e;return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];G(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||G(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?kt:X.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,G(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function S(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),T(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function w(e){let t=e.target;t.removeEventListener(`dispose`,w),D(t)}function T(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&E(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function E(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function D(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&G(`WebGLTextures: Trying to use `+e+` texture units while this GPU supports only `+i.maxTextures),O+=1,e}function N(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function P(t,i){let a=r.get(t);if(t.isVideoTexture&&we(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)G(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)G(`WebGLRenderer: Texture marked for update but image is incomplete`);else{ie(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function F(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){ie(a,t,i);return}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i)}function I(t,i){let a=r.get(t);if(t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version){ie(a,t,i);return}n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function ee(t,i){let a=r.get(t);if(t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version){ae(a,t,i);return}n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let L={[le]:e.REPEAT,[ue]:e.CLAMP_TO_EDGE,[de]:e.MIRRORED_REPEAT},te={[fe]:e.NEAREST,[pe]:e.NEAREST_MIPMAP_NEAREST,[V]:e.NEAREST_MIPMAP_LINEAR,[me]:e.LINEAR,[he]:e.LINEAR_MIPMAP_NEAREST,[ge]:e.LINEAR_MIPMAP_LINEAR},R={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function ne(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&G(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,L[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,L[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,L[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,te[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,te[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,R[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function z(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,C));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=N(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&E(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function B(e,t,n){return Math.floor(Math.floor(e/n)/t)}function re(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let t=_o(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}o.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0);else G(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`);else C?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data)}else{C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let i=_o(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isData3DTexture)C?(w&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(w)if(C)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t>=1,a>>=1}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}let r=e.RGBA,i=e.RGBA,a=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,r,i,a,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(C&&w){let t=W(y[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=y.length;t0&&D++;let t=W(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),Ce(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,Se(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function se(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;Ce(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,Se(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,Se(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer)if(a)for(let e=0;e<6;e++)ce(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?ce(i.__webglFramebuffer[0],t,0):ce(i.__webglFramebuffer,t,0)}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),se(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),se(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function ve(t,n,i){let a=r.get(t);n!==void 0&&oe(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&_e(t)}function H(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,w);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&Ce(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(Ce(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function we(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function Te(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(X.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&G(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):K(`WebGLTextures: Unsupported texture color space:`,n)),t}function W(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=M,this.resetTextureUnits=k,this.getTextureUnits=A,this.setTextureUnits=j,this.setTexture2D=P,this.setTexture2DArray=F,this.setTexture3D=I,this.setTextureCube=ee,this.rebindTextures=ve,this.setupRenderTarget=H,this.updateRenderTargetMipmap=ye,this.updateMultisampleRenderTarget=U,this.setupDepthRenderbuffer=_e,this.setupFrameBufferTexture=oe,this.useMultisampledRTT=Ce,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function Sl(e,t){function n(n,r=``){let i,a=X.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779)if(a===`srgb`)if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===35840||n===35841||n===35842||n===35843)if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491)if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null;if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821)if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===36492||n===36494||n===36495)if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===36283||n===36284||n===36285||n===36286)if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var Cl=` +void main() { + + gl_Position = vec4( position, 1.0 ); + +}`,wl=` +uniform sampler2DArray depthColor; +uniform float depthWidth; +uniform float depthHeight; + +void main() { + + vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); + + if ( coord.x >= 1.0 ) { + + gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; + + } else { + + gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; + + } + +}`,Tl=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new aa(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new ga({vertexShader:Cl,fragmentShader:wl,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new wi(new sa(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},El=class extends Kt{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=typeof XRWebGLBinding<`u`,h=new Tl,g={},_=t.getContextAttributes(),v=null,y=null,b=[],x=[],S=new tn,C=null,w=new Ya;w.viewport=new bn;let T=new Ya;T.viewport=new bn;let E=[w,T],D=new ro,O=null,k=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=b[e];return t===void 0&&(t=new tr,b[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=b[e];return t===void 0&&(t=new tr,b[e]=t),t.getGripSpace()},this.getHand=function(e){let t=b[e];return t===void 0&&(t=new tr,b[e]=t),t.getHandSpace()};function A(e){let t=x.indexOf(e.inputSource);if(t===-1)return;let n=b[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function j(){r.removeEventListener(`select`,A),r.removeEventListener(`selectstart`,A),r.removeEventListener(`selectend`,A),r.removeEventListener(`squeeze`,A),r.removeEventListener(`squeezestart`,A),r.removeEventListener(`squeezeend`,A),r.removeEventListener(`end`,j),r.removeEventListener(`inputsourceschange`,M);for(let e=0;e=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let N=new J,P=new J;function F(e,t,n){N.setFromMatrixPosition(t.matrixWorld),P.setFromMatrixPosition(n.matrixWorld);let r=N.distanceTo(P),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function I(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),D.near=T.near=w.near=t,D.far=T.far=w.far=n,(O!==D.near||k!==D.far)&&(r.updateRenderState({depthNear:D.near,depthFar:D.far}),O=D.near,k=D.far),D.layers.mask=e.layers.mask|6,w.layers.mask=D.layers.mask&-5,T.layers.mask=D.layers.mask&-3;let i=e.parent,a=D.cameras;I(D,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(Dl.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(Ol),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function Al(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(m(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,g));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function h(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?G(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):G(`WebGLRenderer: Unsupported uniform value type.`,e),t}function g(t){let n=t.target;n.removeEventListener(`dispose`,g);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function _(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:_}}var jl=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),Ml=null;function Nl(){return Ml===null&&(Ml=new Di(jl,16,16,Pe,Se),Ml.name=`DFG_LUT`,Ml.minFilter=me,Ml.magFilter=me,Ml.wrapS=ue,Ml.wrapT=ue,Ml.generateMipmaps=!1,Ml.needsUpdate=!0),Ml}var Pl=class{constructor(e={}){let{canvas:t=Rt(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=_e}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([Ie,Fe,Ne]),g=new Set([_e,xe,ye,Te,Ce,we]),_=new Uint32Array(4),v=new Int32Array(4),y=new J,b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null;this._outputColorSpace=Dt;let O=0,k=0,A=null,j=-1,M=null,N=new bn,P=new bn,F=null,I=new Z(0),ee=0,L=t.width,te=t.height,R=1,ne=null,z=null,B=new bn(0,0,L,te),re=new bn(0,0,L,te),ie=!1,ae=new Fi,oe=!1,se=!1,ce=new Tn,le=new J,ue=new bn,de={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},fe=!1;function pe(){return A===null?R:1}let V=n;function me(e,n){return t.getContext(e,n)}try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r184`),t.addEventListener(`webglcontextlost`,Je,!1),t.addEventListener(`webglcontextrestored`,Ye,!1),t.addEventListener(`webglcontextcreationerror`,Xe,!1),V===null){let t=`webgl2`;if(V=me(t,e),V===null)throw me(t)?Error(`Error creating WebGL context with your selected attributes.`):Error(`Error creating WebGL context.`)}}catch(e){throw K(`WebGLRenderer: `+e.message),e}let he,ve,H,be,U,W,Ee,De,Oe,ke,Ae,je,Me,Pe,Le,Re,ze,Be,Ve,He,Ue,We,Ge;function Ke(){he=new Qo(V),he.init(),Ue=new Sl(V,he),ve=new Oo(V,he,e,Ue),H=new bl(V,he),ve.reversedDepthBuffer&&d&&H.buffers.depth.setReversed(!0),be=new ts(V),U=new el,W=new xl(V,he,H,U,ve,Ue,be),Ee=new Zo(T),De=new bo(V),We=new Eo(V,De),Oe=new $o(V,De,be,We),ke=new rs(V,Oe,De,We,be),Be=new ns(V,ve,W),Le=new ko(U),Ae=new $c(T,Ee,he,ve,We,Le),je=new kl(T,U),Me=new il,Pe=new dl(he),ze=new To(T,Ee,H,ke,p,s),Re=new yl(T,ke,ve),Ge=new Al(V,be,ve,H),Ve=new Do(V,he,be),He=new es(V,he,be),be.programs=Ae.programs,T.capabilities=ve,T.extensions=he,T.properties=U,T.renderLists=Me,T.shadowMap=Re,T.state=H,T.info=be}Ke(),m!==1009&&(w=new as(m,t.width,t.height,r,i));let qe=new El(T,V);this.xr=qe,this.getContext=function(){return V},this.getContextAttributes=function(){return V.getContextAttributes()},this.forceContextLoss=function(){let e=he.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=he.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return R},this.setPixelRatio=function(e){e!==void 0&&(R=e,this.setSize(L,te,!1))},this.getSize=function(e){return e.set(L,te)},this.setSize=function(e,n,r=!0){if(qe.isPresenting){G(`WebGLRenderer: Can't change size while VR device is presenting.`);return}L=e,te=n,t.width=Math.floor(e*R),t.height=Math.floor(n*R),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n)},this.getDrawingBufferSize=function(e){return e.set(L*R,te*R).floor()},this.setDrawingBufferSize=function(e,n,r){L=e,te=n,R=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009){K(`THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);return}if(e){for(let t=0;t{function n(){if(r.forEach(function(e){U.get(e).currentProgram.isReady()&&r.delete(e)}),r.size===0){t(e);return}setTimeout(n,10)}he.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let tt=null;function nt(e){tt&&tt(e)}function rt(){at.stop()}function it(){at.start()}let at=new yo;at.setAnimationLoop(nt),typeof self<`u`&&at.setContext(self),this.setAnimationLoop=function(e){tt=e,qe.setAnimationLoop(e),e===null?at.stop():at.start()},qe.addEventListener(`sessionstart`,rt),qe.addEventListener(`sessionend`,it),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){K(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=qe.enabled===!0&&qe.isPresenting===!0,r=w!==null&&(A===null||n)&&w.begin(T,A);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),qe.enabled===!0&&qe.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(qe.cameraAutoUpdate===!0&&qe.updateCamera(t),t=qe.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,A),x=Pe.get(e,C.length),x.init(t),x.state.textureUnits=W.getTextureUnits(),C.push(x),ce.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),ae.setFromProjectionMatrix(ce,Pt,t.reversedDepth),se=this.localClippingEnabled,oe=Le.init(this.clippingPlanes,se),b=Me.get(e,S.length),b.init(),S.push(b),qe.enabled===!0&&qe.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&ot(e,t,-1/0,T.sortObjects)}ot(e,t,0,T.sortObjects),b.finish(),T.sortObjects===!0&&b.sort(ne,z),fe=qe.enabled===!1||qe.isPresenting===!1||qe.hasDepthSensing()===!1,fe&&ze.addToRenderList(b,e),this.info.render.frame++,oe===!0&&Le.beginShadows();let i=x.state.shadowsArray;if(Re.render(i,e,t),oe===!0&&Le.endShadows(),this.info.autoReset===!0&&this.info.reset(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t0&&ct(n,r,e,t),fe&&ze.render(e),st(b,e,t)}A!==null&&k===0&&(W.updateMultisampleRenderTarget(A),W.updateRenderTargetMipmap(A)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),We.resetDefaultState(),j=-1,M=null,C.pop(),C.length>0?(x=C[C.length-1],W.setTextureUnits(x.state.textureUnits),oe===!0&&Le.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function ot(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||ae.intersectsSprite(e)){r&&ue.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ce);let t=ke.update(e),i=e.material;i.visible&&b.push(e,t,i,n,ue.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||ae.intersectsObject(e))){let t=ke.update(e),i=e.material;if(r&&(e.boundingSphere===void 0?(t.boundingSphere===null&&t.computeBoundingSphere(),ue.copy(t.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),ue.copy(e.boundingSphere.center)),ue.applyMatrix4(e.matrixWorld).applyMatrix4(ce)),Array.isArray(i)){let r=t.groups;for(let a=0,o=r.length;a0&<(i,t,n),a.length>0&<(a,t,n),o.length>0&<(o,t,n),H.buffers.depth.setTest(!0),H.buffers.depth.setMask(!0),H.buffers.color.setMask(!0),H.setPolygonOffset(!1)}function ct(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=he.has(`EXT_color_buffer_half_float`)||he.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new Sn(1,1,{generateMipmaps:!0,type:e?Se:_e,minFilter:ge,samples:Math.max(4,ve.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:X.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||N;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(I),ee=T.getClearAlpha(),ee<1&&T.setClearColor(16777215,.5),T.clear(),fe&&ze.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),oe===!0&&Le.setGlobalState(T.clippingPlanes,r),lt(e,n,r),W.updateMultisampleRenderTarget(a),W.updateRenderTargetMipmap(a),he.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0,r.currentProgram=d,r.uniformsList=null,d}function ft(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=fc.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function pt(e,t){let n=U.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function mt(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=U.get(r),y=x.state.lights;if(oe===!0&&(se===!0||e!==M)){let t=e===M&&r.id===j;Le.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i.colorTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i.colorTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Le.numPlanes||v.numIntersection!==Le.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=dt(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(H.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==j&&(j=r.id,w=!0),v.needsLights){let e=mt(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||M!==e){H.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(V,`projectionMatrix`,e.projectionMatrix),O.setValue(V,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(V,le.setFromMatrixPosition(e.matrixWorld)),ve.logarithmicDepthBuffer&&O.setValue(V,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(V,`isOrthographic`,e.isOrthographicCamera===!0),M!==e&&(M=e,w=!0,E=!0)}if(v.needsLights&&(y.state.directionalShadowMap.length>0&&O.setValue(V,`directionalShadowMap`,y.state.directionalShadowMap,W),y.state.spotShadowMap.length>0&&O.setValue(V,`spotShadowMap`,y.state.spotShadowMap,W),y.state.pointShadowMap.length>0&&O.setValue(V,`pointShadowMap`,y.state.pointShadowMap,W)),i.isSkinnedMesh){O.setOptional(V,i,`bindMatrix`),O.setOptional(V,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(V,`boneTexture`,e.boneTexture,W))}i.isBatchedMesh&&(O.setOptional(V,i,`batchingTexture`),O.setValue(V,`batchingTexture`,i._matricesTexture,W),O.setOptional(V,i,`batchingIdTexture`),O.setValue(V,`batchingIdTexture`,i._indirectTexture,W),O.setOptional(V,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(V,`batchingColorTexture`,i._colorsTexture,W));let N=n.morphAttributes;if((N.position!==void 0||N.normal!==void 0||N.color!==void 0)&&Be.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(V,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=Nl()),w){if(O.setValue(V,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&>(k,E),a&&r.fog===!0&&je.refreshFogUniforms(k,a),je.refreshMaterialUniforms(k,r,R,te,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}fc.upload(V,ft(v),k,W)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(fc.upload(V,ft(v),k,W),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(V,`center`,i.center),O.setValue(V,`modelViewMatrix`,i.modelViewMatrix),O.setValue(V,`normalMatrix`,i.normalMatrix),O.setValue(V,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&W.useMultisampledRTT(e)===!1?U.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,N.copy(e.viewport),P.copy(e.scissor),F=e.scissorTest}else N.copy(B).multiplyScalar(R).floor(),P.copy(re).multiplyScalar(R).floor(),F=ie;if(n!==0&&(r=vt),H.bindFramebuffer(V.FRAMEBUFFER,r)&&H.drawBuffers(e,r),H.viewport(N),H.scissor(P),H.setScissorTest(F),i){let r=U.get(e.texture);V.framebufferTexture2D(V.FRAMEBUFFER,V.COLOR_ATTACHMENT0,V.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t1&&V.readBuffer(V.COLOR_ATTACHMENT0+s),!ve.textureFormatReadable(c)){K(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(!ve.textureTypeReadable(l)){K(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&V.readPixels(t,n,r,i,Ue.convert(c),Ue.convert(l),a)}finally{let e=A===null?null:U.get(A).__webglFramebuffer;H.bindFramebuffer(V.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=U.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c)if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){H.bindFramebuffer(V.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;if(e.textures.length>1&&V.readBuffer(V.COLOR_ATTACHMENT0+s),!ve.textureFormatReadable(l))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(!ve.textureTypeReadable(u))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let d=V.createBuffer();V.bindBuffer(V.PIXEL_PACK_BUFFER,d),V.bufferData(V.PIXEL_PACK_BUFFER,a.byteLength,V.STREAM_READ),V.readPixels(t,n,r,i,Ue.convert(l),Ue.convert(u),0);let f=A===null?null:U.get(A).__webglFramebuffer;H.bindFramebuffer(V.FRAMEBUFFER,f);let p=V.fenceSync(V.SYNC_GPU_COMMANDS_COMPLETE,0);return V.flush(),await Wt(V,p,4),V.bindBuffer(V.PIXEL_PACK_BUFFER,d),V.getBufferSubData(V.PIXEL_PACK_BUFFER,0,a),V.deleteBuffer(d),V.deleteSync(p),a}else throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;W.setTexture2D(e,0),V.copyTexSubImage2D(V.TEXTURE_2D,n,0,0,o,s,i,a),H.unbindTexture()};let yt=V.createFramebuffer(),bt=V.createFramebuffer();this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ue.convert(t.format),_=Ue.convert(t.type),v;t.isData3DTexture?(W.setTexture3D(t,0),v=V.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(W.setTexture2DArray(t,0),v=V.TEXTURE_2D_ARRAY):(W.setTexture2D(t,0),v=V.TEXTURE_2D),H.activeTexture(V.TEXTURE0),H.pixelStorei(V.UNPACK_FLIP_Y_WEBGL,t.flipY),H.pixelStorei(V.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),H.pixelStorei(V.UNPACK_ALIGNMENT,t.unpackAlignment);let y=H.getParameter(V.UNPACK_ROW_LENGTH),b=H.getParameter(V.UNPACK_IMAGE_HEIGHT),x=H.getParameter(V.UNPACK_SKIP_PIXELS),S=H.getParameter(V.UNPACK_SKIP_ROWS),C=H.getParameter(V.UNPACK_SKIP_IMAGES);H.pixelStorei(V.UNPACK_ROW_LENGTH,h.width),H.pixelStorei(V.UNPACK_IMAGE_HEIGHT,h.height),H.pixelStorei(V.UNPACK_SKIP_PIXELS,l),H.pixelStorei(V.UNPACK_SKIP_ROWS,u),H.pixelStorei(V.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=U.get(e),r=U.get(t),h=U.get(n.__renderTarget),g=U.get(r.__renderTarget);H.bindFramebuffer(V.READ_FRAMEBUFFER,h.__webglFramebuffer),H.bindFramebuffer(V.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n 0.5) discard; // outside circle → transparent + // soft anti-alias ring at the edge + float alpha = 1.0 - smoothstep(0.45, 0.5, dist); + gl_FragColor = vec4(vColor, alpha * uOpacity); + } + `,transparent:!0,depthWrite:!1})}function Wl(e,t,n,r){return new ga({uniforms:{uSizeMin:{value:e},uSizeMax:{value:t},uAmp:{value:n},uOpacity:{value:r}},vertexShader:` + attribute vec3 color; + varying vec3 vColor; + uniform float uSizeMin; + uniform float uSizeMax; + uniform float uAmp; + void main() { + vColor = color; + // Map Z (-amp..+amp) → (sizeMin..sizeMax) + float t = clamp((position.z + uAmp) / (2.0 * uAmp), 0.0, 1.0); + gl_PointSize = mix(uSizeMin, uSizeMax, t); + gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); + } + `,fragmentShader:` + varying vec3 vColor; + uniform float uOpacity; + void main() { + vec2 uv = gl_PointCoord - vec2(0.5); + float dist = length(uv); + if (dist > 0.5) discard; + float alpha = 1.0 - smoothstep(0.45, 0.5, dist); + gl_FragColor = vec4(vColor, alpha * uOpacity); + } + `,transparent:!0,depthWrite:!1})}function Gl(e,t,n,r,i,a){let o=e+1,s=t+1,c=o*s,l=a/2,u=n/e,d=r/t,f=new Float32Array(c*3),p=new Float32Array(c*4*3),m=new Float32Array(c*4*3);for(let e=0;e{let o=Ll(a/Math.max(s*c-1,1),i);for(let i=0;i<2;i++){let[a,s]=i===0?[e,t]:[n,r];p[g*3]=a,p[g*3+1]=s,p[g*3+2]=0,m[g*3]=a,m[g*3+1]=s,m[g*3+2]=0,h[g*3]=o.r,h[g*3+1]=o.g,h[g*3+2]=o.b,g++}};if(a!==`vertical`)for(let t=0;t{let t=(0,ne.c)(68),{className:n,style:r,lines:i,colors:a,cameraPosition:o,planeWidth:s,planeHeight:c,segmentsX:l,segmentsY:u,speed:d,amplitude:p,frequency:m,opacity:h,paused:g,mouseInfluence:_,mouseRotation:v,dotSize:y,dotSizeMin:b,crossSize:x,dashRatio:S,contourLevels:C,maxPixelRatio:w,onReady:T}=e,E=r===void 0?`grid`:r,D=i===void 0?`both`:i,O;t[0]===o?O=t[1]:(O=o===void 0?{x:0,y:0,z:10}:o,t[0]=o,t[1]=O);let k=O,A=s===void 0?80:s,j=c===void 0?40:c,M=l===void 0?60:l,N=u===void 0?30:u,P=d===void 0?1:d,F=p===void 0?1.5:p,I=m===void 0?.3:m,ee=h===void 0?.6:h,L=g===void 0?!1:g,te=_===void 0?2:_,R=v===void 0?.1:v,re=y===void 0?3:y,ie=b===void 0?1:b,ae=x===void 0?.3:x,oe=S===void 0?.5:S,se=C===void 0?6:C,ce=w===void 0?2:w,le=(0,z.useRef)(null),ue;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(ue={width:0,height:0},t[2]=ue):ue=t[2];let[de,fe]=(0,z.useState)(ue),pe;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(pe={x:0,y:0},t[3]=pe):pe=t[3];let V=(0,z.useRef)(pe),me=(0,z.useRef)(P),he=(0,z.useRef)(L),ge=(0,z.useRef)(F),_e=(0,z.useRef)(I),ve=(0,z.useRef)(te),H=(0,z.useRef)(R),ye=(0,z.useRef)(ee),be,xe;t[4]===P?(be=t[5],xe=t[6]):(be=()=>{me.current=P},xe=[P],t[4]=P,t[5]=be,t[6]=xe),(0,z.useEffect)(be,xe);let U,Se;t[7]===L?(U=t[8],Se=t[9]):(U=()=>{he.current=L},Se=[L],t[7]=L,t[8]=U,t[9]=Se),(0,z.useEffect)(U,Se);let Ce,we;t[10]===F?(Ce=t[11],we=t[12]):(Ce=()=>{ge.current=F},we=[F],t[10]=F,t[11]=Ce,t[12]=we),(0,z.useEffect)(Ce,we);let Te,W;t[13]===I?(Te=t[14],W=t[15]):(Te=()=>{_e.current=I},W=[I],t[13]=I,t[14]=Te,t[15]=W),(0,z.useEffect)(Te,W);let Ee,De;t[16]===te?(Ee=t[17],De=t[18]):(Ee=()=>{ve.current=te},De=[te],t[16]=te,t[17]=Ee,t[18]=De),(0,z.useEffect)(Ee,De);let Oe,ke;t[19]===R?(Oe=t[20],ke=t[21]):(Oe=()=>{H.current=R},ke=[R],t[19]=R,t[20]=Oe,t[21]=ke),(0,z.useEffect)(Oe,ke);let Ae,je;t[22]===ee?(Ae=t[23],je=t[24]):(Ae=()=>{ye.current=ee},je=[ee],t[22]=ee,t[23]=Ae,t[24]=je),(0,z.useEffect)(Ae,je);let Me,Ne;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(Me=()=>{let e=le.current;if(!e)return;let t=new ResizeObserver(e=>{let t=e[0].contentRect;fe({width:t.width,height:t.height})});return t.observe(e),()=>t.disconnect()},Ne=[],t[25]=Me,t[26]=Ne):(Me=t[25],Ne=t[26]),(0,z.useEffect)(Me,Ne);let Pe;t[27]!==F||t[28]!==k||t[29]!==a||t[30]!==se||t[31]!==ae||t[32]!==oe||t[33]!==re||t[34]!==ie||t[35]!==D||t[36]!==ce||t[37]!==T||t[38]!==j||t[39]!==A||t[40]!==M||t[41]!==N||t[42]!==de.height||t[43]!==de.width||t[44]!==E?(Pe=()=>{let e=le.current;if(!e||de.width===0||de.height===0)return;let t=new sr,n=new Ya(75,de.width/de.height,.1,1e3);n.position.set(k.x,k.y,k.z),n.lookAt(0,0,0);let r=new Pl({alpha:!0,antialias:!0});r.setPixelRatio(Math.min(window.devicePixelRatio,ce)),r.setSize(de.width,de.height),r.setClearColor(0,0),e.appendChild(r.domElement);let i=document.documentElement.classList.contains(`dark`),o=(a??(i?Il:Fl)).map($l),s,c,l,u=null,d=null,f=null,p=null,m=null,h=null,g=null,_=[],v=[],y=M,b=N;if(E===`wireframe`){let e=new sa(A,j,y,b);e.setAttribute(`color`,new Br(Rl(e.attributes.position.count,o),3));let t=new fi({vertexColors:!0,wireframe:!0,transparent:!0,opacity:ye.current});s=new wi(e,t),f=e.attributes.position,u=f.array,c=e,l=t}else if(E===`grid`){let{geo:e,pos:t}=Vl(y,b,A,j,o,D),n=new Ii({vertexColors:!0,transparent:!0,opacity:ye.current});s=new Ji(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`dots`){let{geo:e,pos:t}=Hl(y,b,A,j,o),n=Ul(re*2,ye.current);s=new ea(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`dots-wave`){let{geo:e,pos:t}=Hl(y,b,A,j,o),n=Wl(ie*2,re*2,F,ye.current);s=new ea(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`crosses`){let{geo:e,centers:t,pos:n}=Gl(y,b,A,j,o,ae),r=new Ii({vertexColors:!0,transparent:!0,opacity:ye.current});s=new Ji(e,r),f=e.attributes.position,u=n,p=t,c=e,l=r}else if(E===`diagonal-left`||E===`diagonal-right`){let{geo:e,pos:t}=Kl(y,b,A,j,o,E===`diagonal-left`?`left`:`right`),n=new Ii({vertexColors:!0,transparent:!0,opacity:ye.current});s=new Ji(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`zigzag`){let{geo:e,pos:t}=ql(y,b,A,j,o),n=new Ii({vertexColors:!0,transparent:!0,opacity:ye.current});s=new Ji(e,n),f=e.attributes.position,u=t,c=e,l=n}else if(E===`hexagons`){let{geo:e,pos:t,hexCenters:n}=Jl(y,b,A,j,o),r=new Ii({vertexColors:!0,transparent:!0,opacity:ye.current});s=new Ji(e,r),f=e.attributes.position,h=t,m=n,c=e,l=r}else if(E===`dashes`){let{geo:e,pos:t,basePos:n}=Yl(y,b,A,j,o,D,oe),r=new Ii({vertexColors:!0,transparent:!0,opacity:ye.current});s=new Ji(e,r),f=e.attributes.position,u=t,d=n,c=e,l=r}else if(E===`contour`){let{geo:e,vtxGrid:t}=Xl(y,b,A,j,o,se),n=new Ii({vertexColors:!0,transparent:!0,opacity:ye.current});s=new Ji(e,n),f=e.attributes.position,g=t,c=e,l=n}else{let{geo:e,pos:n}=Zl(y,b,A,j,o),r=new va({vertexColors:!0,transparent:!0,opacity:ye.current,side:2,shininess:60}),i=new Qa(16777215,1.2);i.position.set(5,10,7);let a=new $a(16777215,.4);t.add(i,a),v=[i,a],s=new wi(e,r),f=e.attributes.position,u=n,c=e,l=r}t.add(s);let x=()=>{n.aspect=e.clientWidth/e.clientHeight,n.updateProjectionMatrix(),r.setSize(e.clientWidth,e.clientHeight)},S=e=>{V.current.x=e.clientX/window.innerWidth*2-1,V.current.y=-(e.clientY/window.innerHeight)*2+1};window.addEventListener(`resize`,x),window.addEventListener(`mousemove`,S);let C=(e,t,n,r,i)=>{let a=y+1,c=0,l=r.array,u=i.array;for(let r of n){let n=Ll((r-(-F-1))/((F+1)*2),o);for(let i=0;i{if(e=2&&c+6<=l.length)for(let e=0;e<2;e++)l[c]=E[e][0],l[c+1]=E[e][1],l[c+2]=E[e][2],u[c]=n.r,u[c+1]=n.g,u[c+2]=n.b,c+=3}}r.needsUpdate=!0,i.needsUpdate=!0,s.geometry.setDrawRange(0,c/3)},w=E===`contour`?new Float32Array((y+1)*(b+1)):null,O,P=()=>{if(O=requestAnimationFrame(P),l.opacity!==void 0&&(l.opacity=ye.current),l.uniforms?.uOpacity&&(l.uniforms.uOpacity.value=ye.current),!he.current){let e=performance.now()*.001*me.current,t=_e.current,n=ge.current,r=ve.current,i=V.current.x,a=V.current.y;if(E===`crosses`&&p&&f&&u){let o=(y+1)*(b+1);for(let s=0;s{cancelAnimationFrame(O),window.removeEventListener(`resize`,x),window.removeEventListener(`mousemove`,S),v.forEach(e=>t.remove(e)),t.remove(s),c.dispose(),l.dispose(),_.forEach(eu),r.dispose(),e.contains(r.domElement)&&e.removeChild(r.domElement)}},t[27]=F,t[28]=k,t[29]=a,t[30]=se,t[31]=ae,t[32]=oe,t[33]=re,t[34]=ie,t[35]=D,t[36]=ce,t[37]=T,t[38]=j,t[39]=A,t[40]=M,t[41]=N,t[42]=de.height,t[43]=de.width,t[44]=E,t[45]=Pe):Pe=t[45];let Fe;t[46]!==k||t[47]!==a||t[48]!==se||t[49]!==ae||t[50]!==oe||t[51]!==re||t[52]!==ie||t[53]!==D||t[54]!==ce||t[55]!==T||t[56]!==j||t[57]!==A||t[58]!==M||t[59]!==N||t[60]!==de.height||t[61]!==de.width||t[62]!==E?(Fe=[de.width,de.height,E,a,D,k,A,j,M,N,re,ie,ae,oe,se,ce,T],t[46]=k,t[47]=a,t[48]=se,t[49]=ae,t[50]=oe,t[51]=re,t[52]=ie,t[53]=D,t[54]=ce,t[55]=T,t[56]=j,t[57]=A,t[58]=M,t[59]=N,t[60]=de.height,t[61]=de.width,t[62]=E,t[63]=Fe):Fe=t[63],(0,z.useEffect)(Pe,Fe);let Ie;t[64]===n?Ie=t[65]:(Ie=f(`pointer-events-none absolute inset-0`,n),t[64]=n,t[65]=Ie);let Le;return t[66]===Ie?Le=t[67]:(Le=(0,B.jsx)(`div`,{ref:le,className:Ie,"aria-hidden":`true`}),t[66]=Ie,t[67]=Le),Le};function $l(e){return new Z(e)}function eu(e){return e.dispose()}var tu=()=>{let e=(0,ne.c)(15),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,B.jsx)(C,{colors:`var(--primary)`,className:`absolute inset-0`}),n=(0,B.jsx)(C,{colors:`var(--primary)`,borderWidth:15,className:`absolute -inset-2 opacity-25 blur-xs`}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,B.jsx)(`p`,{className:`font-mono text-xs tracking-wide text-balance text-primary md:text-sm`,children:`copy it, paste it, ship it`}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,B.jsx)(C,{size:150,borderWidth:2,colors:[`var(--color-accent)`,`var(--color-primary)`]}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,B.jsxs)(`div`,{className:`relative mx-auto inline-flex translate-y-2 justify-center rounded-full border border-border px-6 py-1`,children:[r,i,(0,B.jsx)(C,{size:150,borderWidth:4,className:`blur`,colors:[`var(--color-accent)`,`var(--color-primary)`]})]}),e[4]=a):a=e[4];let o,s;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,B.jsxs)(`h1`,{className:`flex gap-2 text-center text-[clamp(1rem,6vw,5rem)] font-black`,children:[(0,B.jsx)(`span`,{className:`inline-block tracking-tighter`,children:`Component`}),(0,B.jsx)(`span`,{className:`inline-block scale-150 px-2 text-center font-serif`,children:`&`}),(0,B.jsx)(`span`,{className:`inline-block tracking-tighter`,children:`Animations`})]}),s=(0,B.jsx)(`p`,{className:`mx-auto max-w-3xl text-center text-sm tracking-wide text-balance md:text-lg`,children:`We are a team of passionate designers and developers dedicated to creating beautiful and functional user interfaces.`}),e[5]=o,e[6]=s):(o=e[5],s=e[6]);let c;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=[`var(--primary)`,`var(--color-muted)`],e[7]=c):c=e[7];let l;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,B.jsx)(C,{size:150,colors:[`var(--primary), transparent`],borderWidth:3,className:`absolute -inset-1 blur-xs`}),e[8]=l):l=e[8];let u;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,B.jsx)(C,{size:150,colors:[`var(--primary), transparent`],borderWidth:2,className:`absolute -inset-0.5`}),e[9]=u):u=e[9];let d;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,B.jsxs)(ce,{colors:c,className:`text-xs md:text-sm`,children:[l,u,(0,B.jsx)(C,{size:150,colors:[`var(--primary), transparent`],borderWidth:2,className:`absolute -inset-1.5 mix-blend-color-dodge blur-xs`}),(0,B.jsx)(D,{className:`group-hover:text-brand size-4`}),(0,B.jsx)(`span`,{children:`Premium`})]}),e[10]=d):d=e[10];let f;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(f=[`var(--secondary)`,`var(--color-muted)`],e[11]=f):f=e[11];let p;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,B.jsxs)(`div`,{className:`flex flex-col space-y-3 p-6`,children:[a,o,s,(0,B.jsxs)(`div`,{className:`group flex justify-center space-x-2`,children:[d,(0,B.jsxs)(ce,{colors:f,className:`text-xs md:text-sm`,variant:`secondary`,children:[(0,B.jsx)(C,{colors:`var(--primary)`,size:150,borderWidth:3,className:`absolute -inset-1 blur-xs`}),(0,B.jsx)(C,{colors:`var(--primary)`,size:150,borderWidth:2,className:`absolute -inset-0.5`}),(0,B.jsx)(C,{colors:`var(--primary)`,size:150,borderWidth:2,className:`absolute -inset-1.5 mix-blend-color-dodge blur-xs`}),`Themes`]})]})]}),e[12]=p):p=e[12];let m;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(m={x:0,y:-20,z:5},e[13]=m):m=e[13];let h;return e[14]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,B.jsxs)(`section`,{className:`relative isolate my-4 grid min-h-90 place-items-center rounded-md border border-border md:min-h-120`,children:[t,n,p,(0,B.jsx)(Ql,{cameraPosition:m,style:`wireframe`,colors:[`#a1a1a1`,`#646464`],className:`mask-linear inset-0 -z-20 rounded-[inherit] mask-linear-from-10% mask-linear-to-50% opacity-20`})]}),e[14]=h):h=e[14],h};tu.displayName=`Hero`;function nu(){let e=(0,ne.c)(2),[t,n]=(0,z.useState)(ru),r,i;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=new MutationObserver(()=>{n({primary:w(`--primary`,`hex`)??`#e54545`,secondary:w(`--secondary`,`hex`)??`#0bdec4`})});return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`style`]}),()=>e.disconnect()},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,z.useEffect)(r,i),t}function ru(){return{primary:w(`--primary`,`hex`)??`#e54545`,secondary:w(`--secondary`,`hex`)??`#0bdec4`}}function iu(e){let t=(0,ne.c)(24),{analyser:n,isPlaying:r,style:i,primaryColor:a,secondaryColor:o}=e,s=(0,z.useRef)(null),c=(0,z.useRef)(null),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=[],t[0]=l):l=t[0];let u=(0,z.useRef)(l),d;t[1]!==a||t[2]!==o?(d=(e,t,n,r)=>{let i=t.length,s=n/i*2.5,c=0;for(let n=0;n{let i=t.length,s=n/i;e.lineWidth=3,e.strokeStyle=a||`#e54545`,e.shadowColor=a||`#e54545`,e.shadowBlur=10,e.beginPath();let c=0;for(let n=0;n{let i=n/2,s=r/2,c=Math.min(n,r)*.35,l=t.length;for(let n=0;n{let i=t.reduce(au,0)/t.length;if(i>50)for(let e=0;e(t.x+=t.vx,t.y+=t.vy,t.vy+=.05,t.life-=.015,t.life<=0?!1:(e.beginPath(),e.arc(t.x,t.y,t.size*t.life,0,Math.PI*2),e.fillStyle=t.life>.5?a||`#e54545`:o||`#ff7b7b`,e.globalAlpha=t.life,e.fill(),e.globalAlpha=1,t.life>0)));let s=n/10;for(let n=0;n<10;n++){let i=t[Math.floor(n/10*t.length)]/255*r*.3;e.fillStyle=`${a||`#e54545`}88`,e.fillRect(n*s,r-i,s-2,i)}},t[10]=a,t[11]=o,t[12]=_):_=t[12];let v=_,y,b;t[13]!==n||t[14]!==f||t[15]!==g||t[16]!==v||t[17]!==m||t[18]!==r||t[19]!==a||t[20]!==i?(y=()=>{let e=s.current;if(!e)return;let t=e.getContext(`2d`);if(!t)return;let o=()=>{let n=e.getBoundingClientRect();e.width=n.width*window.devicePixelRatio,e.height=n.height*window.devicePixelRatio,t.scale(window.devicePixelRatio,window.devicePixelRatio)};o(),window.addEventListener(`resize`,o);let l=()=>{let o=e.getBoundingClientRect(),s=o.width,u=o.height;if(t.clearRect(0,0,s,u),n&&r){let e=n.frequencyBinCount,r=new Uint8Array(e);n.getByteFrequencyData(r);bb113:switch(i){case`bars`:f(t,r,s,u);break bb113;case`wave`:n.getByteTimeDomainData(r),m(t,r,s,u);break bb113;case`circular`:g(t,r,s,u);break bb113;case`particles`:v(t,r,s,u)}}else{let e=Date.now()/1e3,n=o.width/22;for(let r=0;r<22;r++){let i=(Math.sin(e*2+r*.3)+1)*10+5;t.fillStyle=`${a||`#e54545`}88`,t.fillRect(r*n,u-i,n-2,i)}}c.current=requestAnimationFrame(l)};return l(),()=>{window.removeEventListener(`resize`,o),c.current&&cancelAnimationFrame(c.current)}},b=[n,r,i,f,m,g,v,a],t[13]=n,t[14]=f,t[15]=g,t[16]=v,t[17]=m,t[18]=r,t[19]=a,t[20]=i,t[21]=y,t[22]=b):(y=t[21],b=t[22]),(0,z.useEffect)(y,b);let x;return t[23]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,B.jsx)(`canvas`,{ref:s,className:`h-full w-full`,style:{display:`block`}}),t[23]=x):x=t[23],x}function au(e,t){return e+t}function ou(e){let t=(0,ne.c)(38),{isPlaying:n,onPlayPause:r,onPrevious:i,onNext:a,onShuffle:o,onRepeat:s,isShuffled:c,repeatMode:l,disabled:u}=e,d=u===void 0?!1:u,p=c?`text-primary`:`text-muted-foreground hover:text-foreground`,h;t[0]===p?h=t[1]:(h=f(`h-9 w-9 md:h-10 md:w-10`,p),t[0]=p,t[1]=h);let g;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,B.jsx)(P,{className:`h-4 w-4 md:h-5 md:w-5`}),t[2]=g):g=t[2];let _;t[3]!==d||t[4]!==o||t[5]!==h?(_=(0,B.jsx)(m,{variant:`ghost`,size:`icon`,onClick:o,disabled:d,className:h,"aria-label":`Shuffle`,children:g}),t[3]=d,t[4]=o,t[5]=h,t[6]=_):_=t[6];let v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,B.jsx)(F,{className:`h-5 w-5 md:h-6 md:w-6`}),t[7]=v):v=t[7];let y;t[8]!==d||t[9]!==i?(y=(0,B.jsx)(m,{variant:`ghost`,size:`icon`,onClick:i,disabled:d,className:`h-10 w-10 text-foreground hover:text-primary md:h-12 md:w-12`,"aria-label":`Previous track`,children:v}),t[8]=d,t[9]=i,t[10]=y):y=t[10];let b;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=f(`h-14 w-14 rounded-full md:h-16 md:w-16`,`bg-primary text-primary-foreground hover:bg-primary/90`,`shadow-lg shadow-primary/25 transition-all`,`hover:scale-105 active:scale-95`),t[11]=b):b=t[11];let x=n?`Pause`:`Play`,S;t[12]===n?S=t[13]:(S=n?(0,B.jsx)(A,{className:`h-6 w-6 md:h-7 md:w-7`}):(0,B.jsx)(j,{className:`ml-1 h-6 w-6 md:h-7 md:w-7`}),t[12]=n,t[13]=S);let C;t[14]!==d||t[15]!==r||t[16]!==S||t[17]!==x?(C=(0,B.jsx)(m,{onClick:r,disabled:d,className:b,"aria-label":x,children:S}),t[14]=d,t[15]=r,t[16]=S,t[17]=x,t[18]=C):C=t[18];let w;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,B.jsx)(I,{className:`h-5 w-5 md:h-6 md:w-6`}),t[19]=w):w=t[19];let T;t[20]!==d||t[21]!==a?(T=(0,B.jsx)(m,{variant:`ghost`,size:`icon`,onClick:a,disabled:d,className:`h-10 w-10 text-foreground hover:text-primary md:h-12 md:w-12`,"aria-label":`Next track`,children:w}),t[20]=d,t[21]=a,t[22]=T):T=t[22];let E=l===`off`?`text-muted-foreground hover:text-foreground`:`text-primary`,D;t[23]===E?D=t[24]:(D=f(`h-9 w-9 md:h-10 md:w-10`,E),t[23]=E,t[24]=D);let O;t[25]===l?O=t[26]:(O=l===`one`?(0,B.jsx)(M,{className:`h-4 w-4 md:h-5 md:w-5`}):(0,B.jsx)(N,{className:`h-4 w-4 md:h-5 md:w-5`}),t[25]=l,t[26]=O);let k;t[27]!==d||t[28]!==s||t[29]!==D||t[30]!==O?(k=(0,B.jsx)(m,{variant:`ghost`,size:`icon`,onClick:s,disabled:d,className:D,"aria-label":`Repeat`,children:O}),t[27]=d,t[28]=s,t[29]=D,t[30]=O,t[31]=k):k=t[31];let ee;return t[32]!==C||t[33]!==T||t[34]!==k||t[35]!==_||t[36]!==y?(ee=(0,B.jsxs)(`div`,{className:`flex items-center justify-center gap-2 md:gap-4`,children:[_,y,C,T,k]}),t[32]=C,t[33]=T,t[34]=k,t[35]=_,t[36]=y,t[37]=ee):ee=t[37],ee}var su=[{id:`1`,title:`Cold Steel Sheets`,artist:`Iron & Oak`,album:`Forged`,duration:475,src:`/music/cold-steel-sheets.mp3`,coverUrl:`https://images.unsplash.com/photo-1614149162883-504ce4d13909?w=400&h=400&fit=crop`},{id:`2`,title:`Laughter at the Gale`,artist:`Storm Chaser`,album:`Braving the Wind`,duration:353,src:`/music/laughter-at-the-gale.mp3`,coverUrl:`https://images.unsplash.com/photo-1557672172-298e090bd0f1?w=400&h=400&fit=crop`},{id:`3`,title:`Roses in the Sink`,artist:`Violet Glass`,album:`Fading Petals`,duration:393,src:`/music/roses-in-the-sink.mp3`,coverUrl:`https://images.unsplash.com/photo-1518837695005-2083093ee35b?w=400&h=400&fit=crop`},{id:`4`,title:`Storm Walker's Oath`,artist:`Thunder Pass`,album:`The Reckoning`,duration:462,src:`/music/storm-walkers-oath.mp3`,coverUrl:`https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?w=400&h=400&fit=crop`},{id:`5`,title:`The Empty Chair`,artist:`Silent Hollow`,album:`Left Behind`,duration:259,src:`/music/the-empty-chair.mp3`,coverUrl:`https://images.unsplash.com/photo-1462331940025-496dfbfc7564?w=400&h=400&fit=crop`}],cu=[{id:`1`,name:`Chill Vibes`,tracks:[su[0],su[2],su[4]],coverUrl:su[0].coverUrl},{id:`2`,name:`Dark & Stormy`,tracks:[su[1],su[3]],coverUrl:su[1].coverUrl},{id:`3`,name:`All Tracks`,tracks:su,coverUrl:su[3].coverUrl}],lu=e=>`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`;function uu(e){let t=(0,ne.c)(47),{playlists:n,currentPlaylist:i,currentTrack:a,onSelectPlaylist:o,onSelectTrack:s,onCreatePlaylist:l,isOpen:d,onClose:p}=e,[g,_]=(0,z.useState)(!1),[v,y]=(0,z.useState)(``),[b,x]=(0,z.useState)(null),S;t[0]!==v||t[1]!==l?(S=()=>{v.trim()&&(l(v.trim()),y(``),_(!1))},t[0]=v,t[1]=l,t[2]=S):S=t[2];let C=S,w;t[3]===b?w=t[4]:(w=e=>{x(b===e?null:e)},t[3]=b,t[4]=w);let T=w,E;t[5]!==d||t[6]!==p?(E=d&&(0,B.jsx)(`div`,{className:`fixed inset-0 z-40 bg-background/80 backdrop-blur-sm lg:hidden`,onClick:p}),t[5]=d,t[6]=p,t[7]=E):E=t[7];let D=d?`translate-x-0`:`-translate-x-full lg:translate-x-0`,O;t[8]===D?O=t[9]:(O=f(`fixed top-0 left-0 z-50 h-full w-80 border-r border-border bg-card lg:relative`,`transform transition-transform duration-300 ease-in-out`,D),t[8]=D,t[9]=O);let A;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,B.jsx)(`h2`,{className:`text-lg font-semibold text-foreground`,children:`Playlists`}),t[10]=A):A=t[10];let M;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>_(!0),t[11]=M):M=t[11];let N;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,B.jsx)(m,{variant:`ghost`,size:`icon`,onClick:M,className:`text-muted-foreground hover:text-foreground`,"aria-label":`Create playlist`,children:(0,B.jsx)(r,{className:`h-5 w-5`})}),t[12]=N):N=t[12];let P;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,B.jsx)(u,{className:`h-5 w-5`}),t[13]=P):P=t[13];let F;t[14]===p?F=t[15]:(F=(0,B.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border p-4`,children:[A,(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[N,(0,B.jsx)(m,{variant:`ghost`,size:`icon`,onClick:p,className:`text-muted-foreground hover:text-foreground lg:hidden`,"aria-label":`Close sidebar`,children:P})]})]}),t[14]=p,t[15]=F);let I;t[16]!==C||t[17]!==g||t[18]!==v?(I=g&&(0,B.jsxs)(`div`,{className:`border-b border-border p-4`,children:[(0,B.jsx)(c,{type:`text`,placeholder:`Playlist name...`,value:v,onChange:e=>y(e.target.value),onKeyDown:e=>e.key===`Enter`&&C(),className:`mb-2`,autoFocus:!0}),(0,B.jsxs)(`div`,{className:`flex gap-2`,children:[(0,B.jsx)(m,{size:`sm`,onClick:C,className:`flex-1`,children:`Create`}),(0,B.jsx)(m,{size:`sm`,variant:`outline`,onClick:()=>{_(!1),y(``)},children:`Cancel`})]})]}),t[16]=C,t[17]=g,t[18]=v,t[19]=I):I=t[19];let ee;if(t[20]!==i?.id||t[21]!==a?.id||t[22]!==b||t[23]!==o||t[24]!==s||t[25]!==n||t[26]!==T){let e;t[28]!==i?.id||t[29]!==a?.id||t[30]!==b||t[31]!==o||t[32]!==s||t[33]!==T?(e=e=>(0,B.jsxs)(`div`,{className:`border-b border-border/50`,children:[(0,B.jsxs)(`button`,{onClick:()=>{o(e),T(e.id)},className:f(`flex w-full items-center gap-3 p-4 transition-colors hover:bg-muted/50`,i?.id===e.id&&`bg-muted`),children:[(0,B.jsx)(`div`,{className:`relative h-12 w-12 flex-shrink-0 overflow-hidden rounded-lg bg-muted`,children:e.coverUrl?(0,B.jsx)(`img`,{src:e.coverUrl,alt:e.name,className:`absolute inset-0 object-cover`}):(0,B.jsx)(`div`,{className:`flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/50 to-primary/20`,children:(0,B.jsx)(k,{className:`h-6 w-6 text-primary`})})}),(0,B.jsxs)(`div`,{className:`min-w-0 flex-1 text-left`,children:[(0,B.jsx)(`p`,{className:`truncate font-medium text-foreground`,children:e.name}),(0,B.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[e.tracks.length,` tracks`]})]}),(0,B.jsx)(h,{className:f(`h-5 w-5 text-muted-foreground transition-transform`,b===e.id&&`rotate-90`)})]}),b===e.id&&(0,B.jsx)(`div`,{className:`bg-muted/30`,children:e.tracks.map((t,n)=>(0,B.jsxs)(`button`,{onClick:()=>s(t,e),className:f(`flex w-full items-center gap-3 px-4 py-2 transition-colors hover:bg-muted/50`,a?.id===t.id&&`bg-primary/10`),children:[(0,B.jsx)(`span`,{className:`w-6 text-center text-xs text-muted-foreground`,children:a?.id===t.id?(0,B.jsx)(j,{className:`mx-auto h-3 w-3 fill-primary text-primary`}):n+1}),(0,B.jsxs)(`div`,{className:`min-w-0 flex-1 text-left`,children:[(0,B.jsx)(`p`,{className:f(`truncate text-sm`,a?.id===t.id?`text-primary`:`text-foreground`),children:t.title}),(0,B.jsx)(`p`,{className:`truncate text-xs text-muted-foreground`,children:t.artist})]}),(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:lu(t.duration)})]},t.id))})]},e.id),t[28]=i?.id,t[29]=a?.id,t[30]=b,t[31]=o,t[32]=s,t[33]=T,t[34]=e):e=t[34],ee=n.map(e),t[20]=i?.id,t[21]=a?.id,t[22]=b,t[23]=o,t[24]=s,t[25]=n,t[26]=T,t[27]=ee}else ee=t[27];let L;t[35]===ee?L=t[36]:(L=(0,B.jsx)(`div`,{className:`flex-1 overflow-y-auto`,children:ee}),t[35]=ee,t[36]=L);let te;t[37]!==F||t[38]!==I||t[39]!==L?(te=(0,B.jsxs)(`div`,{className:`flex h-full flex-col`,children:[F,I,L]}),t[37]=F,t[38]=I,t[39]=L,t[40]=te):te=t[40];let R;t[41]!==te||t[42]!==O?(R=(0,B.jsx)(`aside`,{className:O,children:te}),t[41]=te,t[42]=O,t[43]=R):R=t[43];let re;return t[44]!==R||t[45]!==E?(re=(0,B.jsxs)(B.Fragment,{children:[E,R]}),t[44]=R,t[45]=E,t[46]=re):re=t[46],re}function du(e){let t=(0,ne.c)(52),{currentTime:n,duration:r,onSeek:i}=e,a=(0,z.useRef)(null),[o,s]=(0,z.useState)(!1),[c,l]=(0,z.useState)(null),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=e=>{if(!a.current)return 0;let t=a.current.getBoundingClientRect(),n=(e-t.left)/t.width;return Math.max(0,Math.min(1,n))},t[0]=u):u=t[0];let d=u,f;t[1]!==r||t[2]!==i?(f=e=>{s(!0),i(d(e.clientX)*r)},t[1]=r,t[2]=i,t[3]=f):f=t[3];let p=f,m;t[4]!==r||t[5]!==o||t[6]!==i?(m=e=>{let t=d(e.clientX);l(t),o&&i(t*r)},t[4]=r,t[5]=o,t[6]=i,t[7]=m):m=t[7];let h=m,g;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{s(!1)},t[8]=g):g=t[8];let _=g,v;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{l(null),s(!1)},t[9]=v):v=t[9];let y=v,b;t[10]!==r||t[11]!==i?(b=e=>{let t=e.touches[0];i(d(t.clientX)*r),s(!0)},t[10]=r,t[11]=i,t[12]=b):b=t[12];let x=b,S;t[13]!==r||t[14]!==o||t[15]!==i?(S=e=>{if(!o)return;let t=e.touches[0];i(d(t.clientX)*r)},t[13]=r,t[14]=o,t[15]=i,t[16]=S):S=t[16];let C=S,w;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{s(!1)},t[17]=w):w=t[17];let T=w,E=r>0?n/r*100:0,D=`${E}%`,O;t[18]===D?O=t[19]:(O=(0,B.jsx)(`div`,{className:`absolute top-0 left-0 h-full rounded-full bg-primary transition-all`,style:{width:D}}),t[18]=D,t[19]=O);let k;t[20]===c?k=t[21]:(k=c!==null&&(0,B.jsx)(`div`,{className:`absolute top-0 h-full rounded-full bg-foreground/20`,style:{width:`${c*100}%`}}),t[20]=c,t[21]=k);let A=`calc(${E}% - 8px)`,j;t[22]===A?j=t[23]:(j=(0,B.jsx)(`div`,{className:`absolute top-1/2 h-4 w-4 -translate-y-1/2 rounded-full bg-primary opacity-0 shadow-lg transition-opacity group-hover:opacity-100`,style:{left:A}}),t[22]=A,t[23]=j);let M;t[24]!==r||t[25]!==c?(M=c!==null&&(0,B.jsx)(`div`,{className:`absolute -top-8 rounded bg-card px-2 py-1 text-xs text-foreground shadow-lg`,style:{left:`calc(${c*100}% - 20px)`},children:lu(c*r)}),t[24]=r,t[25]=c,t[26]=M):M=t[26];let N;t[27]!==n||t[28]!==r||t[29]!==p||t[30]!==h||t[31]!==C||t[32]!==x||t[33]!==O||t[34]!==k||t[35]!==j||t[36]!==M?(N=(0,B.jsxs)(`div`,{ref:a,className:`group relative h-2 cursor-pointer rounded-full bg-muted`,onMouseDown:p,onMouseMove:h,onMouseUp:_,onMouseLeave:y,onTouchStart:x,onTouchMove:C,onTouchEnd:T,role:`slider`,"aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":n,"aria-label":`Seek`,tabIndex:0,children:[O,k,j,M]}),t[27]=n,t[28]=r,t[29]=p,t[30]=h,t[31]=C,t[32]=x,t[33]=O,t[34]=k,t[35]=j,t[36]=M,t[37]=N):N=t[37];let P;t[38]===n?P=t[39]:(P=lu(n),t[38]=n,t[39]=P);let F;t[40]===P?F=t[41]:(F=(0,B.jsx)(`span`,{children:P}),t[40]=P,t[41]=F);let I;t[42]===r?I=t[43]:(I=lu(r),t[42]=r,t[43]=I);let ee;t[44]===I?ee=t[45]:(ee=(0,B.jsx)(`span`,{children:I}),t[44]=I,t[45]=ee);let L;t[46]!==F||t[47]!==ee?(L=(0,B.jsxs)(`div`,{className:`flex justify-between text-xs text-muted-foreground`,children:[F,ee]}),t[46]=F,t[47]=ee,t[48]=L):L=t[48];let te;return t[49]!==N||t[50]!==L?(te=(0,B.jsxs)(`div`,{className:`w-full space-y-1`,children:[N,L]}),t[49]=N,t[50]=L,t[51]=te):te=t[51],te}function fu(t){let n=(0,ne.c)(28),{track:r,isFavorite:i,onToggleFavorite:a}=t;if(!r){let e;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,B.jsx)(`div`,{className:`h-16 w-16 animate-pulse rounded-lg bg-muted`}),n[0]=e):e=n[0];let t;return n[1]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[e,(0,B.jsxs)(`div`,{className:`space-y-2`,children:[(0,B.jsx)(`div`,{className:`h-4 w-32 animate-pulse rounded bg-muted`}),(0,B.jsx)(`div`,{className:`h-3 w-24 animate-pulse rounded bg-muted`})]})]}),n[1]=t):t=n[1],t}let o;n[2]!==r.album||n[3]!==r.coverUrl||n[4]!==r.title?(o=(0,B.jsx)(`div`,{className:`group relative h-16 w-16 overflow-hidden rounded-lg shadow-lg md:h-20 md:w-20`,children:r.coverUrl?(0,B.jsx)(`img`,{src:r.coverUrl,alt:`${r.album} cover`,className:`object-cover transition-transform group-hover:scale-110`,crossOrigin:`anonymous`}):(0,B.jsx)(`div`,{className:`flex h-full w-full items-center justify-center bg-gradient-to-br from-primary to-primary/50`,children:(0,B.jsx)(`span`,{className:`text-2xl font-bold text-primary-foreground`,children:r.title[0]})})}),n[2]=r.album,n[3]=r.coverUrl,n[4]=r.title,n[5]=o):o=n[5];let s;n[6]===r.title?s=n[7]:(s=(0,B.jsx)(`h3`,{className:`truncate text-sm font-semibold text-foreground md:text-base`,children:r.title}),n[6]=r.title,n[7]=s);let c;n[8]===r.artist?c=n[9]:(c=(0,B.jsx)(`p`,{className:`truncate text-xs text-muted-foreground md:text-sm`,children:r.artist}),n[8]=r.artist,n[9]=c);let l;n[10]===r.album?l=n[11]:(l=(0,B.jsx)(`p`,{className:`truncate text-xs text-muted-foreground/70`,children:r.album}),n[10]=r.album,n[11]=l);let u;n[12]!==s||n[13]!==c||n[14]!==l?(u=(0,B.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[s,c,l]}),n[12]=s,n[13]=c,n[14]=l,n[15]=u):u=n[15];let d=i?`Remove from favorites`:`Add to favorites`,p=i?`scale-110 fill-primary text-primary`:`text-muted-foreground hover:text-primary`,m;n[16]===p?m=n[17]:(m=f(`h-5 w-5 transition-all`,p),n[16]=p,n[17]=m);let h;n[18]===m?h=n[19]:(h=(0,B.jsx)(e,{className:m}),n[18]=m,n[19]=h);let g;n[20]!==a||n[21]!==d||n[22]!==h?(g=(0,B.jsx)(`button`,{onClick:a,className:`rounded-full p-2 transition-colors hover:bg-muted`,"aria-label":d,children:h}),n[20]=a,n[21]=d,n[22]=h,n[23]=g):g=n[23];let _;return n[24]!==o||n[25]!==g||n[26]!==u?(_=(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[o,u,g]}),n[24]=o,n[25]=g,n[26]=u,n[27]=_):_=n[27],_}var pu=[{style:`bars`,label:`Bars`,icon:(0,B.jsx)(T,{className:`size-4`})},{style:`wave`,label:`Wave`,icon:(0,B.jsx)(R,{className:`size-4`})},{style:`circular`,label:`Circular`,icon:(0,B.jsx)(E,{className:`size-4`})},{style:`particles`,label:`Particles`,icon:(0,B.jsx)(i,{className:`size-4`})}];function mu(e){let t=(0,ne.c)(7),{currentStyle:n,onStyleChange:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,B.jsx)(o,{asChild:!0,children:(0,B.jsx)(m,{variant:`ghost`,size:`icon`,className:`size-9 text-muted-foreground hover:text-foreground`,"aria-label":`Visualizer settings`,children:(0,B.jsx)(p,{className:`size-5`})})}),t[0]=i):i=t[0];let c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,B.jsx)(`h4`,{className:`text-sm font-medium text-foreground`,children:`Visualizer Style`}),t[1]=c):c=t[1];let l;t[2]!==n||t[3]!==r?(l=pu.map(e=>(0,B.jsxs)(m,{variant:`outline`,size:`sm`,onClick:()=>r(e.style),className:f(`justify-start gap-2`,n===e.style&&`border-primary bg-primary text-primary-foreground hover:bg-primary/90 hover:text-primary-foreground`),children:[e.icon,e.label]},e.style)),t[2]=n,t[3]=r,t[4]=l):l=t[4];let u;return t[5]===l?u=t[6]:(u=(0,B.jsxs)(s,{children:[i,(0,B.jsx)(a,{className:`w-64`,align:`end`,children:(0,B.jsxs)(`div`,{className:`space-y-2`,children:[c,(0,B.jsx)(`div`,{className:`grid grid-cols-2 gap-2`,children:l})]})})]}),t[5]=l,t[6]=u),u}function hu(e){let t=(0,ne.c)(26),{volume:n,onVolumeChange:r}=e,[i,a]=(0,z.useState)(n),[o,s]=(0,z.useState)(!1),c;t[0]!==r||t[1]!==i||t[2]!==n?(c=()=>{n>0?(a(n),r(0)):r(i||.7)},t[0]=r,t[1]=i,t[2]=n,t[3]=c):c=t[3];let l=c,u=n===0?te:n<.5?ee:L,d,f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>s(!0),f=()=>s(!1),t[4]=d,t[5]=f):(d=t[4],f=t[5]);let p=n===0?`Unmute`:`Mute`,h;t[6]===u?h=t[7]:(h=(0,B.jsx)(u,{className:`h-5 w-5`}),t[6]=u,t[7]=h);let g;t[8]!==p||t[9]!==h||t[10]!==l?(g=(0,B.jsx)(m,{variant:`ghost`,size:`icon`,onClick:l,className:`h-9 w-9 text-muted-foreground hover:text-foreground`,"aria-label":p,children:h}),t[8]=p,t[9]=h,t[10]=l,t[11]=g):g=t[11];let _=`overflow-hidden transition-all duration-200 ${o?`w-24 opacity-100`:`w-0 opacity-0 md:w-24 md:opacity-100`} `,v;t[12]===r?v=t[13]:(v=e=>r(parseFloat(e.target.value)),t[12]=r,t[13]=v);let y=`linear-gradient(to right, var(--primary) ${n*100}%, var(--muted) ${n*100}%)`,b;t[14]===y?b=t[15]:(b={background:y},t[14]=y,t[15]=b);let x;t[16]!==b||t[17]!==v||t[18]!==n?(x=(0,B.jsx)(`input`,{type:`range`,min:0,max:1,step:.01,value:n,onChange:v,className:`h-2 w-full cursor-pointer appearance-none rounded-lg bg-muted accent-primary`,style:b,"aria-label":`Volume`}),t[16]=b,t[17]=v,t[18]=n,t[19]=x):x=t[19];let S;t[20]!==x||t[21]!==_?(S=(0,B.jsx)(`div`,{className:_,children:x}),t[20]=x,t[21]=_,t[22]=S):S=t[22];let C;return t[23]!==S||t[24]!==g?(C=(0,B.jsxs)(`div`,{className:`group flex items-center gap-2`,onMouseEnter:d,onMouseLeave:f,children:[g,S]}),t[23]=S,t[24]=g,t[25]=C):C=t[25],C}function gu(){let e=(0,z.useRef)(null),n=(0,z.useRef)(null),r=(0,z.useRef)(null),i=(0,z.useRef)(null),[a,o]=(0,z.useState)(!1),[s,c]=(0,z.useState)(0),[l,u]=(0,z.useState)(0),[d,f]=(0,z.useState)(.7),[p,h]=(0,z.useState)(!1),[g,_]=(0,z.useState)(`off`),[v,y]=(0,z.useState)(cu),[b,x]=(0,z.useState)(cu[2]),[S,C]=(0,z.useState)(0),[w,T]=(0,z.useState)(new Set),[E,D]=(0,z.useState)(!1),[k,A]=(0,z.useState)(`bars`),[,j]=(0,z.useState)(!1),[M,N]=(0,z.useState)(null),P=(0,z.useMemo)(()=>{if(!b)return[];let e=Array.from({length:b.tracks.length},(e,t)=>t);if(p)for(let t=e.length-1;t>0;t--){let n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e},[b,p]),F=b?.tracks[p?P[S]||0:S]||null,{primary:I,secondary:ee}=nu(),L=(0,z.useCallback)(()=>{if(!(!e.current||n.current))try{let t=new(window.AudioContext||window.webkitAudioContext),a=t.createAnalyser();a.fftSize=256,a.smoothingTimeConstant=.8;let o=t.createMediaElementSource(e.current);o.connect(a),a.connect(t.destination),n.current=t,r.current=a,i.current=o,N(a)}catch(e){console.log(`[v0] Error initializing audio context:`,e)}},[]),te=(0,z.useCallback)(()=>{b&&(S{e.current&&(e.current.currentTime>3?e.current.currentTime=0:S>0&&C(S-1))};(0,z.useEffect)(()=>{let t=e.current;if(!t)return;let n=()=>c(t.currentTime),r=()=>u(t.duration||0),i=()=>{g===`one`?(t.currentTime=0,t.play()):te()},a=()=>j(!0);return t.addEventListener(`timeupdate`,n),t.addEventListener(`durationchange`,r),t.addEventListener(`ended`,i),t.addEventListener(`canplay`,a),()=>{t.removeEventListener(`timeupdate`,n),t.removeEventListener(`durationchange`,r),t.removeEventListener(`ended`,i),t.removeEventListener(`canplay`,a)}},[g,te]),(0,z.useEffect)(()=>{e.current&&(e.current.volume=d)},[d]);let ne=async()=>{if(!(!e.current||!F)){if(n.current||L(),n.current?.state===`suspended`&&await n.current.resume(),a)e.current.pause();else try{await e.current.play()}catch(e){console.log(`[v0] Playback error:`,e)}o(!a)}},re=t=>{e.current&&(e.current.currentTime=t)},ie=()=>h(!p),ae=()=>{let e=[`off`,`all`,`one`];_(e[(e.indexOf(g)+1)%e.length])},oe=()=>{if(!F)return;let e=new Set(w);e.has(F.id)?e.delete(F.id):e.add(F.id),T(e)},se=e=>{x(e),C(0),o(!1)},ce=(e,t)=>{b?.id!==t.id&&x(t);let n=t.tracks.findIndex(t=>t.id===e.id);C(n>=0?n:0),o(!0)},le=e=>{let t={id:Date.now().toString(),name:e,tracks:[]};y([...v,t])};(0,z.useEffect)(()=>{e.current&&a&&F&&(e.current.load(),n.current||L(),(async()=>{if(n.current?.state===`suspended`)try{await n.current.resume()}catch(e){console.log(`[v0] Resume failed:`,e)}try{await e.current?.play()}catch(e){console.error(e)}})())},[F,a,L]);let ue=a?M:null;return(0,B.jsxs)(`div`,{className:`flex h-screen bg-background`,children:[(0,B.jsx)(`audio`,{ref:e,src:F?.src,preload:`metadata`}),(0,B.jsx)(uu,{playlists:v,currentPlaylist:b,currentTrack:F,onSelectPlaylist:se,onSelectTrack:ce,onCreatePlaylist:le,isOpen:E,onClose:()=>D(!1)}),(0,B.jsxs)(`main`,{className:`flex flex-1 flex-col overflow-hidden`,children:[(0,B.jsxs)(`header`,{className:`flex items-center justify-between border-b border-border p-4`,children:[(0,B.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,B.jsx)(m,{variant:`ghost`,size:`icon`,onClick:()=>D(!0),className:`text-muted-foreground hover:text-foreground lg:hidden`,"aria-label":`Open playlist`,children:(0,B.jsx)(t,{className:`h-5 w-5`})}),(0,B.jsxs)(`h1`,{className:`text-xl font-bold text-foreground`,children:[`Sonic`,(0,B.jsx)(`span`,{className:`text-primary`,children:`Wave`})]})]}),(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(mu,{currentStyle:k,onStyleChange:A}),(0,B.jsx)(m,{variant:`ghost`,size:`icon`,onClick:()=>D(!E),className:`hidden text-muted-foreground hover:text-foreground lg:flex`,"aria-label":`Toggle playlist`,children:(0,B.jsx)(O,{className:`h-5 w-5`})})]})]}),(0,B.jsxs)(`div`,{className:`relative flex-1 overflow-hidden`,children:[F?.coverUrl&&(0,B.jsxs)(`div`,{className:`absolute inset-0`,children:[(0,B.jsx)(`img`,{src:F.coverUrl,alt:``,className:`absolute inset-0 scale-110 object-cover opacity-30 blur-3xl`}),(0,B.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-background via-background/80 to-background/40`})]}),(0,B.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center p-8`,children:(0,B.jsx)(`div`,{className:`h-full max-h-96 w-full max-w-4xl`,children:(0,B.jsx)(iu,{analyser:ue,isPlaying:a,style:k,primaryColor:I,secondaryColor:ee})})}),F?.coverUrl&&(0,B.jsx)(`div`,{className:`pointer-events-none absolute inset-0 flex items-center justify-center`,children:(0,B.jsxs)(`div`,{className:`relative h-32 w-32 overflow-hidden rounded-2xl shadow-2xl shadow-primary/20 md:h-48 md:w-48 lg:h-56 lg:w-56`,children:[(0,B.jsx)(`img`,{src:F.coverUrl,alt:`${F.album} cover`,className:`absolute inset-0 object-cover`}),(0,B.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-background/60 to-transparent`})]})})]}),(0,B.jsx)(`div`,{className:`border-t border-border bg-card/80 backdrop-blur-lg`,children:(0,B.jsxs)(`div`,{className:`mx-auto max-w-4xl space-y-4 p-4 md:p-6`,children:[(0,B.jsx)(fu,{track:F,isFavorite:F?w.has(F.id):!1,onToggleFavorite:oe}),(0,B.jsx)(du,{currentTime:s,duration:l,onSeek:re}),(0,B.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,B.jsx)(`div`,{className:`hidden flex-1 md:block`,children:(0,B.jsx)(hu,{volume:d,onVolumeChange:f})}),(0,B.jsx)(ou,{isPlaying:a,onPlayPause:ne,onPrevious:R,onNext:te,onShuffle:ie,onRepeat:ae,isShuffled:p,repeatMode:g,disabled:!F}),(0,B.jsx)(`div`,{className:`flex flex-1 justify-end md:hidden`,children:(0,B.jsx)(hu,{volume:d,onVolumeChange:f})}),(0,B.jsx)(`div`,{className:`hidden flex-1 md:block`})]})]})})]})]})}function _u(){let e=(0,ne.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,B.jsx)(_,{title:`Home`,children:(0,B.jsx)(`meta`,{name:`description`,content:`my components library`})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,B.jsx)(tu,{}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,B.jsxs)(`div`,{className:`relative`,children:[t,(0,B.jsxs)(S,{as:`section`,children:[n,(0,B.jsx)(`div`,{className:`my-6 grid grid-cols-1`,children:(0,B.jsx)(gu,{})})]})]}),e[2]=r):r=e[2],r}_u.layout=n,_u.displayName=`home`;export{_u as default}; \ No newline at end of file diff --git a/public/build/assets/input-error-BdHD9-x4.js b/public/build/assets/input-error-CzZYqI_U.js similarity index 84% rename from public/build/assets/input-error-BdHD9-x4.js rename to public/build/assets/input-error-CzZYqI_U.js index db802f4..0227dd6 100644 --- a/public/build/assets/input-error-BdHD9-x4.js +++ b/public/build/assets/input-error-CzZYqI_U.js @@ -1 +1 @@ -import{Q as e,Wt as t,qt as n}from"./app-CVlP31Z1.js";var r=n(),i=t();function a(t){let n=(0,r.c)(8),a,o,s;n[0]===t?(a=n[1],o=n[2],s=n[3]):({message:a,className:s,...o}=t,n[0]=t,n[1]=a,n[2]=o,n[3]=s);let c=s===void 0?``:s,l;return n[4]!==c||n[5]!==a||n[6]!==o?(l=a?(0,i.jsx)(`p`,{...o,className:e(`text-sm text-red-600 dark:text-red-400`,c),children:a}):null,n[4]=c,n[5]=a,n[6]=o,n[7]=l):l=n[7],l}export{a as t}; \ No newline at end of file +import{Q as e,Wt as t,qt as n}from"./app-D7MKN1zp.js";var r=n(),i=t();function a(t){let n=(0,r.c)(8),a,o,s;n[0]===t?(a=n[1],o=n[2],s=n[3]):({message:a,className:s,...o}=t,n[0]=t,n[1]=a,n[2]=o,n[3]=s);let c=s===void 0?``:s,l;return n[4]!==c||n[5]!==a||n[6]!==o?(l=a?(0,i.jsx)(`p`,{...o,className:e(`text-sm text-red-600 dark:text-red-400`,c),children:a}):null,n[4]=c,n[5]=a,n[6]=o,n[7]=l):l=n[7],l}export{a as t}; \ No newline at end of file diff --git a/public/build/assets/label-D-AkZnW_.js b/public/build/assets/label-fRwP89Ez.js similarity index 92% rename from public/build/assets/label-D-AkZnW_.js rename to public/build/assets/label-fRwP89Ez.js index 687fa33..a2168a2 100644 --- a/public/build/assets/label-D-AkZnW_.js +++ b/public/build/assets/label-fRwP89Ez.js @@ -1 +1 @@ -import{Q as e,Wt as t,ln as n,qt as r,rn as i,z as a}from"./app-CVlP31Z1.js";var o=r(),s=n(i(),1),c=t(),l=`Label`,u=s.forwardRef((e,t)=>(0,c.jsx)(a.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));u.displayName=l;var d=u;function f(t){let n=(0,o.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=e(`text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,r),n[3]=r,n[4]=a);let s;return n[5]!==i||n[6]!==a?(s=(0,c.jsx)(d,{"data-slot":`label`,className:a,...i}),n[5]=i,n[6]=a,n[7]=s):s=n[7],s}export{f as t}; \ No newline at end of file +import{Q as e,Wt as t,ln as n,qt as r,rn as i,z as a}from"./app-D7MKN1zp.js";var o=r(),s=n(i(),1),c=t(),l=`Label`,u=s.forwardRef((e,t)=>(0,c.jsx)(a.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));u.displayName=l;var d=u;function f(t){let n=(0,o.c)(8),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=e(`text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,r),n[3]=r,n[4]=a);let s;return n[5]!==i||n[6]!==a?(s=(0,c.jsx)(d,{"data-slot":`label`,className:a,...i}),n[5]=i,n[6]=a,n[7]=s):s=n[7],s}export{f as t}; \ No newline at end of file diff --git a/public/build/assets/loader-circle-XO7crStb.js b/public/build/assets/loader-circle-YfjFJaoY.js similarity index 50% rename from public/build/assets/loader-circle-XO7crStb.js rename to public/build/assets/loader-circle-YfjFJaoY.js index 28ba38d..e8594b0 100644 --- a/public/build/assets/loader-circle-XO7crStb.js +++ b/public/build/assets/loader-circle-YfjFJaoY.js @@ -1 +1 @@ -import{G as e}from"./app-CVlP31Z1.js";var t=e(`LoaderCircle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t}; \ No newline at end of file +import{G as e}from"./app-D7MKN1zp.js";var t=e(`LoaderCircle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/login-B4lH5do8.js b/public/build/assets/login-00JrbYrx.js similarity index 95% rename from public/build/assets/login-B4lH5do8.js rename to public/build/assets/login-00JrbYrx.js index ae7277e..415be0d 100644 --- a/public/build/assets/login-B4lH5do8.js +++ b/public/build/assets/login-00JrbYrx.js @@ -1 +1 @@ -import{t as e}from"./check-CCTwZBIw.js";import{n as t,r as n,t as r}from"./socialite-DAGU8Gzo.js";import{t as i}from"./password-input-QL8S9D3F.js";import{t as a}from"./github-BytY2MM3.js";import{t as o}from"./dist-CyCRNm1V.js";import{B as s,Ht as c,Jt as l,Q as u,R as d,Ut as f,V as p,Vt as m,Wt as h,Yt as g,ct as _,et as v,f as y,ln as b,nn as x,qt as S,rn as C,tt as w,u as ee}from"./app-CVlP31Z1.js";import{t as T}from"./input-error-BdHD9-x4.js";import{t as E}from"./label-D-AkZnW_.js";import{t as te}from"./spinner-CoRrGFqk.js";import{t as D}from"./text-link-B7waIO2E.js";import{n as ne}from"./password-CsunKxsK.js";var O=S(),k=b(C(),1),A=h();function j(e,t=[]){let n=[];function r(t,r){let i=k.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=k.useMemo(()=>o,Object.values(o));return(0,A.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=k.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>k.createContext(e));return function(n){let r=n?.[e]||t;return k.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,M(i,...t)]}function M(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}x();function N(e){let t=P(e),n=k.forwardRef((e,n)=>{let{children:r,...i}=e,a=k.Children.toArray(r),o=a.find(I);if(o){let e=o.props.children,r=a.map(t=>t===o?k.Children.count(e)>1?k.Children.only(null):k.isValidElement(e)?e.props.children:null:t);return(0,A.jsx)(t,{...i,ref:n,children:k.isValidElement(e)?k.cloneElement(e,void 0,r):null})}return(0,A.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function P(e){let t=k.forwardRef((e,t)=>{let{children:n,...r}=e;if(k.isValidElement(n)){let e=R(n),i=L(r,n.props);return n.type!==k.Fragment&&(i.ref=t?m(t,e):e),k.cloneElement(n,i)}return k.Children.count(n)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var F=Symbol(`radix.slottable`);function I(e){return k.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===F}function L(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function R(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var z=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=N(`Primitive.${t}`),r=k.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,A.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),B=`Checkbox`,[re,ie]=j(B),[ae,V]=re(B);function oe(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=v({prop:n,defaultProp:i??!1,onChange:c,caller:B}),[m,h]=k.useState(null),[g,_]=k.useState(null),y=k.useRef(!1),b=m?!!o||!!m.closest(`form`):!0,x={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:y,required:l,defaultChecked:Y(i)?!1:i,isFormControl:b,bubbleInput:g,setBubbleInput:_};return(0,A.jsx)(ae,{scope:t,...x,children:se(d)?d(x):r})}var H=`CheckboxTrigger`,U=k.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:l,required:u,setControl:d,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:g}=V(H,e),_=c(i,d),v=k.useRef(l);return k.useEffect(()=>{let e=a?.form;if(e){let t=()=>p(v.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,p]),(0,A.jsx)(z.button,{type:`button`,role:`checkbox`,"aria-checked":Y(l)?`mixed`:l,"aria-required":u,"data-state":X(l),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:_,onKeyDown:f(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:f(n,e=>{p(e=>Y(e)?!0:!e),g&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});U.displayName=H;var W=k.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,A.jsx)(oe,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(U,{...d,ref:t,__scopeCheckbox:n}),e&&(0,A.jsx)(J,{__scopeCheckbox:n})]})})});W.displayName=B;var G=`CheckboxIndicator`,K=k.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=V(G,n);return(0,A.jsx)(w,{present:r||Y(a.checked)||a.checked===!0,children:(0,A.jsx)(z.span,{"data-state":X(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});K.displayName=G;var q=`CheckboxBubbleInput`,J=k.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:s,required:l,disabled:u,name:d,value:f,form:p,bubbleInput:m,setBubbleInput:h}=V(q,e),g=c(n,h),v=o(a),y=_(r);k.useEffect(()=>{let e=m;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(v!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=Y(a),n.call(e,Y(a)?!1:a),e.dispatchEvent(t)}},[m,v,a,i]);let b=k.useRef(Y(a)?!1:a);return(0,A.jsx)(z.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:s??b.current,required:l,disabled:u,name:d,value:f,form:p,...t,tabIndex:-1,ref:g,style:{...t.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});J.displayName=q;function se(e){return typeof e==`function`}function Y(e){return e===`indeterminate`}function X(e){return Y(e)?`indeterminate`:e?`checked`:`unchecked`}function ce(t){let n=(0,O.c)(9),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=u(`peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,r),n[3]=r,n[4]=a);let o;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,A.jsx)(K,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current transition-none`,children:(0,A.jsx)(e,{className:`size-3.5`})}),n[5]=o):o=n[5];let s;return n[6]!==i||n[7]!==a?(s=(0,A.jsx)(W,{"data-slot":`checkbox`,className:a,...i,children:o}),n[6]=i,n[7]=a,n[8]=s):s=n[8],s}var Z=e=>({url:Z.url(e),method:`post`});Z.definition={methods:[`post`],url:`/login`},Z.url=e=>Z.definition.url+y(e),Z.post=e=>({url:Z.url(e),method:`post`});var Q=e=>({action:Z.url(e),method:`post`});Q.post=e=>({action:Z.url(e),method:`post`}),Z.form=Q,Object.assign(Z,Z);function $(e){let o=(0,O.c)(15),{status:c,canResetPassword:u,canRegister:f}=e,m;o[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,A.jsx)(g,{title:`Log in`}),o[0]=m):m=o[0];let h;o[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,A.jsx)(p,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,A.jsxs)(`a`,{href:r.url(`github`),children:[(0,A.jsx)(t,{iconNode:a,className:`mr-2 h-4 w-4`}),`Github`]})}),o[1]=h):h=o[1];let _;o[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,A.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[h,(0,A.jsx)(p,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,A.jsxs)(`a`,{href:r.url(`google`),children:[(0,A.jsx)(t,{iconNode:n,className:`mr-2 h-4 w-4`}),`Google`]})})]}),o[2]=_):_=o[2];let v;o[3]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,A.jsx)(`div`,{className:`absolute inset-0 flex items-center`,children:(0,A.jsx)(d,{})}),o[3]=v):v=o[3];let y;o[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,A.jsxs)(`div`,{className:`relative`,children:[v,(0,A.jsx)(`div`,{className:`relative flex justify-center text-xs uppercase`,children:(0,A.jsx)(`span`,{className:`bg-background px-2 text-muted-foreground`,children:`Or continue with`})})]}),o[4]=y):y=o[4];let b,x;o[5]===Symbol.for(`react.memo_cache_sentinel`)?(b=Z.form(),x=[`password`],o[5]=b,o[6]=x):(b=o[5],x=o[6]);let S;o[7]!==f||o[8]!==u?(S=(0,A.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[_,y,(0,A.jsx)(l,{...b,resetOnSuccess:x,className:`flex flex-col gap-6`,children:e=>{let{processing:t,errors:n}=e;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`div`,{className:`grid gap-6`,children:[(0,A.jsxs)(`div`,{className:`grid gap-2`,children:[(0,A.jsx)(E,{htmlFor:`email`,children:`Email address`}),(0,A.jsx)(s,{id:`email`,type:`email`,name:`email`,required:!0,autoFocus:!0,tabIndex:1,autoComplete:`email`,placeholder:`email@example.com`}),(0,A.jsx)(T,{message:n.email})]}),(0,A.jsxs)(`div`,{className:`grid gap-2`,children:[(0,A.jsxs)(`div`,{className:`flex items-center`,children:[(0,A.jsx)(E,{htmlFor:`password`,children:`Password`}),u&&(0,A.jsx)(D,{href:ne(),className:`ml-auto text-sm`,tabIndex:5,children:`Forgot password?`})]}),(0,A.jsx)(i,{id:`password`,name:`password`,required:!0,tabIndex:2,autoComplete:`current-password`,placeholder:`Password`}),(0,A.jsx)(T,{message:n.password})]}),(0,A.jsxs)(`div`,{className:`flex items-center space-x-3`,children:[(0,A.jsx)(ce,{id:`remember`,name:`remember`,tabIndex:3}),(0,A.jsx)(E,{htmlFor:`remember`,children:`Remember me`})]}),(0,A.jsxs)(p,{type:`submit`,className:`mt-4 w-full`,tabIndex:4,disabled:t,"data-test":`login-button`,children:[t&&(0,A.jsx)(te,{}),`Log in`]})]}),f&&(0,A.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[`Don't have an account?`,` `,(0,A.jsx)(D,{href:ee(),tabIndex:5,children:`Sign up`})]})]})}})]}),o[7]=f,o[8]=u,o[9]=S):S=o[9];let C;o[10]===c?C=o[11]:(C=c&&(0,A.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:c}),o[10]=c,o[11]=C);let w;return o[12]!==S||o[13]!==C?(w=(0,A.jsxs)(A.Fragment,{children:[m,S,C]}),o[12]=S,o[13]=C,o[14]=w):w=o[14],w}$.layout={title:`Log in to your account`,description:`Enter your email and password below to log in`};export{$ as default}; \ No newline at end of file +import{t as e}from"./check-BBvDdM_9.js";import{n as t,r as n,t as r}from"./socialite-BBNBBxaD.js";import{t as i}from"./password-input-__9RhIwi.js";import{t as a}from"./github-Be9qoVk0.js";import{t as o}from"./dist-D5bK512v.js";import{B as s,Ht as c,Jt as l,Q as u,R as d,Ut as f,V as p,Vt as m,Wt as h,Yt as g,ct as _,et as v,f as y,ln as b,nn as x,qt as S,rn as C,tt as w,u as ee}from"./app-D7MKN1zp.js";import{t as T}from"./input-error-CzZYqI_U.js";import{t as E}from"./label-fRwP89Ez.js";import{t as te}from"./spinner-CCI0ZpZ9.js";import{t as D}from"./text-link-BlYfkXNw.js";import{n as ne}from"./password-BDtte38w.js";var O=S(),k=b(C(),1),A=h();function j(e,t=[]){let n=[];function r(t,r){let i=k.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=k.useMemo(()=>o,Object.values(o));return(0,A.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=k.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>k.createContext(e));return function(n){let r=n?.[e]||t;return k.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,M(i,...t)]}function M(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}x();function N(e){let t=P(e),n=k.forwardRef((e,n)=>{let{children:r,...i}=e,a=k.Children.toArray(r),o=a.find(I);if(o){let e=o.props.children,r=a.map(t=>t===o?k.Children.count(e)>1?k.Children.only(null):k.isValidElement(e)?e.props.children:null:t);return(0,A.jsx)(t,{...i,ref:n,children:k.isValidElement(e)?k.cloneElement(e,void 0,r):null})}return(0,A.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function P(e){let t=k.forwardRef((e,t)=>{let{children:n,...r}=e;if(k.isValidElement(n)){let e=R(n),i=L(r,n.props);return n.type!==k.Fragment&&(i.ref=t?m(t,e):e),k.cloneElement(n,i)}return k.Children.count(n)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var F=Symbol(`radix.slottable`);function I(e){return k.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===F}function L(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function R(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var z=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=N(`Primitive.${t}`),r=k.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,A.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),B=`Checkbox`,[re,ie]=j(B),[ae,V]=re(B);function oe(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=v({prop:n,defaultProp:i??!1,onChange:c,caller:B}),[m,h]=k.useState(null),[g,_]=k.useState(null),y=k.useRef(!1),b=m?!!o||!!m.closest(`form`):!0,x={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:y,required:l,defaultChecked:Y(i)?!1:i,isFormControl:b,bubbleInput:g,setBubbleInput:_};return(0,A.jsx)(ae,{scope:t,...x,children:se(d)?d(x):r})}var H=`CheckboxTrigger`,U=k.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:l,required:u,setControl:d,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:h,bubbleInput:g}=V(H,e),_=c(i,d),v=k.useRef(l);return k.useEffect(()=>{let e=a?.form;if(e){let t=()=>p(v.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,p]),(0,A.jsx)(z.button,{type:`button`,role:`checkbox`,"aria-checked":Y(l)?`mixed`:l,"aria-required":u,"data-state":X(l),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:_,onKeyDown:f(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:f(n,e=>{p(e=>Y(e)?!0:!e),g&&h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});U.displayName=H;var W=k.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,A.jsx)(oe,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(U,{...d,ref:t,__scopeCheckbox:n}),e&&(0,A.jsx)(J,{__scopeCheckbox:n})]})})});W.displayName=B;var G=`CheckboxIndicator`,K=k.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=V(G,n);return(0,A.jsx)(w,{present:r||Y(a.checked)||a.checked===!0,children:(0,A.jsx)(z.span,{"data-state":X(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});K.displayName=G;var q=`CheckboxBubbleInput`,J=k.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:s,required:l,disabled:u,name:d,value:f,form:p,bubbleInput:m,setBubbleInput:h}=V(q,e),g=c(n,h),v=o(a),y=_(r);k.useEffect(()=>{let e=m;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(v!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=Y(a),n.call(e,Y(a)?!1:a),e.dispatchEvent(t)}},[m,v,a,i]);let b=k.useRef(Y(a)?!1:a);return(0,A.jsx)(z.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:s??b.current,required:l,disabled:u,name:d,value:f,form:p,...t,tabIndex:-1,ref:g,style:{...t.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});J.displayName=q;function se(e){return typeof e==`function`}function Y(e){return e===`indeterminate`}function X(e){return Y(e)?`indeterminate`:e?`checked`:`unchecked`}function ce(t){let n=(0,O.c)(9),r,i;n[0]===t?(r=n[1],i=n[2]):({className:r,...i}=t,n[0]=t,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=u(`peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,r),n[3]=r,n[4]=a);let o;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,A.jsx)(K,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current transition-none`,children:(0,A.jsx)(e,{className:`size-3.5`})}),n[5]=o):o=n[5];let s;return n[6]!==i||n[7]!==a?(s=(0,A.jsx)(W,{"data-slot":`checkbox`,className:a,...i,children:o}),n[6]=i,n[7]=a,n[8]=s):s=n[8],s}var Z=e=>({url:Z.url(e),method:`post`});Z.definition={methods:[`post`],url:`/login`},Z.url=e=>Z.definition.url+y(e),Z.post=e=>({url:Z.url(e),method:`post`});var Q=e=>({action:Z.url(e),method:`post`});Q.post=e=>({action:Z.url(e),method:`post`}),Z.form=Q,Object.assign(Z,Z);function $(e){let o=(0,O.c)(15),{status:c,canResetPassword:u,canRegister:f}=e,m;o[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,A.jsx)(g,{title:`Log in`}),o[0]=m):m=o[0];let h;o[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,A.jsx)(p,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,A.jsxs)(`a`,{href:r.url(`github`),children:[(0,A.jsx)(t,{iconNode:a,className:`mr-2 h-4 w-4`}),`Github`]})}),o[1]=h):h=o[1];let _;o[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,A.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[h,(0,A.jsx)(p,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,A.jsxs)(`a`,{href:r.url(`google`),children:[(0,A.jsx)(t,{iconNode:n,className:`mr-2 h-4 w-4`}),`Google`]})})]}),o[2]=_):_=o[2];let v;o[3]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,A.jsx)(`div`,{className:`absolute inset-0 flex items-center`,children:(0,A.jsx)(d,{})}),o[3]=v):v=o[3];let y;o[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,A.jsxs)(`div`,{className:`relative`,children:[v,(0,A.jsx)(`div`,{className:`relative flex justify-center text-xs uppercase`,children:(0,A.jsx)(`span`,{className:`bg-background px-2 text-muted-foreground`,children:`Or continue with`})})]}),o[4]=y):y=o[4];let b,x;o[5]===Symbol.for(`react.memo_cache_sentinel`)?(b=Z.form(),x=[`password`],o[5]=b,o[6]=x):(b=o[5],x=o[6]);let S;o[7]!==f||o[8]!==u?(S=(0,A.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[_,y,(0,A.jsx)(l,{...b,resetOnSuccess:x,className:`flex flex-col gap-6`,children:e=>{let{processing:t,errors:n}=e;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`div`,{className:`grid gap-6`,children:[(0,A.jsxs)(`div`,{className:`grid gap-2`,children:[(0,A.jsx)(E,{htmlFor:`email`,children:`Email address`}),(0,A.jsx)(s,{id:`email`,type:`email`,name:`email`,required:!0,autoFocus:!0,tabIndex:1,autoComplete:`email`,placeholder:`email@example.com`}),(0,A.jsx)(T,{message:n.email})]}),(0,A.jsxs)(`div`,{className:`grid gap-2`,children:[(0,A.jsxs)(`div`,{className:`flex items-center`,children:[(0,A.jsx)(E,{htmlFor:`password`,children:`Password`}),u&&(0,A.jsx)(D,{href:ne(),className:`ml-auto text-sm`,tabIndex:5,children:`Forgot password?`})]}),(0,A.jsx)(i,{id:`password`,name:`password`,required:!0,tabIndex:2,autoComplete:`current-password`,placeholder:`Password`}),(0,A.jsx)(T,{message:n.password})]}),(0,A.jsxs)(`div`,{className:`flex items-center space-x-3`,children:[(0,A.jsx)(ce,{id:`remember`,name:`remember`,tabIndex:3}),(0,A.jsx)(E,{htmlFor:`remember`,children:`Remember me`})]}),(0,A.jsxs)(p,{type:`submit`,className:`mt-4 w-full`,tabIndex:4,disabled:t,"data-test":`login-button`,children:[t&&(0,A.jsx)(te,{}),`Log in`]})]}),f&&(0,A.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[`Don't have an account?`,` `,(0,A.jsx)(D,{href:ee(),tabIndex:5,children:`Sign up`})]})]})}})]}),o[7]=f,o[8]=u,o[9]=S):S=o[9];let C;o[10]===c?C=o[11]:(C=c&&(0,A.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:c}),o[10]=c,o[11]=C);let w;return o[12]!==S||o[13]!==C?(w=(0,A.jsxs)(A.Fragment,{children:[m,S,C]}),o[12]=S,o[13]=C,o[14]=w):w=o[14],w}$.layout={title:`Log in to your account`,description:`Enter your email and password below to log in`};export{$ as default}; \ No newline at end of file diff --git a/public/build/assets/main-layout-DiaP0ISn.js b/public/build/assets/main-layout-DiaP0ISn.js deleted file mode 100644 index 649acf4..0000000 --- a/public/build/assets/main-layout-DiaP0ISn.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./check-CCTwZBIw.js";import{t}from"./github-BytY2MM3.js";import{n,t as r}from"./sun-CDBr7ehg.js";import{B as i,G as a,Gt as o,H as s,J as c,Q as l,V as u,Wt as d,X as f,Y as p,Zt as m,_ as h,cn as g,d as _,f as v,g as y,h as b,ln as x,m as S,nn as C,o as w,on as ee,p as te,qt as T,r as ne,rn as re,sn as ie,v as ae,y as oe}from"./app-CVlP31Z1.js";import{i as se,r as ce,t as le}from"./glow-stack-DaYuOL5d.js";import{t as ue}from"./placeholder-pattern-CMjSLXXB.js";var de=a(`Menu`,[[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}],[`line`,{x1:`4`,x2:`20`,y1:`6`,y2:`6`,key:`1owob3`}],[`line`,{x1:`4`,x2:`20`,y1:`18`,y2:`18`,key:`yk5zj1`}]]),fe=a(`Palette`,[[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`path`,{d:`M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z`,key:`12rzf8`}]]),pe=a(`RotateCcw`,[[`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`}]]),me=a(`Search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),E=d(),D=x(re(),1),he=(0,D.createContext)({});function ge(e){let t=(0,D.useRef)(null);return t.current===null&&(t.current=e()),t.current}var _e=typeof window<`u`?D.useLayoutEffect:D.useEffect,ve=(0,D.createContext)(null);function ye(e,t){e.indexOf(t)===-1&&e.push(t)}function be(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var O=(e,t,n)=>n>t?t:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Se(e){return typeof e==`object`&&!!e}var Ce=e=>/^0[^.\s]+$/u.test(e);function we(e){let t;return()=>(t===void 0&&(t=e()),t)}var A=e=>e,Te=(e,t)=>n=>t(e(n)),Ee=(...e)=>e.reduce(Te),De=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Oe=class{constructor(){this.subscriptions=[]}add(e){return ye(this.subscriptions,e),()=>be(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;ie*1e3,M=e=>e/1e3;function ke(e,t){return t?1e3/t*e:0}var Ae=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,je=1e-7,Me=12;function Ne(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ae(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>je&&++sNe(t,0,1,e,n);return e=>e===0||e===1?e:Ae(i(e),t,r)}var Pe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fe=e=>t=>1-e(1-t),Ie=N(.33,1.53,.69,.99),Le=Fe(Ie),Re=Pe(Le),ze=e=>e>=1?1:(e*=2)<1?.5*Le(e):.5*(2-2**(-10*(e-1))),Be=e=>1-Math.sin(Math.acos(e)),Ve=Fe(Be),He=Pe(Be),Ue=N(.42,0,1,1),We=N(0,0,.58,1),Ge=N(.42,0,.58,1),Ke=e=>Array.isArray(e)&&typeof e[0]!=`number`,qe=e=>Array.isArray(e)&&typeof e[0]==`number`,Je={linear:A,easeIn:Ue,easeInOut:Ge,easeOut:We,circIn:Be,circInOut:He,circOut:Ve,backIn:Le,backInOut:Re,backOut:Ie,anticipate:ze},Ye=e=>typeof e==`string`,Xe=e=>{if(qe(e)){e.length;let[t,n,r,i]=e;return N(t,n,r,i)}else if(Ye(e))return Je[e],`${e}`,Je[e];return e},Ze=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Qe={value:null,addProjectionMetrics:null};function $e(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Qe.value&&Qe.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var et=40;function tt(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ze.reduce((e,n)=>(e[n]=$e(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=k.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,et),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ze.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t(it===void 0&&I.set(F.isProcessing||k.useManualTiming?F.timestamp:performance.now()),it),set:e=>{it=e,queueMicrotask(at)}},ot={layout:0,mainThread:0,waapi:0},st=e=>t=>typeof t==`string`&&t.startsWith(e),ct=st(`--`),lt=st(`var(--`),ut=e=>lt(e)?dt.test(e.split(`/*`)[0].trim()):!1,dt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ft(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var pt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},mt={...pt,transform:e=>O(0,1,e)},ht={...pt,default:1},gt=e=>Math.round(e*1e5)/1e5,_t=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vt(e){return e==null}var yt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bt=(e,t)=>n=>!!(typeof n==`string`&&yt.test(n)&&n.startsWith(e)||t&&!vt(n)&&Object.prototype.hasOwnProperty.call(n,t)),xt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(_t);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},St=e=>O(0,255,e),Ct={...pt,transform:e=>Math.round(St(e))},wt={test:bt(`rgb`,`red`),parse:xt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ct.transform(e)+`, `+Ct.transform(t)+`, `+Ct.transform(n)+`, `+gt(mt.transform(r))+`)`};function Tt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Et={test:bt(`#`),parse:Tt,transform:wt.transform},Dt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ot=Dt(`deg`),kt=Dt(`%`),L=Dt(`px`),At=Dt(`vh`),jt=Dt(`vw`),Mt={...kt,parse:e=>kt.parse(e)/100,transform:e=>kt.transform(e*100)},Nt={test:bt(`hsl`,`hue`),parse:xt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+kt.transform(gt(t))+`, `+kt.transform(gt(n))+`, `+gt(mt.transform(r))+`)`},R={test:e=>wt.test(e)||Et.test(e)||Nt.test(e),parse:e=>wt.test(e)?wt.parse(e):Nt.test(e)?Nt.parse(e):Et.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?wt.transform(e):Nt.transform(e),getAnimatableNone:e=>{let t=R.parse(e);return t.alpha=0,R.transform(t)}},Pt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ft(e){return isNaN(e)&&typeof e==`string`&&(e.match(_t)?.length||0)+(e.match(Pt)?.length||0)>0}var It=`number`,Lt=`color`,Rt=`var`,zt=`var(`,Bt="${}",Vt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ht(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Vt,e=>(R.test(e)?(r.color.push(a),i.push(Lt),n.push(R.parse(e))):e.startsWith(zt)?(r.var.push(a),i.push(Rt),n.push(e)):(r.number.push(a),i.push(It),n.push(parseFloat(e))),++a,Bt)).split(Bt),indexes:r,types:i}}function Ut(e){return Ht(e).values}function Wt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;atypeof e==`number`?0:R.test(e)?R.getAnimatableNone(e):e,qt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Kt(e);function Jt(e){let t=Ht(e);return Wt(t)(t.values.map((e,n)=>qt(e,t.split[n])))}var z={test:Ft,parse:Ut,createTransformer:Gt,getAnimatableNone:Jt};function Yt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Yt(s,r,e+1/3),a=Yt(s,r,e),o=Yt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Zt(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n,Qt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},$t=[Et,wt,Nt],en=e=>$t.find(t=>t.test(e));function tn(e){let t=en(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Nt&&(n=Xt(n)),n}var nn=(e,t)=>{let n=tn(e),r=tn(t);if(!n||!r)return Zt(e,t);let i={...n};return e=>(i.red=Qt(n.red,r.red,e),i.green=Qt(n.green,r.green,e),i.blue=Qt(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),wt.transform(i))},rn=new Set([`none`,`hidden`]);function an(e,t){return rn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function on(e,t){return n=>B(e,t,n)}function sn(e){return typeof e==`number`?on:typeof e==`string`?ut(e)?Zt:R.test(e)?nn:dn:Array.isArray(e)?cn:typeof e==`object`?R.test(e)?nn:ln:Zt}function cn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>sn(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in r)n[t]=r[t](e);return n}}function un(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i{let n=z.createTransformer(t),r=Ht(e),i=Ht(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?rn.has(e)&&!i.values.length||rn.has(t)&&!r.values.length?an(e,t):Ee(cn(un(r,i),i.values),n):(`${e}${t}`,Zt(e,t))};function fn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?B(e,t,n):sn(e)(e,t)}var pn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>P.update(t,e),stop:()=>nt(t),now:()=>F.isProcessing?F.timestamp:I.now()}},mn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t=2e4?1/0:t}function _n(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(gn(r),hn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:M(i)}}var V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function vn(e,t){return e*Math.sqrt(1-t*t)}var yn=12;function bn(e,t,n){let r=n;for(let n=1;n{let r=t*o,i=r*e,a=r-n,s=vn(t,o),c=Math.exp(-i);return xn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=vn(t**2,o);return(-i(t)+xn>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-xn+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=bn(i,a,s);if(e=j(e),isNaN(c))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Cn=[`duration`,`bounce`],wn=[`stiffness`,`damping`,`mass`];function Tn(e,t){return t.some(t=>e[t]!==void 0)}function En(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Tn(e,wn)&&Tn(e,Cn))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*O(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:a}}else{let n=Sn({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function Dn(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=En({...n,velocity:-M(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=M(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?V.restSpeed.granular:V.restSpeed.default,i||=v?V.restDelta.granular:V.restDelta.default;let y,b,x,S,C,w;if(h<1)x=vn(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let ee={calculatedDuration:p&&d||null,velocity:e=>j(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=j(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=j(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(gn(ee),hn),t=mn(t=>ee.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return ee}Dn.applyToOptions=e=>{let t=_n(e,100,Dn);return e.ease=t.ease,e.duration=j(t.duration),e.type=`keyframes`,e};var On=5;function kn(e,t,n){let r=Math.max(t-On,0);return ke(n-e(r),t-r)}function An({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&ec,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Dn({keyframes:[f.value,m(f.value)],velocity:kn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function jn(e,t,n){let r=[],i=n||k.mix||fn,a=e.length-1;for(let n=0;nt[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=jn(t,r,i),c=s.length,l=n=>{if(o&&n1)for(;rl(O(e[0],e[a-1],t)):l}function Nn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=De(0,t,r);e.push(B(n,1,i))}}function Pn(e){let t=[0];return Nn(t,e.length-1),t}function Fn(e,t){return e.map(e=>e*t)}function In(e,t){return e.map(()=>t||Ge).splice(0,e.length-1)}function Ln({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ke(r)?r.map(Xe):Xe(r),a={done:!1,value:t[0]},o=Mn(Fn(n&&n.length===t.length?n:Pn(t),e),t,{ease:Array.isArray(i)?i:In(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Rn=e=>e!==null;function zn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Rn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Bn={decay:An,inertia:An,tween:Ln,keyframes:Ln,spring:Dn};function Vn(e){typeof e.type==`string`&&(e.type=Bn[e.type])}var Hn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Un=e=>e/100,Wn=class extends Hn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==I.now()&&this.tick(I.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},ot.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Vn(e);let{type:t=Ln,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Ln;s!==Ln&&typeof o[0]!=`number`&&(this.mixKeyframes=Ee(Un,fn(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=gn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=O(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==An&&(b.value=zn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return M(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(this.currentTime)}set time(e){e=j(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return kn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(I.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=M(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=pn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(I.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,ot.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Gn(e){for(let t=1;te*180/Math.PI,qn=e=>Yn(Kn(Math.atan2(e[1],e[0]))),Jn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:qn,rotateZ:qn,skewX:e=>Kn(Math.atan(e[1])),skewY:e=>Kn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Yn=e=>(e%=360,e<0&&(e+=360),e),Xn=qn,Zn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Qn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),$n={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Zn,scaleY:Qn,scale:e=>(Zn(e)+Qn(e))/2,rotateX:e=>Yn(Kn(Math.atan2(e[6],e[5]))),rotateY:e=>Yn(Kn(Math.atan2(-e[2],e[0]))),rotateZ:Xn,rotate:Xn,skewX:e=>Kn(Math.atan(e[4])),skewY:e=>Kn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function er(e){return+!!e.includes(`scale`)}function tr(e,t){if(!e||e===`none`)return er(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=$n,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Jn,i=t}if(!i)return er(t);let a=r[t],o=i[1].split(`,`).map(rr);return typeof a==`function`?a(o):o[a]}var nr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return tr(n,t)};function rr(e){return parseFloat(e.trim())}var ir=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],ar=new Set(ir),or=e=>e===pt||e===L,sr=new Set([`x`,`y`,`z`]),cr=ir.filter(e=>!sr.has(e));function lr(e){let t=[];return cr.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var ur={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>tr(t,`x`),y:(e,{transform:t})=>tr(t,`y`)};ur.translateX=ur.x,ur.translateY=ur.y;var dr=new Set,fr=!1,pr=!1,mr=!1;function hr(){if(pr){let e=Array.from(dr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=lr(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}pr=!1,fr=!1,dr.forEach(e=>e.complete(mr)),dr.clear()}function gr(){dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(pr=!0)})}function _r(){mr=!0,gr(),hr(),mr=!1}var vr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(dr.add(this),fr||(fr=!0,P.read(gr),P.resolveKeyframes(hr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Gn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),dr.delete(this)}cancel(){this.state===`scheduled`&&(dr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},yr=e=>e.startsWith(`--`);function br(e,t,n){yr(t)?e.style.setProperty(t,n):e.style[t]=n}var xr={};function Sr(e,t){let n=we(e);return()=>xr[t]??n()}var Cr=Sr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),wr=Sr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Tr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Er={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Tr([0,.65,.55,1]),circOut:Tr([.55,0,1,.45]),backIn:Tr([.31,.01,.66,-.59]),backOut:Tr([.33,1.53,.69,.99])};function Dr(e,t){if(e)return typeof e==`function`?wr()?mn(e,t):`ease-out`:qe(e)?Tr(e):Array.isArray(e)?e.map(e=>Dr(e,t)||Er.easeOut):Er[e]}function Or(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Dr(s,i);Array.isArray(d)&&(u.easing=d),Qe.value&&ot.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Qe.value&&p.finished.finally(()=>{ot.waapi--}),p}function kr(e){return typeof e==`function`&&`applyToOptions`in e}function Ar({type:e,...t}){return kr(e)&&wr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var jr=class extends Hn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Ar(e);this.animation=Or(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=zn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),br(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return M(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=j(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Cr()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),A):r(this)}},Mr={anticipate:ze,backInOut:Re,circInOut:He};function Nr(e){return e in Mr}function Pr(e){typeof e.ease==`string`&&Nr(e.ease)&&(e.ease=Mr[e.ease])}var Fr=10,Ir=class extends jr{constructor(e){Pr(e),Vn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Wn({...a,autoplay:!1}),s=Math.max(Fr,I.now()-this.startTime),c=O(0,Fr,s-Fr),l=o.sample(s).value,{name:u}=this.options;i&&u&&br(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Lr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z.test(e)||e===`0`)&&!e.startsWith(`url(`));function Rr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,`animate`));function Kr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Gr()&&n&&(Vr.has(n)||Wr.has(n)&&Ur(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var qr=40,Jr=class extends Hn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||vr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=I.now();let u=!0;zr(e,i,a,o)||(u=!1,(k.instantAnimations||!s)&&l?.(zn(e,n,t)),e[0]=e[e.length-1],Br(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>qr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Kr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Ir({...d,element:p})}catch{m=new Wn(d)}else m=new Wn(d);m.finished.then(()=>{this.notifyFinished()}).catch(A),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),_r()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Yr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Xr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Zr(e){let t=Xr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Qr(e,t,n=1){`${e}`;let[r,i]=Zr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return xe(e)?parseFloat(e):e}return ut(i)?Qr(i,t,n+1):i}var $r={type:`spring`,stiffness:500,damping:25,restSpeed:10},ei=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ti={type:`keyframes`,duration:.8},ni={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ri=(e,{keyframes:t})=>t.length>2?ti:ar.has(e)?e.startsWith(`scale`)?ei(t[1]):$r:ni;function ii(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ai(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ii(n,e)}var oi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function si(e){for(let t in e)if(!oi.has(t))return!0;return!1}var ci=(e,t,n,r={},i,a)=>o=>{let s=ai(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=j(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};si(s)||Object.assign(u,ri(e,u)),u.duration&&=j(u.duration),u.repeatDelay&&=j(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Br(u),u.delay===0&&(d=!0)),(k.instantAnimations||k.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Br(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=zn(u.keyframes,s);if(e!==void 0){P.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Wn(u):new Jr(u)};function li(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function ui(e,t,n,r){if(typeof t==`function`){let[i,a]=li(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=li(r);t=t(n===void 0?e.custom:n,i,a)}return t}function di(e,t,n){let r=e.getProps();return ui(r,t,n===void 0?r.custom:n,e)}var fi=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...ir]),pi=30,mi=e=>!isNaN(parseFloat(e)),hi={current:void 0},gi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=I.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=I.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=mi(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Oe);let n=this.events[e].add(t);return e===`change`?()=>{n(),P.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return hi.current&&hi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>pi)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,pi);return ke(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function _i(e,t){return new gi(e,t)}var vi=e=>Array.isArray(e);function yi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_i(n))}function bi(e){return vi(e)?e[e.length-1]||0:e}function xi(e,t){let{transitionEnd:n={},transition:r={},...i}=di(e,t)||{};i={...i,...n};for(let t in i)yi(e,t,bi(i[t]))}var H=e=>!!(e&&e.getVelocity);function Si(e){return!!(H(e)&&e.add)}function Ci(e,t){let n=e.getValue(`willChange`);if(Si(n))return n.add(t);if(!n&&k.WillChange){let n=new k.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function wi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ti=`data-`+wi(`framerAppearId`);function Ei(e){return e.props[Ti]}function Di({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Oi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ii(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&Di(d,t))continue;let o={delay:n,...ai(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){P.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=Ei(e);if(n){let e=window.MotionHandoffAnimation(n,t,P);e!==null&&(o.startTime=e,f=!0)}}Ci(e,t);let p=l??e.shouldReduceMotion;r.start(ci(t,r,i,p&&fi.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>P.update(()=>{o&&xi(e,o)});u.length?Promise.all(u).then(t):t()}return u}function ki(e,t,n={}){let r=di(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Oi(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Ai(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Ai(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(ki(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Yr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ji(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ki(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ki(e,t,n);else{let i=typeof t==`function`?di(e,t,n.custom):t;r=Promise.all(Oi(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Mi={test:e=>e===`auto`,parse:e=>e},Ni=e=>t=>t.test(e),Pi=[pt,L,kt,Ot,jt,At,Mi],Fi=e=>Pi.find(Ni(e));function Ii(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Ce(e)}var Li=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ri(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(_t)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Li.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var zi=/\b([a-z-]*)\(.*?\)/gu,Bi={...z,getAnimatableNone:e=>{let t=e.match(zi);return t?t.map(Ri).join(` `):e}},Vi={...z,getAnimatableNone:e=>{let t=z.parse(e);return z.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Hi={...pt,transform:Math.round},Ui={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,rotate:Ot,rotateX:Ot,rotateY:Ot,rotateZ:Ot,scale:ht,scaleX:ht,scaleY:ht,scaleZ:ht,skew:Ot,skewX:Ot,skewY:Ot,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:mt,originX:Mt,originY:Mt,originZ:L,zIndex:Hi,fillOpacity:mt,strokeOpacity:mt,numOctaves:Hi},Wi={...Ui,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Bi,WebkitFilter:Bi,mask:Vi,WebkitMask:Vi},Gi=e=>Wi[e],Ki=new Set([Bi,Vi]);function qi(e,t){let n=Gi(e);return Ki.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Ji=new Set([`auto`,`none`,`0`]);function Yi(e,t,n){let r=0,i;for(;r{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Zi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Qi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function $i(e){return Se(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:ea,cancel:ta}=tt(queueMicrotask,!1),U={x:!1,y:!1};function na(){return U.x||U.y}function ra(e){return e===`x`||e===`y`?U[e]?null:(U[e]=!0,()=>{U[e]=!1}):U.x||U.y?null:(U.x=U.y=!0,()=>{U.x=U.y=!1})}function ia(e,t){let n=Zi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function aa(e){return!(e.pointerType===`touch`||na())}function oa(e,t,n={}){let[r,i,a]=ia(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!aa(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var sa=(e,t)=>t?e===t?!0:sa(e,t.parentElement):!1,ca=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,la=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ua(e){return la.has(e.tagName)||e.isContentEditable===!0}var da=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function fa(e){return da.has(e.tagName)||e.isContentEditable===!0}var pa=new WeakSet;function ma(e){return t=>{t.key===`Enter`&&e(t)}}function ha(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var ga=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ma(()=>{if(pa.has(n))return;ha(n,`down`);let e=ma(()=>{ha(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>ha(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function _a(e){return ca(e)&&!na()}var va=new WeakSet;function ya(e,t,n={}){let[r,i,a]=ia(e,n),o=e=>{let r=e.currentTarget;if(!_a(e)||va.has(e))return;pa.add(r),n.stopPropagation&&va.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),pa.has(r)&&pa.delete(r),_a(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||sa(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),$i(e)&&(e.addEventListener(`focus`,e=>ga(e,i)),!ua(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function ba(e){return Se(e)&&`ownerSVGElement`in e}var xa=new WeakMap,Sa,Ca=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ba(r)&&`getBBox`in r?r.getBBox()[t]:r[n],wa=Ca(`inline`,`width`,`offsetWidth`),Ta=Ca(`block`,`height`,`offsetHeight`);function Ea({target:e,borderBoxSize:t}){xa.get(e)?.forEach(n=>{n(e,{get width(){return wa(e,t)},get height(){return Ta(e,t)}})})}function Da(e){e.forEach(Ea)}function Oa(){typeof ResizeObserver>`u`||(Sa=new ResizeObserver(Da))}function ka(e,t){Sa||Oa();let n=Zi(e);return n.forEach(e=>{let n=xa.get(e);n||(n=new Set,xa.set(e,n)),n.add(t),Sa?.observe(e)}),()=>{n.forEach(e=>{let n=xa.get(e);n?.delete(t),n?.size||Sa?.unobserve(e)})}}var Aa=new Set,ja;function Ma(){ja=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Aa.forEach(t=>t(e))},window.addEventListener(`resize`,ja)}function Na(e){return Aa.add(e),ja||Ma(),()=>{Aa.delete(e),!Aa.size&&typeof ja==`function`&&(window.removeEventListener(`resize`,ja),ja=void 0)}}function Pa(e,t){return typeof e==`function`?Na(e):ka(e,t)}function Fa(e){return ba(e)&&e.tagName===`svg`}var Ia=[...Pi,R,z],La=e=>Ia.find(Ni(e)),Ra=()=>({translate:0,scale:1,origin:0,originPoint:0}),za=()=>({x:Ra(),y:Ra()}),Ba=()=>({min:0,max:0}),W=()=>({x:Ba(),y:Ba()}),Va=new WeakMap;function Ha(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ua(e){return typeof e==`string`||Array.isArray(e)}var Wa=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ga=[`initial`,...Wa];function Ka(e){return Ha(e.animate)||Ga.some(t=>Ua(e[t]))}function qa(e){return!!(Ka(e)||e.variants)}function Ja(e,t,n){for(let r in t){let i=t[r],a=n[r];if(H(i))e.addValue(r,i);else if(H(a))e.addValue(r,_i(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,_i(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ya={current:null},Xa={current:!1},Za=typeof window<`u`;function Qa(){if(Xa.current=!0,Za)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ya.current=e.matches;e.addEventListener(`change`,t),t()}else Ya.current=!1}var $a=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],eo={};function to(e){eo=e}function no(){return eo}var ro=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=vr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=I.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Xa.current||Qa(),this.shouldReduceMotion=Ya.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),nt(this.notifyUpdate),nt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Vr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new jr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:j(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=ar.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&P.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in eo){let t=eo[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):W()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<$a.length;t++){let n=$a[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ja(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=_i(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(xe(n)||Ce(n))?n=parseFloat(n):!La(n)&&z.test(t)&&(n=qi(e,t)),this.setBaseTarget(e,H(n)?n.get():n)),H(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=ui(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!H(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Oe),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ea.render(this.render)}},io=class extends ro{constructor(){super(...arguments),this.KeyframeResolver=Xi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;H(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},ao=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function oo({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function so({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function co(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function lo(e){return e===void 0||e===1}function uo({scale:e,scaleX:t,scaleY:n}){return!lo(e)||!lo(t)||!lo(n)}function fo(e){return uo(e)||po(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function po(e){return mo(e.x)||mo(e.y)}function mo(e){return e&&e!==`0%`}function ho(e,t,n){return n+t*(e-n)}function go(e,t,n,r,i){return i!==void 0&&(e=ho(e,i,r)),ho(e,n,r)+t}function _o(e,t=0,n=1,r,i){e.min=go(e.min,t,n,r,i),e.max=go(e.max,t,n,r,i)}function vo(e,{x:t,y:n}){_o(e.x,t.translate,t.scale,t.originPoint),_o(e.y,n.translate,n.scale,n.originPoint)}var yo=.999999999999,bo=1.0000000000001;function xo(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;syo&&(t.x=1),t.yyo&&(t.y=1)}function So(e,t){e.min+=t,e.max+=t}function Co(e,t,n,r,i=.5){_o(e,t,n,B(e.min,e.max,i),r)}function wo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function To(e,t,n){let r=n??e;Co(e.x,wo(t.x,r.x),t.scaleX,t.scale,t.originX),Co(e.y,wo(t.y,r.y),t.scaleY,t.scale,t.originY)}function Eo(e,t){return oo(co(e.getBoundingClientRect(),t))}function Do(e,t,n){let r=Eo(e,n),{scroll:i}=t;return i&&(So(r.x,i.offset.x),So(r.y,i.offset.y)),r}var Oo={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ko=ir.length;function Ao(e,t,n){let r=``,i=!0;for(let a=0;a{if(!t.target)return e;if(typeof e==`string`)if(L.test(e))e=parseFloat(e);else return e;return`${No(e,t.target.x)}% ${No(e,t.target.y)}%`}},Fo={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z.parse(e);if(i.length>5)return r;let a=z.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Io={borderRadius:{...Po,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:Fo};function Lo(e,{layout:t,layoutId:n}){return ar.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Io[e]||e===`opacity`)}function Ro(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(H(r[t])||i&&H(i[t])||Lo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function zo(e){return window.getComputedStyle(e)}var Bo=class extends io{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Mo}readValueFromInstance(e,t){if(ar.has(t))return this.projection?.isProjecting?er(t):nr(e,t);{let n=zo(e),r=(ct(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Eo(e,t)}build(e,t,n){jo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ro(e,t,n)}},Vo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ho={offset:`strokeDashoffset`,array:`strokeDasharray`};function Uo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Vo:Ho;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Wo=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Go(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(jo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Wo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Uo(d,i,a,o,!1)}var Ko=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),qo=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Jo(e,t,n,r){Mo(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Ko.has(n)?n:wi(n),t.attrs[n])}function Yo(e,t,n){let r=Ro(e,t,n);for(let n in e)if(H(e[n])||H(t[n])){let t=ir.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Xo=class extends io{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=W}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ar.has(t)){let e=Gi(t);return e&&e.default||0}return t=Ko.has(t)?t:wi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Yo(e,t,n)}build(e,t,n){Go(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Jo(e,t,n,r)}mount(e){this.isSVGTag=qo(e.tagName),super.mount(e)}},Zo=Ga.length;function Qo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Qo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;nPromise.all(t.map(({animation:t,options:n})=>ji(e,t,n)))}function rs(e){let t=ns(e),n=os(),r=!0,i=!1,a=t=>(n,r)=>{let i=di(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Qo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;tf&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=vi(t)&&vi(n)?!$o(t,n):t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let T=v&&y;b&&(!T||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!T&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=di(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Yr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=di(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=os(),i=!0}}}function is(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!$o(t,e):!1}function as(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function os(){return{animate:as(!0),whileInView:as(),whileHover:as(),whileTap:as(),whileDrag:as(),whileFocus:as(),exit:as()}}function ss(e,t){e.min=t.min,e.max=t.max}function G(e,t){ss(e.x,t.x),ss(e.y,t.y)}function cs(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var ls=1e-4,us=1-ls,ds=1+ls,fs=.01,ps=0-fs,ms=0+fs;function K(e){return e.max-e.min}function hs(e,t,n){return Math.abs(e-t)<=n}function gs(e,t,n,r=.5){e.origin=r,e.originPoint=B(t.min,t.max,e.origin),e.scale=K(n)/K(t),e.translate=B(n.min,n.max,e.origin)-e.originPoint,(e.scale>=us&&e.scale<=ds||isNaN(e.scale))&&(e.scale=1),(e.translate>=ps&&e.translate<=ms||isNaN(e.translate))&&(e.translate=0)}function _s(e,t,n,r){gs(e.x,t.x,n.x,r?r.originX:void 0),gs(e.y,t.y,n.y,r?r.originY:void 0)}function vs(e,t,n,r=0){e.min=(r?B(n.min,n.max,r):n.min)+t.min,e.max=e.min+K(t)}function ys(e,t,n,r){vs(e.x,t.x,n.x,r?.x),vs(e.y,t.y,n.y,r?.y)}function bs(e,t,n,r=0){let i=r?B(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+K(t)}function xs(e,t,n,r){bs(e.x,t.x,n.x,r?.x),bs(e.y,t.y,n.y,r?.y)}function Ss(e,t,n,r,i){return e-=t,e=ho(e,1/n,r),i!==void 0&&(e=ho(e,1/i,r)),e}function Cs(e,t=0,n=1,r=.5,i,a=e,o=e){if(kt.test(t)&&(t=parseFloat(t),t=B(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=B(a.min,a.max,r);e===a&&(s-=t),e.min=Ss(e.min,t,n,s,i),e.max=Ss(e.max,t,n,s,i)}function ws(e,t,[n,r,i],a,o){Cs(e,t[n],t[r],t[i],t.scale,a,o)}var Ts=[`x`,`scaleX`,`originX`],Es=[`y`,`scaleY`,`originY`];function Ds(e,t,n,r){ws(e.x,t,Ts,n?n.x:void 0,r?r.x:void 0),ws(e.y,t,Es,n?n.y:void 0,r?r.y:void 0)}function Os(e){return e.translate===0&&e.scale===1}function ks(e){return Os(e.x)&&Os(e.y)}function As(e,t){return e.min===t.min&&e.max===t.max}function js(e,t){return As(e.x,t.x)&&As(e.y,t.y)}function Ms(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ns(e,t){return Ms(e.x,t.x)&&Ms(e.y,t.y)}function Ps(e){return K(e.x)/K(e.y)}function Fs(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function q(e){return[e(`x`),e(`y`)]}function Is(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Ls=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Rs=Ls.length,zs=e=>typeof e==`string`?parseFloat(e):e,Bs=e=>typeof e==`number`||L.test(e);function Vs(e,t,n,r,i,a){i?(e.opacity=B(0,n.opacity??1,Us(r)),e.opacityExit=B(t.opacity??1,0,Ws(r))):a&&(e.opacity=B(t.opacity??1,n.opacity??1,r));for(let i=0;irt?1:n(De(e,t,r))}function Ks(e,t,n){let r=H(e)?e:_i(e);return r.start(ci(``,r,t,n)),r.animation}function qs(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Js=(e,t)=>e.depth-t.depth,Ys=class{constructor(){this.children=[],this.isDirty=!1}add(e){ye(this.children,e),this.isDirty=!0}remove(e){be(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Js),this.isDirty=!1,this.children.forEach(e)}};function Xs(e,t){let n=I.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(nt(r),e(a-t))};return P.setup(r,!0),()=>nt(r)}function Zs(e){return H(e)?e.get():e}var Qs=class{constructor(){this.members=[]}add(e){ye(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(be(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(be(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},$s={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ec={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tc=[``,`X`,`Y`,`Z`],nc=1e3,rc=0;function ic(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ac(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Ei(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,P,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ac(r)}function oc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=rc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qe.value&&(ec.nodes=ec.calculatedTargetDeltas=ec.calculatedProjections=0),this.nodes.forEach(lc),this.nodes.forEach(vc),this.nodes.forEach(yc),this.nodes.forEach(uc),Qe.addProjectionMetrics&&Qe.addProjectionMetrics(ec)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;P.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Xs(i,250),$s.hasAnimatedSinceResize&&($s.hasAnimatedSinceResize=!1,this.nodes.forEach(_c)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ec,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Ns(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...ai(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||_c(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),nt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bc),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ac(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!K(this.snapshot.measuredBox.x)&&!K(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{let n=t/1e3;Sc(a.x,e.x,n),Sc(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xs(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),wc(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&js(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=W(),G(d,this.relativeTarget)),s&&(this.animationValues=i,Vs(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(nt(this.pendingAnimation),void 0),this.pendingAnimation=P.update(()=>{$s.hasAnimatedSinceResize=!0,ot.layout++,this.motionValue||=_i(0),this.motionValue.jump(0,!1),this.currentAnimation=Ks(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ot.layout--},onComplete:()=>{ot.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&jc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||W();let t=K(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=K(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}G(t,n),To(t,i),_s(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Qs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ic(`z`,e,r,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(fc),this.root.sharedNodes.clear()}}}function sc(e){e.updateLayout()}function cc(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)q(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=K(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;ss(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else jc(i,t.layoutBox,n)&&q(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=K(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=za();_s(o,n,t.layoutBox);let s=za();a?_s(s,e.applyTransform(r,!0),t.measuredBox):_s(s,n,t.layoutBox);let c=!ks(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=W();xs(s,t.layoutBox,i.layoutBox,o);let c=W();xs(c,n,a.layoutBox,o),Ns(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function lc(e){Qe.value&&ec.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function uc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dc(e){e.clearSnapshot()}function fc(e){e.clearMeasurements()}function pc(e){e.isLayoutDirty=!0,e.updateLayout()}function mc(e){e.isLayoutDirty=!1}function hc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function gc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function _c(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vc(e){e.resolveTargetDelta()}function yc(e){e.calcProjection()}function bc(e){e.resetSkewAndRotation()}function xc(e){e.removeLeadSnapshot()}function Sc(e,t,n){e.translate=B(t.translate,0,n),e.scale=B(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cc(e,t,n,r){e.min=B(t.min,n.min,r),e.max=B(t.max,n.max,r)}function wc(e,t,n,r){Cc(e.x,t.x,n.x,r),Cc(e.y,t.y,n.y,r)}function Tc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ec={duration:.45,ease:[.4,0,.1,1]},Dc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Oc=Dc(`applewebkit/`)&&!Dc(`chrome/`)?Math.round:A;function kc(e){e.min=Oc(e.min),e.max=Oc(e.max)}function Ac(e){kc(e.x),kc(e.y)}function jc(e,t,n){return e===`position`||e===`preserve-aspect`&&!hs(Ps(t),Ps(n),.2)}function Mc(e){return e!==e.root&&e.scroll?.wasRoot}var Nc=oc({attachResizeListener:(e,t)=>qs(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Pc={current:void 0},Fc=oc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Pc.current){let e=new Nc({});e.mount(window),e.setOptions({layoutScroll:!0}),Pc.current=e}return Pc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Ic=(0,D.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Lc(e=!0){let t=(0,D.useContext)(ve);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,D.useId)();(0,D.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,D.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Rc=(0,D.createContext)({strict:!1}),zc={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Bc=!1;function Vc(){if(Bc)return;let e={};for(let t in zc)e[t]={isEnabled:e=>zc[t].some(t=>!!e[t])};to(e),Bc=!0}function Hc(){return Vc(),no()}function Uc(e){let t=Hc();for(let n in e)t[n]={...t[n],...e[n]};to(t)}var Wc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Gc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Wc.has(e)}var Kc=ie({default:()=>qc}),qc,Jc=ee((()=>{throw qc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Yc=e=>!Gc(e);function Xc(e){typeof e==`function`&&(Yc=t=>t.startsWith(`on`)?!Gc(t):e(t))}try{Xc((Jc(),g(Kc)).default)}catch{}function Zc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||H(e[i])||(Yc(i)||n===!0&&Gc(i)||!t&&!Gc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Qc=(0,D.createContext)({});function $c(e,t){if(Ka(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Ua(t)?t:void 0,animate:Ua(n)?n:void 0}}return e.inherit===!1?{}:t}function el(e){let{initial:t,animate:n}=$c(e,(0,D.useContext)(Qc));return(0,D.useMemo)(()=>({initial:t,animate:n}),[tl(t),tl(n)])}function tl(e){return Array.isArray(e)?e.join(` `):e}var nl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rl(e,t,n){for(let r in t)!H(t[r])&&!Lo(r,n)&&(e[r]=t[r])}function il({transformTemplate:e},t){return(0,D.useMemo)(()=>{let n=nl();return jo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function al(e,t){let n=e.style||{},r={};return rl(r,n,e),Object.assign(r,il(e,t)),r}function ol(e,t){let n={},r=al(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var sl=()=>({...nl(),attrs:{}});function cl(e,t,n,r){let i=(0,D.useMemo)(()=>{let n=sl();return Go(n,t,qo(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rl(t,e.style,e),i.style={...t,...i.style}}return i}var ll=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function ul(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(ll.indexOf(e)>-1||/[A-Z]/u.test(e))}function dl(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??ul(e)?cl:ol)(t,r,i,e),c=Zc(t,typeof e==`string`,a),l=e===D.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,D.useMemo)(()=>H(u)?u.get():u,[u]);return(0,D.createElement)(e,{...l,children:d})}function fl({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:pl(n,r,i,e),renderState:t()}}function pl(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Zs(a[e]);let{initial:o,animate:s}=e,c=Ka(e),l=qa(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Ha(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n(t,n)=>{let r=(0,D.useContext)(Qc),i=(0,D.useContext)(ve),a=()=>fl(e,t,r,i);return n?a():ge(a)},hl=ml({scrapeMotionValuesFromProps:Ro,createRenderState:nl}),gl=ml({scrapeMotionValuesFromProps:Yo,createRenderState:sl}),_l=Symbol.for(`motionComponentSymbol`);function vl(e,t,n){let r=(0,D.useRef)(n);(0,D.useInsertionEffect)(()=>{r.current=n});let i=(0,D.useRef)(null);return(0,D.useCallback)(n=>{n&&e.onMount?.(n);let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var yl=(0,D.createContext)({});function bl(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function xl(e,t,n,r,i,a){let{visualElement:o}=(0,D.useContext)(Qc),s=(0,D.useContext)(Rc),c=(0,D.useContext)(ve),l=(0,D.useContext)(Ic),u=l.reducedMotion,d=l.skipAnimations,f=(0,D.useRef)(null),p=(0,D.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,D.useContext)(yl);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Sl(f.current,n,i,h);let g=(0,D.useRef)(!1);(0,D.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Ti],v=(0,D.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return _e(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,D.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Sl(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Cl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&bl(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Cl(e){if(e)return e.options.allowProjection===!1?Cl(e.parent):e.projection}function wl(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Uc(r);let a=n?n===`svg`:ul(e),o=a?gl:hl;function s(n,s){let c,l={...(0,D.useContext)(Ic),...n,layoutId:Tl(n)},{isStatic:u}=l,d=el(n),f=o(n,u);if(!u&&typeof window<`u`){El(l,r);let t=Dl(l);c=t.MeasureLayout,d.visualElement=xl(e,f,l,i,t.ProjectionNode,a)}return(0,E.jsxs)(Qc.Provider,{value:d,children:[c&&d.visualElement?(0,E.jsx)(c,{visualElement:d.visualElement,...l}):null,dl(e,n,vl(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,D.forwardRef)(s);return c[_l]=e,c}function Tl({layoutId:e}){let t=(0,D.useContext)(he).id;return t&&e!==void 0?t+`-`+e:e}function El(e,t){(0,D.useContext)(Rc).strict}function Dl(e){let{drag:t,layout:n}=Hc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Ol(e,t){if(typeof Proxy>`u`)return wl;let n=new Map,r=(n,r)=>wl(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,wl(a,void 0,e,t)),n.get(a))})}var kl=(e,t)=>t.isSVG??ul(e)?new Xo(t):new Bo(t,{allowProjection:e!==D.Fragment}),Al=class extends ao{constructor(e){super(e),e.animationState||=rs(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ha(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},jl=0,Ml={animation:{Feature:Al},exit:{Feature:class extends ao{constructor(){super(...arguments),this.id=jl++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`){let n=di(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Nl(e){return{point:{x:e.pageX,y:e.pageY}}}var Pl=e=>t=>ca(t)&&e(t,Nl(t));function Fl(e,t,n,r){return qs(e,t,Pl(n),r)}var Il=({current:e})=>e?e.ownerDocument.defaultView:null,Ll=(e,t)=>Math.abs(e-t);function Rl(e,t){let n=Ll(e.x,t.x),r=Ll(e.y,t.y);return Math.sqrt(n**2+r**2)}var zl=new Set([`auto`,`scroll`]),Bl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Vl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Ul(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Rl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=F;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Vl(t,this.transformPagePoint),P.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Ul(e.type===`pointercancel`?this.lastMoveEventInfo:Vl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ca(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Vl(Nl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=F;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Ul(s,this.history)),this.removeListeners=Ee(Fl(this.contextWindow,`pointermove`,this.handlePointerMove),Fl(this.contextWindow,`pointerup`,this.handlePointerUp),Fl(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(zl.has(e.overflowX)||zl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),P.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),nt(this.updatePoint)}};function Vl(e,t){return t?{point:t(e.point)}:e}function Hl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ul({point:e},t){return{point:e,delta:Hl(e,Gl(t)),offset:Hl(e,Wl(t)),velocity:Kl(t,.1)}}function Wl(e){return e[0]}function Gl(e){return e[e.length-1]}function Kl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Gl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>j(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>j(t)*2&&(r=e[1]);let a=M(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function ql(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?B(n,e,r.max):Math.min(e,n)),e}function Jl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Yl(e,{top:t,left:n,bottom:r,right:i}){return{x:Jl(e.x,n,i),y:Jl(e.y,t,r)}}function Xl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=De(t.min,t.max-r,e.min):r>i&&(n=De(e.min,e.max-i,t.min)),O(0,1,n)}function $l(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var eu=.35;function tu(e=eu){return e===!1?e=0:e===!0&&(e=eu),{x:nu(e,`left`,`right`),y:nu(e,`top`,`bottom`)}}function nu(e,t,n){return{min:ru(e,t),max:ru(e,n)}}function ru(e,t){return typeof e==`number`?e:e[t]||0}var iu=new WeakMap,au=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=W(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Nl(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ra(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),q(e=>{let t=this.getAxisMotionValue(e).get()||0;if(kt.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=K(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&P.update(()=>i(e,t),!1,!0),Ci(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=lu(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&P.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Bl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Il(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&P.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!cu(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=ql(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&bl(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Yl(n.layoutBox,e):this.constraints=!1,this.elastic=tu(t),r!==this.constraints&&!bl(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&q(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=$l(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!bl(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Do(n,r.root,this.visualElement.getTransformPagePoint()),a=Zl(r.layout.layoutBox,i);if(t){let e=t(so(a));this.hasMutatedConstraints=!!e,e&&(a=oo(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=q(o=>{if(!cu(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Ci(this.visualElement,e),n.start(ci(e,n,0,t,this.visualElement,!1))}stopAnimation(){q(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){q(t=>{let{drag:n}=this.getProps();if(!cu(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-B(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!bl(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};q(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Ql({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),q(t=>{if(!cu(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(B(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;iu.set(this.visualElement,this);let e=this.visualElement.current,t=Fl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&fa(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();bl(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=su(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),P.read(r);let o=qs(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(q(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=eu,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ou(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function su(e,t,n){let r=Pa(e,ou(n)),i=Pa(t,ou(n));return()=>{r(),i()}}function cu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function lu(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var uu=class extends ao{constructor(e){super(e),this.removeGroupControls=A,this.removeListeners=A,this.controls=new au(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},du=e=>(t,n)=>{e&&P.update(()=>e(t,n),!1,!0)},fu=class extends ao{constructor(){super(...arguments),this.removePointerDownListener=A}onPointerDown(e){this.session=new Bl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Il(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:du(e),onStart:du(t),onMove:du(n),onEnd:(e,t)=>{delete this.session,r&&P.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Fl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},pu=!1,mu=class extends D.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),pu&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),$s.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),pu=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||P.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),ea.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;pu=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function hu(e){let[t,n]=Lc(),r=(0,D.useContext)(he);return(0,E.jsx)(mu,{...e,layoutGroup:r,switchLayoutGroup:(0,D.useContext)(yl),isPresent:t,safeToRemove:n})}var gu={pan:{Feature:fu},drag:{Feature:uu,ProjectionNode:Fc,MeasureLayout:hu}};function _u(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&P.postRender(()=>i(t,Nl(t)))}var vu=class extends ao{mount(){let{current:e}=this.node;e&&(this.unmount=oa(e,(e,t)=>(_u(this.node,t,`Start`),e=>_u(this.node,e,`End`))))}unmount(){}},yu=class extends ao{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Ee(qs(this.node.current,`focus`,()=>this.onFocus()),qs(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function bu(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&P.postRender(()=>i(t,Nl(t)))}var xu=class extends ao{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=ya(e,(e,t)=>(bu(this.node,t,`Start`),(e,{success:t})=>bu(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Su=new WeakMap,Cu=new WeakMap,wu=e=>{let t=Su.get(e.target);t&&t(e)},Tu=e=>{e.forEach(wu)};function Eu({root:e,...t}){let n=e||document;Cu.has(n)||Cu.set(n,{});let r=Cu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Tu,{root:e,...t})),r[i]}function Du(e,t,n){let r=Eu(t);return Su.set(e,n),r.observe(e),()=>{Su.delete(e),r.unobserve(e)}}var Ou={some:0,all:1},ku=class extends ao{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ou[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Du(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Au(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Au({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var ju={inView:{Feature:ku},tap:{Feature:xu},focus:{Feature:yu},hover:{Feature:vu}},Mu={layout:{ProjectionNode:Fc,MeasureLayout:hu}},Nu=Ol({...Ml,...ju,...gu,...Mu},kl),Pu=T(),Fu=[{href:`#`,label:`Features`},{href:`#`,label:`Blog`},{href:`#`,label:`About`},{href:`#`,label:`Contact`},{href:`#`,label:`Licence`},{href:`#`,label:`Privacy`}],Iu=[{href:`#`,label:`X`,icon:(0,E.jsx)(Bu,{})},{href:`#`,label:`Github`,icon:(0,E.jsx)(t,{})}];function Lu(){let e=(0,Pu.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,E.jsx)(`div`,{className:`relative`,children:(0,E.jsx)(`div`,{className:`relative mx-5 h-5`,children:(0,E.jsx)(ue,{className:`absolute inset-0 h-full w-full border-y border-border/75 stroke-border/75`})})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=w(),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,E.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,E.jsx)(m,{prefetch:!0,href:n,children:(0,E.jsxs)(`span`,{className:`flex items-center gap-2 text-lg`,children:[(0,E.jsx)(`span`,{className:`flex size-8 items-center justify-center rounded-md bg-foreground text-background`,children:`ui`}),(0,E.jsx)(`span`,{children:`designbycode`})]})})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,E.jsxs)(`div`,{className:`flex items-center justify-between`,children:[r,(0,E.jsx)(`div`,{className:`flex items-center`,children:Iu.map(zu)})]}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,E.jsx)(se,{children:(0,E.jsxs)(`div`,{className:`flex flex-col gap-6 py-6`,children:[i,(0,E.jsx)(`nav`,{children:(0,E.jsx)(`ul`,{className:`flex flex-wrap gap-4 text-sm font-medium text-muted-foreground md:gap-6`,children:Fu.map(Ru)})})]})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,E.jsx)(`div`,{className:`relative`,children:(0,E.jsx)(`div`,{className:`relative mx-5 h-5`,children:(0,E.jsx)(ue,{className:`absolute inset-0 h-full w-full border-y border-border/75 stroke-border/75`})})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,E.jsxs)(`p`,{children:[`© `,new Date().getFullYear(),` ui.designbycode`]}),e[6]=s):s=e[6];let c;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,E.jsxs)(`footer`,{className:`mt-6`,children:[t,a,o,(0,E.jsx)(se,{children:(0,E.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-6 text-sm text-muted-foreground`,children:[s,(0,E.jsxs)(`p`,{className:`inline-flex items-center gap-1`,children:[(0,E.jsx)(`span`,{children:`Built by`}),(0,E.jsx)(`a`,{"aria-label":`x/twitter`,className:`inline-flex items-center gap-1 text-foreground/80 hover:text-foreground hover:underline`,href:`https://designbycode.co.za`,rel:`noreferrer`,target:`_blank`,children:`designbycode`})]})]})})]}),e[7]=c):c=e[7],c}function Ru(e){return(0,E.jsx)(`li`,{children:(0,E.jsx)(`a`,{className:`hover:text-foreground`,href:e.href,children:e.label})},e.label)}function zu(e){let{href:t,label:n,icon:r}=e;return(0,E.jsx)(u,{asChild:!0,size:`icon`,variant:`ghost`,children:(0,E.jsx)(`a`,{"aria-label":n,href:t,children:r})},n)}function Bu(e){let t=(0,Pu.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,E.jsx)(`path`,{d:`m18.9,1.153h3.682l-8.042,9.189,9.46,12.506h-7.405l-5.804-7.583-6.634,7.583H.469l8.6-9.831L0,1.153h7.593l5.241,6.931,6.065-6.931Zm-1.293,19.494h2.039L6.482,3.239h-2.19l13.314,17.408Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,E.jsx)(`svg`,{fill:`currentColor`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:n}),t[1]=e,t[2]=r),r}Lu.displayName=`MainFooter`;var Vu=[{value:`light`,icon:r,label:`Light`},{value:`dark`,icon:n,label:`Dark`}];function Hu(e){let t=(0,Pu.c)(23),n,r;t[0]===e?(n=t[1],r=t[2]):({className:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?``:r,{appearance:a,updateAppearance:s}=o(),c,d,f;t[3]===a?(c=t[4],d=t[5],f=t[6]):(c=Vu.find(e=>e.value===a)??Vu[0],f=Vu,d=Vu.indexOf(c),t[3]=a,t[4]=c,t[5]=d,t[6]=f);let p=f[(d+1)%Vu.length],m;t[7]!==p.value||t[8]!==s?(m=()=>s(p.value),t[7]=p.value,t[8]=s,t[9]=m):m=t[9];let h=`Switch to ${p.label} mode`,g;t[10]===i?g=t[11]:(g=l(``,i),t[10]=i,t[11]=g);let _;t[12]===c.icon?_=t[13]:(_=(0,E.jsx)(c.icon,{className:`h-4 w-4`}),t[12]=c.icon,t[13]=_);let v;t[14]===c.label?v=t[15]:(v=(0,E.jsx)(`span`,{"aria-label":c.label,className:`sr-only`,children:c.label}),t[14]=c.label,t[15]=v);let y;return t[16]!==n||t[17]!==m||t[18]!==h||t[19]!==g||t[20]!==_||t[21]!==v?(y=(0,E.jsxs)(u,{onClick:m,"aria-label":h,size:`icon`,...n,className:g,children:[_,v]}),t[16]=n,t[17]=m,t[18]=h,t[19]=g,t[20]=_,t[21]=v,t[22]=y):y=t[22],y}Hu.displayName=`AppearanceToggle`;function Uu(e){let t=(0,Pu.c)(7),{navLinks:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,E.jsx)(oe,{asChild:!0,children:(0,E.jsx)(u,{variant:`ghost`,size:`icon`,"aria-label":`Open navigation menu`,children:(0,E.jsx)(de,{className:`size-5`})})}),t[0]=r):r=t[0];let i,a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,E.jsx)(ue,{className:`absolute inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),a=(0,E.jsx)(ae,{className:`sr-only`,children:`Navigation menu`}),t[1]=i,t[2]=a):(i=t[1],a=t[2]);let o;t[3]===n?o=t[4]:(o=n.map(Wu),t[3]=n,t[4]=o);let s;return t[5]===o?s=t[6]:(s=(0,E.jsx)(`div`,{className:`md:hidden`,children:(0,E.jsxs)(S,{children:[r,(0,E.jsxs)(b,{side:`right`,children:[i,a,(0,E.jsx)(`div`,{className:`mt-8 flex flex-col space-y-1 px-4`,children:o})]})]})}),t[5]=o,t[6]=s),s}function Wu(e){return(0,E.jsx)(m,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:e.href,children:e.label},e.label)}Uu.displayName=`MainMobileNavigation`;function Gu(e){let t=(0,Pu.c)(12),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{enabled:r,offset:i,tolerance:a,scroller:o}=n,s=r===void 0?!0:r,c=i===void 0?0:i,l=a===void 0?0:a,u=o===void 0?null:o,d=(0,D.useRef)(null),[f,p]=(0,D.useState)(Ku),m;t[2]===l?m=t[3]:(m=()=>typeof l==`number`?{up:l,down:l}:l,t[2]=l,t[3]=m);let h=m,g,_;t[4]!==s||t[5]!==h||t[6]!==c||t[7]!==u?(g=()=>{if(!s)return;let e=u??window,t=()=>e instanceof Element?e.scrollTop:window.scrollY??window.pageYOffset,n=()=>e instanceof Element?e.scrollHeight:document.documentElement.scrollHeight,r=()=>e instanceof Element?e.clientHeight:window.innerHeight,i=t(),a=!1,o=()=>{let e=t(),o=n(),s=r(),l=h(),u=e<=c,d=e+s>=o-1,f=e-i,m=f>0,g=f<0;p(e=>{let t=e.pinned;return u?t=!0:m&&Math.abs(f)>=l.down?t=!1:g&&Math.abs(f)>=l.up&&(t=!0),{pinned:t,unpinned:!t,top:u,notTop:!u,bottom:d,notBottom:!d}}),i=e,a=!1},l=()=>{a||=(requestAnimationFrame(o),!0)};return e.addEventListener(`scroll`,l,{passive:!0}),o(),()=>{e.removeEventListener(`scroll`,l)}},_=[s,c,h,u],t[4]=s,t[5]=h,t[6]=c,t[7]=u,t[8]=g,t[9]=_):(g=t[8],_=t[9]),(0,D.useEffect)(g,_);let v;return t[10]===f?v=t[11]:(v={ref:d,...f},t[10]=f,t[11]=v),v}function Ku(){return{pinned:!0,unpinned:!1,top:!0,notTop:!1,bottom:!1,notBottom:!0}}var J=e=>({url:J.url(e),method:`get`});J.definition={methods:[`get`,`head`],url:`/animate-css`},J.url=e=>J.definition.url+v(e),J.get=e=>({url:J.url(e),method:`get`}),J.head=e=>({url:J.url(e),method:`head`});var qu=e=>({action:J.url(e),method:`get`});qu.get=e=>({action:J.url(e),method:`get`}),qu.head=e=>({action:J.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),J.form=qu,Object.assign(J,J);var Y=e=>({url:Y.url(e),method:`get`});Y.definition={methods:[`get`,`head`],url:`/fonts`},Y.url=e=>Y.definition.url+v(e),Y.get=e=>({url:Y.url(e),method:`get`}),Y.head=e=>({url:Y.url(e),method:`head`});var Ju=e=>({action:Y.url(e),method:`get`});Ju.get=e=>({action:Y.url(e),method:`get`}),Ju.head=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Y.form=Ju,Object.assign(Y,Y);var X=e=>({url:X.url(e),method:`get`});X.definition={methods:[`get`,`head`],url:`/themes`},X.url=e=>X.definition.url+v(e),X.get=e=>({url:X.url(e),method:`get`}),X.head=e=>({url:X.url(e),method:`head`});var Yu=e=>({action:X.url(e),method:`get`});Yu.get=e=>({action:X.url(e),method:`get`}),Yu.head=e=>({action:X.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),X.form=Yu;var Z=e=>({url:Z.url(e),method:`get`});Z.definition={methods:[`get`,`head`],url:`/themes/create`},Z.url=e=>Z.definition.url+v(e),Z.get=e=>({url:Z.url(e),method:`get`}),Z.head=e=>({url:Z.url(e),method:`head`});var Xu=e=>({action:Z.url(e),method:`get`});Xu.get=e=>({action:Z.url(e),method:`get`}),Xu.head=e=>({action:Z.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Z.form=Xu;var Q=e=>({url:Q.url(e),method:`post`});Q.definition={methods:[`post`],url:`/themes`},Q.url=e=>Q.definition.url+v(e),Q.post=e=>({url:Q.url(e),method:`post`});var Zu=e=>({action:Q.url(e),method:`post`});Zu.post=e=>({action:Q.url(e),method:`post`}),Q.form=Zu;var $=(e,t)=>({url:$.url(e,t),method:`get`});$.definition={methods:[`get`,`head`],url:`/themes/{theme}`},$.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={theme:e}),typeof e==`object`&&!Array.isArray(e)&&`name`in e&&(e={theme:e.name}),Array.isArray(e)&&(e={theme:e[0]}),e=_(e);let n={theme:typeof e.theme==`object`?e.theme.name:e.theme};return $.definition.url.replace(`{theme}`,n.theme.toString()).replace(/\/+$/,``)+v(t)},$.get=(e,t)=>({url:$.url(e,t),method:`get`}),$.head=(e,t)=>({url:$.url(e,t),method:`head`});var Qu=(e,t)=>({action:$.url(e,t),method:`get`});Qu.get=(e,t)=>({action:$.url(e,t),method:`get`}),Qu.head=(e,t)=>({action:$.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),$.form=Qu,Object.assign(X,X),Object.assign(Z,Z),Object.assign(Q,Q),Object.assign($,$);var $u=x(C(),1);function ed(e,t){let n=(0,Pu.c)(4),[r,i]=(0,D.useState)(e),a,o;return n[0]!==t||n[1]!==e?(a=()=>{let n=setTimeout(()=>i(e),t);return()=>clearTimeout(n)},o=[e,t],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,D.useEffect)(a,o),r}function td(t){let n=(0,Pu.c)(21),{theme:r,onSelect:i,selected:a,compact:o,className:s}=t,c=a===void 0?!1:a,u=o===void 0?!1:o,{cssVars:d}=ce(r),f;n[0]!==i||n[1]!==r?(f=()=>i?.(r),n[0]=i,n[1]=r,n[2]=f):f=n[2];let p=u?`gap-2 px-4 py-2`:`gap-4 p-4`,m=c&&`border-primary ring-1 ring-primary`,h;n[3]!==s||n[4]!==p||n[5]!==m?(h=l(`flex w-full items-center justify-between overflow-clip rounded-md border border-border bg-background text-left transition-colors hover:bg-accent`,p,m,s),n[3]=s,n[4]=p,n[5]=m,n[6]=h):h=n[6];let g;n[7]===c?g=n[8]:(g=c&&(0,E.jsx)(Nu.div,{animate:{x:-5},transition:{type:`spring`,stiffness:100},initial:{x:-50},children:(0,E.jsx)(e,{className:`size-4 rounded-full bg-primary p-1 text-primary-foreground`})}),n[7]=c,n[8]=g);let _=r?.title||`Theme`,v=u?void 0:r?.name,y;n[9]!==_||n[10]!==v?(y=(0,E.jsx)(ne,{as:`h4`,variant:`small`,title:_,description:v}),n[9]=_,n[10]=v,n[11]=y):y=n[11];let b;n[12]!==y||n[13]!==g?(b=(0,E.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center space-x-1`,children:[g,y]}),n[12]=y,n[13]=g,n[14]=b):b=n[14];let x;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,E.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5 rounded-md border border-border p-1.5`,children:[(0,E.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-primary`}),(0,E.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-secondary`}),(0,E.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-accent`}),(0,E.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-muted`})]}),n[15]=x):x=n[15];let S;return n[16]!==d||n[17]!==b||n[18]!==f||n[19]!==h?(S=(0,E.jsxs)(`button`,{type:`button`,onClick:f,style:d,className:h,children:[b,x]}),n[16]=d,n[17]=b,n[18]=f,n[19]=h,n[20]=S):S=n[20],S}td.displayName=`MainThemeList`;function nd(){let t=(0,Pu.c)(64),{themeName:n}=f(),[r,a]=(0,D.useState)(!1),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],t[0]=o):o=t[0];let[l,d]=(0,D.useState)(o),[m,g]=(0,D.useState)(1),[_,v]=(0,D.useState)(!0),[x,C]=(0,D.useState)(!1),[w,ee]=(0,D.useState)(``),te=ed(w,300),[T,ne]=(0,D.useState)(``),re=(0,D.useRef)(null),ie=(0,D.useRef)(null),se;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(se=(e,t,n)=>{C(!0);let r=new URLSearchParams;r.set(`page`,String(e)),t&&r.set(`search`,t),fetch(`/api/themes?${r}`).then(ad).then(r=>{d(e=>n?[...e,...r.data]:r.data),v(t?!1:r.current_page{C(!1)})},t[1]=se):se=t[1];let ce=se,[le,de]=(0,D.useState)(!1);r!==le&&(de(r),r||(ee(``),ne(``),d([]),g(1),v(!0)));let he,ge;t[2]===r?(he=t[3],ge=t[4]):(he=()=>{r&&ce(1,``,!1)},ge=[r,ce],t[2]=r,t[3]=he,t[4]=ge),(0,D.useEffect)(he,ge);let _e,ve;t[5]!==T||t[6]!==te||t[7]!==r?(_e=()=>{r&&te!==T&&((0,$u.flushSync)(()=>{ne(te),d([])}),requestAnimationFrame(()=>{ce(1,te,!1)}))},ve=[r,te,T,ce],t[5]=T,t[6]=te,t[7]=r,t[8]=_e,t[9]=ve):(_e=t[8],ve=t[9]),(0,D.useEffect)(_e,ve);let ye,be;t[10]!==T||t[11]!==_||t[12]!==x||t[13]!==r||t[14]!==m?(ye=()=>{if(!r)return;let e=re.current,t=ie.current;if(!e||!t)return;let n=new IntersectionObserver(e=>{e[0].isIntersecting&&_&&!x&&!T&&ce(m+1,T,!0)},{root:t,rootMargin:`400px`});return n.observe(e),()=>n.disconnect()},be=[r,_,x,m,T,ce],t[10]=T,t[11]=_,t[12]=x,t[13]=r,t[14]=m,t[15]=ye,t[16]=be):(ye=t[15],be=t[16]),(0,D.useEffect)(ye,be);let O;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,E.jsx)(oe,{asChild:!0,children:(0,E.jsx)(u,{variant:`ghost`,size:`icon`,children:(0,E.jsx)(fe,{className:`size-4`})})}),t[17]=O):O=t[17];let k;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,E.jsx)(ue,{className:`absolute inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),t[18]=k):k=t[18];let xe;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,E.jsxs)(h,{className:`px-4 pt-4 pb-2`,children:[(0,E.jsx)(ae,{children:`Theme Color`}),(0,E.jsx)(y,{children:`Choose a color theme for the interface`})]}),t[19]=xe):xe=t[19];let Se;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,E.jsx)(me,{className:`absolute top-0 left-7 size-4 translate-y-2.5 text-muted-foreground`}),t[20]=Se):Se=t[20];let Ce;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=e=>ee(e.target.value),t[21]=Ce):Ce=t[21];let we,A;t[22]===w?(we=t[23],A=t[24]):(we=(0,E.jsx)(i,{value:w,onChange:Ce,placeholder:`Search themes...`,className:`pr-8 pl-9`}),A=w&&(0,E.jsx)(`button`,{onClick:()=>ee(``),className:`absolute top-0 right-7 translate-y-2.5 text-muted-foreground hover:text-foreground`,children:(0,E.jsx)(s,{className:`size-4`})}),t[22]=w,t[23]=we,t[24]=A);let Te;t[25]!==we||t[26]!==A?(Te=(0,E.jsxs)(`div`,{className:`relative border-b border-border px-4 pb-3`,children:[Se,we,A]}),t[25]=we,t[26]=A,t[27]=Te):Te=t[27];let Ee=`flex w-full items-center justify-between gap-2 rounded-md border p-2 text-left transition-colors hover:bg-accent ${n?`border-border bg-background`:`border-primary ring-1 ring-primary`}`,De;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,E.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,E.jsx)(`div`,{className:`flex size-8 items-center justify-center rounded-md border border-border bg-background`,children:(0,E.jsx)(pe,{className:`size-4 text-muted-foreground`})}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:`Default theme`}),(0,E.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Reset to default colors`})]})]}),t[28]=De):De=t[28];let Oe;t[29]===n?Oe=t[30]:(Oe=!n&&(0,E.jsx)(`div`,{className:`flex size-4 items-center justify-center rounded-full bg-primary text-primary-foreground`,children:(0,E.jsx)(e,{className:`size-3`})}),t[29]=n,t[30]=Oe);let j;t[31]!==Ee||t[32]!==Oe?(j=(0,E.jsxs)(`button`,{type:`button`,onClick:c,className:Ee,children:[De,Oe]}),t[31]=Ee,t[32]=Oe,t[33]=j):j=t[33];let M;if(t[34]!==n||t[35]!==l){let e;t[37]===n?e=t[38]:(e=e=>(0,E.jsx)(td,{theme:e,className:`mb-2`,compact:!0,selected:e.name===n,onSelect:p},e.name),t[37]=n,t[38]=e),M=l.map(e),t[34]=n,t[35]=l,t[36]=M}else M=t[36];let ke;t[39]===x?ke=t[40]:(ke=x&&(0,E.jsx)(`div`,{className:`space-y-2`,children:Array.from({length:3}).map(rd)}),t[39]=x,t[40]=ke);let Ae;t[41]!==_||t[42]!==x?(Ae=_&&!x&&(0,E.jsx)(`div`,{ref:re,className:`h-4`}),t[41]=_,t[42]=x,t[43]=Ae):Ae=t[43];let je;t[44]!==T||t[45]!==_||t[46]!==l.length?(je=!_&&l.length>0&&(0,E.jsx)(`p`,{className:`py-4 text-center text-xs text-muted-foreground`,children:T?`Search results`:`All themes loaded`}),t[44]=T,t[45]=_,t[46]=l.length,t[47]=je):je=t[47];let Me;t[48]!==x||t[49]!==l.length?(Me=!x&&l.length===0&&(0,E.jsx)(`p`,{className:`py-8 text-center text-sm text-muted-foreground`,children:`No themes found`}),t[48]=x,t[49]=l.length,t[50]=Me):Me=t[50];let Ne;t[51]!==j||t[52]!==M||t[53]!==ke||t[54]!==Ae||t[55]!==je||t[56]!==Me?(Ne=(0,E.jsx)(`div`,{ref:ie,className:`flex-1 overflow-y-auto px-4 py-3`,children:(0,E.jsxs)(`div`,{className:`space-y-2`,children:[j,M,ke,Ae,je,Me]})}),t[51]=j,t[52]=M,t[53]=ke,t[54]=Ae,t[55]=je,t[56]=Me,t[57]=Ne):Ne=t[57];let N;t[58]!==Te||t[59]!==Ne?(N=(0,E.jsxs)(b,{className:`flex flex-col gap-0 pl-5`,children:[k,xe,Te,Ne]}),t[58]=Te,t[59]=Ne,t[60]=N):N=t[60];let Pe;return t[61]!==r||t[62]!==N?(Pe=(0,E.jsxs)(S,{open:r,onOpenChange:a,children:[O,N]}),t[61]=r,t[62]=N,t[63]=Pe):Pe=t[63],Pe}function rd(e,t){return(0,E.jsx)(`div`,{className:`h-14 animate-pulse rounded-md bg-muted`},t)}function id(e){console.error(`Failed to fetch themes:`,e)}function ad(e){return e.json()}nd.displayName=`ThemeSwitcher`;function od(){let e=(0,Pu.c)(19),t=!te(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={down:5,up:5},e[0]=n):n=e[0];let r;e[1]===t?r=e[2]:(r={enabled:t,offset:16,tolerance:n},e[1]=t,e[2]=r);let{ref:i,pinned:a}=Gu(r),o;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o={label:`Home`,href:w()},e[3]=o):o=e[3];let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s={label:`Themes`,href:X()},e[4]=s):s=e[4];let c;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(c={label:`Animate CSS`,href:J()},e[5]=c):c=e[5];let u;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(u={label:`Fonts`,href:Y()},e[6]=u):u=e[6];let d;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(d={label:`Components`,href:w()},e[7]=d):d=e[7];let f;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(f=[o,s,c,u,d,{label:`Blocks`,href:w()}],e[8]=f):f=e[8];let p=f,h=a?`translate-y-0`:`-translate-y-full`,g;e[9]===h?g=e[10]:(g=l(`fixed inset-x-0 top-0 isolate z-50 flex min-h-16 items-center border-b! border-solid! border-border/50! bg-background/50 text-foreground backdrop-blur transition-transform duration-700`,h),e[9]=h,e[10]=g);let _;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,E.jsxs)(m,{prefetch:`hover`,className:`text-semibold flex items-center space-x-1 text-lg`,href:w(),children:[(0,E.jsx)(`span`,{className:`grid size-7 place-items-center rounded-sm bg-foreground text-background`,children:`ui`}),(0,E.jsx)(`span`,{children:`designbycode`})]}),e[11]=_):_=e[11];let v;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,E.jsx)(`div`,{className:`hidden space-x-4 text-sm md:flex`,children:p.map(sd)}),e[12]=v):v=e[12];let y,b;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,E.jsx)(Hu,{}),b=(0,E.jsx)(nd,{}),e[13]=y,e[14]=b):(y=e[13],b=e[14]);let x;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,E.jsxs)(se,{className:`flex justify-between`,children:[_,v,(0,E.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[y,b,(0,E.jsx)(Uu,{navLinks:p})]})]}),e[15]=x):x=e[15];let S;return e[16]!==i||e[17]!==g?(S=(0,E.jsx)(`div`,{ref:i,suppressHydrationWarning:!0,className:g,children:x}),e[16]=i,e[17]=g,e[18]=S):S=e[18],S}function sd(e){return(0,E.jsx)(m,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:e.href,children:e.label},e.label)}od.displayName=`MainNavigation`;function cd(e){let t=(0,Pu.c)(8),{children:n}=e,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,E.jsx)(ue,{className:`fixed inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),i=(0,E.jsx)(ue,{className:`fixed inset-y-0 right-0 h-full w-2 border-l border-border/75 stroke-border/75 md:w-5`}),a=(0,E.jsx)(od,{}),t[0]=r,t[1]=i,t[2]=a):(r=t[0],i=t[1],a=t[2]);let o;t[3]===n?o=t[4]:(o=(0,E.jsx)(`div`,{className:`flex-1`,children:n}),t[3]=n,t[4]=o);let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,E.jsx)(Lu,{}),t[5]=s):s=t[5];let c;return t[6]===o?c=t[7]:(c=(0,E.jsx)(le,{className:`relative`,children:(0,E.jsxs)(`div`,{className:`flex min-h-screen flex-col py-16`,children:[r,i,a,o,s]})}),t[6]=o,t[7]=c),c}cd.displayName=`MainLayout`;export{Q as a,_e as c,de as d,$ as i,he as l,ed as n,Nu as o,Z as r,P as s,cd as t,me as u}; \ No newline at end of file diff --git a/public/build/assets/main-layout-qej9zSi0.js b/public/build/assets/main-layout-qej9zSi0.js new file mode 100644 index 0000000..03a1808 --- /dev/null +++ b/public/build/assets/main-layout-qej9zSi0.js @@ -0,0 +1 @@ +import{t as e}from"./check-BBvDdM_9.js";import{t}from"./github-Be9qoVk0.js";import{n,t as r}from"./sun-r0X8DC4y.js";import{B as i,G as a,Gt as o,H as s,J as c,Q as l,V as u,Wt as d,X as f,Y as p,Zt as m,_ as h,cn as g,f as _,g as v,h as y,ln as b,m as x,nn as S,o as C,on as w,p as ee,qt as te,r as T,rn as ne,sn as re,v as ie,y as ae}from"./app-D7MKN1zp.js";import{l as oe,o as se,r as ce,t as le}from"./glow-stack-BaNii-nE.js";import{t as ue}from"./placeholder-pattern-DUvj6lOE.js";var de=a(`Menu`,[[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}],[`line`,{x1:`4`,x2:`20`,y1:`6`,y2:`6`,key:`1owob3`}],[`line`,{x1:`4`,x2:`20`,y1:`18`,y2:`18`,key:`yk5zj1`}]]),fe=a(`Palette`,[[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`path`,{d:`M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z`,key:`12rzf8`}]]),pe=a(`RotateCcw`,[[`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`}]]),me=a(`Search`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),E=d(),D=b(ne(),1),he=(0,D.createContext)({});function ge(e){let t=(0,D.useRef)(null);return t.current===null&&(t.current=e()),t.current}var _e=typeof window<`u`?D.useLayoutEffect:D.useEffect,ve=(0,D.createContext)(null);function ye(e,t){e.indexOf(t)===-1&&e.push(t)}function be(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var O=(e,t,n)=>n>t?t:n/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Se(e){return typeof e==`object`&&!!e}var Ce=e=>/^0[^.\s]+$/u.test(e);function we(e){let t;return()=>(t===void 0&&(t=e()),t)}var A=e=>e,Te=(e,t)=>n=>t(e(n)),Ee=(...e)=>e.reduce(Te),De=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Oe=class{constructor(){this.subscriptions=[]}add(e){return ye(this.subscriptions,e),()=>be(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;ie*1e3,M=e=>e/1e3;function ke(e,t){return t?1e3/t*e:0}var Ae=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,je=1e-7,Me=12;function Ne(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ae(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>je&&++sNe(t,0,1,e,n);return e=>e===0||e===1?e:Ae(i(e),t,r)}var Pe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fe=e=>t=>1-e(1-t),Ie=N(.33,1.53,.69,.99),Le=Fe(Ie),Re=Pe(Le),ze=e=>e>=1?1:(e*=2)<1?.5*Le(e):.5*(2-2**(-10*(e-1))),Be=e=>1-Math.sin(Math.acos(e)),Ve=Fe(Be),He=Pe(Be),Ue=N(.42,0,1,1),We=N(0,0,.58,1),Ge=N(.42,0,.58,1),Ke=e=>Array.isArray(e)&&typeof e[0]!=`number`,qe=e=>Array.isArray(e)&&typeof e[0]==`number`,Je={linear:A,easeIn:Ue,easeInOut:Ge,easeOut:We,circIn:Be,circInOut:He,circOut:Ve,backIn:Le,backInOut:Re,backOut:Ie,anticipate:ze},Ye=e=>typeof e==`string`,Xe=e=>{if(qe(e)){e.length;let[t,n,r,i]=e;return N(t,n,r,i)}else if(Ye(e))return Je[e],`${e}`,Je[e];return e},Ze=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],P={value:null,addProjectionMetrics:null};function Qe(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&P.value&&P.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var $e=40;function et(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ze.reduce((e,n)=>(e[n]=Qe(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=k.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,$e),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ze.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t(rt===void 0&&L.set(I.isProcessing||k.useManualTiming?I.timestamp:performance.now()),rt),set:e=>{rt=e,queueMicrotask(it)}},at={layout:0,mainThread:0,waapi:0},ot=e=>t=>typeof t==`string`&&t.startsWith(e),st=ot(`--`),ct=ot(`var(--`),lt=e=>ct(e)?ut.test(e.split(`/*`)[0].trim()):!1,ut=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function dt(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var ft={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},pt={...ft,transform:e=>O(0,1,e)},mt={...ft,default:1},ht=e=>Math.round(e*1e5)/1e5,gt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _t(e){return e==null}var vt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yt=(e,t)=>n=>!!(typeof n==`string`&&vt.test(n)&&n.startsWith(e)||t&&!_t(n)&&Object.prototype.hasOwnProperty.call(n,t)),bt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(gt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},xt=e=>O(0,255,e),St={...ft,transform:e=>Math.round(xt(e))},Ct={test:yt(`rgb`,`red`),parse:bt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+St.transform(e)+`, `+St.transform(t)+`, `+St.transform(n)+`, `+ht(pt.transform(r))+`)`};function wt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Tt={test:yt(`#`),parse:wt,transform:Ct.transform},Et=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dt=Et(`deg`),R=Et(`%`),z=Et(`px`),Ot=Et(`vh`),kt=Et(`vw`),At={...R,parse:e=>R.parse(e)/100,transform:e=>R.transform(e*100)},jt={test:yt(`hsl`,`hue`),parse:bt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+R.transform(ht(t))+`, `+R.transform(ht(n))+`, `+ht(pt.transform(r))+`)`},B={test:e=>Ct.test(e)||Tt.test(e)||jt.test(e),parse:e=>Ct.test(e)?Ct.parse(e):jt.test(e)?jt.parse(e):Tt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Ct.transform(e):jt.transform(e),getAnimatableNone:e=>{let t=B.parse(e);return t.alpha=0,B.transform(t)}},Mt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Nt(e){return isNaN(e)&&typeof e==`string`&&(e.match(gt)?.length||0)+(e.match(Mt)?.length||0)>0}var Pt=`number`,Ft=`color`,It=`var`,Lt=`var(`,Rt="${}",zt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Bt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(zt,e=>(B.test(e)?(r.color.push(a),i.push(Ft),n.push(B.parse(e))):e.startsWith(Lt)?(r.var.push(a),i.push(It),n.push(e)):(r.number.push(a),i.push(Pt),n.push(parseFloat(e))),++a,Rt)).split(Rt),indexes:r,types:i}}function Vt(e){return Bt(e).values}function Ht({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;atypeof e==`number`?0:B.test(e)?B.getAnimatableNone(e):e,Gt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Wt(e);function Kt(e){let t=Bt(e);return Ht(t)(t.values.map((e,n)=>Gt(e,t.split[n])))}var V={test:Nt,parse:Vt,createTransformer:Ut,getAnimatableNone:Kt};function qt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Jt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=qt(s,r,e+1/3),a=qt(s,r,e),o=qt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Yt(e,t){return n=>n>0?t:e}var H=(e,t,n)=>e+(t-e)*n,Xt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Zt=[Tt,Ct,jt],Qt=e=>Zt.find(t=>t.test(e));function $t(e){let t=Qt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===jt&&(n=Jt(n)),n}var en=(e,t)=>{let n=$t(e),r=$t(t);if(!n||!r)return Yt(e,t);let i={...n};return e=>(i.red=Xt(n.red,r.red,e),i.green=Xt(n.green,r.green,e),i.blue=Xt(n.blue,r.blue,e),i.alpha=H(n.alpha,r.alpha,e),Ct.transform(i))},tn=new Set([`none`,`hidden`]);function nn(e,t){return tn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function rn(e,t){return n=>H(e,t,n)}function an(e){return typeof e==`number`?rn:typeof e==`string`?lt(e)?Yt:B.test(e)?en:ln:Array.isArray(e)?on:typeof e==`object`?B.test(e)?en:sn:Yt}function on(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>an(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in r)n[t]=r[t](e);return n}}function cn(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i{let n=V.createTransformer(t),r=Bt(e),i=Bt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?tn.has(e)&&!i.values.length||tn.has(t)&&!r.values.length?nn(e,t):Ee(on(cn(r,i),i.values),n):(`${e}${t}`,Yt(e,t))};function un(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?H(e,t,n):an(e)(e,t)}var dn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>F.update(t,e),stop:()=>tt(t),now:()=>I.isProcessing?I.timestamp:L.now()}},fn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t=2e4?1/0:t}function hn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(mn(r),pn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:M(i)}}var U={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function gn(e,t){return e*Math.sqrt(1-t*t)}var _n=12;function vn(e,t,n){let r=n;for(let n=1;n<_n;n++)r-=e(r)/t(r);return r}var yn=.001;function bn({duration:e=U.duration,bounce:t=U.bounce,velocity:n=U.velocity,mass:r=U.mass}){let i,a;U.maxDuration;let o=1-t;o=O(U.minDamping,U.maxDamping,o),e=O(U.minDuration,U.maxDuration,M(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=gn(t,o),c=Math.exp(-i);return yn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=gn(t**2,o);return(-i(t)+yn>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-yn+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=vn(i,a,s);if(e=j(e),isNaN(c))return{stiffness:U.stiffness,damping:U.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var xn=[`duration`,`bounce`],Sn=[`stiffness`,`damping`,`mass`];function Cn(e,t){return t.some(t=>e[t]!==void 0)}function wn(e){let t={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...e};if(!Cn(e,Sn)&&Cn(e,xn))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*O(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:U.mass,stiffness:i,damping:a}}else{let n=bn({...e,velocity:0});t={...t,...n,mass:U.mass},t.isResolvedFromDuration=!0}return t}function Tn(e=U.visualDuration,t=U.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=wn({...n,velocity:-M(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=M(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?U.restSpeed.granular:U.restSpeed.default,i||=v?U.restDelta.granular:U.restDelta.default;let y,b,x,S,C,w;if(h<1)x=gn(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let ee={calculatedDuration:p&&d||null,velocity:e=>j(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=j(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=j(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(mn(ee),pn),t=fn(t=>ee.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return ee}Tn.applyToOptions=e=>{let t=hn(e,100,Tn);return e.ease=t.ease,e.duration=j(t.duration),e.type=`keyframes`,e};var En=5;function Dn(e,t,n){let r=Math.max(t-En,0);return ke(n-e(r),t-r)}function On({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&ec,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Tn({keyframes:[f.value,m(f.value)],velocity:Dn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function kn(e,t,n){let r=[],i=n||k.mix||un,a=e.length-1;for(let n=0;nt[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=kn(t,r,i),c=s.length,l=n=>{if(o&&n1)for(;rl(O(e[0],e[a-1],t)):l}function jn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=De(0,t,r);e.push(H(n,1,i))}}function Mn(e){let t=[0];return jn(t,e.length-1),t}function Nn(e,t){return e.map(e=>e*t)}function Pn(e,t){return e.map(()=>t||Ge).splice(0,e.length-1)}function Fn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ke(r)?r.map(Xe):Xe(r),a={done:!1,value:t[0]},o=An(Nn(n&&n.length===t.length?n:Mn(t),e),t,{ease:Array.isArray(i)?i:Pn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var In=e=>e!==null;function Ln(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(In),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Rn={decay:On,inertia:On,tween:Fn,keyframes:Fn,spring:Tn};function zn(e){typeof e.type==`string`&&(e.type=Rn[e.type])}var Bn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Vn=e=>e/100,Hn=class extends Bn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},at.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;zn(e);let{type:t=Fn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Fn;s!==Fn&&typeof o[0]!=`number`&&(this.mixKeyframes=Ee(Vn,un(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=mn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=O(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==On&&(b.value=Ln(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return M(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(this.currentTime)}set time(e){e=j(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Dn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=M(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=dn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(L.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,at.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Un(e){for(let t=1;te*180/Math.PI,Gn=e=>qn(Wn(Math.atan2(e[1],e[0]))),Kn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Gn,rotateZ:Gn,skewX:e=>Wn(Math.atan(e[1])),skewY:e=>Wn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qn=e=>(e%=360,e<0&&(e+=360),e),Jn=Gn,Yn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Xn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Zn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yn,scaleY:Xn,scale:e=>(Yn(e)+Xn(e))/2,rotateX:e=>qn(Wn(Math.atan2(e[6],e[5]))),rotateY:e=>qn(Wn(Math.atan2(-e[2],e[0]))),rotateZ:Jn,rotate:Jn,skewX:e=>Wn(Math.atan(e[4])),skewY:e=>Wn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Qn(e){return+!!e.includes(`scale`)}function $n(e,t){if(!e||e===`none`)return Qn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Zn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Kn,i=t}if(!i)return Qn(t);let a=r[t],o=i[1].split(`,`).map(tr);return typeof a==`function`?a(o):o[a]}var er=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return $n(n,t)};function tr(e){return parseFloat(e.trim())}var nr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],rr=new Set(nr),ir=e=>e===ft||e===z,ar=new Set([`x`,`y`,`z`]),or=nr.filter(e=>!ar.has(e));function sr(e){let t=[];return or.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var cr={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>$n(t,`x`),y:(e,{transform:t})=>$n(t,`y`)};cr.translateX=cr.x,cr.translateY=cr.y;var lr=new Set,ur=!1,dr=!1,fr=!1;function pr(){if(dr){let e=Array.from(lr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=sr(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}dr=!1,ur=!1,lr.forEach(e=>e.complete(fr)),lr.clear()}function mr(){lr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(dr=!0)})}function hr(){fr=!0,mr(),pr(),fr=!1}var gr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(lr.add(this),ur||(ur=!0,F.read(mr),F.resolveKeyframes(pr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Un(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),lr.delete(this)}cancel(){this.state===`scheduled`&&(lr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},_r=e=>e.startsWith(`--`);function vr(e,t,n){_r(t)?e.style.setProperty(t,n):e.style[t]=n}var yr={};function br(e,t){let n=we(e);return()=>yr[t]??n()}var xr=br(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Sr=br(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Cr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,wr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Cr([0,.65,.55,1]),circOut:Cr([.55,0,1,.45]),backIn:Cr([.31,.01,.66,-.59]),backOut:Cr([.33,1.53,.69,.99])};function Tr(e,t){if(e)return typeof e==`function`?Sr()?fn(e,t):`ease-out`:qe(e)?Cr(e):Array.isArray(e)?e.map(e=>Tr(e,t)||wr.easeOut):wr[e]}function Er(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Tr(s,i);Array.isArray(d)&&(u.easing=d),P.value&&at.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return P.value&&p.finished.finally(()=>{at.waapi--}),p}function Dr(e){return typeof e==`function`&&`applyToOptions`in e}function Or({type:e,...t}){return Dr(e)&&Sr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var kr=class extends Bn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Or(e);this.animation=Er(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Ln(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),vr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return M(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=j(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&xr()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),A):r(this)}},Ar={anticipate:ze,backInOut:Re,circInOut:He};function jr(e){return e in Ar}function Mr(e){typeof e.ease==`string`&&jr(e.ease)&&(e.ease=Ar[e.ease])}var Nr=10,Pr=class extends kr{constructor(e){Mr(e),zn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Hn({...a,autoplay:!1}),s=Math.max(Nr,L.now()-this.startTime),c=O(0,Nr,s-Nr),l=o.sample(s).value,{name:u}=this.options;i&&u&&vr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Fr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(V.test(e)||e===`0`)&&!e.startsWith(`url(`));function Ir(e){let t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,`animate`));function Wr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Ur()&&n&&(zr.has(n)||Hr.has(n)&&Vr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Gr=40,Kr=class extends Bn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||gr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=L.now();let u=!0;Lr(e,i,a,o)||(u=!1,(k.instantAnimations||!s)&&l?.(Ln(e,n,t)),e[0]=e[e.length-1],Rr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Gr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Wr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Pr({...d,element:p})}catch{m=new Hn(d)}else m=new Hn(d);m.finished.then(()=>{this.notifyFinished()}).catch(A),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),hr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function qr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Jr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yr(e){let t=Jr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Xr(e,t,n=1){`${e}`;let[r,i]=Yr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return xe(e)?parseFloat(e):e}return lt(i)?Xr(i,t,n+1):i}var Zr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Qr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$r={type:`keyframes`,duration:.8},ei={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},ti=(e,{keyframes:t})=>t.length>2?$r:rr.has(e)?e.startsWith(`scale`)?Qr(t[1]):Zr:ei;function ni(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function ri(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ni(n,e)}var ii=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function ai(e){for(let t in e)if(!ii.has(t))return!0;return!1}var oi=(e,t,n,r={},i,a)=>o=>{let s=ri(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=j(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};ai(s)||Object.assign(u,ti(e,u)),u.duration&&=j(u.duration),u.repeatDelay&&=j(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Rr(u),u.delay===0&&(d=!0)),(k.instantAnimations||k.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Rr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Ln(u.keyframes,s);if(e!==void 0){F.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Hn(u):new Kr(u)};function si(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function ci(e,t,n,r){if(typeof t==`function`){let[i,a]=si(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=si(r);t=t(n===void 0?e.custom:n,i,a)}return t}function li(e,t,n){let r=e.getProps();return ci(r,t,n===void 0?r.custom:n,e)}var ui=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...nr]),di=30,fi=e=>!isNaN(parseFloat(e)),pi={current:void 0},mi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=L.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=L.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fi(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new Oe);let n=this.events[e].add(t);return e===`change`?()=>{n(),F.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return pi.current&&pi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=L.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>di)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,di);return ke(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function hi(e,t){return new mi(e,t)}var gi=e=>Array.isArray(e);function _i(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hi(n))}function vi(e){return gi(e)?e[e.length-1]||0:e}function yi(e,t){let{transitionEnd:n={},transition:r={},...i}=li(e,t)||{};i={...i,...n};for(let t in i)_i(e,t,vi(i[t]))}var W=e=>!!(e&&e.getVelocity);function bi(e){return!!(W(e)&&e.add)}function xi(e,t){let n=e.getValue(`willChange`);if(bi(n))return n.add(t);if(!n&&k.WillChange){let n=new k.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Si(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ci=`data-`+Si(`framerAppearId`);function wi(e){return e.props[Ci]}function Ti({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ei(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ni(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&Ti(d,t))continue;let o={delay:n,...ri(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){F.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=wi(e);if(n){let e=window.MotionHandoffAnimation(n,t,F);e!==null&&(o.startTime=e,f=!0)}}xi(e,t);let p=l??e.shouldReduceMotion;r.start(oi(t,r,i,p&&ui.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>F.update(()=>{o&&yi(e,o)});u.length?Promise.all(u).then(t):t()}return u}function Di(e,t,n={}){let r=li(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Ei(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Oi(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Oi(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Di(c,t,{...o,delay:n+(typeof r==`function`?0:r)+qr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ki(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Di(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Di(e,t,n);else{let i=typeof t==`function`?li(e,t,n.custom):t;r=Promise.all(Ei(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Ai={test:e=>e===`auto`,parse:e=>e},ji=e=>t=>t.test(e),Mi=[ft,z,R,Dt,kt,Ot,Ai],Ni=e=>Mi.find(ji(e));function Pi(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||Ce(e)}var Fi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ii(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(gt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Fi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Li=/\b([a-z-]*)\(.*?\)/gu,Ri={...V,getAnimatableNone:e=>{let t=e.match(Li);return t?t.map(Ii).join(` `):e}},zi={...V,getAnimatableNone:e=>{let t=V.parse(e);return V.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Bi={...ft,transform:Math.round},Vi={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,rotate:Dt,rotateX:Dt,rotateY:Dt,rotateZ:Dt,scale:mt,scaleX:mt,scaleY:mt,scaleZ:mt,skew:Dt,skewX:Dt,skewY:Dt,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:pt,originX:At,originY:At,originZ:z,zIndex:Bi,fillOpacity:pt,strokeOpacity:pt,numOctaves:Bi},Hi={...Vi,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:Ri,WebkitFilter:Ri,mask:zi,WebkitMask:zi},Ui=e=>Hi[e],Wi=new Set([Ri,zi]);function Gi(e,t){let n=Ui(e);return Wi.has(n)||(n=V),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Ki=new Set([`auto`,`none`,`0`]);function qi(e,t,n){let r=0,i;for(;r{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Yi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Xi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Zi(e){return Se(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Qi,cancel:$i}=et(queueMicrotask,!1),G={x:!1,y:!1};function ea(){return G.x||G.y}function ta(e){return e===`x`||e===`y`?G[e]?null:(G[e]=!0,()=>{G[e]=!1}):G.x||G.y?null:(G.x=G.y=!0,()=>{G.x=G.y=!1})}function na(e,t){let n=Yi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ra(e){return!(e.pointerType===`touch`||ea())}function ia(e,t,n={}){let[r,i,a]=na(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ra(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var aa=(e,t)=>t?e===t?!0:aa(e,t.parentElement):!1,oa=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,sa=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ca(e){return sa.has(e.tagName)||e.isContentEditable===!0}var la=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function ua(e){return la.has(e.tagName)||e.isContentEditable===!0}var da=new WeakSet;function fa(e){return t=>{t.key===`Enter`&&e(t)}}function pa(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var ma=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=fa(()=>{if(da.has(n))return;pa(n,`down`);let e=fa(()=>{pa(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>pa(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ha(e){return oa(e)&&!ea()}var ga=new WeakSet;function _a(e,t,n={}){let[r,i,a]=na(e,n),o=e=>{let r=e.currentTarget;if(!ha(e)||ga.has(e))return;da.add(r),n.stopPropagation&&ga.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),da.has(r)&&da.delete(r),ha(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||aa(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Zi(e)&&(e.addEventListener(`focus`,e=>ma(e,i)),!ca(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function va(e){return Se(e)&&`ownerSVGElement`in e}var ya=new WeakMap,ba,xa=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:va(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Sa=xa(`inline`,`width`,`offsetWidth`),Ca=xa(`block`,`height`,`offsetHeight`);function wa({target:e,borderBoxSize:t}){ya.get(e)?.forEach(n=>{n(e,{get width(){return Sa(e,t)},get height(){return Ca(e,t)}})})}function Ta(e){e.forEach(wa)}function Ea(){typeof ResizeObserver>`u`||(ba=new ResizeObserver(Ta))}function Da(e,t){ba||Ea();let n=Yi(e);return n.forEach(e=>{let n=ya.get(e);n||(n=new Set,ya.set(e,n)),n.add(t),ba?.observe(e)}),()=>{n.forEach(e=>{let n=ya.get(e);n?.delete(t),n?.size||ba?.unobserve(e)})}}var Oa=new Set,ka;function Aa(){ka=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Oa.forEach(t=>t(e))},window.addEventListener(`resize`,ka)}function ja(e){return Oa.add(e),ka||Aa(),()=>{Oa.delete(e),!Oa.size&&typeof ka==`function`&&(window.removeEventListener(`resize`,ka),ka=void 0)}}function Ma(e,t){return typeof e==`function`?ja(e):Da(e,t)}function Na(e){return va(e)&&e.tagName===`svg`}var Pa=[...Mi,B,V],Fa=e=>Pa.find(ji(e)),Ia=()=>({translate:0,scale:1,origin:0,originPoint:0}),La=()=>({x:Ia(),y:Ia()}),Ra=()=>({min:0,max:0}),K=()=>({x:Ra(),y:Ra()}),za=new WeakMap;function Ba(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Va(e){return typeof e==`string`||Array.isArray(e)}var Ha=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ua=[`initial`,...Ha];function Wa(e){return Ba(e.animate)||Ua.some(t=>Va(e[t]))}function Ga(e){return!!(Wa(e)||e.variants)}function Ka(e,t,n){for(let r in t){let i=t[r],a=n[r];if(W(i))e.addValue(r,i);else if(W(a))e.addValue(r,hi(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,hi(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var qa={current:null},Ja={current:!1},Ya=typeof window<`u`;function Xa(){if(Ja.current=!0,Ya)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>qa.current=e.matches;e.addEventListener(`change`,t),t()}else qa.current=!1}var Za=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Qa={};function $a(e){Qa=e}function eo(){return Qa}var to=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=gr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=L.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Ja.current||Xa(),this.shouldReduceMotion=qa.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&zr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new kr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:j(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=rr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&F.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Qa){let t=Qa[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=hi(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(xe(n)||Ce(n))?n=parseFloat(n):!Fa(n)&&V.test(t)&&(n=Gi(e,t)),this.setBaseTarget(e,W(n)?n.get():n)),W(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=ci(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!W(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Oe),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Qi.render(this.render)}},no=class extends to{constructor(){super(...arguments),this.KeyframeResolver=Ji}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;W(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},ro=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function io({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ao({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oo(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function so(e){return e===void 0||e===1}function co({scale:e,scaleX:t,scaleY:n}){return!so(e)||!so(t)||!so(n)}function lo(e){return co(e)||uo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function uo(e){return fo(e.x)||fo(e.y)}function fo(e){return e&&e!==`0%`}function po(e,t,n){return n+t*(e-n)}function mo(e,t,n,r,i){return i!==void 0&&(e=po(e,i,r)),po(e,n,r)+t}function ho(e,t=0,n=1,r,i){e.min=mo(e.min,t,n,r,i),e.max=mo(e.max,t,n,r,i)}function go(e,{x:t,y:n}){ho(e.x,t.translate,t.scale,t.originPoint),ho(e.y,n.translate,n.scale,n.originPoint)}var _o=.999999999999,vo=1.0000000000001;function yo(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s_o&&(t.x=1),t.y_o&&(t.y=1)}function q(e,t){e.min+=t,e.max+=t}function bo(e,t,n,r,i=.5){ho(e,t,n,H(e.min,e.max,i),r)}function xo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function So(e,t,n){let r=n??e;bo(e.x,xo(t.x,r.x),t.scaleX,t.scale,t.originX),bo(e.y,xo(t.y,r.y),t.scaleY,t.scale,t.originY)}function Co(e,t){return io(oo(e.getBoundingClientRect(),t))}function wo(e,t,n){let r=Co(e,n),{scroll:i}=t;return i&&(q(r.x,i.offset.x),q(r.y,i.offset.y)),r}var To={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Eo=nr.length;function Do(e,t,n){let r=``,i=!0;for(let a=0;a{if(!t.target)return e;if(typeof e==`string`)if(z.test(e))e=parseFloat(e);else return e;return`${Ao(e,t.target.x)}% ${Ao(e,t.target.y)}%`}},Mo={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=V.parse(e);if(i.length>5)return r;let a=V.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=H(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},No={borderRadius:{...jo,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:jo,borderTopRightRadius:jo,borderBottomLeftRadius:jo,borderBottomRightRadius:jo,boxShadow:Mo};function Po(e,{layout:t,layoutId:n}){return rr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!No[e]||e===`opacity`)}function Fo(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(W(r[t])||i&&W(i[t])||Po(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Io(e){return window.getComputedStyle(e)}var Lo=class extends no{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ko}readValueFromInstance(e,t){if(rr.has(t))return this.projection?.isProjecting?Qn(t):er(e,t);{let n=Io(e),r=(st(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Co(e,t)}build(e,t,n){Oo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Fo(e,t,n)}},Ro={offset:`stroke-dashoffset`,array:`stroke-dasharray`},zo={offset:`strokeDashoffset`,array:`strokeDasharray`};function Bo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ro:zo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Vo=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Ho(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Oo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Vo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Bo(d,i,a,o,!1)}var Uo=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Wo=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Go(e,t,n,r){ko(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Uo.has(n)?n:Si(n),t.attrs[n])}function Ko(e,t,n){let r=Fo(e,t,n);for(let n in e)if(W(e[n])||W(t[n])){let t=nr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var qo=class extends no{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(rr.has(t)){let e=Ui(t);return e&&e.default||0}return t=Uo.has(t)?t:Si(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Ko(e,t,n)}build(e,t,n){Ho(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Go(e,t,n,r)}mount(e){this.isSVGTag=Wo(e.tagName),super.mount(e)}},Jo=Ua.length;function Yo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Yo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;nPromise.all(t.map(({animation:t,options:n})=>ki(e,t,n)))}function es(e){let t=$o(e),n=rs(),r=!0,i=!1,a=t=>(n,r)=>{let i=li(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Yo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;tf&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=gi(t)&&gi(n)?!Xo(t,n):t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let T=v&&y;b&&(!T||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!T&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=li(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=qr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=li(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=rs(),i=!0}}}function ts(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Xo(t,e):!1}function ns(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rs(){return{animate:ns(!0),whileInView:ns(),whileHover:ns(),whileTap:ns(),whileDrag:ns(),whileFocus:ns(),exit:ns()}}function is(e,t){e.min=t.min,e.max=t.max}function J(e,t){is(e.x,t.x),is(e.y,t.y)}function as(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var os=1e-4,ss=1-os,cs=1+os,ls=.01,us=0-ls,ds=0+ls;function Y(e){return e.max-e.min}function fs(e,t,n){return Math.abs(e-t)<=n}function ps(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=Y(n)/Y(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ss&&e.scale<=cs||isNaN(e.scale))&&(e.scale=1),(e.translate>=us&&e.translate<=ds||isNaN(e.translate))&&(e.translate=0)}function ms(e,t,n,r){ps(e.x,t.x,n.x,r?r.originX:void 0),ps(e.y,t.y,n.y,r?r.originY:void 0)}function hs(e,t,n,r=0){e.min=(r?H(n.min,n.max,r):n.min)+t.min,e.max=e.min+Y(t)}function gs(e,t,n,r){hs(e.x,t.x,n.x,r?.x),hs(e.y,t.y,n.y,r?.y)}function _s(e,t,n,r=0){let i=r?H(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Y(t)}function vs(e,t,n,r){_s(e.x,t.x,n.x,r?.x),_s(e.y,t.y,n.y,r?.y)}function ys(e,t,n,r,i){return e-=t,e=po(e,1/n,r),i!==void 0&&(e=po(e,1/i,r)),e}function bs(e,t=0,n=1,r=.5,i,a=e,o=e){if(R.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=H(a.min,a.max,r);e===a&&(s-=t),e.min=ys(e.min,t,n,s,i),e.max=ys(e.max,t,n,s,i)}function xs(e,t,[n,r,i],a,o){bs(e,t[n],t[r],t[i],t.scale,a,o)}var Ss=[`x`,`scaleX`,`originX`],Cs=[`y`,`scaleY`,`originY`];function ws(e,t,n,r){xs(e.x,t,Ss,n?n.x:void 0,r?r.x:void 0),xs(e.y,t,Cs,n?n.y:void 0,r?r.y:void 0)}function Ts(e){return e.translate===0&&e.scale===1}function Es(e){return Ts(e.x)&&Ts(e.y)}function Ds(e,t){return e.min===t.min&&e.max===t.max}function Os(e,t){return Ds(e.x,t.x)&&Ds(e.y,t.y)}function ks(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function As(e,t){return ks(e.x,t.x)&&ks(e.y,t.y)}function js(e){return Y(e.x)/Y(e.y)}function Ms(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function X(e){return[e(`x`),e(`y`)]}function Ns(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Ps=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Fs=Ps.length,Is=e=>typeof e==`string`?parseFloat(e):e,Ls=e=>typeof e==`number`||z.test(e);function Rs(e,t,n,r,i,a){i?(e.opacity=H(0,n.opacity??1,Bs(r)),e.opacityExit=H(t.opacity??1,0,Vs(r))):a&&(e.opacity=H(t.opacity??1,n.opacity??1,r));for(let i=0;irt?1:n(De(e,t,r))}function Us(e,t,n){let r=W(e)?e:hi(e);return r.start(oi(``,r,t,n)),r.animation}function Ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Gs=(e,t)=>e.depth-t.depth,Ks=class{constructor(){this.children=[],this.isDirty=!1}add(e){ye(this.children,e),this.isDirty=!0}remove(e){be(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Gs),this.isDirty=!1,this.children.forEach(e)}};function qs(e,t){let n=L.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(tt(r),e(a-t))};return F.setup(r,!0),()=>tt(r)}function Js(e){return W(e)?e.get():e}var Ys=class{constructor(){this.members=[]}add(e){ye(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(be(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(be(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Xs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Zs={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Qs=[``,`X`,`Y`,`Z`],$s=1e3,ec=0;function tc(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=wi(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,F,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&nc(r)}function rc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=ec++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,P.value&&(Zs.nodes=Zs.calculatedTargetDeltas=Zs.calculatedProjections=0),this.nodes.forEach(oc),this.nodes.forEach(hc),this.nodes.forEach(gc),this.nodes.forEach(sc),P.addProjectionMetrics&&P.addProjectionMetrics(Zs)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;F.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=qs(i,250),Xs.hasAnimatedSinceResize&&(Xs.hasAnimatedSinceResize=!1,this.nodes.forEach(mc)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Cc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!As(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...ri(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||mc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_c),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&nc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Y(this.snapshot.measuredBox.x)&&!Y(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{let n=t/1e3;yc(a.x,e.x,n),yc(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vs(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),xc(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&Os(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=K(),J(d,this.relativeTarget)),s&&(this.animationValues=i,Rs(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(tt(this.pendingAnimation),void 0),this.pendingAnimation=F.update(()=>{Xs.hasAnimatedSinceResize=!0,at.layout++,this.motionValue||=hi(0),this.motionValue.jump(0,!1),this.currentAnimation=Us(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{at.layout--},onComplete:()=>{at.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($s),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Oc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||K();let t=Y(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Y(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}J(t,n),So(t,i),ms(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ys),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&tc(`z`,e,r,this.animationValues);for(let t=0;te.currentAnimation?.stop()),this.root.nodes.forEach(lc),this.root.sharedNodes.clear()}}}function ic(e){e.updateLayout()}function ac(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)X(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Y(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;is(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Oc(i,t.layoutBox,n)&&X(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Y(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=La();ms(o,n,t.layoutBox);let s=La();a?ms(s,e.applyTransform(r,!0),t.measuredBox):ms(s,n,t.layoutBox);let c=!Es(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=K();vs(s,t.layoutBox,i.layoutBox,o);let c=K();vs(c,n,a.layoutBox,o),As(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function oc(e){P.value&&Zs.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function sc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cc(e){e.clearSnapshot()}function lc(e){e.clearMeasurements()}function uc(e){e.isLayoutDirty=!0,e.updateLayout()}function dc(e){e.isLayoutDirty=!1}function fc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function pc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function mc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hc(e){e.resolveTargetDelta()}function gc(e){e.calcProjection()}function _c(e){e.resetSkewAndRotation()}function vc(e){e.removeLeadSnapshot()}function yc(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bc(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function xc(e,t,n,r){bc(e.x,t.x,n.x,r),bc(e.y,t.y,n.y,r)}function Sc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Cc={duration:.45,ease:[.4,0,.1,1]},wc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Tc=wc(`applewebkit/`)&&!wc(`chrome/`)?Math.round:A;function Ec(e){e.min=Tc(e.min),e.max=Tc(e.max)}function Dc(e){Ec(e.x),Ec(e.y)}function Oc(e,t,n){return e===`position`||e===`preserve-aspect`&&!fs(js(t),js(n),.2)}function kc(e){return e!==e.root&&e.scroll?.wasRoot}var Ac=rc({attachResizeListener:(e,t)=>Ws(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),jc={current:void 0},Mc=rc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jc.current){let e=new Ac({});e.mount(window),e.setOptions({layoutScroll:!0}),jc.current=e}return jc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Nc=(0,D.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Pc(e=!0){let t=(0,D.useContext)(ve);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,D.useId)();(0,D.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,D.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Fc=(0,D.createContext)({strict:!1}),Ic={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Lc=!1;function Rc(){if(Lc)return;let e={};for(let t in Ic)e[t]={isEnabled:e=>Ic[t].some(t=>!!e[t])};$a(e),Lc=!0}function zc(){return Rc(),eo()}function Bc(e){let t=zc();for(let n in e)t[n]={...t[n],...e[n]};$a(t)}var Vc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Hc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Vc.has(e)}var Uc=re({default:()=>Wc}),Wc,Gc=w((()=>{throw Wc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Kc=e=>!Hc(e);function qc(e){typeof e==`function`&&(Kc=t=>t.startsWith(`on`)?!Hc(t):e(t))}try{qc((Gc(),g(Uc)).default)}catch{}function Jc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||W(e[i])||(Kc(i)||n===!0&&Hc(i)||!t&&!Hc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var Yc=(0,D.createContext)({});function Xc(e,t){if(Wa(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Va(t)?t:void 0,animate:Va(n)?n:void 0}}return e.inherit===!1?{}:t}function Zc(e){let{initial:t,animate:n}=Xc(e,(0,D.useContext)(Yc));return(0,D.useMemo)(()=>({initial:t,animate:n}),[Qc(t),Qc(n)])}function Qc(e){return Array.isArray(e)?e.join(` `):e}var $c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function el(e,t,n){for(let r in t)!W(t[r])&&!Po(r,n)&&(e[r]=t[r])}function tl({transformTemplate:e},t){return(0,D.useMemo)(()=>{let n=$c();return Oo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function nl(e,t){let n=e.style||{},r={};return el(r,n,e),Object.assign(r,tl(e,t)),r}function rl(e,t){let n={},r=nl(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var il=()=>({...$c(),attrs:{}});function al(e,t,n,r){let i=(0,D.useMemo)(()=>{let n=il();return Ho(n,t,Wo(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};el(t,e.style,e),i.style={...t,...i.style}}return i}var ol=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function sl(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(ol.indexOf(e)>-1||/[A-Z]/u.test(e))}function cl(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??sl(e)?al:rl)(t,r,i,e),c=Jc(t,typeof e==`string`,a),l=e===D.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,D.useMemo)(()=>W(u)?u.get():u,[u]);return(0,D.createElement)(e,{...l,children:d})}function ll({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:ul(n,r,i,e),renderState:t()}}function ul(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Js(a[e]);let{initial:o,animate:s}=e,c=Wa(e),l=Ga(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Ba(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n(t,n)=>{let r=(0,D.useContext)(Yc),i=(0,D.useContext)(ve),a=()=>ll(e,t,r,i);return n?a():ge(a)},fl=dl({scrapeMotionValuesFromProps:Fo,createRenderState:$c}),pl=dl({scrapeMotionValuesFromProps:Ko,createRenderState:il}),ml=Symbol.for(`motionComponentSymbol`);function hl(e,t,n){let r=(0,D.useRef)(n);(0,D.useInsertionEffect)(()=>{r.current=n});let i=(0,D.useRef)(null);return(0,D.useCallback)(n=>{n&&e.onMount?.(n);let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var gl=(0,D.createContext)({});function _l(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function vl(e,t,n,r,i,a){let{visualElement:o}=(0,D.useContext)(Yc),s=(0,D.useContext)(Fc),c=(0,D.useContext)(ve),l=(0,D.useContext)(Nc),u=l.reducedMotion,d=l.skipAnimations,f=(0,D.useRef)(null),p=(0,D.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,D.useContext)(gl);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&yl(f.current,n,i,h);let g=(0,D.useRef)(!1);(0,D.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Ci],v=(0,D.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return _e(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,D.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function yl(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:bl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&_l(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function bl(e){if(e)return e.options.allowProjection===!1?bl(e.parent):e.projection}function xl(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Bc(r);let a=n?n===`svg`:sl(e),o=a?pl:fl;function s(n,s){let c,l={...(0,D.useContext)(Nc),...n,layoutId:Sl(n)},{isStatic:u}=l,d=Zc(n),f=o(n,u);if(!u&&typeof window<`u`){Cl(l,r);let t=wl(l);c=t.MeasureLayout,d.visualElement=vl(e,f,l,i,t.ProjectionNode,a)}return(0,E.jsxs)(Yc.Provider,{value:d,children:[c&&d.visualElement?(0,E.jsx)(c,{visualElement:d.visualElement,...l}):null,cl(e,n,hl(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,D.forwardRef)(s);return c[ml]=e,c}function Sl({layoutId:e}){let t=(0,D.useContext)(he).id;return t&&e!==void 0?t+`-`+e:e}function Cl(e,t){(0,D.useContext)(Fc).strict}function wl(e){let{drag:t,layout:n}=zc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Tl(e,t){if(typeof Proxy>`u`)return xl;let n=new Map,r=(n,r)=>xl(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,xl(a,void 0,e,t)),n.get(a))})}var El=(e,t)=>t.isSVG??sl(e)?new qo(t):new Lo(t,{allowProjection:e!==D.Fragment}),Dl=class extends ro{constructor(e){super(e),e.animationState||=es(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ba(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Ol=0,kl={animation:{Feature:Dl},exit:{Feature:class extends ro{constructor(){super(...arguments),this.id=Ol++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`){let n=li(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Al(e){return{point:{x:e.pageX,y:e.pageY}}}var jl=e=>t=>oa(t)&&e(t,Al(t));function Ml(e,t,n,r){return Ws(e,t,jl(n),r)}var Nl=({current:e})=>e?e.ownerDocument.defaultView:null,Pl=(e,t)=>Math.abs(e-t);function Fl(e,t){let n=Pl(e.x,t.x),r=Pl(e.y,t.y);return Math.sqrt(n**2+r**2)}var Il=new Set([`auto`,`scroll`]),Ll=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Rl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Bl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Fl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=I;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Rl(t,this.transformPagePoint),F.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Bl(e.type===`pointercancel`?this.lastMoveEventInfo:Rl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!oa(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Rl(Al(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=I;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Bl(s,this.history)),this.removeListeners=Ee(Ml(this.contextWindow,`pointermove`,this.handlePointerMove),Ml(this.contextWindow,`pointerup`,this.handlePointerUp),Ml(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Il.has(e.overflowX)||Il.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),F.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tt(this.updatePoint)}};function Rl(e,t){return t?{point:t(e.point)}:e}function zl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Bl({point:e},t){return{point:e,delta:zl(e,Hl(t)),offset:zl(e,Vl(t)),velocity:Ul(t,.1)}}function Vl(e){return e[0]}function Hl(e){return e[e.length-1]}function Ul(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Hl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>j(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>j(t)*2&&(r=e[1]);let a=M(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Wl(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function Gl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Kl(e,{top:t,left:n,bottom:r,right:i}){return{x:Gl(e.x,n,i),y:Gl(e.y,t,r)}}function ql(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=De(t.min,t.max-r,e.min):r>i&&(n=De(e.min,e.max-i,t.min)),O(0,1,n)}function Xl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Zl=.35;function Ql(e=Zl){return e===!1?e=0:e===!0&&(e=Zl),{x:$l(e,`left`,`right`),y:$l(e,`top`,`bottom`)}}function $l(e,t,n){return{min:eu(e,t),max:eu(e,n)}}function eu(e,t){return typeof e==`number`?e:e[t]||0}var tu=new WeakMap,nu=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Al(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ta(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),X(e=>{let t=this.getAxisMotionValue(e).get()||0;if(R.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Y(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&F.update(()=>i(e,t),!1,!0),xi(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=ou(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&F.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Ll(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Nl(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&F.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!au(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Wl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&_l(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Kl(n.layoutBox,e):this.constraints=!1,this.elastic=Ql(t),r!==this.constraints&&!_l(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&X(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Xl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!_l(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=wo(n,r.root,this.visualElement.getTransformPagePoint()),a=Jl(r.layout.layoutBox,i);if(t){let e=t(ao(a));this.hasMutatedConstraints=!!e,e&&(a=io(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=X(o=>{if(!au(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return xi(this.visualElement,e),n.start(oi(e,n,0,t,this.visualElement,!1))}stopAnimation(){X(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){X(t=>{let{drag:n}=this.getProps();if(!au(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-H(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!_l(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};X(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Yl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),X(t=>{if(!au(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(H(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;tu.set(this.visualElement,this);let e=this.visualElement.current,t=Ml(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&ua(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();_l(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=iu(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),F.read(r);let o=Ws(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(X(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Zl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ru(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function iu(e,t,n){let r=Ma(e,ru(n)),i=Ma(t,ru(n));return()=>{r(),i()}}function au(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ou(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var su=class extends ro{constructor(e){super(e),this.removeGroupControls=A,this.removeListeners=A,this.controls=new nu(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},cu=e=>(t,n)=>{e&&F.update(()=>e(t,n),!1,!0)},lu=class extends ro{constructor(){super(...arguments),this.removePointerDownListener=A}onPointerDown(e){this.session=new Ll(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nl(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:cu(e),onStart:cu(t),onMove:cu(n),onEnd:(e,t)=>{delete this.session,r&&F.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Ml(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},uu=!1,du=class extends D.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),uu&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Xs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),uu=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||F.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Qi.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;uu=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function fu(e){let[t,n]=Pc(),r=(0,D.useContext)(he);return(0,E.jsx)(du,{...e,layoutGroup:r,switchLayoutGroup:(0,D.useContext)(gl),isPresent:t,safeToRemove:n})}var pu={pan:{Feature:lu},drag:{Feature:su,ProjectionNode:Mc,MeasureLayout:fu}};function mu(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&F.postRender(()=>i(t,Al(t)))}var hu=class extends ro{mount(){let{current:e}=this.node;e&&(this.unmount=ia(e,(e,t)=>(mu(this.node,t,`Start`),e=>mu(this.node,e,`End`))))}unmount(){}},gu=class extends ro{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Ee(Ws(this.node.current,`focus`,()=>this.onFocus()),Ws(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function _u(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&F.postRender(()=>i(t,Al(t)))}var vu=class extends ro{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=_a(e,(e,t)=>(_u(this.node,t,`Start`),(e,{success:t})=>_u(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},yu=new WeakMap,bu=new WeakMap,xu=e=>{let t=yu.get(e.target);t&&t(e)},Su=e=>{e.forEach(xu)};function Cu({root:e,...t}){let n=e||document;bu.has(n)||bu.set(n,{});let r=bu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Su,{root:e,...t})),r[i]}function wu(e,t,n){let r=Cu(t);return yu.set(e,n),r.observe(e),()=>{yu.delete(e),r.unobserve(e)}}var Tu={some:0,all:1},Eu=class extends ro{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Tu[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=wu(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Du(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Du({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Ou={inView:{Feature:Eu},tap:{Feature:vu},focus:{Feature:gu},hover:{Feature:hu}},ku={layout:{ProjectionNode:Mc,MeasureLayout:fu}},Au=Tl({...kl,...Ou,...pu,...ku},El),Z=te(),ju=[{href:`#`,label:`Features`},{href:`#`,label:`Blog`},{href:`#`,label:`About`},{href:`#`,label:`Contact`},{href:`#`,label:`Licence`},{href:`#`,label:`Privacy`}],Mu=[{href:`#`,label:`X`,icon:(0,E.jsx)(Iu,{})},{href:`#`,label:`Github`,icon:(0,E.jsx)(t,{})}];function Nu(){let e=(0,Z.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,E.jsx)(`div`,{className:`relative`,children:(0,E.jsx)(`div`,{className:`relative mx-5 h-5`,children:(0,E.jsx)(ue,{className:`absolute inset-0 h-full w-full border-y border-border/75 stroke-border/75`})})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=C(),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,E.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,E.jsx)(m,{prefetch:!0,href:n,children:(0,E.jsxs)(`span`,{className:`flex items-center gap-2 text-lg`,children:[(0,E.jsx)(`span`,{className:`flex size-8 items-center justify-center rounded-md bg-foreground text-background`,children:`ui`}),(0,E.jsx)(`span`,{children:`designbycode`})]})})}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,E.jsxs)(`div`,{className:`flex items-center justify-between`,children:[r,(0,E.jsx)(`div`,{className:`flex items-center`,children:Mu.map(Fu)})]}),e[3]=i):i=e[3];let a;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,E.jsx)(oe,{children:(0,E.jsxs)(`div`,{className:`flex flex-col gap-6 py-6`,children:[i,(0,E.jsx)(`nav`,{children:(0,E.jsx)(`ul`,{className:`flex flex-wrap gap-4 text-sm font-medium text-muted-foreground md:gap-6`,children:ju.map(Pu)})})]})}),e[4]=a):a=e[4];let o;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,E.jsx)(`div`,{className:`relative`,children:(0,E.jsx)(`div`,{className:`relative mx-5 h-5`,children:(0,E.jsx)(ue,{className:`absolute inset-0 h-full w-full border-y border-border/75 stroke-border/75`})})}),e[5]=o):o=e[5];let s;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,E.jsxs)(`p`,{children:[`© `,new Date().getFullYear(),` ui.designbycode`]}),e[6]=s):s=e[6];let c;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,E.jsxs)(`footer`,{className:`mt-6`,children:[t,a,o,(0,E.jsx)(oe,{children:(0,E.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-6 text-sm text-muted-foreground`,children:[s,(0,E.jsxs)(`p`,{className:`inline-flex items-center gap-1`,children:[(0,E.jsx)(`span`,{children:`Built by`}),(0,E.jsx)(`a`,{"aria-label":`x/twitter`,className:`inline-flex items-center gap-1 text-foreground/80 hover:text-foreground hover:underline`,href:`https://designbycode.co.za`,rel:`noreferrer`,target:`_blank`,children:`designbycode`})]})]})})]}),e[7]=c):c=e[7],c}function Pu(e){return(0,E.jsx)(`li`,{children:(0,E.jsx)(`a`,{className:`hover:text-foreground`,href:e.href,children:e.label})},e.label)}function Fu(e){let{href:t,label:n,icon:r}=e;return(0,E.jsx)(u,{asChild:!0,size:`icon`,variant:`ghost`,children:(0,E.jsx)(`a`,{"aria-label":n,href:t,children:r})},n)}function Iu(e){let t=(0,Z.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,E.jsx)(`path`,{d:`m18.9,1.153h3.682l-8.042,9.189,9.46,12.506h-7.405l-5.804-7.583-6.634,7.583H.469l8.6-9.831L0,1.153h7.593l5.241,6.931,6.065-6.931Zm-1.293,19.494h2.039L6.482,3.239h-2.19l13.314,17.408Z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,E.jsx)(`svg`,{fill:`currentColor`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:n}),t[1]=e,t[2]=r),r}Nu.displayName=`MainFooter`;var Lu=[{value:`light`,icon:r,label:`Light`},{value:`dark`,icon:n,label:`Dark`}];function Ru(e){let t=(0,Z.c)(23),n,r;t[0]===e?(n=t[1],r=t[2]):({className:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?``:r,{appearance:a,updateAppearance:s}=o(),c,d,f;t[3]===a?(c=t[4],d=t[5],f=t[6]):(c=Lu.find(e=>e.value===a)??Lu[0],f=Lu,d=Lu.indexOf(c),t[3]=a,t[4]=c,t[5]=d,t[6]=f);let p=f[(d+1)%Lu.length],m;t[7]!==p.value||t[8]!==s?(m=()=>s(p.value),t[7]=p.value,t[8]=s,t[9]=m):m=t[9];let h=`Switch to ${p.label} mode`,g;t[10]===i?g=t[11]:(g=l(``,i),t[10]=i,t[11]=g);let _;t[12]===c.icon?_=t[13]:(_=(0,E.jsx)(c.icon,{className:`h-4 w-4`}),t[12]=c.icon,t[13]=_);let v;t[14]===c.label?v=t[15]:(v=(0,E.jsx)(`span`,{"aria-label":c.label,className:`sr-only`,children:c.label}),t[14]=c.label,t[15]=v);let y;return t[16]!==n||t[17]!==m||t[18]!==h||t[19]!==g||t[20]!==_||t[21]!==v?(y=(0,E.jsxs)(u,{onClick:m,"aria-label":h,size:`icon`,...n,className:g,children:[_,v]}),t[16]=n,t[17]=m,t[18]=h,t[19]=g,t[20]=_,t[21]=v,t[22]=y):y=t[22],y}Ru.displayName=`AppearanceToggle`;function zu(e){let t=(0,Z.c)(7),{navLinks:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,E.jsx)(ae,{asChild:!0,children:(0,E.jsx)(u,{variant:`ghost`,size:`icon`,"aria-label":`Open navigation menu`,children:(0,E.jsx)(de,{className:`size-5`})})}),t[0]=r):r=t[0];let i,a;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,E.jsx)(ue,{className:`absolute inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),a=(0,E.jsx)(ie,{className:`sr-only`,children:`Navigation menu`}),t[1]=i,t[2]=a):(i=t[1],a=t[2]);let o;t[3]===n?o=t[4]:(o=n.map(Bu),t[3]=n,t[4]=o);let s;return t[5]===o?s=t[6]:(s=(0,E.jsx)(`div`,{className:`md:hidden`,children:(0,E.jsxs)(x,{children:[r,(0,E.jsxs)(y,{side:`right`,children:[i,a,(0,E.jsx)(`div`,{className:`mt-8 flex flex-col space-y-1 px-4`,children:o})]})]})}),t[5]=o,t[6]=s),s}function Bu(e){return(0,E.jsx)(m,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:e.href,children:e.label},e.label)}zu.displayName=`MainMobileNavigation`;function Vu(e){let t=(0,Z.c)(12),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{enabled:r,offset:i,tolerance:a,scroller:o}=n,s=r===void 0?!0:r,c=i===void 0?0:i,l=a===void 0?0:a,u=o===void 0?null:o,d=(0,D.useRef)(null),[f,p]=(0,D.useState)(Hu),m;t[2]===l?m=t[3]:(m=()=>typeof l==`number`?{up:l,down:l}:l,t[2]=l,t[3]=m);let h=m,g,_;t[4]!==s||t[5]!==h||t[6]!==c||t[7]!==u?(g=()=>{if(!s)return;let e=u??window,t=()=>e instanceof Element?e.scrollTop:window.scrollY??window.pageYOffset,n=()=>e instanceof Element?e.scrollHeight:document.documentElement.scrollHeight,r=()=>e instanceof Element?e.clientHeight:window.innerHeight,i=t(),a=!1,o=()=>{let e=t(),o=n(),s=r(),l=h(),u=e<=c,d=e+s>=o-1,f=e-i,m=f>0,g=f<0;p(e=>{let t=e.pinned;return u?t=!0:m&&Math.abs(f)>=l.down?t=!1:g&&Math.abs(f)>=l.up&&(t=!0),{pinned:t,unpinned:!t,top:u,notTop:!u,bottom:d,notBottom:!d}}),i=e,a=!1},l=()=>{a||=(requestAnimationFrame(o),!0)};return e.addEventListener(`scroll`,l,{passive:!0}),o(),()=>{e.removeEventListener(`scroll`,l)}},_=[s,c,h,u],t[4]=s,t[5]=h,t[6]=c,t[7]=u,t[8]=g,t[9]=_):(g=t[8],_=t[9]),(0,D.useEffect)(g,_);let v;return t[10]===f?v=t[11]:(v={ref:d,...f},t[10]=f,t[11]=v),v}function Hu(){return{pinned:!0,unpinned:!1,top:!0,notTop:!1,bottom:!1,notBottom:!0}}var Q=e=>({url:Q.url(e),method:`get`});Q.definition={methods:[`get`,`head`],url:`/animate-css`},Q.url=e=>Q.definition.url+_(e),Q.get=e=>({url:Q.url(e),method:`get`}),Q.head=e=>({url:Q.url(e),method:`head`});var Uu=e=>({action:Q.url(e),method:`get`});Uu.get=e=>({action:Q.url(e),method:`get`}),Uu.head=e=>({action:Q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),Q.form=Uu,Object.assign(Q,Q);var $=e=>({url:$.url(e),method:`get`});$.definition={methods:[`get`,`head`],url:`/fonts`},$.url=e=>$.definition.url+_(e),$.get=e=>({url:$.url(e),method:`get`}),$.head=e=>({url:$.url(e),method:`head`});var Wu=e=>({action:$.url(e),method:`get`});Wu.get=e=>({action:$.url(e),method:`get`}),Wu.head=e=>({action:$.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),$.form=Wu,Object.assign($,$);var Gu=b(S(),1);function Ku(e,t){let n=(0,Z.c)(4),[r,i]=(0,D.useState)(e),a,o;return n[0]!==t||n[1]!==e?(a=()=>{let n=setTimeout(()=>i(e),t);return()=>clearTimeout(n)},o=[e,t],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,D.useEffect)(a,o),r}function qu(t){let n=(0,Z.c)(21),{theme:r,onSelect:i,selected:a,compact:o,className:s}=t,c=a===void 0?!1:a,u=o===void 0?!1:o,{cssVars:d}=ce(r),f;n[0]!==i||n[1]!==r?(f=()=>i?.(r),n[0]=i,n[1]=r,n[2]=f):f=n[2];let p=u?`gap-2 px-4 py-2`:`gap-4 p-4`,m=c&&`border-primary ring-1 ring-primary`,h;n[3]!==s||n[4]!==p||n[5]!==m?(h=l(`flex w-full items-center justify-between overflow-clip rounded-md border border-border bg-background text-left transition-colors hover:bg-accent`,p,m,s),n[3]=s,n[4]=p,n[5]=m,n[6]=h):h=n[6];let g;n[7]===c?g=n[8]:(g=c&&(0,E.jsx)(Au.div,{animate:{x:-5},transition:{type:`spring`,stiffness:100},initial:{x:-50},children:(0,E.jsx)(e,{className:`size-4 rounded-full bg-primary p-1 text-primary-foreground`})}),n[7]=c,n[8]=g);let _=r?.title||`Theme`,v=u?void 0:r?.name,y;n[9]!==_||n[10]!==v?(y=(0,E.jsx)(T,{as:`h4`,variant:`small`,title:_,description:v}),n[9]=_,n[10]=v,n[11]=y):y=n[11];let b;n[12]!==y||n[13]!==g?(b=(0,E.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center space-x-1`,children:[g,y]}),n[12]=y,n[13]=g,n[14]=b):b=n[14];let x;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,E.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5 rounded-md border border-border p-1.5`,children:[(0,E.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-primary`}),(0,E.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-secondary`}),(0,E.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-accent`}),(0,E.jsx)(`div`,{className:`size-4 rounded-sm border border-border bg-muted`})]}),n[15]=x):x=n[15];let S;return n[16]!==d||n[17]!==b||n[18]!==f||n[19]!==h?(S=(0,E.jsxs)(`button`,{type:`button`,onClick:f,style:d,className:h,children:[b,x]}),n[16]=d,n[17]=b,n[18]=f,n[19]=h,n[20]=S):S=n[20],S}qu.displayName=`MainThemeList`;function Ju(){let t=(0,Z.c)(64),{themeName:n}=f(),[r,a]=(0,D.useState)(!1),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],t[0]=o):o=t[0];let[l,d]=(0,D.useState)(o),[m,g]=(0,D.useState)(1),[_,b]=(0,D.useState)(!0),[S,C]=(0,D.useState)(!1),[w,ee]=(0,D.useState)(``),te=Ku(w,300),[T,ne]=(0,D.useState)(``),re=(0,D.useRef)(null),oe=(0,D.useRef)(null),se;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(se=(e,t,n)=>{C(!0);let r=new URLSearchParams;r.set(`page`,String(e)),t&&r.set(`search`,t),fetch(`/api/themes?${r}`).then(Zu).then(r=>{d(e=>n?[...e,...r.data]:r.data),b(t?!1:r.current_page{C(!1)})},t[1]=se):se=t[1];let ce=se,[le,de]=(0,D.useState)(!1);r!==le&&(de(r),r||(ee(``),ne(``),d([]),g(1),b(!0)));let he,ge;t[2]===r?(he=t[3],ge=t[4]):(he=()=>{r&&ce(1,``,!1)},ge=[r,ce],t[2]=r,t[3]=he,t[4]=ge),(0,D.useEffect)(he,ge);let _e,ve;t[5]!==T||t[6]!==te||t[7]!==r?(_e=()=>{r&&te!==T&&((0,Gu.flushSync)(()=>{ne(te),d([])}),requestAnimationFrame(()=>{ce(1,te,!1)}))},ve=[r,te,T,ce],t[5]=T,t[6]=te,t[7]=r,t[8]=_e,t[9]=ve):(_e=t[8],ve=t[9]),(0,D.useEffect)(_e,ve);let ye,be;t[10]!==T||t[11]!==_||t[12]!==S||t[13]!==r||t[14]!==m?(ye=()=>{if(!r)return;let e=re.current,t=oe.current;if(!e||!t)return;let n=new IntersectionObserver(e=>{e[0].isIntersecting&&_&&!S&&!T&&ce(m+1,T,!0)},{root:t,rootMargin:`400px`});return n.observe(e),()=>n.disconnect()},be=[r,_,S,m,T,ce],t[10]=T,t[11]=_,t[12]=S,t[13]=r,t[14]=m,t[15]=ye,t[16]=be):(ye=t[15],be=t[16]),(0,D.useEffect)(ye,be);let O;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,E.jsx)(ae,{asChild:!0,children:(0,E.jsx)(u,{variant:`ghost`,size:`icon`,children:(0,E.jsx)(fe,{className:`size-4`})})}),t[17]=O):O=t[17];let k;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,E.jsx)(ue,{className:`absolute inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),t[18]=k):k=t[18];let xe;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(xe=(0,E.jsxs)(h,{className:`px-4 pt-4 pb-2`,children:[(0,E.jsx)(ie,{children:`Theme Color`}),(0,E.jsx)(v,{children:`Choose a color theme for the interface`})]}),t[19]=xe):xe=t[19];let Se;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,E.jsx)(me,{className:`absolute top-0 left-7 size-4 translate-y-2.5 text-muted-foreground`}),t[20]=Se):Se=t[20];let Ce;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=e=>ee(e.target.value),t[21]=Ce):Ce=t[21];let we,A;t[22]===w?(we=t[23],A=t[24]):(we=(0,E.jsx)(i,{value:w,onChange:Ce,placeholder:`Search themes...`,className:`pr-8 pl-9`}),A=w&&(0,E.jsx)(`button`,{onClick:()=>ee(``),className:`absolute top-0 right-7 translate-y-2.5 text-muted-foreground hover:text-foreground`,children:(0,E.jsx)(s,{className:`size-4`})}),t[22]=w,t[23]=we,t[24]=A);let Te;t[25]!==we||t[26]!==A?(Te=(0,E.jsxs)(`div`,{className:`relative border-b border-border px-4 pb-3`,children:[Se,we,A]}),t[25]=we,t[26]=A,t[27]=Te):Te=t[27];let Ee=`flex w-full items-center justify-between gap-2 rounded-md border p-2 text-left transition-colors hover:bg-accent ${n?`border-border bg-background`:`border-primary ring-1 ring-primary`}`,De;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,E.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,E.jsx)(`div`,{className:`flex size-8 items-center justify-center rounded-md border border-border bg-background`,children:(0,E.jsx)(pe,{className:`size-4 text-muted-foreground`})}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`p`,{className:`text-sm font-medium`,children:`Default theme`}),(0,E.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Reset to default colors`})]})]}),t[28]=De):De=t[28];let Oe;t[29]===n?Oe=t[30]:(Oe=!n&&(0,E.jsx)(`div`,{className:`flex size-4 items-center justify-center rounded-full bg-primary text-primary-foreground`,children:(0,E.jsx)(e,{className:`size-3`})}),t[29]=n,t[30]=Oe);let j;t[31]!==Ee||t[32]!==Oe?(j=(0,E.jsxs)(`button`,{type:`button`,onClick:c,className:Ee,children:[De,Oe]}),t[31]=Ee,t[32]=Oe,t[33]=j):j=t[33];let M;if(t[34]!==n||t[35]!==l){let e;t[37]===n?e=t[38]:(e=e=>(0,E.jsx)(qu,{theme:e,className:`mb-2`,compact:!0,selected:e.name===n,onSelect:p},e.name),t[37]=n,t[38]=e),M=l.map(e),t[34]=n,t[35]=l,t[36]=M}else M=t[36];let ke;t[39]===S?ke=t[40]:(ke=S&&(0,E.jsx)(`div`,{className:`space-y-2`,children:Array.from({length:3}).map(Yu)}),t[39]=S,t[40]=ke);let Ae;t[41]!==_||t[42]!==S?(Ae=_&&!S&&(0,E.jsx)(`div`,{ref:re,className:`h-4`}),t[41]=_,t[42]=S,t[43]=Ae):Ae=t[43];let je;t[44]!==T||t[45]!==_||t[46]!==l.length?(je=!_&&l.length>0&&(0,E.jsx)(`p`,{className:`py-4 text-center text-xs text-muted-foreground`,children:T?`Search results`:`All themes loaded`}),t[44]=T,t[45]=_,t[46]=l.length,t[47]=je):je=t[47];let Me;t[48]!==S||t[49]!==l.length?(Me=!S&&l.length===0&&(0,E.jsx)(`p`,{className:`py-8 text-center text-sm text-muted-foreground`,children:`No themes found`}),t[48]=S,t[49]=l.length,t[50]=Me):Me=t[50];let Ne;t[51]!==j||t[52]!==M||t[53]!==ke||t[54]!==Ae||t[55]!==je||t[56]!==Me?(Ne=(0,E.jsx)(`div`,{ref:oe,className:`flex-1 overflow-y-auto px-4 py-3`,children:(0,E.jsxs)(`div`,{className:`space-y-2`,children:[j,M,ke,Ae,je,Me]})}),t[51]=j,t[52]=M,t[53]=ke,t[54]=Ae,t[55]=je,t[56]=Me,t[57]=Ne):Ne=t[57];let N;t[58]!==Te||t[59]!==Ne?(N=(0,E.jsxs)(y,{className:`flex flex-col gap-0 pl-5`,children:[k,xe,Te,Ne]}),t[58]=Te,t[59]=Ne,t[60]=N):N=t[60];let Pe;return t[61]!==r||t[62]!==N?(Pe=(0,E.jsxs)(x,{open:r,onOpenChange:a,children:[O,N]}),t[61]=r,t[62]=N,t[63]=Pe):Pe=t[63],Pe}function Yu(e,t){return(0,E.jsx)(`div`,{className:`h-14 animate-pulse rounded-md bg-muted`},t)}function Xu(e){console.error(`Failed to fetch themes:`,e)}function Zu(e){return e.json()}Ju.displayName=`ThemeSwitcher`;function Qu(){let e=(0,Z.c)(19),t=!ee(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={down:5,up:5},e[0]=n):n=e[0];let r;e[1]===t?r=e[2]:(r={enabled:t,offset:16,tolerance:n},e[1]=t,e[2]=r);let{ref:i,pinned:a}=Vu(r),o;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o={label:`Home`,href:C()},e[3]=o):o=e[3];let s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s={label:`Themes`,href:se()},e[4]=s):s=e[4];let c;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(c={label:`Animate CSS`,href:Q()},e[5]=c):c=e[5];let u;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(u={label:`Fonts`,href:$()},e[6]=u):u=e[6];let d;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(d={label:`Components`,href:C()},e[7]=d):d=e[7];let f;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(f=[o,s,c,u,d,{label:`Blocks`,href:C()}],e[8]=f):f=e[8];let p=f,h=a?`translate-y-0`:`-translate-y-full`,g;e[9]===h?g=e[10]:(g=l(`fixed inset-x-0 top-0 isolate z-50 flex min-h-16 items-center border-b! border-solid! border-border/50! bg-background/50 text-foreground backdrop-blur transition-transform duration-700`,h),e[9]=h,e[10]=g);let _;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,E.jsxs)(m,{prefetch:`hover`,className:`text-semibold flex items-center space-x-1 text-lg`,href:C(),children:[(0,E.jsx)(`span`,{className:`grid size-7 place-items-center rounded-sm bg-foreground text-background`,children:`ui`}),(0,E.jsx)(`span`,{children:`designbycode`})]}),e[11]=_):_=e[11];let v;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,E.jsx)(`div`,{className:`hidden space-x-4 text-sm md:flex`,children:p.map($u)}),e[12]=v):v=e[12];let y,b;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,E.jsx)(Ru,{}),b=(0,E.jsx)(Ju,{}),e[13]=y,e[14]=b):(y=e[13],b=e[14]);let x;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,E.jsxs)(oe,{className:`flex justify-between`,children:[_,v,(0,E.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[y,b,(0,E.jsx)(zu,{navLinks:p})]})]}),e[15]=x):x=e[15];let S;return e[16]!==i||e[17]!==g?(S=(0,E.jsx)(`div`,{ref:i,suppressHydrationWarning:!0,className:g,children:x}),e[16]=i,e[17]=g,e[18]=S):S=e[18],S}function $u(e){return(0,E.jsx)(m,{prefetch:`hover`,className:`rounded-md px-4 py-2 hover:bg-muted`,href:e.href,children:e.label},e.label)}Qu.displayName=`MainNavigation`;function ed(e){let t=(0,Z.c)(8),{children:n}=e,r,i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,E.jsx)(ue,{className:`fixed inset-y-0 left-0 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),i=(0,E.jsx)(ue,{className:`fixed inset-y-0 right-0 h-full w-2 border-l border-border/75 stroke-border/75 md:w-5`}),a=(0,E.jsx)(Qu,{}),t[0]=r,t[1]=i,t[2]=a):(r=t[0],i=t[1],a=t[2]);let o;t[3]===n?o=t[4]:(o=(0,E.jsx)(`div`,{className:`flex-1`,children:n}),t[3]=n,t[4]=o);let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,E.jsx)(Nu,{}),t[5]=s):s=t[5];let c;return t[6]===o?c=t[7]:(c=(0,E.jsx)(le,{className:`relative`,children:(0,E.jsxs)(`div`,{className:`flex min-h-screen flex-col py-16`,children:[r,i,a,o,s]})}),t[6]=o,t[7]=c),c}ed.displayName=`MainLayout`;export{_e as a,de as c,F as i,Ku as n,he as o,Au as r,me as s,ed as t}; \ No newline at end of file diff --git a/public/build/assets/main-registry-installer-CWpQAmy4.js b/public/build/assets/main-registry-installer-_-xwUN0S.js similarity index 97% rename from public/build/assets/main-registry-installer-CWpQAmy4.js rename to public/build/assets/main-registry-installer-_-xwUN0S.js index 30b09cf..a3c927d 100644 --- a/public/build/assets/main-registry-installer-CWpQAmy4.js +++ b/public/build/assets/main-registry-installer-_-xwUN0S.js @@ -1,2 +1,2 @@ -import{t as e}from"./check-CCTwZBIw.js";import{t}from"./copy-CgW44MFY.js";import{c as n,l as r,o as i,s as a}from"./main-layout-DiaP0ISn.js";import{G as o,Kt as s,Q as c,V as l,Wt as u,an as d,ln as f,qt as p,rn as m,tn as h}from"./app-CVlP31Z1.js";var g=o(`Terminal`,[[`polyline`,{points:`4 17 10 11 4 5`,key:`akl6gq`}],[`line`,{x1:`12`,x2:`20`,y1:`19`,y2:`19`,key:`q2wloq`}]]),_=d(((e,t)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+``};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T=1,E;if(v){if(E=o(x,C,e,_),!E||E.index>=e.length)break;var D=E.index,O=E.index+E[0].length,k=C;for(k+=S.value.length;D>=k;)S=S.next,k+=S.value.length;if(k-=S.value.length,C=k,S.value instanceof a)continue;for(var A=S;A!==t.tail&&(kd.reach&&(d.reach=P);var F=S.prev;M&&(F=l(t,F,M),C+=M.length),u(t,F,T);var I=new a(f,g?i.tokenize(j,g):j,y,j);if(S=l(t,F,I),N&&l(t,S,N),T>1){var L={cause:f+`,`+m,reach:P};s(e,t,n,S.prev,C,L),d&&L.reach>d.reach&&(d.reach=L.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(n.languages.markup.tag,`addInlined`,{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:))*\\]\\]>|(?!)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,`addAttribute`,{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(` -`),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})),v=f(m(),1),y=p(),b=u(),x=f(_(),1);Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,`addInlined`,{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:))*\\]\\]>|(?!)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,`addAttribute`,{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism),Prism.languages.javascript=Prism.languages.extend(`clike`,{"class-name":[Prism.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),Prism.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(`script`,`javascript`),Prism.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),Prism.languages.js=Prism.languages.javascript,(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),(function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`parameter`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o=a.length);c++){var l=s[c];if(typeof l==`string`||l.content&&typeof l.content==`string`){var u=a[i],d=n.tokenStack[u],f=typeof l==`string`?l:l.content,p=t(r,u),m=f.indexOf(p);if(m>-1){++i;var h=f.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),`language-`+r,d),_=f.substring(m+p.length),v=[];h&&v.push.apply(v,o([h])),v.push(g),_&&v.push.apply(v,o([_])),typeof l==`string`?s.splice.apply(s,[c,1].concat(v)):l.content=v}}else l.content&&o(l.content)}return s}o(n.tokens)}}})})(Prism),(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:`nowdoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:`backtick-quoted-string`,greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:`single-quoted-string`,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:`double-quoted-string`,greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore(`php`,`variable`,{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:`class-name`,greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:[`class-name`,`class-name-fully-qualified`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:`punctuation`}}}}),e.hooks.add(`before-tokenize`,function(t){/<\?/.test(t.code)&&e.languages[`markup-templating`].buildPlaceholders(t,`php`,/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add(`after-tokenize`,function(t){e.languages[`markup-templating`].tokenizePlaceholders(t,`php`)})})(Prism);var S={js:`javascript`,ts:`typescript`,css:`css`,php:`php`,markup:`markup`,sh:`bash`,shell:`bash`,html:`markup`};function C(e,t){let n=(0,y.c)(9),r=t===void 0?`bash`:t,i;n[0]===r?i=n[1]:(i=S[r.toLowerCase()]||r.toLowerCase(),n[0]=r,n[1]=i);let a=i,o=x.default.languages[a],s;n[2]!==e||n[3]!==o||n[4]!==a?(s=o?x.default.highlight(e,o,a):e,n[2]=e,n[3]=o,n[4]=a,n[5]=s):s=n[5];let c=s,l;return n[6]!==c||n[7]!==a?(l={normalizedLanguage:a,highlightedCode:c},n[6]=c,n[7]=a,n[8]=l):l=n[8],l}function w(){return{copy:(0,v.useCallback)(async e=>{try{if(navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(e),!0;let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.top=`-9999px`,t.style.left=`-9999px`,t.style.opacity=`0`,document.body.appendChild(t),t.focus(),t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch{return!1}},[])}}var T=e=>!e.isLayoutDirty&&e.willUpdate(!1);function E(){let e=new Set,t=new WeakMap,n=()=>e.forEach(T);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var D=(0,v.createContext)(null);function O(){let e=(0,v.useRef)(!1);return n(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function k(){let e=O(),[t,n]=(0,v.useState)(0),r=(0,v.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,v.useCallback)(()=>a.postRender(r),[r]),t]}var A=e=>e===!0,j=e=>A(e===!0)||e===`id`,M=({children:e,id:t,inherit:n=!0})=>{let i=(0,v.useContext)(r),a=(0,v.useContext)(D),[o,s]=k(),c=(0,v.useRef)(null),l=i.id||a;c.current===null&&(j(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:A(n)&&i.group||E()});let u=(0,v.useMemo)(()=>({...c.current,forceRender:o}),[s]);return(0,b.jsx)(r.Provider,{value:u,children:e})};function N(e){let t=(0,y.c)(60),n,r,a,o,s,l,u,d,f,p,m,h,g;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],d=t[8],f=t[9],p=t[10],m=t[11],h=t[12],g=t[13]):({tabs:m,value:g,defaultValue:o,onChange:u,className:r,tabsClassName:h,tabClassName:p,activeTabClassName:n,inactiveTabClassName:s,indicatorClassName:l,contentClassName:a,showContent:f,...d}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m,t[12]=h,t[13]=g);let _=f===void 0?!1:f,x=(0,v.useId)(),S;t[14]===m?S=t[15]:(S=e=>{if(!e)return 0;let t=m.findIndex(t=>t.id===e);return t>=0?t:0},t[14]=m,t[15]=S);let C=S,w;t[16]!==o||t[17]!==C?(w=()=>C(o),t[16]=o,t[17]=C,t[18]=w):w=t[18];let[T,E]=(0,v.useState)(w),D=g!==void 0,O=D?C(g):T,k=m[O]??m[0],A;t[19]!==D||t[20]!==u||t[21]!==m?(A=e=>{D||E(e),u?.(m[e].id)},t[19]=D,t[20]=u,t[21]=m,t[22]=A):A=t[22];let j=A,N;t[23]===r?N=t[24]:(N=c(`w-full`,r),t[23]=r,t[24]=N);let P;t[25]===h?P=t[26]:(P=c(`flex items-center gap-1 rounded-md border border-border bg-background p-1`,h),t[25]=h,t[26]=P);let F;if(t[27]!==n||t[28]!==O||t[29]!==j||t[30]!==x||t[31]!==s||t[32]!==l||t[33]!==p||t[34]!==m){let e;t[36]!==n||t[37]!==O||t[38]!==j||t[39]!==x||t[40]!==s||t[41]!==l||t[42]!==p?(e=(e,t)=>(0,b.jsxs)(`button`,{role:`tab`,"aria-selected":O===t,"aria-controls":`${x}-panel-${e.id}`,id:`${x}-tab-${e.id}`,onClick:()=>j(t),className:c(`relative rounded-sm px-4 py-2 text-xs font-medium transition focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-none`,p,O===t?c(`text-foreground`,n):c(`text-muted-foreground hover:text-foreground`,s)),children:[O===t&&(0,b.jsx)(i.div,{layoutId:`indicator`,className:c(`absolute inset-0 rounded-sm bg-muted`,l),transition:{type:`spring`,stiffness:500,damping:30}}),(0,b.jsx)(`span`,{className:`relative z-10`,children:e.label})]},e.id),t[36]=n,t[37]=O,t[38]=j,t[39]=x,t[40]=s,t[41]=l,t[42]=p,t[43]=e):e=t[43],F=m.map(e),t[27]=n,t[28]=O,t[29]=j,t[30]=x,t[31]=s,t[32]=l,t[33]=p,t[34]=m,t[35]=F}else F=t[35];let I;t[44]!==P||t[45]!==F?(I=(0,b.jsx)(`div`,{role:`tablist`,className:P,children:F}),t[44]=P,t[45]=F,t[46]=I):I=t[46];let L;t[47]!==x||t[48]!==I?(L=(0,b.jsx)(M,{id:x,children:I}),t[47]=x,t[48]=I,t[49]=L):L=t[49];let R;t[50]!==k||t[51]!==a||t[52]!==x||t[53]!==_?(R=_&&k?.content&&(0,b.jsx)(`div`,{role:`tabpanel`,id:`${x}-panel-${k.id}`,"aria-labelledby":`${x}-tab-${k.id}`,className:c(`mt-4`,a),children:(0,b.jsx)(i.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2},children:k.content},k.id)}),t[50]=k,t[51]=a,t[52]=x,t[53]=_,t[54]=R):R=t[54];let z;return t[55]!==d||t[56]!==R||t[57]!==N||t[58]!==L?(z=(0,b.jsxs)(`div`,{className:N,...d,children:[L,R]}),t[55]=d,t[56]=R,t[57]=N,t[58]=L,t[59]=z):z=t[59],z}var P=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},F=(e=>e?P(e):P),I=e=>e;function L(e,t=I){let n=v.useSyncExternalStore(e.subscribe,v.useCallback(()=>t(e.getState()),[e,t]),v.useCallback(()=>t(e.getInitialState()),[e,t]));return v.useDebugValue(n),n}var R=e=>{let t=F(e),n=e=>L(t,e);return Object.assign(n,t),n},z=(e=>e?R(e):R);function B(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var V=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return V(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return V(t)(e)}}}},H=z()(((e,t)=>(n,r,i)=>{let a={storage:B(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return V(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p})(e=>({selectedManager:`npm`,selectedRegistry:`glow-conic`,setSelectedManager:t=>e({selectedManager:t}),setSelectedRegistry:t=>e({selectedRegistry:t})}),{name:`package-manager-storage`})),U=[`npm`,`pnpm`,`yarn`,`bun`];function W(n){let r=(0,y.c)(44),{codes:i,className:a}=n,{selectedManager:o,setSelectedManager:u}=H(),d;r[0]===i?d=r[1]:(d=e=>i[e],r[0]=i,r[1]=d);let f=U.filter(d),p=i[o]??``,{highlightedCode:m}=C(p,`bash`),{copy:h}=w(),[_,x]=(0,v.useState)(!1),S,T;r[2]===_?(S=r[3],T=r[4]):(S=()=>{if(_){let e=setTimeout(()=>{x(!1)},2e3);return()=>clearTimeout(e)}},T=[_],r[2]=_,r[3]=S,r[4]=T),(0,v.useEffect)(S,T);let E;r[5]!==p||r[6]!==h||r[7]!==o?(E=async()=>{await h(p),s.success(`${o} command copied to clipboard!`),x(!0)},r[5]=p,r[6]=h,r[7]=o,r[8]=E):E=r[8];let D=E,O;r[9]===a?O=r[10]:(O=c(`group/package-manager relative min-w-0 rounded-md border`,a),r[9]=a,r[10]=O);let k;r[11]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,b.jsx)(g,{className:`size-5 text-muted-foreground`}),r[11]=k):k=r[11];let A=N,j;r[12]===u?j=r[13]:(j=e=>u(e),r[12]=u,r[13]=j);let M=f.map(G),P;r[14]!==A||r[15]!==o||r[16]!==M||r[17]!==j?(P=(0,b.jsx)(A,{value:o,onChange:j,tabs:M,tabsClassName:`p-1 bg-primary/10`,activeTabClassName:`text-primary-foreground`,indicatorClassName:`bg-primary`,tabClassName:`px-2 py-1 text-xs font-medium `}),r[14]=A,r[15]=o,r[16]=M,r[17]=j,r[18]=P):P=r[18];let F;r[19]!==P||r[20]!==k?(F=(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[k,P]}),r[19]=P,r[20]=k,r[21]=F):F=r[21];let I=_?`opacity-100`:`pointer-events-none opacity-0`,L;r[22]===I?L=r[23]:(L=c(`text-xs text-green-500 transition-opacity duration-200`,I),r[22]=I,r[23]=L);let R;r[24]===L?R=r[25]:(R=(0,b.jsx)(`span`,{className:L,children:`Copied`}),r[24]=L,r[25]=R);let z;r[26]===_?z=r[27]:(z=_?(0,b.jsx)(e,{className:`size-4`}):(0,b.jsx)(t,{className:`size-4`}),r[26]=_,r[27]=z);let B;r[28]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,b.jsx)(`span`,{className:`sr-only`,children:`Copy`}),r[28]=B):B=r[28];let V;r[29]!==D||r[30]!==z?(V=(0,b.jsxs)(l,{variant:`ghost`,size:`icon`,onClick:D,className:`transition-opacity hover:opacity-100`,children:[z,B]}),r[29]=D,r[30]=z,r[31]=V):V=r[31];let W;r[32]!==R||r[33]!==V?(W=(0,b.jsxs)(`div`,{className:`flex items-center gap-1`,children:[R,V]}),r[32]=R,r[33]=V,r[34]=W):W=r[34];let K;r[35]!==F||r[36]!==W?(K=(0,b.jsxs)(`div`,{className:`flex h-14 shrink-0 items-center justify-between rounded-t-[inherit] border-b border-border bg-muted/50 px-3 py-2`,children:[F,W]}),r[35]=F,r[36]=W,r[37]=K):K=r[37];let q;r[38]===m?q=r[39]:(q=(0,b.jsx)(`div`,{className:`max-w-full min-w-0 overflow-x-auto p-3`,children:(0,b.jsx)(`pre`,{className:`m-0! w-full min-w-0 rounded-none! bg-transparent! font-mono! text-sm leading-relaxed`,children:(0,b.jsx)(`code`,{className:`pr-6`,"data-language":`bash`,suppressHydrationWarning:!0,children:(0,b.jsx)(`span`,{dangerouslySetInnerHTML:{__html:m}})})})}),r[38]=m,r[39]=q);let J;return r[40]!==K||r[41]!==q||r[42]!==O?(J=(0,b.jsxs)(`div`,{className:O,children:[K,q]}),r[40]=K,r[41]=q,r[42]=O,r[43]=J):J=r[43],J}function G(e){return{id:e,label:e}}function K(e){let t=(0,y.c)(10),{code:n,className:r}=e,{url:i}=h().props,a=`${i}/r/${n}.json`,o;t[0]===r?o=t[1]:(o=c(``,r),t[0]=r,t[1]=o);let s=`bunx --bun shadcn@latest add ${a}`,l=`npx shadcn@latest add ${a}`,u=`pnpm dlx shadcn@latest add ${a}`,d=`yarn dlx shadcn@latest add ${a}`,f;t[2]!==s||t[3]!==l||t[4]!==u||t[5]!==d?(f={bun:s,npm:l,pnpm:u,yarn:d},t[2]=s,t[3]=l,t[4]=u,t[5]=d,t[6]=f):f=t[6];let p;return t[7]!==o||t[8]!==f?(p=(0,b.jsx)(W,{className:o,codes:f}),t[7]=o,t[8]=f,t[9]=p):p=t[9],p}K.displayName=`MainRegistryInstaller`;export{C as a,w as i,H as n,g as o,N as r,K as t}; \ No newline at end of file +import{t as e}from"./check-BBvDdM_9.js";import{t}from"./copy-HrVumo6t.js";import{a as n,i as r,o as i,r as a}from"./main-layout-qej9zSi0.js";import{G as o,Kt as s,Q as c,V as l,Wt as u,an as d,ln as f,qt as p,rn as m,tn as h}from"./app-D7MKN1zp.js";var g=o(`Terminal`,[[`polyline`,{points:`4 17 10 11 4 5`,key:`akl6gq`}],[`line`,{x1:`12`,x2:`20`,y1:`19`,y2:`19`,key:`q2wloq`}]]),_=d(((e,t)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+``};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T=1,E;if(v){if(E=o(x,C,e,_),!E||E.index>=e.length)break;var D=E.index,O=E.index+E[0].length,k=C;for(k+=S.value.length;D>=k;)S=S.next,k+=S.value.length;if(k-=S.value.length,C=k,S.value instanceof a)continue;for(var A=S;A!==t.tail&&(kd.reach&&(d.reach=P);var F=S.prev;M&&(F=l(t,F,M),C+=M.length),u(t,F,T);var I=new a(f,g?i.tokenize(j,g):j,y,j);if(S=l(t,F,I),N&&l(t,S,N),T>1){var L={cause:f+`,`+m,reach:P};s(e,t,n,S.prev,C,L),d&&L.reach>d.reach&&(d.reach=L.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(n.languages.markup.tag,`addInlined`,{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:))*\\]\\]>|(?!)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,`addAttribute`,{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(` +`),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})),v=f(m(),1),y=p(),b=u(),x=f(_(),1);Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,`addInlined`,{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:))*\\]\\]>|(?!)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,`addAttribute`,{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism),Prism.languages.javascript=Prism.languages.extend(`clike`,{"class-name":[Prism.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),Prism.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(`script`,`javascript`),Prism.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),Prism.languages.js=Prism.languages.javascript,(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),(function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`parameter`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o=a.length);c++){var l=s[c];if(typeof l==`string`||l.content&&typeof l.content==`string`){var u=a[i],d=n.tokenStack[u],f=typeof l==`string`?l:l.content,p=t(r,u),m=f.indexOf(p);if(m>-1){++i;var h=f.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),`language-`+r,d),_=f.substring(m+p.length),v=[];h&&v.push.apply(v,o([h])),v.push(g),_&&v.push.apply(v,o([_])),typeof l==`string`?s.splice.apply(s,[c,1].concat(v)):l.content=v}}else l.content&&o(l.content)}return s}o(n.tokens)}}})})(Prism),(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:`nowdoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:`symbol`,inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:`backtick-quoted-string`,greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:`single-quoted-string`,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:`double-quoted-string`,greedy:!0,inside:{interpolation:o}}];e.languages.insertBefore(`php`,`variable`,{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:`class-name`,greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:[`class-name`,`class-name-fully-qualified`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:`punctuation`}}}}),e.hooks.add(`before-tokenize`,function(t){/<\?/.test(t.code)&&e.languages[`markup-templating`].buildPlaceholders(t,`php`,/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add(`after-tokenize`,function(t){e.languages[`markup-templating`].tokenizePlaceholders(t,`php`)})})(Prism);var S={js:`javascript`,ts:`typescript`,css:`css`,php:`php`,markup:`markup`,sh:`bash`,shell:`bash`,html:`markup`};function C(e,t){let n=(0,y.c)(9),r=t===void 0?`bash`:t,i;n[0]===r?i=n[1]:(i=S[r.toLowerCase()]||r.toLowerCase(),n[0]=r,n[1]=i);let a=i,o=x.default.languages[a],s;n[2]!==e||n[3]!==o||n[4]!==a?(s=o?x.default.highlight(e,o,a):e,n[2]=e,n[3]=o,n[4]=a,n[5]=s):s=n[5];let c=s,l;return n[6]!==c||n[7]!==a?(l={normalizedLanguage:a,highlightedCode:c},n[6]=c,n[7]=a,n[8]=l):l=n[8],l}function w(){return{copy:(0,v.useCallback)(async e=>{try{if(navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(e),!0;let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.top=`-9999px`,t.style.left=`-9999px`,t.style.opacity=`0`,document.body.appendChild(t),t.focus(),t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch{return!1}},[])}}var T=e=>!e.isLayoutDirty&&e.willUpdate(!1);function E(){let e=new Set,t=new WeakMap,n=()=>e.forEach(T);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var D=(0,v.createContext)(null);function O(){let e=(0,v.useRef)(!1);return n(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function k(){let e=O(),[t,n]=(0,v.useState)(0),i=(0,v.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,v.useCallback)(()=>r.postRender(i),[i]),t]}var A=e=>e===!0,j=e=>A(e===!0)||e===`id`,M=({children:e,id:t,inherit:n=!0})=>{let r=(0,v.useContext)(i),a=(0,v.useContext)(D),[o,s]=k(),c=(0,v.useRef)(null),l=r.id||a;c.current===null&&(j(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:A(n)&&r.group||E()});let u=(0,v.useMemo)(()=>({...c.current,forceRender:o}),[s]);return(0,b.jsx)(i.Provider,{value:u,children:e})};function N(e){let t=(0,y.c)(60),n,r,i,o,s,l,u,d,f,p,m,h,g;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],d=t[8],f=t[9],p=t[10],m=t[11],h=t[12],g=t[13]):({tabs:m,value:g,defaultValue:o,onChange:u,className:r,tabsClassName:h,tabClassName:p,activeTabClassName:n,inactiveTabClassName:s,indicatorClassName:l,contentClassName:i,showContent:f,...d}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=l,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m,t[12]=h,t[13]=g);let _=f===void 0?!1:f,x=(0,v.useId)(),S;t[14]===m?S=t[15]:(S=e=>{if(!e)return 0;let t=m.findIndex(t=>t.id===e);return t>=0?t:0},t[14]=m,t[15]=S);let C=S,w;t[16]!==o||t[17]!==C?(w=()=>C(o),t[16]=o,t[17]=C,t[18]=w):w=t[18];let[T,E]=(0,v.useState)(w),D=g!==void 0,O=D?C(g):T,k=m[O]??m[0],A;t[19]!==D||t[20]!==u||t[21]!==m?(A=e=>{D||E(e),u?.(m[e].id)},t[19]=D,t[20]=u,t[21]=m,t[22]=A):A=t[22];let j=A,N;t[23]===r?N=t[24]:(N=c(`w-full`,r),t[23]=r,t[24]=N);let P;t[25]===h?P=t[26]:(P=c(`flex items-center gap-1 rounded-md border border-border bg-background p-1`,h),t[25]=h,t[26]=P);let F;if(t[27]!==n||t[28]!==O||t[29]!==j||t[30]!==x||t[31]!==s||t[32]!==l||t[33]!==p||t[34]!==m){let e;t[36]!==n||t[37]!==O||t[38]!==j||t[39]!==x||t[40]!==s||t[41]!==l||t[42]!==p?(e=(e,t)=>(0,b.jsxs)(`button`,{role:`tab`,"aria-selected":O===t,"aria-controls":`${x}-panel-${e.id}`,id:`${x}-tab-${e.id}`,onClick:()=>j(t),className:c(`relative rounded-sm px-4 py-2 text-xs font-medium transition focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-none`,p,O===t?c(`text-foreground`,n):c(`text-muted-foreground hover:text-foreground`,s)),children:[O===t&&(0,b.jsx)(a.div,{layoutId:`indicator`,className:c(`absolute inset-0 rounded-sm bg-muted`,l),transition:{type:`spring`,stiffness:500,damping:30}}),(0,b.jsx)(`span`,{className:`relative z-10`,children:e.label})]},e.id),t[36]=n,t[37]=O,t[38]=j,t[39]=x,t[40]=s,t[41]=l,t[42]=p,t[43]=e):e=t[43],F=m.map(e),t[27]=n,t[28]=O,t[29]=j,t[30]=x,t[31]=s,t[32]=l,t[33]=p,t[34]=m,t[35]=F}else F=t[35];let I;t[44]!==P||t[45]!==F?(I=(0,b.jsx)(`div`,{role:`tablist`,className:P,children:F}),t[44]=P,t[45]=F,t[46]=I):I=t[46];let L;t[47]!==x||t[48]!==I?(L=(0,b.jsx)(M,{id:x,children:I}),t[47]=x,t[48]=I,t[49]=L):L=t[49];let R;t[50]!==k||t[51]!==i||t[52]!==x||t[53]!==_?(R=_&&k?.content&&(0,b.jsx)(`div`,{role:`tabpanel`,id:`${x}-panel-${k.id}`,"aria-labelledby":`${x}-tab-${k.id}`,className:c(`mt-4`,i),children:(0,b.jsx)(a.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.2},children:k.content},k.id)}),t[50]=k,t[51]=i,t[52]=x,t[53]=_,t[54]=R):R=t[54];let z;return t[55]!==d||t[56]!==R||t[57]!==N||t[58]!==L?(z=(0,b.jsxs)(`div`,{className:N,...d,children:[L,R]}),t[55]=d,t[56]=R,t[57]=N,t[58]=L,t[59]=z):z=t[59],z}var P=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},F=(e=>e?P(e):P),I=e=>e;function L(e,t=I){let n=v.useSyncExternalStore(e.subscribe,v.useCallback(()=>t(e.getState()),[e,t]),v.useCallback(()=>t(e.getInitialState()),[e,t]));return v.useDebugValue(n),n}var R=e=>{let t=F(e),n=e=>L(t,e);return Object.assign(n,t),n},z=(e=>e?R(e):R);function B(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var V=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return V(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return V(t)(e)}}}},H=z()(((e,t)=>(n,r,i)=>{let a={storage:B(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return V(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p})(e=>({selectedManager:`npm`,selectedRegistry:`glow-conic`,setSelectedManager:t=>e({selectedManager:t}),setSelectedRegistry:t=>e({selectedRegistry:t})}),{name:`package-manager-storage`})),U=[`npm`,`pnpm`,`yarn`,`bun`];function W(n){let r=(0,y.c)(44),{codes:i,className:a}=n,{selectedManager:o,setSelectedManager:u}=H(),d;r[0]===i?d=r[1]:(d=e=>i[e],r[0]=i,r[1]=d);let f=U.filter(d),p=i[o]??``,{highlightedCode:m}=C(p,`bash`),{copy:h}=w(),[_,x]=(0,v.useState)(!1),S,T;r[2]===_?(S=r[3],T=r[4]):(S=()=>{if(_){let e=setTimeout(()=>{x(!1)},2e3);return()=>clearTimeout(e)}},T=[_],r[2]=_,r[3]=S,r[4]=T),(0,v.useEffect)(S,T);let E;r[5]!==p||r[6]!==h||r[7]!==o?(E=async()=>{await h(p),s.success(`${o} command copied to clipboard!`),x(!0)},r[5]=p,r[6]=h,r[7]=o,r[8]=E):E=r[8];let D=E,O;r[9]===a?O=r[10]:(O=c(`group/package-manager relative min-w-0 rounded-md border`,a),r[9]=a,r[10]=O);let k;r[11]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,b.jsx)(g,{className:`size-5 text-muted-foreground`}),r[11]=k):k=r[11];let A=N,j;r[12]===u?j=r[13]:(j=e=>u(e),r[12]=u,r[13]=j);let M=f.map(G),P;r[14]!==A||r[15]!==o||r[16]!==M||r[17]!==j?(P=(0,b.jsx)(A,{value:o,onChange:j,tabs:M,tabsClassName:`p-1 bg-primary/10`,activeTabClassName:`text-primary-foreground`,indicatorClassName:`bg-primary`,tabClassName:`px-2 py-1 text-xs font-medium `}),r[14]=A,r[15]=o,r[16]=M,r[17]=j,r[18]=P):P=r[18];let F;r[19]!==P||r[20]!==k?(F=(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[k,P]}),r[19]=P,r[20]=k,r[21]=F):F=r[21];let I=_?`opacity-100`:`pointer-events-none opacity-0`,L;r[22]===I?L=r[23]:(L=c(`text-xs text-green-500 transition-opacity duration-200`,I),r[22]=I,r[23]=L);let R;r[24]===L?R=r[25]:(R=(0,b.jsx)(`span`,{className:L,children:`Copied`}),r[24]=L,r[25]=R);let z;r[26]===_?z=r[27]:(z=_?(0,b.jsx)(e,{className:`size-4`}):(0,b.jsx)(t,{className:`size-4`}),r[26]=_,r[27]=z);let B;r[28]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,b.jsx)(`span`,{className:`sr-only`,children:`Copy`}),r[28]=B):B=r[28];let V;r[29]!==D||r[30]!==z?(V=(0,b.jsxs)(l,{variant:`ghost`,size:`icon`,onClick:D,className:`transition-opacity hover:opacity-100`,children:[z,B]}),r[29]=D,r[30]=z,r[31]=V):V=r[31];let W;r[32]!==R||r[33]!==V?(W=(0,b.jsxs)(`div`,{className:`flex items-center gap-1`,children:[R,V]}),r[32]=R,r[33]=V,r[34]=W):W=r[34];let K;r[35]!==F||r[36]!==W?(K=(0,b.jsxs)(`div`,{className:`flex h-14 shrink-0 items-center justify-between rounded-t-[inherit] border-b border-border bg-muted/50 px-3 py-2`,children:[F,W]}),r[35]=F,r[36]=W,r[37]=K):K=r[37];let q;r[38]===m?q=r[39]:(q=(0,b.jsx)(`div`,{className:`max-w-full min-w-0 overflow-x-auto p-3`,children:(0,b.jsx)(`pre`,{className:`m-0! w-full min-w-0 rounded-none! bg-transparent! font-mono! text-sm leading-relaxed`,children:(0,b.jsx)(`code`,{className:`pr-6`,"data-language":`bash`,suppressHydrationWarning:!0,children:(0,b.jsx)(`span`,{dangerouslySetInnerHTML:{__html:m}})})})}),r[38]=m,r[39]=q);let J;return r[40]!==K||r[41]!==q||r[42]!==O?(J=(0,b.jsxs)(`div`,{className:O,children:[K,q]}),r[40]=K,r[41]=q,r[42]=O,r[43]=J):J=r[43],J}function G(e){return{id:e,label:e}}function K(e){let t=(0,y.c)(10),{code:n,className:r}=e,{url:i}=h().props,a=`${i}/r/${n}.json`,o;t[0]===r?o=t[1]:(o=c(``,r),t[0]=r,t[1]=o);let s=`bunx --bun shadcn@latest add ${a}`,l=`npx shadcn@latest add ${a}`,u=`pnpm dlx shadcn@latest add ${a}`,d=`yarn dlx shadcn@latest add ${a}`,f;t[2]!==s||t[3]!==l||t[4]!==u||t[5]!==d?(f={bun:s,npm:l,pnpm:u,yarn:d},t[2]=s,t[3]=l,t[4]=u,t[5]=d,t[6]=f):f=t[6];let p;return t[7]!==o||t[8]!==f?(p=(0,b.jsx)(W,{className:o,codes:f}),t[7]=o,t[8]=f,t[9]=p):p=t[9],p}K.displayName=`MainRegistryInstaller`;export{C as a,w as i,H as n,g as o,N as r,K as t}; \ No newline at end of file diff --git a/public/build/assets/main-theme-card-B0GTBBPN.js b/public/build/assets/main-theme-card-B0GTBBPN.js new file mode 100644 index 0000000..f6dfdb5 --- /dev/null +++ b/public/build/assets/main-theme-card-B0GTBBPN.js @@ -0,0 +1 @@ +import{Wt as e,qt as t}from"./app-D7MKN1zp.js";import{a as n,n as r,o as i,r as a,t as o}from"./card-C1ekp7Ou.js";import{r as s}from"./glow-stack-BaNii-nE.js";import{t as c}from"./glow-radial-CIe4ekoG.js";var l=t(),u=e(),d=[{key:`Primary`,bgClass:`bg-primary`,flex:3},{key:`Secondary`,bgClass:`bg-secondary`,flex:2},{key:`Accent`,bgClass:`bg-accent`,flex:2},{key:`Muted`,bgClass:`bg-muted`,flex:1}],f=[{label:`BG`,bgClass:`bg-background`},{label:`Card`,bgClass:`bg-card`},{label:`Border`,bgClass:`bg-border`},{label:`Ring`,bgClass:`bg-ring`}];function p(e){let t=(0,l.c)(22),p,_;t[0]===e?(p=t[1],_=t[2]):({theme:_,...p}=e,t[0]=e,t[1]=p,t[2]=_);let{cssVars:v}=s(_),y=p.className??``,b;t[3]===y?b=t[4]:(b=[`group relative isolate rounded-2xl border border-border/40 pt-0`,`bg-card shadow-sm transition-transform`,`hover:-translate-y-1 hover:shadow-xl hover:shadow-primary/10`,y],t[3]=y,t[4]=b);let x=b.join(` `),S;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,u.jsx)(`div`,{className:`flex h-full w-full`,children:d.map(g)}),t[5]=S):S=t[5];let C;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,u.jsxs)(`div`,{className:`relative h-36 w-full overflow-hidden rounded-t-[inherit]`,children:[S,(0,u.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 flex h-8 bg-background/60 backdrop-blur-sm`,children:d.map(h)})]}),t[6]=C):C=t[6];let w;t[7]===_.title?w=t[8]:(w=(0,u.jsx)(i,{className:`text-base font-bold tracking-tight text-foreground`,children:_.title}),t[7]=_.title,t[8]=w);let T;t[9]===_.description?T=t[10]:(T=(0,u.jsx)(a,{className:`mt-0.5 line-clamp-2 text-xs leading-relaxed text-muted-foreground`,children:_.description}),t[9]=_.description,t[10]=T);let E;t[11]!==w||t[12]!==T?(E=(0,u.jsxs)(n,{className:`px-5 pt-4 pb-2`,children:[w,T]}),t[11]=w,t[12]=T,t[13]=E):E=t[13];let D,O;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,u.jsx)(r,{className:`px-5 pt-1 pb-5`,children:(0,u.jsx)(`div`,{className:`flex gap-2`,children:f.map(m)})}),D=(0,u.jsx)(`div`,{className:`pointer-events-none absolute inset-0 rounded-2xl opacity-0 ring-1 ring-primary/30 transition-opacity duration-500 ring-inset group-hover:opacity-100`}),t[14]=D,t[15]=O):(D=t[14],O=t[15]);let k;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,u.jsx)(c,{borderWidth:3,size:150,colors:[`var(--primary)`,`var(--secondary)`],className:`absolute -inset-0.5 z-10`}),t[16]=k):k=t[16];let A;return t[17]!==v||t[18]!==p||t[19]!==x||t[20]!==E?(A=(0,u.jsxs)(o,{style:v,...p,className:x,children:[C,E,O,D,k]}),t[17]=v,t[18]=p,t[19]=x,t[20]=E,t[21]=A):A=t[21],A}function m(e){let{label:t,bgClass:n}=e;return(0,u.jsxs)(`div`,{className:`flex flex-1 flex-col items-center gap-1.5`,children:[(0,u.jsx)(`div`,{className:`${n} h-1.5 w-full rounded-full border border-border/60`}),(0,u.jsx)(`span`,{className:`text-[9px] font-medium tracking-wider text-muted-foreground/60 uppercase`,children:t})]},t)}function h(e){let{key:t,flex:n}=e;return(0,u.jsx)(`div`,{style:{flex:n},className:`flex items-center justify-center`,children:(0,u.jsx)(`span`,{className:`text-[10px] font-semibold tracking-widest text-foreground/50 uppercase`,children:t})},t)}function g(e){let{key:t,bgClass:n,flex:r}=e;return(0,u.jsx)(`div`,{style:{flex:r},className:`${n} h-full transition-all duration-500 group-hover:opacity-90`},t)}p.displayName=`MainThemeCard`;export{p as t}; \ No newline at end of file diff --git a/public/build/assets/password-CsunKxsK.js b/public/build/assets/password-BDtte38w.js similarity index 95% rename from public/build/assets/password-CsunKxsK.js rename to public/build/assets/password-BDtte38w.js index 79dc3b7..1350092 100644 --- a/public/build/assets/password-CsunKxsK.js +++ b/public/build/assets/password-BDtte38w.js @@ -1 +1 @@ -import{d as e,f as t}from"./app-CVlP31Z1.js";import{t as n}from"./confirm-iDcX_7zW.js";var r=e=>({url:r.url(e),method:`get`});r.definition={methods:[`get`,`head`],url:`/forgot-password`},r.url=e=>r.definition.url+t(e),r.get=e=>({url:r.url(e),method:`get`}),r.head=e=>({url:r.url(e),method:`head`});var i=e=>({action:r.url(e),method:`get`});i.get=e=>({action:r.url(e),method:`get`}),i.head=e=>({action:r.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),r.form=i;var a=(e,t)=>({url:a.url(e,t),method:`get`});a.definition={methods:[`get`,`head`],url:`/reset-password/{token}`},a.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={token:n}),Array.isArray(n)&&(n={token:n[0]}),n=e(n);let i={token:n.token};return a.definition.url.replace(`{token}`,i.token.toString()).replace(/\/+$/,``)+t(r)},a.get=(e,t)=>({url:a.url(e,t),method:`get`}),a.head=(e,t)=>({url:a.url(e,t),method:`head`});var o=(e,t)=>({action:a.url(e,t),method:`get`});o.get=(e,t)=>({action:a.url(e,t),method:`get`}),o.head=(e,t)=>({action:a.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),a.form=o;var s=e=>({url:s.url(e),method:`post`});s.definition={methods:[`post`],url:`/forgot-password`},s.url=e=>s.definition.url+t(e),s.post=e=>({url:s.url(e),method:`post`});var c=e=>({action:s.url(e),method:`post`});c.post=e=>({action:s.url(e),method:`post`}),s.form=c;var l=e=>({url:l.url(e),method:`post`});l.definition={methods:[`post`],url:`/reset-password`},l.url=e=>l.definition.url+t(e),l.post=e=>({url:l.url(e),method:`post`});var u=e=>({action:l.url(e),method:`post`});u.post=e=>({action:l.url(e),method:`post`}),l.form=u;var d=e=>({url:d.url(e),method:`get`});d.definition={methods:[`get`,`head`],url:`/user/confirm-password`},d.url=e=>d.definition.url+t(e),d.get=e=>({url:d.url(e),method:`get`}),d.head=e=>({url:d.url(e),method:`head`});var f=e=>({action:d.url(e),method:`get`});f.get=e=>({action:d.url(e),method:`get`}),f.head=e=>({action:d.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),d.form=f;var p=e=>({url:p.url(e),method:`get`});p.definition={methods:[`get`,`head`],url:`/user/confirmed-password-status`},p.url=e=>p.definition.url+t(e),p.get=e=>({url:p.url(e),method:`get`}),p.head=e=>({url:p.url(e),method:`head`});var m=e=>({action:p.url(e),method:`get`});m.get=e=>({action:p.url(e),method:`get`}),m.head=e=>({action:p.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),p.form=m,Object.assign(r,r),Object.assign(a,a),Object.assign(s,s),Object.assign(l,l),Object.assign(d,n),Object.assign(p,p);export{r as n,l as r,s as t}; \ No newline at end of file +import{d as e,f as t}from"./app-D7MKN1zp.js";import{t as n}from"./confirm-tDhmficG.js";var r=e=>({url:r.url(e),method:`get`});r.definition={methods:[`get`,`head`],url:`/forgot-password`},r.url=e=>r.definition.url+t(e),r.get=e=>({url:r.url(e),method:`get`}),r.head=e=>({url:r.url(e),method:`head`});var i=e=>({action:r.url(e),method:`get`});i.get=e=>({action:r.url(e),method:`get`}),i.head=e=>({action:r.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),r.form=i;var a=(e,t)=>({url:a.url(e,t),method:`get`});a.definition={methods:[`get`,`head`],url:`/reset-password/{token}`},a.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={token:n}),Array.isArray(n)&&(n={token:n[0]}),n=e(n);let i={token:n.token};return a.definition.url.replace(`{token}`,i.token.toString()).replace(/\/+$/,``)+t(r)},a.get=(e,t)=>({url:a.url(e,t),method:`get`}),a.head=(e,t)=>({url:a.url(e,t),method:`head`});var o=(e,t)=>({action:a.url(e,t),method:`get`});o.get=(e,t)=>({action:a.url(e,t),method:`get`}),o.head=(e,t)=>({action:a.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),a.form=o;var s=e=>({url:s.url(e),method:`post`});s.definition={methods:[`post`],url:`/forgot-password`},s.url=e=>s.definition.url+t(e),s.post=e=>({url:s.url(e),method:`post`});var c=e=>({action:s.url(e),method:`post`});c.post=e=>({action:s.url(e),method:`post`}),s.form=c;var l=e=>({url:l.url(e),method:`post`});l.definition={methods:[`post`],url:`/reset-password`},l.url=e=>l.definition.url+t(e),l.post=e=>({url:l.url(e),method:`post`});var u=e=>({action:l.url(e),method:`post`});u.post=e=>({action:l.url(e),method:`post`}),l.form=u;var d=e=>({url:d.url(e),method:`get`});d.definition={methods:[`get`,`head`],url:`/user/confirm-password`},d.url=e=>d.definition.url+t(e),d.get=e=>({url:d.url(e),method:`get`}),d.head=e=>({url:d.url(e),method:`head`});var f=e=>({action:d.url(e),method:`get`});f.get=e=>({action:d.url(e),method:`get`}),f.head=e=>({action:d.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),d.form=f;var p=e=>({url:p.url(e),method:`get`});p.definition={methods:[`get`,`head`],url:`/user/confirmed-password-status`},p.url=e=>p.definition.url+t(e),p.get=e=>({url:p.url(e),method:`get`}),p.head=e=>({url:p.url(e),method:`head`});var m=e=>({action:p.url(e),method:`get`});m.get=e=>({action:p.url(e),method:`get`}),m.head=e=>({action:p.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),p.form=m,Object.assign(r,r),Object.assign(a,a),Object.assign(s,s),Object.assign(l,l),Object.assign(d,n),Object.assign(p,p);export{r as n,l as r,s as t}; \ No newline at end of file diff --git a/public/build/assets/password-input-QL8S9D3F.js b/public/build/assets/password-input-__9RhIwi.js similarity index 96% rename from public/build/assets/password-input-QL8S9D3F.js rename to public/build/assets/password-input-__9RhIwi.js index 2cd100a..b5066a2 100644 --- a/public/build/assets/password-input-QL8S9D3F.js +++ b/public/build/assets/password-input-__9RhIwi.js @@ -1 +1 @@ -import{B as e,G as t,Q as n,Wt as r,ln as i,qt as a,rn as o}from"./app-CVlP31Z1.js";var s=t(`EyeOff`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),c=t(`Eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),l=a(),u=i(o(),1),d=r();function f(t){let r=(0,l.c)(20),i,a,o;r[0]===t?(i=r[1],a=r[2],o=r[3]):({className:i,ref:o,...a}=t,r[0]=t,r[1]=i,r[2]=a,r[3]=o);let[f,m]=(0,u.useState)(!1),h=f?`text`:`password`,g;r[4]===i?g=r[5]:(g=n(`pr-10`,i),r[4]=i,r[5]=g);let _;r[6]!==a||r[7]!==o||r[8]!==h||r[9]!==g?(_=(0,d.jsx)(e,{type:h,className:g,ref:o,...a}),r[6]=a,r[7]=o,r[8]=h,r[9]=g,r[10]=_):_=r[10];let v;r[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>m(p),r[11]=v):v=r[11];let y=f?`Hide password`:`Show password`,b;r[12]===f?b=r[13]:(b=f?(0,d.jsx)(s,{className:`size-4`}):(0,d.jsx)(c,{className:`size-4`}),r[12]=f,r[13]=b);let x;r[14]!==y||r[15]!==b?(x=(0,d.jsx)(`button`,{type:`button`,onClick:v,className:`absolute inset-y-0 right-0 flex items-center rounded-r-md px-3 text-muted-foreground hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring focus-visible:outline-none`,"aria-label":y,tabIndex:-1,children:b}),r[14]=y,r[15]=b,r[16]=x):x=r[16];let S;return r[17]!==_||r[18]!==x?(S=(0,d.jsxs)(`div`,{className:`relative`,children:[_,x]}),r[17]=_,r[18]=x,r[19]=S):S=r[19],S}function p(e){return!e}export{c as n,s as r,f as t}; \ No newline at end of file +import{B as e,G as t,Q as n,Wt as r,ln as i,qt as a,rn as o}from"./app-D7MKN1zp.js";var s=t(`EyeOff`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),c=t(`Eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),l=a(),u=i(o(),1),d=r();function f(t){let r=(0,l.c)(20),i,a,o;r[0]===t?(i=r[1],a=r[2],o=r[3]):({className:i,ref:o,...a}=t,r[0]=t,r[1]=i,r[2]=a,r[3]=o);let[f,m]=(0,u.useState)(!1),h=f?`text`:`password`,g;r[4]===i?g=r[5]:(g=n(`pr-10`,i),r[4]=i,r[5]=g);let _;r[6]!==a||r[7]!==o||r[8]!==h||r[9]!==g?(_=(0,d.jsx)(e,{type:h,className:g,ref:o,...a}),r[6]=a,r[7]=o,r[8]=h,r[9]=g,r[10]=_):_=r[10];let v;r[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>m(p),r[11]=v):v=r[11];let y=f?`Hide password`:`Show password`,b;r[12]===f?b=r[13]:(b=f?(0,d.jsx)(s,{className:`size-4`}):(0,d.jsx)(c,{className:`size-4`}),r[12]=f,r[13]=b);let x;r[14]!==y||r[15]!==b?(x=(0,d.jsx)(`button`,{type:`button`,onClick:v,className:`absolute inset-y-0 right-0 flex items-center rounded-r-md px-3 text-muted-foreground hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring focus-visible:outline-none`,"aria-label":y,tabIndex:-1,children:b}),r[14]=y,r[15]=b,r[16]=x):x=r[16];let S;return r[17]!==_||r[18]!==x?(S=(0,d.jsxs)(`div`,{className:`relative`,children:[_,x]}),r[17]=_,r[18]=x,r[19]=S):S=r[19],S}function p(e){return!e}export{c as n,s as r,f as t}; \ No newline at end of file diff --git a/public/build/assets/placeholder-pattern-CMjSLXXB.js b/public/build/assets/placeholder-pattern-DUvj6lOE.js similarity index 91% rename from public/build/assets/placeholder-pattern-CMjSLXXB.js rename to public/build/assets/placeholder-pattern-DUvj6lOE.js index 48ddfef..070af3f 100644 --- a/public/build/assets/placeholder-pattern-CMjSLXXB.js +++ b/public/build/assets/placeholder-pattern-DUvj6lOE.js @@ -1 +1 @@ -import{Wt as e,ln as t,qt as n,rn as r}from"./app-CVlP31Z1.js";var i=n(),a=t(r(),1),o=e();function s(e){let t=(0,i.c)(9),{className:n}=e,r=(0,a.useId)(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,o.jsx)(`path`,{d:`M-3 13 15-5M-5 5l18-18M-1 21 17 3`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,o.jsx)(`defs`,{children:(0,o.jsx)(`pattern`,{id:r,x:`0`,y:`0`,width:`10`,height:`10`,patternUnits:`userSpaceOnUse`,children:s})}),t[1]=r,t[2]=c);let l=`url(#${r})`,u;t[3]===l?u=t[4]:(u=(0,o.jsx)(`rect`,{stroke:`none`,fill:l,width:`100%`,height:`100%`}),t[3]=l,t[4]=u);let d;return t[5]!==n||t[6]!==c||t[7]!==u?(d=(0,o.jsxs)(`svg`,{className:n,fill:`none`,children:[c,u]}),t[5]=n,t[6]=c,t[7]=u,t[8]=d):d=t[8],d}export{s as t}; \ No newline at end of file +import{Wt as e,ln as t,qt as n,rn as r}from"./app-D7MKN1zp.js";var i=n(),a=t(r(),1),o=e();function s(e){let t=(0,i.c)(9),{className:n}=e,r=(0,a.useId)(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,o.jsx)(`path`,{d:`M-3 13 15-5M-5 5l18-18M-1 21 17 3`}),t[0]=s):s=t[0];let c;t[1]===r?c=t[2]:(c=(0,o.jsx)(`defs`,{children:(0,o.jsx)(`pattern`,{id:r,x:`0`,y:`0`,width:`10`,height:`10`,patternUnits:`userSpaceOnUse`,children:s})}),t[1]=r,t[2]=c);let l=`url(#${r})`,u;t[3]===l?u=t[4]:(u=(0,o.jsx)(`rect`,{stroke:`none`,fill:l,width:`100%`,height:`100%`}),t[3]=l,t[4]=u);let d;return t[5]!==n||t[6]!==c||t[7]!==u?(d=(0,o.jsxs)(`svg`,{className:n,fill:`none`,children:[c,u]}),t[5]=n,t[6]=c,t[7]=u,t[8]=d):d=t[8],d}export{s as t}; \ No newline at end of file diff --git a/public/build/assets/plus-D1KRmSaN.js b/public/build/assets/plus-D1KRmSaN.js new file mode 100644 index 0000000..c769b06 --- /dev/null +++ b/public/build/assets/plus-D1KRmSaN.js @@ -0,0 +1 @@ +import{G as e}from"./app-D7MKN1zp.js";var t=e(`Plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t}; \ No newline at end of file diff --git a/public/build/assets/popover-B2UUPq8p.js b/public/build/assets/popover-B2UUPq8p.js new file mode 100644 index 0000000..42cb6db --- /dev/null +++ b/public/build/assets/popover-B2UUPq8p.js @@ -0,0 +1 @@ +import{F as e,G as t,Ht as n,Lt as r,M as i,N as a,P as o,Q as s,Ut as c,Vt as l,Wt as u,at as d,et as f,it as p,ln as m,nn as h,nt as g,ot as _,qt as ee,rn as v,rt as y,st as b,tt as x,zt as te}from"./app-D7MKN1zp.js";var S=t(`Sparkles`,[[`path`,{d:`M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z`,key:`4pj2yx`}],[`path`,{d:`M20 3v4`,key:`1olli1`}],[`path`,{d:`M22 5h-4`,key:`1gvqau`}],[`path`,{d:`M4 17v2`,key:`vumght`}],[`path`,{d:`M5 18H3`,key:`zchphs`}]]),C=m(v(),1),w=u();function T(e,t=[]){let n=[];function r(t,r){let i=C.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=C.useMemo(()=>o,Object.values(o));return(0,w.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=C.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>C.createContext(e));return function(n){let r=n?.[e]||t;return C.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,E(i,...t)]}function E(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}h();function D(e){let t=ne(e),n=C.forwardRef((e,n)=>{let{children:r,...i}=e,a=C.Children.toArray(r),o=a.find(k);if(o){let e=o.props.children,r=a.map(t=>t===o?C.Children.count(e)>1?C.Children.only(null):C.isValidElement(e)?e.props.children:null:t);return(0,w.jsx)(t,{...i,ref:n,children:C.isValidElement(e)?C.cloneElement(e,void 0,r):null})}return(0,w.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ne(e){let t=C.forwardRef((e,t)=>{let{children:n,...r}=e;if(C.isValidElement(n)){let e=j(n),i=A(r,n.props);return n.type!==C.Fragment&&(i.ref=t?l(t,e):e),C.cloneElement(n,i)}return C.Children.count(n)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var O=Symbol(`radix.slottable`);function k(e){return C.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===O}function A(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function j(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var M=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=D(`Primitive.${t}`),r=C.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,w.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),N=`Popover`,[P,re]=T(N,[b]),F=b(),[ie,I]=P(N),L=e=>{let{__scopePopover:t,children:n,open:i,defaultOpen:a,onOpenChange:o,modal:s=!1}=e,c=F(t),l=C.useRef(null),[u,d]=C.useState(!1),[p,m]=f({prop:i,defaultProp:a??!1,onChange:o,caller:N});return(0,w.jsx)(_,{...c,children:(0,w.jsx)(ie,{scope:t,contentId:r(),triggerRef:l,open:p,onOpenChange:m,onOpenToggle:C.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:u,onCustomAnchorAdd:C.useCallback(()=>d(!0),[]),onCustomAnchorRemove:C.useCallback(()=>d(!1),[]),modal:s,children:n})})};L.displayName=N;var R=`PopoverAnchor`,z=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=I(R,n),a=F(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return C.useEffect(()=>(o(),()=>s()),[o,s]),(0,w.jsx)(y,{...a,...r,ref:t})});z.displayName=R;var B=`PopoverTrigger`,V=C.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,a=I(B,r),o=F(r),s=n(t,a.triggerRef),l=(0,w.jsx)(M.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Q(a.open),...i,ref:s,onClick:c(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:(0,w.jsx)(y,{asChild:!0,...o,children:l})});V.displayName=B;var H=`PopoverPortal`,[U,W]=P(H,{forceMount:void 0}),G=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=I(H,t);return(0,w.jsx)(U,{scope:t,forceMount:n,children:(0,w.jsx)(x,{present:n||a.open,children:(0,w.jsx)(g,{asChild:!0,container:i,children:r})})})};G.displayName=H;var K=`PopoverContent`,q=C.forwardRef((e,t)=>{let n=W(K,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=I(K,e.__scopePopover);return(0,w.jsx)(x,{present:r||a.open,children:a.modal?(0,w.jsx)(ae,{...i,ref:t}):(0,w.jsx)(oe,{...i,ref:t})})});q.displayName=K;var J=D(`PopoverContent.RemoveScroll`),ae=C.forwardRef((e,t)=>{let r=I(K,e.__scopePopover),o=C.useRef(null),s=n(t,o),l=C.useRef(!1);return C.useEffect(()=>{let e=o.current;if(e)return i(e)},[]),(0,w.jsx)(a,{as:J,allowPinchZoom:!0,children:(0,w.jsx)(Y,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),l.current||r.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;l.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),oe=C.forwardRef((e,t)=>{let n=I(K,e.__scopePopover),r=C.useRef(!1),i=C.useRef(!1);return(0,w.jsx)(Y,{...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()}})}),Y=C.forwardRef((t,n)=>{let{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:p,...m}=t,h=I(K,r),g=F(r);return o(),(0,w.jsx)(e,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,w.jsx)(te,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:p,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1),children:(0,w.jsx)(d,{"data-state":Q(h.open),role:`dialog`,id:h.contentId,...g,...m,ref:n,style:{...m.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),X=`PopoverClose`,se=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=I(X,n);return(0,w.jsx)(M.button,{type:`button`,...r,ref:t,onClick:c(e.onClick,()=>i.onOpenChange(!1))})});se.displayName=X;var ce=`PopoverArrow`,Z=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=F(n);return(0,w.jsx)(p,{...i,...r,ref:t})});Z.displayName=ce;function Q(e){return e?`open`:`closed`}var le=L,ue=V,de=G,fe=q,$=ee();function pe(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,w.jsx)(le,{"data-slot":`popover`,...n}),t[2]=n,t[3]=r),r}function me(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,w.jsx)(ue,{"data-slot":`popover-trigger`,...n}),t[2]=n,t[3]=r),r}function he(e){let t=(0,$.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,align:i,sideOffset:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`center`:i,c=a===void 0?4:a,l;t[5]===n?l=t[6]:(l=s(`z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,n),t[5]=n,t[6]=l);let u;return t[7]!==o||t[8]!==r||t[9]!==c||t[10]!==l?(u=(0,w.jsx)(de,{children:(0,w.jsx)(fe,{"data-slot":`popover-content`,align:o,sideOffset:c,className:l,...r})}),t[7]=o,t[8]=r,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}export{S as i,he as n,me as r,pe as t}; \ No newline at end of file diff --git a/public/build/assets/pricing-B924f0vZ.js b/public/build/assets/pricing-B924f0vZ.js deleted file mode 100644 index 6ca6fe5..0000000 --- a/public/build/assets/pricing-B924f0vZ.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./check-CCTwZBIw.js";import{t}from"./main-layout-DiaP0ISn.js";import{V as n,Wt as r,Yt as i,a,in as o,ln as s,qt as c,rn as l,tn as u,u as d}from"./app-CVlP31Z1.js";import{a as f,i as p,n as m,o as h,r as g,t as _}from"./card-BMwhGcsv.js";import{i as v}from"./glow-stack-DaYuOL5d.js";import{n as y}from"./subscription-BG3RHyD9.js";var b=c(),x=s(l(),1),S=r();function C(){let e=(0,b.c)(27),{auth:t,checkout:r}=u().props,s;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=[],e[0]=s):s=e[0],(0,x.useEffect)(T,s);let c,l;e[1]===r?(c=e[2],l=e[3]):(c=()=>{r&&window.Paddle&&window.Paddle.Checkout.open({...r,settings:{...r.settings,displayMode:`overlay`}})},l=[r],e[1]=r,e[2]=c,e[3]=l),(0,x.useEffect)(c,l);let C,E,D,O,k,A,j;if(e[4]!==t){let r=[{name:`Free`,price:`$0`,description:`Essential features for everyone.`,features:[`Basic access`,`Community support`,`Standard updates`],buttonText:`Get Started`,priceId:null},{name:`Pro`,price:`$5`,interval:`/month`,description:`Advanced features for power users.`,features:[`Premium access`,`Priority support`,`Early access to features`,`Advanced analytics`],buttonText:`Upgrade to Pro`,priceId:`pri_01kprhrgz6bmv6q8v1w4ahbepv`,featured:!0},{name:`Pro Yearly`,price:`$50`,interval:`/year`,description:`Save with annual billing.`,features:[`Premium access`,`Priority support`,`Early access to features`,`Advanced analytics`,`2 months free`],buttonText:`Upgrade to Pro Yearly`,priceId:`pri_01kprhwevpzv0ae54eskj5tvq7`}],s=e=>{if(!e){o.get(t.user?a.url():d.url());return}if(!t.user){o.get(d.url());return}o.post(y.url(),{price_id:e})};A=`py-24 sm:py-32`,e[12]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,S.jsx)(i,{title:`Pricing`}),e[12]=j):j=e[12],C=v,e[13]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,S.jsxs)(`div`,{className:`mx-auto max-w-4xl text-center`,children:[(0,S.jsx)(`h2`,{className:`text-base leading-7 font-semibold text-primary`,children:`Pricing`}),(0,S.jsx)(`p`,{className:`mt-2 text-4xl font-bold tracking-tight text-foreground sm:text-5xl`,children:`Choose the right plan for you`})]}),k=(0,S.jsx)(`p`,{className:`mx-auto my-6 max-w-2xl text-center text-lg leading-8 text-muted-foreground`,children:`Simple, transparent pricing. No hidden fees.`}),e[13]=O,e[14]=k):(O=e[13],k=e[14]),E=`isolate mx-auto grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-3`,D=r.map(e=>(0,S.jsxs)(_,{className:`flex flex-col justify-between ${e.featured?`ring-2 ring-primary`:``}`,children:[(0,S.jsxs)(f,{children:[(0,S.jsx)(h,{className:`text-2xl font-bold`,children:e.name}),(0,S.jsx)(g,{children:e.description})]}),(0,S.jsxs)(m,{children:[(0,S.jsxs)(`div`,{className:`mt-4 flex items-baseline gap-x-2`,children:[(0,S.jsx)(`span`,{className:`text-5xl font-bold tracking-tight text-foreground`,children:e.price}),e.interval&&(0,S.jsx)(`span`,{className:`text-sm leading-6 font-semibold text-muted-foreground`,children:e.interval})]}),(0,S.jsx)(`ul`,{role:`list`,className:`mt-8 space-y-3 text-sm leading-6 text-muted-foreground`,children:e.features.map(w)})]}),(0,S.jsx)(p,{children:(0,S.jsx)(n,{className:`w-full`,variant:e.featured?`default`:`outline`,onClick:()=>s(e.priceId),children:e.buttonText})})]},e.name)),e[4]=t,e[5]=C,e[6]=E,e[7]=D,e[8]=O,e[9]=k,e[10]=A,e[11]=j}else C=e[5],E=e[6],D=e[7],O=e[8],k=e[9],A=e[10],j=e[11];let M;e[15]!==E||e[16]!==D?(M=(0,S.jsx)(`div`,{className:E,children:D}),e[15]=E,e[16]=D,e[17]=M):M=e[17];let N;e[18]!==C||e[19]!==O||e[20]!==k||e[21]!==M?(N=(0,S.jsxs)(C,{children:[O,k,M]}),e[18]=C,e[19]=O,e[20]=k,e[21]=M,e[22]=N):N=e[22];let P;return e[23]!==N||e[24]!==A||e[25]!==j?(P=(0,S.jsxs)(`div`,{className:A,children:[j,N]}),e[23]=N,e[24]=A,e[25]=j,e[26]=P):P=e[26],P}function w(t){return(0,S.jsxs)(`li`,{className:`flex gap-x-3`,children:[(0,S.jsx)(e,{className:`h-6 w-5 flex-none text-primary`,"aria-hidden":`true`}),t]},t)}function T(){window.Paddle&&window.Paddle.Initialize({token:void 0,checkout:{settings:{displayMode:`overlay`}},eventCallback:E})}function E(e){e.name===`checkout.closed`&&o.reload({only:[`auth`,`checkout`]})}C.layout=t,C.displayName=`Pricing`;export{C as Pricing}; \ No newline at end of file diff --git a/public/build/assets/pricing-BiBh6JwN.js b/public/build/assets/pricing-BiBh6JwN.js new file mode 100644 index 0000000..094b958 --- /dev/null +++ b/public/build/assets/pricing-BiBh6JwN.js @@ -0,0 +1 @@ +import{t as e}from"./check-BBvDdM_9.js";import{t}from"./main-layout-qej9zSi0.js";import{V as n,Wt as r,Yt as i,a,in as o,ln as s,qt as c,rn as l,tn as u,u as d}from"./app-D7MKN1zp.js";import{a as f,i as p,n as m,o as h,r as g,t as _}from"./card-C1ekp7Ou.js";import{l as v}from"./glow-stack-BaNii-nE.js";import{n as y}from"./subscription-C-u-O6PN.js";var b=c(),x=s(l(),1),S=r();function C(){let e=(0,b.c)(27),{auth:t,checkout:r}=u().props,s;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=[],e[0]=s):s=e[0],(0,x.useEffect)(T,s);let c,l;e[1]===r?(c=e[2],l=e[3]):(c=()=>{r&&window.Paddle&&window.Paddle.Checkout.open({...r,settings:{...r.settings,displayMode:`overlay`}})},l=[r],e[1]=r,e[2]=c,e[3]=l),(0,x.useEffect)(c,l);let C,E,D,O,k,A,j;if(e[4]!==t){let r=[{name:`Free`,price:`$0`,description:`Essential features for everyone.`,features:[`Basic access`,`Community support`,`Standard updates`],buttonText:`Get Started`,priceId:null},{name:`Pro`,price:`$5`,interval:`/month`,description:`Advanced features for power users.`,features:[`Premium access`,`Priority support`,`Early access to features`,`Advanced analytics`],buttonText:`Upgrade to Pro`,priceId:`pro_monthly`,featured:!0},{name:`Pro Yearly`,price:`$50`,interval:`/year`,description:`Save with annual billing.`,features:[`Premium access`,`Priority support`,`Early access to features`,`Advanced analytics`,`2 months free`],buttonText:`Upgrade to Pro Yearly`,priceId:`pro_yearly`}],s=e=>{if(!e){o.get(t.user?a.url():d.url());return}if(!t.user){o.get(d.url());return}o.post(y.url(),{price_id:e})};A=`py-24 sm:py-32`,e[12]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,S.jsx)(i,{title:`Pricing`}),e[12]=j):j=e[12],C=v,e[13]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,S.jsxs)(`div`,{className:`mx-auto max-w-4xl text-center`,children:[(0,S.jsx)(`h2`,{className:`text-base leading-7 font-semibold text-primary`,children:`Pricing`}),(0,S.jsx)(`p`,{className:`mt-2 text-4xl font-bold tracking-tight text-foreground sm:text-5xl`,children:`Choose the right plan for you`})]}),k=(0,S.jsx)(`p`,{className:`mx-auto my-6 max-w-2xl text-center text-lg leading-8 text-muted-foreground`,children:`Simple, transparent pricing. No hidden fees.`}),e[13]=O,e[14]=k):(O=e[13],k=e[14]),E=`isolate mx-auto grid max-w-5xl grid-cols-1 gap-6 md:grid-cols-3`,D=r.map(e=>(0,S.jsxs)(_,{className:`flex flex-col justify-between ${e.featured?`ring-2 ring-primary`:``}`,children:[(0,S.jsxs)(f,{children:[(0,S.jsx)(h,{className:`text-2xl font-bold`,children:e.name}),(0,S.jsx)(g,{children:e.description})]}),(0,S.jsxs)(m,{children:[(0,S.jsxs)(`div`,{className:`mt-4 flex items-baseline gap-x-2`,children:[(0,S.jsx)(`span`,{className:`text-5xl font-bold tracking-tight text-foreground`,children:e.price}),e.interval&&(0,S.jsx)(`span`,{className:`text-sm leading-6 font-semibold text-muted-foreground`,children:e.interval})]}),(0,S.jsx)(`ul`,{role:`list`,className:`mt-8 space-y-3 text-sm leading-6 text-muted-foreground`,children:e.features.map(w)})]}),(0,S.jsx)(p,{children:(0,S.jsx)(n,{className:`w-full`,variant:e.featured?`default`:`outline`,onClick:()=>s(e.priceId),children:e.buttonText})})]},e.name)),e[4]=t,e[5]=C,e[6]=E,e[7]=D,e[8]=O,e[9]=k,e[10]=A,e[11]=j}else C=e[5],E=e[6],D=e[7],O=e[8],k=e[9],A=e[10],j=e[11];let M;e[15]!==E||e[16]!==D?(M=(0,S.jsx)(`div`,{className:E,children:D}),e[15]=E,e[16]=D,e[17]=M):M=e[17];let N;e[18]!==C||e[19]!==O||e[20]!==k||e[21]!==M?(N=(0,S.jsxs)(C,{children:[O,k,M]}),e[18]=C,e[19]=O,e[20]=k,e[21]=M,e[22]=N):N=e[22];let P;return e[23]!==N||e[24]!==A||e[25]!==j?(P=(0,S.jsxs)(`div`,{className:A,children:[j,N]}),e[23]=N,e[24]=A,e[25]=j,e[26]=P):P=e[26],P}function w(t){return(0,S.jsxs)(`li`,{className:`flex gap-x-3`,children:[(0,S.jsx)(e,{className:`h-6 w-5 flex-none text-primary`,"aria-hidden":`true`}),t]},t)}function T(){window.Paddle&&window.Paddle.Initialize({token:void 0,checkout:{settings:{displayMode:`overlay`}},eventCallback:E})}function E(e){e.name===`checkout.closed`&&o.reload({only:[`auth`,`checkout`]})}C.layout=t,C.displayName=`Pricing`;export{C as Pricing}; \ No newline at end of file diff --git a/public/build/assets/profile-CEhMOmdF.js b/public/build/assets/profile-CQF7e4MZ.js similarity index 94% rename from public/build/assets/profile-CEhMOmdF.js rename to public/build/assets/profile-CQF7e4MZ.js index 1afde9d..7b7c761 100644 --- a/public/build/assets/profile-CEhMOmdF.js +++ b/public/build/assets/profile-CQF7e4MZ.js @@ -1 +1 @@ -import{t as e}from"./password-input-QL8S9D3F.js";import{B as t,Jt as n,V as r,Wt as i,Yt as a,Zt as o,f as s,i as c,ln as l,qt as u,r as d,rn as f,tn as p}from"./app-CVlP31Z1.js";import{a as m,c as h,i as g,n as _,r as v,s as y,t as b}from"./dialog-D1phUQb7.js";import{t as x}from"./input-error-BdHD9-x4.js";import{t as S}from"./label-D-AkZnW_.js";import{t as C}from"./verification-PIrv5pnj.js";var w=u(),T=e=>({url:T.url(e),method:`get`});T.definition={methods:[`get`,`head`],url:`/settings/profile`},T.url=e=>T.definition.url+s(e),T.get=e=>({url:T.url(e),method:`get`}),T.head=e=>({url:T.url(e),method:`head`});var E=e=>({action:T.url(e),method:`get`});E.get=e=>({action:T.url(e),method:`get`}),E.head=e=>({action:T.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),T.form=E;var D=e=>({url:D.url(e),method:`patch`});D.definition={methods:[`patch`],url:`/settings/profile`},D.url=e=>D.definition.url+s(e),D.patch=e=>({url:D.url(e),method:`patch`});var O=e=>({action:D.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`});O.patch=e=>({action:D.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),D.form=O;var k=e=>({url:k.url(e),method:`delete`});k.definition={methods:[`delete`],url:`/settings/profile`},k.url=e=>k.definition.url+s(e),k.delete=e=>({url:k.url(e),method:`delete`});var A=e=>({action:k.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`});A.delete=e=>({action:k.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),k.form=A;var j={edit:T,update:D,destroy:k},M=l(f(),1),N=i();function P(){let t=(0,w.c)(9),i=(0,M.useRef)(null),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,N.jsx)(d,{variant:`small`,title:`Delete account`,description:`Delete your account and all of its resources`}),t[0]=a):a=t[0];let o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,N.jsxs)(`div`,{className:`relative space-y-0.5 text-red-600 dark:text-red-100`,children:[(0,N.jsx)(`p`,{className:`font-medium`,children:`Warning`}),(0,N.jsx)(`p`,{className:`text-sm`,children:`Please proceed with caution, this cannot be undone.`})]}),t[1]=o):o=t[1];let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,N.jsx)(h,{asChild:!0,children:(0,N.jsx)(r,{variant:`destructive`,"data-test":`delete-user-button`,children:`Delete account`})}),t[2]=s):s=t[2];let c,l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,N.jsx)(y,{children:`Are you sure you want to delete your account?`}),l=(0,N.jsx)(g,{children:`Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.`}),t[3]=c,t[4]=l):(c=t[3],l=t[4]);let u,f,p;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=j.destroy.form(),f={preserveScroll:!0},p=()=>i.current?.focus(),t[5]=u,t[6]=f,t[7]=p):(u=t[5],f=t[6],p=t[7]);let C;return t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,N.jsxs)(`div`,{className:`space-y-6`,children:[a,(0,N.jsxs)(`div`,{className:`space-y-4 rounded-lg border border-red-100 bg-red-50 p-4 dark:border-red-200/10 dark:bg-red-700/10`,children:[o,(0,N.jsxs)(b,{children:[s,(0,N.jsxs)(v,{children:[c,l,(0,N.jsx)(n,{...u,options:f,onError:p,resetOnSuccess:!0,className:`space-y-6`,children:t=>{let{resetAndClearErrors:n,processing:a,errors:o}=t;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`password`,className:`sr-only`,children:`Password`}),(0,N.jsx)(e,{id:`password`,name:`password`,ref:i,placeholder:`Password`,autoComplete:`current-password`}),(0,N.jsx)(x,{message:o.password})]}),(0,N.jsxs)(m,{className:`gap-2`,children:[(0,N.jsx)(_,{asChild:!0,children:(0,N.jsx)(r,{variant:`secondary`,onClick:()=>n(),children:`Cancel`})}),(0,N.jsx)(r,{variant:`destructive`,disabled:a,asChild:!0,children:(0,N.jsx)(`button`,{type:`submit`,"data-test":`confirm-delete-user-button`,children:`Delete account`})})]})]})}})]})]})]})]}),t[8]=C):C=t[8],C}function F(e){let i=(0,w.c)(14),{mustVerifyEmail:s,status:c}=e,{auth:l}=p().props,u,f;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,N.jsx)(a,{title:`Profile settings`}),f=(0,N.jsx)(`h1`,{className:`sr-only`,children:`Profile settings`}),i[0]=u,i[1]=f):(u=i[0],f=i[1]);let m;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,N.jsx)(d,{variant:`small`,title:`Profile information`,description:`Update your name and email address`}),i[2]=m):m=i[2];let h,g;i[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=j.update.form(),g={preserveScroll:!0},i[3]=h,i[4]=g):(h=i[3],g=i[4]);let _;i[5]!==l.user.email||i[6]!==l.user.email_verified_at||i[7]!==l.user.name||i[8]!==s||i[9]!==c?(_=(0,N.jsxs)(`div`,{className:`space-y-6`,children:[m,(0,N.jsx)(n,{...h,options:g,className:`space-y-6`,children:e=>{let{processing:n,errors:i}=e;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`name`,children:`Name`}),(0,N.jsx)(t,{id:`name`,className:`mt-1 block w-full`,defaultValue:l.user.name,name:`name`,required:!0,autoComplete:`name`,placeholder:`Full name`}),(0,N.jsx)(x,{className:`mt-2`,message:i.name})]}),(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`email`,children:`Email address`}),(0,N.jsx)(t,{id:`email`,type:`email`,className:`mt-1 block w-full`,defaultValue:l.user.email,name:`email`,required:!0,autoComplete:`username`,placeholder:`Email address`}),(0,N.jsx)(x,{className:`mt-2`,message:i.email})]}),s&&l.user.email_verified_at===null&&(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`p`,{className:`-mt-4 text-sm text-muted-foreground`,children:[`Your email address is unverified.`,` `,(0,N.jsx)(o,{href:C(),as:`button`,className:`text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,children:`Click here to resend the verification email.`})]}),c===`verification-link-sent`&&(0,N.jsx)(`div`,{className:`mt-2 text-sm font-medium text-green-600`,children:`A new verification link has been sent to your email address.`})]}),(0,N.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,N.jsx)(r,{disabled:n,"data-test":`update-profile-button`,children:`Save`})})]})}})]}),i[5]=l.user.email,i[6]=l.user.email_verified_at,i[7]=l.user.name,i[8]=s,i[9]=c,i[10]=_):_=i[10];let v;i[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,N.jsx)(P,{}),i[11]=v):v=i[11];let y;return i[12]===_?y=i[13]:(y=(0,N.jsxs)(N.Fragment,{children:[u,f,_,v]}),i[12]=_,i[13]=y),y}F.layout={breadcrumbs:[{title:`Profile settings`,href:c()}]};export{F as default}; \ No newline at end of file +import{t as e}from"./password-input-__9RhIwi.js";import{B as t,Jt as n,V as r,Wt as i,Yt as a,Zt as o,f as s,i as c,ln as l,qt as u,r as d,rn as f,tn as p}from"./app-D7MKN1zp.js";import{a as m,c as h,i as g,n as _,r as v,s as y,t as b}from"./dialog-CM260op0.js";import{t as x}from"./input-error-CzZYqI_U.js";import{t as S}from"./label-fRwP89Ez.js";import{t as C}from"./verification-D4buixpo.js";var w=u(),T=e=>({url:T.url(e),method:`get`});T.definition={methods:[`get`,`head`],url:`/settings/profile`},T.url=e=>T.definition.url+s(e),T.get=e=>({url:T.url(e),method:`get`}),T.head=e=>({url:T.url(e),method:`head`});var E=e=>({action:T.url(e),method:`get`});E.get=e=>({action:T.url(e),method:`get`}),E.head=e=>({action:T.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),T.form=E;var D=e=>({url:D.url(e),method:`patch`});D.definition={methods:[`patch`],url:`/settings/profile`},D.url=e=>D.definition.url+s(e),D.patch=e=>({url:D.url(e),method:`patch`});var O=e=>({action:D.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`});O.patch=e=>({action:D.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PATCH`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),D.form=O;var k=e=>({url:k.url(e),method:`delete`});k.definition={methods:[`delete`],url:`/settings/profile`},k.url=e=>k.definition.url+s(e),k.delete=e=>({url:k.url(e),method:`delete`});var A=e=>({action:k.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`});A.delete=e=>({action:k.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`DELETE`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),k.form=A;var j={edit:T,update:D,destroy:k},M=l(f(),1),N=i();function P(){let t=(0,w.c)(9),i=(0,M.useRef)(null),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,N.jsx)(d,{variant:`small`,title:`Delete account`,description:`Delete your account and all of its resources`}),t[0]=a):a=t[0];let o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,N.jsxs)(`div`,{className:`relative space-y-0.5 text-red-600 dark:text-red-100`,children:[(0,N.jsx)(`p`,{className:`font-medium`,children:`Warning`}),(0,N.jsx)(`p`,{className:`text-sm`,children:`Please proceed with caution, this cannot be undone.`})]}),t[1]=o):o=t[1];let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,N.jsx)(h,{asChild:!0,children:(0,N.jsx)(r,{variant:`destructive`,"data-test":`delete-user-button`,children:`Delete account`})}),t[2]=s):s=t[2];let c,l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,N.jsx)(y,{children:`Are you sure you want to delete your account?`}),l=(0,N.jsx)(g,{children:`Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.`}),t[3]=c,t[4]=l):(c=t[3],l=t[4]);let u,f,p;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=j.destroy.form(),f={preserveScroll:!0},p=()=>i.current?.focus(),t[5]=u,t[6]=f,t[7]=p):(u=t[5],f=t[6],p=t[7]);let C;return t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,N.jsxs)(`div`,{className:`space-y-6`,children:[a,(0,N.jsxs)(`div`,{className:`space-y-4 rounded-lg border border-red-100 bg-red-50 p-4 dark:border-red-200/10 dark:bg-red-700/10`,children:[o,(0,N.jsxs)(b,{children:[s,(0,N.jsxs)(v,{children:[c,l,(0,N.jsx)(n,{...u,options:f,onError:p,resetOnSuccess:!0,className:`space-y-6`,children:t=>{let{resetAndClearErrors:n,processing:a,errors:o}=t;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`password`,className:`sr-only`,children:`Password`}),(0,N.jsx)(e,{id:`password`,name:`password`,ref:i,placeholder:`Password`,autoComplete:`current-password`}),(0,N.jsx)(x,{message:o.password})]}),(0,N.jsxs)(m,{className:`gap-2`,children:[(0,N.jsx)(_,{asChild:!0,children:(0,N.jsx)(r,{variant:`secondary`,onClick:()=>n(),children:`Cancel`})}),(0,N.jsx)(r,{variant:`destructive`,disabled:a,asChild:!0,children:(0,N.jsx)(`button`,{type:`submit`,"data-test":`confirm-delete-user-button`,children:`Delete account`})})]})]})}})]})]})]})]}),t[8]=C):C=t[8],C}function F(e){let i=(0,w.c)(14),{mustVerifyEmail:s,status:c}=e,{auth:l}=p().props,u,f;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,N.jsx)(a,{title:`Profile settings`}),f=(0,N.jsx)(`h1`,{className:`sr-only`,children:`Profile settings`}),i[0]=u,i[1]=f):(u=i[0],f=i[1]);let m;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,N.jsx)(d,{variant:`small`,title:`Profile information`,description:`Update your name and email address`}),i[2]=m):m=i[2];let h,g;i[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=j.update.form(),g={preserveScroll:!0},i[3]=h,i[4]=g):(h=i[3],g=i[4]);let _;i[5]!==l.user.email||i[6]!==l.user.email_verified_at||i[7]!==l.user.name||i[8]!==s||i[9]!==c?(_=(0,N.jsxs)(`div`,{className:`space-y-6`,children:[m,(0,N.jsx)(n,{...h,options:g,className:`space-y-6`,children:e=>{let{processing:n,errors:i}=e;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`name`,children:`Name`}),(0,N.jsx)(t,{id:`name`,className:`mt-1 block w-full`,defaultValue:l.user.name,name:`name`,required:!0,autoComplete:`name`,placeholder:`Full name`}),(0,N.jsx)(x,{className:`mt-2`,message:i.name})]}),(0,N.jsxs)(`div`,{className:`grid gap-2`,children:[(0,N.jsx)(S,{htmlFor:`email`,children:`Email address`}),(0,N.jsx)(t,{id:`email`,type:`email`,className:`mt-1 block w-full`,defaultValue:l.user.email,name:`email`,required:!0,autoComplete:`username`,placeholder:`Email address`}),(0,N.jsx)(x,{className:`mt-2`,message:i.email})]}),s&&l.user.email_verified_at===null&&(0,N.jsxs)(`div`,{children:[(0,N.jsxs)(`p`,{className:`-mt-4 text-sm text-muted-foreground`,children:[`Your email address is unverified.`,` `,(0,N.jsx)(o,{href:C(),as:`button`,className:`text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,children:`Click here to resend the verification email.`})]}),c===`verification-link-sent`&&(0,N.jsx)(`div`,{className:`mt-2 text-sm font-medium text-green-600`,children:`A new verification link has been sent to your email address.`})]}),(0,N.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,N.jsx)(r,{disabled:n,"data-test":`update-profile-button`,children:`Save`})})]})}})]}),i[5]=l.user.email,i[6]=l.user.email_verified_at,i[7]=l.user.name,i[8]=s,i[9]=c,i[10]=_):_=i[10];let v;i[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,N.jsx)(P,{}),i[11]=v):v=i[11];let y;return i[12]===_?y=i[13]:(y=(0,N.jsxs)(N.Fragment,{children:[u,f,_,v]}),i[12]=_,i[13]=y),y}F.layout={breadcrumbs:[{title:`Profile settings`,href:c()}]};export{F as default}; \ No newline at end of file diff --git a/public/build/assets/register-DvZlJMq4.js b/public/build/assets/register-DjsSoOdi.js similarity index 88% rename from public/build/assets/register-DvZlJMq4.js rename to public/build/assets/register-DjsSoOdi.js index 5dba266..4d2f09d 100644 --- a/public/build/assets/register-DvZlJMq4.js +++ b/public/build/assets/register-DjsSoOdi.js @@ -1 +1 @@ -import{n as e,r as t,t as n}from"./socialite-DAGU8Gzo.js";import{t as r}from"./password-input-QL8S9D3F.js";import{t as i}from"./github-BytY2MM3.js";import{B as a,Jt as o,R as s,V as c,Wt as l,Yt as u,f as d,qt as f,s as p}from"./app-CVlP31Z1.js";import{t as m}from"./input-error-BdHD9-x4.js";import{t as h}from"./label-D-AkZnW_.js";import{t as g}from"./spinner-CoRrGFqk.js";import{t as _}from"./text-link-B7waIO2E.js";var v=f(),y=e=>({url:y.url(e),method:`post`});y.definition={methods:[`post`],url:`/register`},y.url=e=>y.definition.url+d(e),y.post=e=>({url:y.url(e),method:`post`});var b=e=>({action:y.url(e),method:`post`});b.post=e=>({action:y.url(e),method:`post`}),y.form=b,Object.assign(y,y);var x=l();function S(){let r=(0,v.c)(6),a;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,x.jsx)(u,{title:`Register`}),r[0]=a):a=r[0];let l;r[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,x.jsx)(c,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,x.jsxs)(`a`,{href:n.url(`github`),children:[(0,x.jsx)(e,{iconNode:i,className:`mr-2 h-4 w-4`}),`Github`]})}),r[1]=l):l=r[1];let d;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,x.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[l,(0,x.jsx)(c,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,x.jsxs)(`a`,{href:n.url(`google`),children:[(0,x.jsx)(e,{iconNode:t,className:`mr-2 h-4 w-4`}),`Google`]})})]}),r[2]=d):d=r[2];let f;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,x.jsx)(`div`,{className:`absolute inset-0 flex items-center`,children:(0,x.jsx)(s,{})}),r[3]=f):f=r[3];let p;r[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,x.jsxs)(`div`,{className:`relative`,children:[f,(0,x.jsx)(`div`,{className:`relative flex justify-center text-xs uppercase`,children:(0,x.jsx)(`span`,{className:`bg-background px-2 text-muted-foreground`,children:`Or continue with`})})]}),r[4]=p):p=r[4];let m;return r[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,x.jsxs)(x.Fragment,{children:[a,(0,x.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[d,p,(0,x.jsx)(o,{...y.form(),resetOnSuccess:[`password`,`password_confirmation`],disableWhileProcessing:!0,className:`flex flex-col gap-6`,children:C})]})]}),r[5]=m):m=r[5],m}function C(e){let{processing:t,errors:n}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`div`,{className:`grid gap-6`,children:[(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`name`,children:`Name`}),(0,x.jsx)(a,{id:`name`,type:`text`,required:!0,autoFocus:!0,tabIndex:1,autoComplete:`name`,name:`name`,placeholder:`Full name`}),(0,x.jsx)(m,{message:n.name,className:`mt-2`})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`email`,children:`Email address`}),(0,x.jsx)(a,{id:`email`,type:`email`,required:!0,tabIndex:2,autoComplete:`email`,name:`email`,placeholder:`email@example.com`}),(0,x.jsx)(m,{message:n.email})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`password`,children:`Password`}),(0,x.jsx)(r,{id:`password`,required:!0,tabIndex:3,autoComplete:`new-password`,name:`password`,placeholder:`Password`}),(0,x.jsx)(m,{message:n.password})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,x.jsx)(r,{id:`password_confirmation`,required:!0,tabIndex:4,autoComplete:`new-password`,name:`password_confirmation`,placeholder:`Confirm password`}),(0,x.jsx)(m,{message:n.password_confirmation})]}),(0,x.jsxs)(c,{type:`submit`,className:`mt-2 w-full`,tabIndex:5,"data-test":`register-user-button`,children:[t&&(0,x.jsx)(g,{}),`Create account`]})]}),(0,x.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[`Already have an account?`,` `,(0,x.jsx)(_,{href:p(),tabIndex:6,children:`Log in`})]})]})}S.layout={title:`Create an account`,description:`Enter your details below to create your account`};export{S as default}; \ No newline at end of file +import{n as e,r as t,t as n}from"./socialite-BBNBBxaD.js";import{t as r}from"./password-input-__9RhIwi.js";import{t as i}from"./github-Be9qoVk0.js";import{B as a,Jt as o,R as s,V as c,Wt as l,Yt as u,f as d,qt as f,s as p}from"./app-D7MKN1zp.js";import{t as m}from"./input-error-CzZYqI_U.js";import{t as h}from"./label-fRwP89Ez.js";import{t as g}from"./spinner-CCI0ZpZ9.js";import{t as _}from"./text-link-BlYfkXNw.js";var v=f(),y=e=>({url:y.url(e),method:`post`});y.definition={methods:[`post`],url:`/register`},y.url=e=>y.definition.url+d(e),y.post=e=>({url:y.url(e),method:`post`});var b=e=>({action:y.url(e),method:`post`});b.post=e=>({action:y.url(e),method:`post`}),y.form=b,Object.assign(y,y);var x=l();function S(){let r=(0,v.c)(6),a;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,x.jsx)(u,{title:`Register`}),r[0]=a):a=r[0];let l;r[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,x.jsx)(c,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,x.jsxs)(`a`,{href:n.url(`github`),children:[(0,x.jsx)(e,{iconNode:i,className:`mr-2 h-4 w-4`}),`Github`]})}),r[1]=l):l=r[1];let d;r[2]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,x.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[l,(0,x.jsx)(c,{variant:`outline`,className:`w-full`,asChild:!0,children:(0,x.jsxs)(`a`,{href:n.url(`google`),children:[(0,x.jsx)(e,{iconNode:t,className:`mr-2 h-4 w-4`}),`Google`]})})]}),r[2]=d):d=r[2];let f;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,x.jsx)(`div`,{className:`absolute inset-0 flex items-center`,children:(0,x.jsx)(s,{})}),r[3]=f):f=r[3];let p;r[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,x.jsxs)(`div`,{className:`relative`,children:[f,(0,x.jsx)(`div`,{className:`relative flex justify-center text-xs uppercase`,children:(0,x.jsx)(`span`,{className:`bg-background px-2 text-muted-foreground`,children:`Or continue with`})})]}),r[4]=p):p=r[4];let m;return r[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,x.jsxs)(x.Fragment,{children:[a,(0,x.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[d,p,(0,x.jsx)(o,{...y.form(),resetOnSuccess:[`password`,`password_confirmation`],disableWhileProcessing:!0,className:`flex flex-col gap-6`,children:C})]})]}),r[5]=m):m=r[5],m}function C(e){let{processing:t,errors:n}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`div`,{className:`grid gap-6`,children:[(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`name`,children:`Name`}),(0,x.jsx)(a,{id:`name`,type:`text`,required:!0,autoFocus:!0,tabIndex:1,autoComplete:`name`,name:`name`,placeholder:`Full name`}),(0,x.jsx)(m,{message:n.name,className:`mt-2`})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`email`,children:`Email address`}),(0,x.jsx)(a,{id:`email`,type:`email`,required:!0,tabIndex:2,autoComplete:`email`,name:`email`,placeholder:`email@example.com`}),(0,x.jsx)(m,{message:n.email})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`password`,children:`Password`}),(0,x.jsx)(r,{id:`password`,required:!0,tabIndex:3,autoComplete:`new-password`,name:`password`,placeholder:`Password`}),(0,x.jsx)(m,{message:n.password})]}),(0,x.jsxs)(`div`,{className:`grid gap-2`,children:[(0,x.jsx)(h,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,x.jsx)(r,{id:`password_confirmation`,required:!0,tabIndex:4,autoComplete:`new-password`,name:`password_confirmation`,placeholder:`Confirm password`}),(0,x.jsx)(m,{message:n.password_confirmation})]}),(0,x.jsxs)(c,{type:`submit`,className:`mt-2 w-full`,tabIndex:5,"data-test":`register-user-button`,children:[t&&(0,x.jsx)(g,{}),`Create account`]})]}),(0,x.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[`Already have an account?`,` `,(0,x.jsx)(_,{href:p(),tabIndex:6,children:`Log in`})]})]})}S.layout={title:`Create an account`,description:`Enter your details below to create your account`};export{S as default}; \ No newline at end of file diff --git a/public/build/assets/reset-password-CjTooPZv.js b/public/build/assets/reset-password-CoN8fAaC.js similarity index 85% rename from public/build/assets/reset-password-CjTooPZv.js rename to public/build/assets/reset-password-CoN8fAaC.js index 7690d57..0c7be18 100644 --- a/public/build/assets/reset-password-CjTooPZv.js +++ b/public/build/assets/reset-password-CoN8fAaC.js @@ -1 +1 @@ -import{t as e}from"./password-input-QL8S9D3F.js";import{B as t,Jt as n,V as r,Wt as i,Yt as a,qt as o}from"./app-CVlP31Z1.js";import{t as s}from"./input-error-BdHD9-x4.js";import{t as c}from"./label-D-AkZnW_.js";import{t as l}from"./spinner-CoRrGFqk.js";import{r as u}from"./password-CsunKxsK.js";var d=o(),f=i();function p(i){let o=(0,d.c)(11),{token:p,email:m}=i,h;o[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,f.jsx)(a,{title:`Reset password`}),o[0]=h):h=o[0];let g;o[1]===Symbol.for(`react.memo_cache_sentinel`)?(g=u.form(),o[1]=g):g=o[1];let _;o[2]!==m||o[3]!==p?(_=e=>({...e,token:p,email:m}),o[2]=m,o[3]=p,o[4]=_):_=o[4];let v;o[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=[`password`,`password_confirmation`],o[5]=v):v=o[5];let y;o[6]===m?y=o[7]:(y=n=>{let{processing:i,errors:a}=n;return(0,f.jsxs)(`div`,{className:`grid gap-6`,children:[(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`email`,children:`Email`}),(0,f.jsx)(t,{id:`email`,type:`email`,name:`email`,autoComplete:`email`,value:m,className:`mt-1 block w-full`,readOnly:!0}),(0,f.jsx)(s,{message:a.email,className:`mt-2`})]}),(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`password`,children:`Password`}),(0,f.jsx)(e,{id:`password`,name:`password`,autoComplete:`new-password`,className:`mt-1 block w-full`,autoFocus:!0,placeholder:`Password`}),(0,f.jsx)(s,{message:a.password})]}),(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,f.jsx)(e,{id:`password_confirmation`,name:`password_confirmation`,autoComplete:`new-password`,className:`mt-1 block w-full`,placeholder:`Confirm password`}),(0,f.jsx)(s,{message:a.password_confirmation,className:`mt-2`})]}),(0,f.jsxs)(r,{type:`submit`,className:`mt-4 w-full`,disabled:i,"data-test":`reset-password-button`,children:[i&&(0,f.jsx)(l,{}),`Reset password`]})]})},o[6]=m,o[7]=y);let b;return o[8]!==_||o[9]!==y?(b=(0,f.jsxs)(f.Fragment,{children:[h,(0,f.jsx)(n,{...g,transform:_,resetOnSuccess:v,children:y})]}),o[8]=_,o[9]=y,o[10]=b):b=o[10],b}p.layout={title:`Reset password`,description:`Please enter your new password below`};export{p as default}; \ No newline at end of file +import{t as e}from"./password-input-__9RhIwi.js";import{B as t,Jt as n,V as r,Wt as i,Yt as a,qt as o}from"./app-D7MKN1zp.js";import{t as s}from"./input-error-CzZYqI_U.js";import{t as c}from"./label-fRwP89Ez.js";import{t as l}from"./spinner-CCI0ZpZ9.js";import{r as u}from"./password-BDtte38w.js";var d=o(),f=i();function p(i){let o=(0,d.c)(11),{token:p,email:m}=i,h;o[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,f.jsx)(a,{title:`Reset password`}),o[0]=h):h=o[0];let g;o[1]===Symbol.for(`react.memo_cache_sentinel`)?(g=u.form(),o[1]=g):g=o[1];let _;o[2]!==m||o[3]!==p?(_=e=>({...e,token:p,email:m}),o[2]=m,o[3]=p,o[4]=_):_=o[4];let v;o[5]===Symbol.for(`react.memo_cache_sentinel`)?(v=[`password`,`password_confirmation`],o[5]=v):v=o[5];let y;o[6]===m?y=o[7]:(y=n=>{let{processing:i,errors:a}=n;return(0,f.jsxs)(`div`,{className:`grid gap-6`,children:[(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`email`,children:`Email`}),(0,f.jsx)(t,{id:`email`,type:`email`,name:`email`,autoComplete:`email`,value:m,className:`mt-1 block w-full`,readOnly:!0}),(0,f.jsx)(s,{message:a.email,className:`mt-2`})]}),(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`password`,children:`Password`}),(0,f.jsx)(e,{id:`password`,name:`password`,autoComplete:`new-password`,className:`mt-1 block w-full`,autoFocus:!0,placeholder:`Password`}),(0,f.jsx)(s,{message:a.password})]}),(0,f.jsxs)(`div`,{className:`grid gap-2`,children:[(0,f.jsx)(c,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,f.jsx)(e,{id:`password_confirmation`,name:`password_confirmation`,autoComplete:`new-password`,className:`mt-1 block w-full`,placeholder:`Confirm password`}),(0,f.jsx)(s,{message:a.password_confirmation,className:`mt-2`})]}),(0,f.jsxs)(r,{type:`submit`,className:`mt-4 w-full`,disabled:i,"data-test":`reset-password-button`,children:[i&&(0,f.jsx)(l,{}),`Reset password`]})]})},o[6]=m,o[7]=y);let b;return o[8]!==_||o[9]!==y?(b=(0,f.jsxs)(f.Fragment,{children:[h,(0,f.jsx)(n,{...g,transform:_,resetOnSuccess:v,children:y})]}),o[8]=_,o[9]=y,o[10]=b):b=o[10],b}p.layout={title:`Reset password`,description:`Please enter your new password below`};export{p as default}; \ No newline at end of file diff --git a/public/build/assets/security-CnUHyk63.js b/public/build/assets/security-BxjNuG8g.js similarity index 96% rename from public/build/assets/security-CnUHyk63.js rename to public/build/assets/security-BxjNuG8g.js index b462c9e..5987080 100644 --- a/public/build/assets/security-CnUHyk63.js +++ b/public/build/assets/security-BxjNuG8g.js @@ -1 +1 @@ -import{t as e}from"./check-CCTwZBIw.js";import{t}from"./copy-CgW44MFY.js";import{n,r,t as i}from"./password-input-QL8S9D3F.js";import{a,c as o,i as s,l as c,n as l,r as u,s as d,t as f,u as p}from"./use-two-factor-auth-B2IHMCS_.js";import{G as m,Gt as h,Jt as g,V as _,Wt as v,Yt as y,f as b,ln as x,qt as S,r as C,rn as w,t as T}from"./app-CVlP31Z1.js";import{a as E,n as D,o as O,r as k,t as A}from"./card-BMwhGcsv.js";import{i as j,o as M,r as N,s as P,t as F}from"./dialog-D1phUQb7.js";import{t as I}from"./input-error-BdHD9-x4.js";import{t as L}from"./label-D-AkZnW_.js";import{t as R}from"./spinner-CoRrGFqk.js";import{i as z,n as B,r as V,t as H}from"./use-clipboard-C4ojyAai.js";var U=m(`CircleAlert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),ee=m(`LockKeyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),W=m(`RefreshCw`,[[`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`}]]),te=m(`ScanLine`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]),ne=m(`ShieldCheck`,[[`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`}]]),G=x(w(),1),K=S(),q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/settings/security`},q.url=e=>q.definition.url+b(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var J=e=>({action:q.url(e),method:`get`});J.get=e=>({action:q.url(e),method:`get`}),J.head=e=>({action:q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),q.form=J;var Y=e=>({url:Y.url(e),method:`put`});Y.definition={methods:[`put`],url:`/settings/password`},Y.url=e=>Y.definition.url+b(e),Y.put=e=>({url:Y.url(e),method:`put`});var X=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PUT`,...e?.query??e?.mergeQuery??{}}}),method:`post`});X.put=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PUT`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),Y.form=X;var re={edit:q,update:Y},Z=v();function Q(e){let t=(0,K.c)(8),{errors:n,title:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(U,{}),t[0]=i):i=t[0];let a=r||`Something went wrong.`,o;t[1]===a?o=t[2]:(o=(0,Z.jsx)(z,{children:a}),t[1]=a,t[2]=o);let s;t[3]===n?s=t[4]:(s=(0,Z.jsx)(V,{children:(0,Z.jsx)(`ul`,{className:`list-inside list-disc text-sm`,children:Array.from(new Set(n)).map(ie)})}),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,Z.jsxs)(B,{variant:`destructive`,children:[i,o,s]}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function ie(e,t){return(0,Z.jsx)(`li`,{children:e},t)}function ae(e){let t=(0,K.c)(32),{recoveryCodesList:i,fetchRecoveryCodes:o,errors:s}=e,[c,l]=(0,G.useState)(!1),u=(0,G.useRef)(null),d=i.length>0&&c,f;t[0]!==c||t[1]!==o||t[2]!==i.length?(f=async()=>{!c&&!i.length&&await o(),l(!c),c||setTimeout(()=>{u.current?.scrollIntoView({behavior:`smooth`,block:`nearest`})})},t[0]=c,t[1]=o,t[2]=i.length,t[3]=f):f=t[3];let p=f,m,h;t[4]!==o||t[5]!==i.length?(m=()=>{i.length||o()},h=[i.length,o],t[4]=o,t[5]=i.length,t[6]=m,t[7]=h):(m=t[6],h=t[7]),(0,G.useEffect)(m,h);let v=c?r:n,y;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsxs)(E,{children:[(0,Z.jsxs)(O,{className:`flex gap-3`,children:[(0,Z.jsx)(ee,{className:`size-4`,"aria-hidden":`true`}),`2FA recovery codes`]}),(0,Z.jsx)(k,{children:`Recovery codes let you regain access if you lose your 2FA device. Store them in a secure password manager.`})]}),t[8]=y):y=t[8];let b;t[9]===v?b=t[10]:(b=(0,Z.jsx)(v,{className:`size-4`,"aria-hidden":`true`}),t[9]=v,t[10]=b);let x=c?`Hide`:`View`,S;t[11]!==c||t[12]!==b||t[13]!==x||t[14]!==p?(S=(0,Z.jsxs)(_,{onClick:p,className:`w-fit`,"aria-expanded":c,"aria-controls":`recovery-codes-section`,children:[b,x,` recovery codes`]}),t[11]=c,t[12]=b,t[13]=x,t[14]=p,t[15]=S):S=t[15];let C;t[16]!==d||t[17]!==o?(C=d&&(0,Z.jsx)(g,{...a.form(),options:{preserveScroll:!0},onSuccess:o,children:ce}),t[16]=d,t[17]=o,t[18]=C):C=t[18];let w;t[19]!==S||t[20]!==C?(w=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-3 select-none sm:flex-row sm:items-center sm:justify-between`,children:[S,C]}),t[19]=S,t[20]=C,t[21]=w):w=t[21];let T=`relative overflow-hidden transition-all duration-300 ${c?`h-auto opacity-100`:`h-0 opacity-0`}`,j=!c,M;t[22]!==s||t[23]!==i?(M=(0,Z.jsx)(`div`,{className:`mt-3 space-y-3`,children:s?.length?(0,Z.jsx)(Q,{errors:s}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{ref:u,className:`grid gap-1 rounded-lg bg-muted p-4 font-mono text-sm`,role:`list`,"aria-label":`Recovery codes`,children:i.length?i.map(se):(0,Z.jsx)(`div`,{className:`space-y-2`,"aria-label":`Loading recovery codes`,children:Array.from({length:8},oe)})}),(0,Z.jsx)(`div`,{className:`text-xs text-muted-foreground select-none`,children:(0,Z.jsxs)(`p`,{id:`regenerate-warning`,children:[`Each recovery code can be used once to access your account and will be removed after use. If you need more, click`,` `,(0,Z.jsx)(`span`,{className:`font-bold`,children:`Regenerate codes`}),` `,`above.`]})})]})}),t[22]=s,t[23]=i,t[24]=M):M=t[24];let N;t[25]!==T||t[26]!==j||t[27]!==M?(N=(0,Z.jsx)(`div`,{id:`recovery-codes-section`,className:T,"aria-hidden":j,children:M}),t[25]=T,t[26]=j,t[27]=M,t[28]=N):N=t[28];let P;return t[29]!==N||t[30]!==w?(P=(0,Z.jsxs)(A,{children:[y,(0,Z.jsxs)(D,{children:[w,N]})]}),t[29]=N,t[30]=w,t[31]=P):P=t[31],P}function oe(e,t){return(0,Z.jsx)(`div`,{className:`h-4 animate-pulse rounded bg-muted-foreground/20`,"aria-hidden":`true`},t)}function se(e,t){return(0,Z.jsx)(`div`,{role:`listitem`,className:`select-text`,children:e},t)}function ce(e){let{processing:t}=e;return(0,Z.jsxs)(_,{variant:`secondary`,type:`submit`,disabled:t,"aria-describedby":`regenerate-warning`,children:[(0,Z.jsx)(W,{}),` Regenerate codes`]})}function le(){let e=(0,K.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(`div`,{className:`absolute inset-0 grid grid-cols-5 opacity-50`,children:Array.from({length:5},de)}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`div`,{className:`mb-3 rounded-full border border-border bg-card p-0.5 shadow-sm`,children:(0,Z.jsxs)(`div`,{className:`relative overflow-hidden rounded-full border border-border bg-muted p-2.5`,children:[t,(0,Z.jsx)(`div`,{className:`absolute inset-0 grid grid-rows-5 opacity-50`,children:Array.from({length:5},ue)}),(0,Z.jsx)(te,{className:`relative z-20 size-6 text-foreground`})]})}),e[1]=n):n=e[1],n}function ue(e,t){return(0,Z.jsx)(`div`,{className:`border-b border-border last:border-b-0`},`row-${t+1}`)}function de(e,t){return(0,Z.jsx)(`div`,{className:`border-r border-border last:border-r-0`},`col-${t+1}`)}function fe(n){let r=(0,K.c)(9),{qrCodeSvg:i,manualSetupKey:a,buttonText:o,onNextStep:s,errors:c}=n,{resolvedAppearance:l}=h(),[u,d]=H(),f=u===a?e:t,p;return r[0]!==f||r[1]!==o||r[2]!==d||r[3]!==c||r[4]!==a||r[5]!==s||r[6]!==i||r[7]!==l?(p=(0,Z.jsx)(Z.Fragment,{children:c?.length?(0,Z.jsx)(Q,{errors:c}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`mx-auto flex max-w-md overflow-hidden`,children:(0,Z.jsx)(`div`,{className:`mx-auto aspect-square w-64 rounded-lg border border-border`,children:(0,Z.jsx)(`div`,{className:`z-10 flex h-full w-full items-center justify-center p-5`,children:i?(0,Z.jsx)(`div`,{className:`aspect-square w-full rounded-lg bg-white p-2 [&_svg]:size-full`,dangerouslySetInnerHTML:{__html:i},style:{filter:l===`dark`?`invert(1) brightness(1.5)`:void 0}}):(0,Z.jsx)(R,{})})})}),(0,Z.jsx)(`div`,{className:`flex w-full space-x-5`,children:(0,Z.jsx)(_,{className:`w-full`,onClick:s,children:o})}),(0,Z.jsxs)(`div`,{className:`relative flex w-full items-center justify-center`,children:[(0,Z.jsx)(`div`,{className:`absolute inset-0 top-1/2 h-px w-full bg-border`}),(0,Z.jsx)(`span`,{className:`relative bg-card px-2 py-1`,children:`or, enter the code manually`})]}),(0,Z.jsx)(`div`,{className:`flex w-full space-x-2`,children:(0,Z.jsx)(`div`,{className:`flex w-full items-stretch overflow-hidden rounded-xl border border-border`,children:a?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`input`,{type:`text`,readOnly:!0,value:a,className:`h-full w-full bg-background p-3 text-foreground outline-none`}),(0,Z.jsx)(`button`,{onClick:()=>d(a),className:`border-l border-border px-3 hover:bg-muted`,children:(0,Z.jsx)(f,{className:`w-4`})})]}):(0,Z.jsx)(`div`,{className:`flex h-full w-full items-center justify-center bg-muted p-3`,children:(0,Z.jsx)(R,{})})})})]})}),r[0]=f,r[1]=o,r[2]=d,r[3]=c,r[4]=a,r[5]=s,r[6]=i,r[7]=l,r[8]=p):p=r[8],p}function pe(e){let t=(0,K.c)(11),{onClose:n,onBack:r}=e,[i,a]=(0,G.useState)(``),s=(0,G.useRef)(null),c,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{setTimeout(()=>{s.current?.querySelector(`input`)?.focus()},0)},u=[],t[0]=c,t[1]=u):(c=t[0],u=t[1]),(0,G.useEffect)(c,u);let f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=l.form(),t[2]=f):f=t[2];let m;t[3]===n?m=t[4]:(m=()=>n(),t[3]=n,t[4]=m);let h;t[5]!==i||t[6]!==r?(h=e=>{let{processing:t,errors:n}=e;return(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsxs)(`div`,{ref:s,className:`relative w-full space-y-3`,children:[(0,Z.jsxs)(`div`,{className:`flex w-full flex-col items-center space-y-3 py-2`,children:[(0,Z.jsx)(d,{id:`otp`,name:`code`,maxLength:6,onChange:a,disabled:t,pattern:p,autoFocus:!0,children:(0,Z.jsx)(o,{children:Array.from({length:6},me)})}),(0,Z.jsx)(I,{message:n?.confirmTwoFactorAuthentication?.code})]}),(0,Z.jsxs)(`div`,{className:`flex w-full space-x-5`,children:[(0,Z.jsx)(_,{type:`button`,variant:`outline`,className:`flex-1`,onClick:r,disabled:t,children:`Back`}),(0,Z.jsx)(_,{type:`submit`,className:`flex-1`,disabled:t||i.length<6,children:`Confirm`})]})]})})},t[5]=i,t[6]=r,t[7]=h):h=t[7];let v;return t[8]!==m||t[9]!==h?(v=(0,Z.jsx)(g,{...f,onSuccess:m,resetOnError:!0,resetOnSuccess:!0,children:h}),t[8]=m,t[9]=h,t[10]=v):v=t[10],v}function me(e,t){return(0,Z.jsx)(c,{index:t},t)}function he(e){let t=(0,K.c)(43),{isOpen:n,onClose:r,requiresConfirmation:i,twoFactorEnabled:a,qrCodeSvg:o,manualSetupKey:s,clearSetupData:c,fetchSetupData:l,errors:u}=e,[d,f]=(0,G.useState)(!1),p;bb0:{if(a){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Two-factor authentication enabled`,description:`Two-factor authentication is now enabled. Scan the QR code or enter the setup key in your authenticator app.`,buttonText:`Close`},t[0]=e):e=t[0],p=e;break bb0}if(d){let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Verify authentication code`,description:`Enter the 6-digit code from your authenticator app`,buttonText:`Continue`},t[1]=e):e=t[1],p=e;break bb0}let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Enable two-factor authentication`,description:`To finish enabling two-factor authentication, scan the QR code or enter the setup key in your authenticator app`,buttonText:`Continue`},t[2]=e):e=t[2],p=e}let m=p,h;t[3]===c?h=t[4]:(h=()=>{f(!1),c()},t[3]=c,t[4]=h);let g=h,_;t[5]!==r||t[6]!==g?(_=()=>{g(),r()},t[5]=r,t[6]=g,t[7]=_):_=t[7];let v=_,y;t[8]!==v||t[9]!==i?(y=()=>{if(i){f(!0);return}v()},t[8]=v,t[9]=i,t[10]=y):y=t[10];let b=y,x=(0,G.useRef)(l),S,C;t[11]===l?(S=t[12],C=t[13]):(S=()=>{x.current=l},C=[l],t[11]=l,t[12]=S,t[13]=C),(0,G.useEffect)(S,C);let w,T;t[14]!==n||t[15]!==o?(w=()=>{n&&!o&&x.current()},T=[n,o],t[14]=n,t[15]=o,t[16]=w,t[17]=T):(w=t[16],T=t[17]),(0,G.useEffect)(w,T);let E;t[18]===v?E=t[19]:(E=e=>!e&&v(),t[18]=v,t[19]=E);let D;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Z.jsx)(le,{}),t[20]=D):D=t[20];let O;t[21]===m.title?O=t[22]:(O=(0,Z.jsx)(P,{children:m.title}),t[21]=m.title,t[22]=O);let k;t[23]===m.description?k=t[24]:(k=(0,Z.jsx)(j,{className:`text-center`,children:m.description}),t[23]=m.description,t[24]=k);let A;t[25]!==O||t[26]!==k?(A=(0,Z.jsxs)(M,{className:`flex items-center justify-center`,children:[D,O,k]}),t[25]=O,t[26]=k,t[27]=A):A=t[27];let I;t[28]!==u||t[29]!==v||t[30]!==b||t[31]!==s||t[32]!==m.buttonText||t[33]!==o||t[34]!==d?(I=(0,Z.jsx)(`div`,{className:`flex flex-col items-center space-y-5`,children:d?(0,Z.jsx)(pe,{onClose:v,onBack:()=>f(!1)}):(0,Z.jsx)(fe,{qrCodeSvg:o,manualSetupKey:s,buttonText:m.buttonText,onNextStep:b,errors:u})}),t[28]=u,t[29]=v,t[30]=b,t[31]=s,t[32]=m.buttonText,t[33]=o,t[34]=d,t[35]=I):I=t[35];let L;t[36]!==A||t[37]!==I?(L=(0,Z.jsxs)(N,{className:`sm:max-w-md`,children:[A,I]}),t[36]=A,t[37]=I,t[38]=L):L=t[38];let R;return t[39]!==n||t[40]!==L||t[41]!==E?(R=(0,Z.jsx)(F,{open:n,onOpenChange:E,children:L}),t[39]=n,t[40]=L,t[41]=E,t[42]=R):R=t[42],R}function $(e){let t=(0,K.c)(27),{canManageTwoFactor:n,requiresConfirmation:r,twoFactorEnabled:a}=e,o=n===void 0?!1:n,c=r===void 0?!1:r,l=a===void 0?!1:a,d=(0,G.useRef)(null),p=(0,G.useRef)(null),{qrCodeSvg:m,hasSetupData:h,manualSetupKey:v,clearSetupData:b,clearTwoFactorAuthData:x,fetchSetupData:S,recoveryCodesList:w,fetchRecoveryCodes:T,errors:E}=f(),[D,O]=(0,G.useState)(!1),k=(0,G.useRef)(l),A,j;t[0]!==x||t[1]!==l?(A=()=>{k.current&&!l&&x(),k.current=l},j=[l,x],t[0]=x,t[1]=l,t[2]=A,t[3]=j):(A=t[2],j=t[3]),(0,G.useEffect)(A,j);let M,N;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Z.jsx)(y,{title:`Security settings`}),N=(0,Z.jsx)(`h1`,{className:`sr-only`,children:`Security settings`}),t[4]=M,t[5]=N):(M=t[4],N=t[5]);let P;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,Z.jsx)(C,{variant:`small`,title:`Update password`,description:`Ensure your account is using a long, random password to stay secure`}),t[6]=P):P=t[6];let F,R,z;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(z=re.update.form(),F={preserveScroll:!0},R=[`password`,`password_confirmation`,`current_password`],t[7]=F,t[8]=R,t[9]=z):(F=t[7],R=t[8],z=t[9]);let B;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>{e.password&&d.current?.focus(),e.current_password&&p.current?.focus()},t[10]=B):B=t[10];let V;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,Z.jsxs)(`div`,{className:`space-y-6`,children:[P,(0,Z.jsx)(g,{...z,options:F,resetOnError:R,resetOnSuccess:!0,onError:B,className:`space-y-6`,children:e=>{let{errors:t,processing:n}=e;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(L,{htmlFor:`current_password`,children:`Current password`}),(0,Z.jsx)(i,{id:`current_password`,ref:p,name:`current_password`,className:`mt-1 block w-full`,autoComplete:`current-password`,placeholder:`Current password`}),(0,Z.jsx)(I,{message:t.current_password})]}),(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(L,{htmlFor:`password`,children:`New password`}),(0,Z.jsx)(i,{id:`password`,ref:d,name:`password`,className:`mt-1 block w-full`,autoComplete:`new-password`,placeholder:`New password`}),(0,Z.jsx)(I,{message:t.password})]}),(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(L,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,Z.jsx)(i,{id:`password_confirmation`,name:`password_confirmation`,className:`mt-1 block w-full`,autoComplete:`new-password`,placeholder:`Confirm password`}),(0,Z.jsx)(I,{message:t.password_confirmation})]}),(0,Z.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,Z.jsx)(_,{disabled:n,"data-test":`update-password-button`,children:`Save password`})})]})}})]}),t[11]=V):V=t[11];let H;t[12]!==o||t[13]!==b||t[14]!==E||t[15]!==T||t[16]!==S||t[17]!==h||t[18]!==v||t[19]!==m||t[20]!==w||t[21]!==c||t[22]!==D||t[23]!==l?(H=o&&(0,Z.jsxs)(`div`,{className:`space-y-6`,children:[(0,Z.jsx)(C,{variant:`small`,title:`Two-factor authentication`,description:`Manage your two-factor authentication settings`}),l?(0,Z.jsxs)(`div`,{className:`flex flex-col items-start justify-start space-y-4`,children:[(0,Z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`You will be prompted for a secure, random pin during login, which you can retrieve from the TOTP-supported application on your phone.`}),(0,Z.jsx)(`div`,{className:`relative inline`,children:(0,Z.jsx)(g,{...u.form(),children:_e})}),(0,Z.jsx)(ae,{recoveryCodesList:w,fetchRecoveryCodes:T,errors:E})]}):(0,Z.jsxs)(`div`,{className:`flex flex-col items-start justify-start space-y-4`,children:[(0,Z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`When you enable two-factor authentication, you will be prompted for a secure pin during login. This pin can be retrieved from a TOTP-supported application on your phone.`}),(0,Z.jsx)(`div`,{children:h?(0,Z.jsxs)(_,{onClick:()=>O(!0),children:[(0,Z.jsx)(ne,{}),`Continue setup`]}):(0,Z.jsx)(g,{...s.form(),onSuccess:()=>O(!0),children:ge})})]}),(0,Z.jsx)(he,{isOpen:D,onClose:()=>O(!1),requiresConfirmation:c,twoFactorEnabled:l,qrCodeSvg:m,manualSetupKey:v,clearSetupData:b,fetchSetupData:S,errors:E})]}),t[12]=o,t[13]=b,t[14]=E,t[15]=T,t[16]=S,t[17]=h,t[18]=v,t[19]=m,t[20]=w,t[21]=c,t[22]=D,t[23]=l,t[24]=H):H=t[24];let U;return t[25]===H?U=t[26]:(U=(0,Z.jsxs)(Z.Fragment,{children:[M,N,V,H]}),t[25]=H,t[26]=U),U}function ge(e){let{processing:t}=e;return(0,Z.jsx)(_,{type:`submit`,disabled:t,children:`Enable 2FA`})}function _e(e){let{processing:t}=e;return(0,Z.jsx)(_,{variant:`destructive`,type:`submit`,disabled:t,children:`Disable 2FA`})}$.layout={breadcrumbs:[{title:`Security settings`,href:T()}]};export{$ as default}; \ No newline at end of file +import{t as e}from"./check-BBvDdM_9.js";import{t}from"./copy-HrVumo6t.js";import{n,r,t as i}from"./password-input-__9RhIwi.js";import{a,c as o,i as s,l as c,n as l,r as u,s as d,t as f,u as p}from"./use-two-factor-auth-Bdh-sKJ3.js";import{G as m,Gt as h,Jt as g,V as _,Wt as v,Yt as y,f as b,ln as x,qt as S,r as C,rn as w,t as T}from"./app-D7MKN1zp.js";import{a as E,n as D,o as O,r as k,t as A}from"./card-C1ekp7Ou.js";import{i as j,o as M,r as N,s as P,t as F}from"./dialog-CM260op0.js";import{t as I}from"./input-error-CzZYqI_U.js";import{t as L}from"./label-fRwP89Ez.js";import{t as R}from"./spinner-CCI0ZpZ9.js";import{i as z,n as B,r as V,t as H}from"./use-clipboard-BvQkhUu9.js";var U=m(`CircleAlert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),ee=m(`LockKeyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),W=m(`RefreshCw`,[[`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`}]]),te=m(`ScanLine`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]),ne=m(`ShieldCheck`,[[`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`}]]),G=x(w(),1),K=S(),q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/settings/security`},q.url=e=>q.definition.url+b(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var J=e=>({action:q.url(e),method:`get`});J.get=e=>({action:q.url(e),method:`get`}),J.head=e=>({action:q.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),q.form=J;var Y=e=>({url:Y.url(e),method:`put`});Y.definition={methods:[`put`],url:`/settings/password`},Y.url=e=>Y.definition.url+b(e),Y.put=e=>({url:Y.url(e),method:`put`});var X=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PUT`,...e?.query??e?.mergeQuery??{}}}),method:`post`});X.put=e=>({action:Y.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`PUT`,...e?.query??e?.mergeQuery??{}}}),method:`post`}),Y.form=X;var re={edit:q,update:Y},Z=v();function Q(e){let t=(0,K.c)(8),{errors:n,title:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(U,{}),t[0]=i):i=t[0];let a=r||`Something went wrong.`,o;t[1]===a?o=t[2]:(o=(0,Z.jsx)(z,{children:a}),t[1]=a,t[2]=o);let s;t[3]===n?s=t[4]:(s=(0,Z.jsx)(V,{children:(0,Z.jsx)(`ul`,{className:`list-inside list-disc text-sm`,children:Array.from(new Set(n)).map(ie)})}),t[3]=n,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,Z.jsxs)(B,{variant:`destructive`,children:[i,o,s]}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function ie(e,t){return(0,Z.jsx)(`li`,{children:e},t)}function ae(e){let t=(0,K.c)(32),{recoveryCodesList:i,fetchRecoveryCodes:o,errors:s}=e,[c,l]=(0,G.useState)(!1),u=(0,G.useRef)(null),d=i.length>0&&c,f;t[0]!==c||t[1]!==o||t[2]!==i.length?(f=async()=>{!c&&!i.length&&await o(),l(!c),c||setTimeout(()=>{u.current?.scrollIntoView({behavior:`smooth`,block:`nearest`})})},t[0]=c,t[1]=o,t[2]=i.length,t[3]=f):f=t[3];let p=f,m,h;t[4]!==o||t[5]!==i.length?(m=()=>{i.length||o()},h=[i.length,o],t[4]=o,t[5]=i.length,t[6]=m,t[7]=h):(m=t[6],h=t[7]),(0,G.useEffect)(m,h);let v=c?r:n,y;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Z.jsxs)(E,{children:[(0,Z.jsxs)(O,{className:`flex gap-3`,children:[(0,Z.jsx)(ee,{className:`size-4`,"aria-hidden":`true`}),`2FA recovery codes`]}),(0,Z.jsx)(k,{children:`Recovery codes let you regain access if you lose your 2FA device. Store them in a secure password manager.`})]}),t[8]=y):y=t[8];let b;t[9]===v?b=t[10]:(b=(0,Z.jsx)(v,{className:`size-4`,"aria-hidden":`true`}),t[9]=v,t[10]=b);let x=c?`Hide`:`View`,S;t[11]!==c||t[12]!==b||t[13]!==x||t[14]!==p?(S=(0,Z.jsxs)(_,{onClick:p,className:`w-fit`,"aria-expanded":c,"aria-controls":`recovery-codes-section`,children:[b,x,` recovery codes`]}),t[11]=c,t[12]=b,t[13]=x,t[14]=p,t[15]=S):S=t[15];let C;t[16]!==d||t[17]!==o?(C=d&&(0,Z.jsx)(g,{...a.form(),options:{preserveScroll:!0},onSuccess:o,children:ce}),t[16]=d,t[17]=o,t[18]=C):C=t[18];let w;t[19]!==S||t[20]!==C?(w=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-3 select-none sm:flex-row sm:items-center sm:justify-between`,children:[S,C]}),t[19]=S,t[20]=C,t[21]=w):w=t[21];let T=`relative overflow-hidden transition-all duration-300 ${c?`h-auto opacity-100`:`h-0 opacity-0`}`,j=!c,M;t[22]!==s||t[23]!==i?(M=(0,Z.jsx)(`div`,{className:`mt-3 space-y-3`,children:s?.length?(0,Z.jsx)(Q,{errors:s}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{ref:u,className:`grid gap-1 rounded-lg bg-muted p-4 font-mono text-sm`,role:`list`,"aria-label":`Recovery codes`,children:i.length?i.map(se):(0,Z.jsx)(`div`,{className:`space-y-2`,"aria-label":`Loading recovery codes`,children:Array.from({length:8},oe)})}),(0,Z.jsx)(`div`,{className:`text-xs text-muted-foreground select-none`,children:(0,Z.jsxs)(`p`,{id:`regenerate-warning`,children:[`Each recovery code can be used once to access your account and will be removed after use. If you need more, click`,` `,(0,Z.jsx)(`span`,{className:`font-bold`,children:`Regenerate codes`}),` `,`above.`]})})]})}),t[22]=s,t[23]=i,t[24]=M):M=t[24];let N;t[25]!==T||t[26]!==j||t[27]!==M?(N=(0,Z.jsx)(`div`,{id:`recovery-codes-section`,className:T,"aria-hidden":j,children:M}),t[25]=T,t[26]=j,t[27]=M,t[28]=N):N=t[28];let P;return t[29]!==N||t[30]!==w?(P=(0,Z.jsxs)(A,{children:[y,(0,Z.jsxs)(D,{children:[w,N]})]}),t[29]=N,t[30]=w,t[31]=P):P=t[31],P}function oe(e,t){return(0,Z.jsx)(`div`,{className:`h-4 animate-pulse rounded bg-muted-foreground/20`,"aria-hidden":`true`},t)}function se(e,t){return(0,Z.jsx)(`div`,{role:`listitem`,className:`select-text`,children:e},t)}function ce(e){let{processing:t}=e;return(0,Z.jsxs)(_,{variant:`secondary`,type:`submit`,disabled:t,"aria-describedby":`regenerate-warning`,children:[(0,Z.jsx)(W,{}),` Regenerate codes`]})}function le(){let e=(0,K.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(`div`,{className:`absolute inset-0 grid grid-cols-5 opacity-50`,children:Array.from({length:5},de)}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`div`,{className:`mb-3 rounded-full border border-border bg-card p-0.5 shadow-sm`,children:(0,Z.jsxs)(`div`,{className:`relative overflow-hidden rounded-full border border-border bg-muted p-2.5`,children:[t,(0,Z.jsx)(`div`,{className:`absolute inset-0 grid grid-rows-5 opacity-50`,children:Array.from({length:5},ue)}),(0,Z.jsx)(te,{className:`relative z-20 size-6 text-foreground`})]})}),e[1]=n):n=e[1],n}function ue(e,t){return(0,Z.jsx)(`div`,{className:`border-b border-border last:border-b-0`},`row-${t+1}`)}function de(e,t){return(0,Z.jsx)(`div`,{className:`border-r border-border last:border-r-0`},`col-${t+1}`)}function fe(n){let r=(0,K.c)(9),{qrCodeSvg:i,manualSetupKey:a,buttonText:o,onNextStep:s,errors:c}=n,{resolvedAppearance:l}=h(),[u,d]=H(),f=u===a?e:t,p;return r[0]!==f||r[1]!==o||r[2]!==d||r[3]!==c||r[4]!==a||r[5]!==s||r[6]!==i||r[7]!==l?(p=(0,Z.jsx)(Z.Fragment,{children:c?.length?(0,Z.jsx)(Q,{errors:c}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{className:`mx-auto flex max-w-md overflow-hidden`,children:(0,Z.jsx)(`div`,{className:`mx-auto aspect-square w-64 rounded-lg border border-border`,children:(0,Z.jsx)(`div`,{className:`z-10 flex h-full w-full items-center justify-center p-5`,children:i?(0,Z.jsx)(`div`,{className:`aspect-square w-full rounded-lg bg-white p-2 [&_svg]:size-full`,dangerouslySetInnerHTML:{__html:i},style:{filter:l===`dark`?`invert(1) brightness(1.5)`:void 0}}):(0,Z.jsx)(R,{})})})}),(0,Z.jsx)(`div`,{className:`flex w-full space-x-5`,children:(0,Z.jsx)(_,{className:`w-full`,onClick:s,children:o})}),(0,Z.jsxs)(`div`,{className:`relative flex w-full items-center justify-center`,children:[(0,Z.jsx)(`div`,{className:`absolute inset-0 top-1/2 h-px w-full bg-border`}),(0,Z.jsx)(`span`,{className:`relative bg-card px-2 py-1`,children:`or, enter the code manually`})]}),(0,Z.jsx)(`div`,{className:`flex w-full space-x-2`,children:(0,Z.jsx)(`div`,{className:`flex w-full items-stretch overflow-hidden rounded-xl border border-border`,children:a?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`input`,{type:`text`,readOnly:!0,value:a,className:`h-full w-full bg-background p-3 text-foreground outline-none`}),(0,Z.jsx)(`button`,{onClick:()=>d(a),className:`border-l border-border px-3 hover:bg-muted`,children:(0,Z.jsx)(f,{className:`w-4`})})]}):(0,Z.jsx)(`div`,{className:`flex h-full w-full items-center justify-center bg-muted p-3`,children:(0,Z.jsx)(R,{})})})})]})}),r[0]=f,r[1]=o,r[2]=d,r[3]=c,r[4]=a,r[5]=s,r[6]=i,r[7]=l,r[8]=p):p=r[8],p}function pe(e){let t=(0,K.c)(11),{onClose:n,onBack:r}=e,[i,a]=(0,G.useState)(``),s=(0,G.useRef)(null),c,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{setTimeout(()=>{s.current?.querySelector(`input`)?.focus()},0)},u=[],t[0]=c,t[1]=u):(c=t[0],u=t[1]),(0,G.useEffect)(c,u);let f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=l.form(),t[2]=f):f=t[2];let m;t[3]===n?m=t[4]:(m=()=>n(),t[3]=n,t[4]=m);let h;t[5]!==i||t[6]!==r?(h=e=>{let{processing:t,errors:n}=e;return(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsxs)(`div`,{ref:s,className:`relative w-full space-y-3`,children:[(0,Z.jsxs)(`div`,{className:`flex w-full flex-col items-center space-y-3 py-2`,children:[(0,Z.jsx)(d,{id:`otp`,name:`code`,maxLength:6,onChange:a,disabled:t,pattern:p,autoFocus:!0,children:(0,Z.jsx)(o,{children:Array.from({length:6},me)})}),(0,Z.jsx)(I,{message:n?.confirmTwoFactorAuthentication?.code})]}),(0,Z.jsxs)(`div`,{className:`flex w-full space-x-5`,children:[(0,Z.jsx)(_,{type:`button`,variant:`outline`,className:`flex-1`,onClick:r,disabled:t,children:`Back`}),(0,Z.jsx)(_,{type:`submit`,className:`flex-1`,disabled:t||i.length<6,children:`Confirm`})]})]})})},t[5]=i,t[6]=r,t[7]=h):h=t[7];let v;return t[8]!==m||t[9]!==h?(v=(0,Z.jsx)(g,{...f,onSuccess:m,resetOnError:!0,resetOnSuccess:!0,children:h}),t[8]=m,t[9]=h,t[10]=v):v=t[10],v}function me(e,t){return(0,Z.jsx)(c,{index:t},t)}function he(e){let t=(0,K.c)(43),{isOpen:n,onClose:r,requiresConfirmation:i,twoFactorEnabled:a,qrCodeSvg:o,manualSetupKey:s,clearSetupData:c,fetchSetupData:l,errors:u}=e,[d,f]=(0,G.useState)(!1),p;bb0:{if(a){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Two-factor authentication enabled`,description:`Two-factor authentication is now enabled. Scan the QR code or enter the setup key in your authenticator app.`,buttonText:`Close`},t[0]=e):e=t[0],p=e;break bb0}if(d){let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Verify authentication code`,description:`Enter the 6-digit code from your authenticator app`,buttonText:`Continue`},t[1]=e):e=t[1],p=e;break bb0}let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Enable two-factor authentication`,description:`To finish enabling two-factor authentication, scan the QR code or enter the setup key in your authenticator app`,buttonText:`Continue`},t[2]=e):e=t[2],p=e}let m=p,h;t[3]===c?h=t[4]:(h=()=>{f(!1),c()},t[3]=c,t[4]=h);let g=h,_;t[5]!==r||t[6]!==g?(_=()=>{g(),r()},t[5]=r,t[6]=g,t[7]=_):_=t[7];let v=_,y;t[8]!==v||t[9]!==i?(y=()=>{if(i){f(!0);return}v()},t[8]=v,t[9]=i,t[10]=y):y=t[10];let b=y,x=(0,G.useRef)(l),S,C;t[11]===l?(S=t[12],C=t[13]):(S=()=>{x.current=l},C=[l],t[11]=l,t[12]=S,t[13]=C),(0,G.useEffect)(S,C);let w,T;t[14]!==n||t[15]!==o?(w=()=>{n&&!o&&x.current()},T=[n,o],t[14]=n,t[15]=o,t[16]=w,t[17]=T):(w=t[16],T=t[17]),(0,G.useEffect)(w,T);let E;t[18]===v?E=t[19]:(E=e=>!e&&v(),t[18]=v,t[19]=E);let D;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Z.jsx)(le,{}),t[20]=D):D=t[20];let O;t[21]===m.title?O=t[22]:(O=(0,Z.jsx)(P,{children:m.title}),t[21]=m.title,t[22]=O);let k;t[23]===m.description?k=t[24]:(k=(0,Z.jsx)(j,{className:`text-center`,children:m.description}),t[23]=m.description,t[24]=k);let A;t[25]!==O||t[26]!==k?(A=(0,Z.jsxs)(M,{className:`flex items-center justify-center`,children:[D,O,k]}),t[25]=O,t[26]=k,t[27]=A):A=t[27];let I;t[28]!==u||t[29]!==v||t[30]!==b||t[31]!==s||t[32]!==m.buttonText||t[33]!==o||t[34]!==d?(I=(0,Z.jsx)(`div`,{className:`flex flex-col items-center space-y-5`,children:d?(0,Z.jsx)(pe,{onClose:v,onBack:()=>f(!1)}):(0,Z.jsx)(fe,{qrCodeSvg:o,manualSetupKey:s,buttonText:m.buttonText,onNextStep:b,errors:u})}),t[28]=u,t[29]=v,t[30]=b,t[31]=s,t[32]=m.buttonText,t[33]=o,t[34]=d,t[35]=I):I=t[35];let L;t[36]!==A||t[37]!==I?(L=(0,Z.jsxs)(N,{className:`sm:max-w-md`,children:[A,I]}),t[36]=A,t[37]=I,t[38]=L):L=t[38];let R;return t[39]!==n||t[40]!==L||t[41]!==E?(R=(0,Z.jsx)(F,{open:n,onOpenChange:E,children:L}),t[39]=n,t[40]=L,t[41]=E,t[42]=R):R=t[42],R}function $(e){let t=(0,K.c)(27),{canManageTwoFactor:n,requiresConfirmation:r,twoFactorEnabled:a}=e,o=n===void 0?!1:n,c=r===void 0?!1:r,l=a===void 0?!1:a,d=(0,G.useRef)(null),p=(0,G.useRef)(null),{qrCodeSvg:m,hasSetupData:h,manualSetupKey:v,clearSetupData:b,clearTwoFactorAuthData:x,fetchSetupData:S,recoveryCodesList:w,fetchRecoveryCodes:T,errors:E}=f(),[D,O]=(0,G.useState)(!1),k=(0,G.useRef)(l),A,j;t[0]!==x||t[1]!==l?(A=()=>{k.current&&!l&&x(),k.current=l},j=[l,x],t[0]=x,t[1]=l,t[2]=A,t[3]=j):(A=t[2],j=t[3]),(0,G.useEffect)(A,j);let M,N;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Z.jsx)(y,{title:`Security settings`}),N=(0,Z.jsx)(`h1`,{className:`sr-only`,children:`Security settings`}),t[4]=M,t[5]=N):(M=t[4],N=t[5]);let P;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,Z.jsx)(C,{variant:`small`,title:`Update password`,description:`Ensure your account is using a long, random password to stay secure`}),t[6]=P):P=t[6];let F,R,z;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(z=re.update.form(),F={preserveScroll:!0},R=[`password`,`password_confirmation`,`current_password`],t[7]=F,t[8]=R,t[9]=z):(F=t[7],R=t[8],z=t[9]);let B;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>{e.password&&d.current?.focus(),e.current_password&&p.current?.focus()},t[10]=B):B=t[10];let V;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,Z.jsxs)(`div`,{className:`space-y-6`,children:[P,(0,Z.jsx)(g,{...z,options:F,resetOnError:R,resetOnSuccess:!0,onError:B,className:`space-y-6`,children:e=>{let{errors:t,processing:n}=e;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(L,{htmlFor:`current_password`,children:`Current password`}),(0,Z.jsx)(i,{id:`current_password`,ref:p,name:`current_password`,className:`mt-1 block w-full`,autoComplete:`current-password`,placeholder:`Current password`}),(0,Z.jsx)(I,{message:t.current_password})]}),(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(L,{htmlFor:`password`,children:`New password`}),(0,Z.jsx)(i,{id:`password`,ref:d,name:`password`,className:`mt-1 block w-full`,autoComplete:`new-password`,placeholder:`New password`}),(0,Z.jsx)(I,{message:t.password})]}),(0,Z.jsxs)(`div`,{className:`grid gap-2`,children:[(0,Z.jsx)(L,{htmlFor:`password_confirmation`,children:`Confirm password`}),(0,Z.jsx)(i,{id:`password_confirmation`,name:`password_confirmation`,className:`mt-1 block w-full`,autoComplete:`new-password`,placeholder:`Confirm password`}),(0,Z.jsx)(I,{message:t.password_confirmation})]}),(0,Z.jsx)(`div`,{className:`flex items-center gap-4`,children:(0,Z.jsx)(_,{disabled:n,"data-test":`update-password-button`,children:`Save password`})})]})}})]}),t[11]=V):V=t[11];let H;t[12]!==o||t[13]!==b||t[14]!==E||t[15]!==T||t[16]!==S||t[17]!==h||t[18]!==v||t[19]!==m||t[20]!==w||t[21]!==c||t[22]!==D||t[23]!==l?(H=o&&(0,Z.jsxs)(`div`,{className:`space-y-6`,children:[(0,Z.jsx)(C,{variant:`small`,title:`Two-factor authentication`,description:`Manage your two-factor authentication settings`}),l?(0,Z.jsxs)(`div`,{className:`flex flex-col items-start justify-start space-y-4`,children:[(0,Z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`You will be prompted for a secure, random pin during login, which you can retrieve from the TOTP-supported application on your phone.`}),(0,Z.jsx)(`div`,{className:`relative inline`,children:(0,Z.jsx)(g,{...u.form(),children:_e})}),(0,Z.jsx)(ae,{recoveryCodesList:w,fetchRecoveryCodes:T,errors:E})]}):(0,Z.jsxs)(`div`,{className:`flex flex-col items-start justify-start space-y-4`,children:[(0,Z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`When you enable two-factor authentication, you will be prompted for a secure pin during login. This pin can be retrieved from a TOTP-supported application on your phone.`}),(0,Z.jsx)(`div`,{children:h?(0,Z.jsxs)(_,{onClick:()=>O(!0),children:[(0,Z.jsx)(ne,{}),`Continue setup`]}):(0,Z.jsx)(g,{...s.form(),onSuccess:()=>O(!0),children:ge})})]}),(0,Z.jsx)(he,{isOpen:D,onClose:()=>O(!1),requiresConfirmation:c,twoFactorEnabled:l,qrCodeSvg:m,manualSetupKey:v,clearSetupData:b,fetchSetupData:S,errors:E})]}),t[12]=o,t[13]=b,t[14]=E,t[15]=T,t[16]=S,t[17]=h,t[18]=v,t[19]=m,t[20]=w,t[21]=c,t[22]=D,t[23]=l,t[24]=H):H=t[24];let U;return t[25]===H?U=t[26]:(U=(0,Z.jsxs)(Z.Fragment,{children:[M,N,V,H]}),t[25]=H,t[26]=U),U}function ge(e){let{processing:t}=e;return(0,Z.jsx)(_,{type:`submit`,disabled:t,children:`Enable 2FA`})}function _e(e){let{processing:t}=e;return(0,Z.jsx)(_,{variant:`destructive`,type:`submit`,disabled:t,children:`Disable 2FA`})}$.layout={breadcrumbs:[{title:`Security settings`,href:T()}]};export{$ as default}; \ No newline at end of file diff --git a/public/build/assets/select-DHOWe80x.js b/public/build/assets/select-DsMxFFiu.js similarity index 99% rename from public/build/assets/select-DHOWe80x.js rename to public/build/assets/select-DsMxFFiu.js index 66cb569..bb33bd8 100644 --- a/public/build/assets/select-DHOWe80x.js +++ b/public/build/assets/select-DsMxFFiu.js @@ -1 +1 @@ -import{t as e}from"./check-CCTwZBIw.js";import{t}from"./chevron-down-Cx1PhGaQ.js";import{t as n}from"./dist-CyCRNm1V.js";import{$ as r,Bt as i,F as a,G as o,Ht as s,I as c,L as l,Lt as u,M as d,N as f,P as p,Q as m,Rt as h,Ut as g,Vt as _,Wt as v,at as y,et as b,it as x,ln as S,nn as C,nt as w,ot as T,qt as E,rn as D,rt as O,st as k,zt as A}from"./app-CVlP31Z1.js";var j=o(`ChevronUp`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),M=S(D(),1),N=S(C(),1),P=E();function F(e,[t,n]){return Math.min(n,Math.max(t,e))}var I=v();function L(e,t=[]){let n=[];function r(t,r){let i=M.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=M.useMemo(()=>o,Object.values(o));return(0,I.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=M.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>M.createContext(e));return function(n){let r=n?.[e]||t;return M.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,R(i,...t)]}function R(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function ee(e){let t=z(e),n=M.forwardRef((e,n)=>{let{children:r,...i}=e,a=M.Children.toArray(r),o=a.find(B);if(o){let e=o.props.children,r=a.map(t=>t===o?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t);return(0,I.jsx)(t,{...i,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return(0,I.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function z(e){let t=M.forwardRef((e,t)=>{let{children:n,...r}=e;if(M.isValidElement(n)){let e=H(n),i=V(r,n.props);return n.type!==M.Fragment&&(i.ref=t?_(t,e):e),M.cloneElement(n,i)}return M.Children.count(n)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var te=Symbol(`radix.slottable`);function B(e){return M.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===te}function V(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function H(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var U=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ee(`Primitive.${t}`),r=M.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,I.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ne=[` `,`Enter`,`ArrowUp`,`ArrowDown`],re=[` `,`Enter`],W=`Select`,[G,K,ie]=l(W),[q,ae]=L(W,[ie,k]),J=k(),[oe,Y]=q(W),[se,ce]=q(W),le=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:l,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:g}=e,_=J(t),[v,y]=M.useState(null),[x,S]=M.useState(null),[C,w]=M.useState(!1),E=c(d),[D,O]=b({prop:r,defaultProp:i??!1,onChange:a,caller:W}),[k,A]=b({prop:o,defaultProp:s,onChange:l,caller:W}),j=M.useRef(null),N=v?g||!!v.closest(`form`):!0,[P,F]=M.useState(new Set),L=Array.from(P).map(e=>e.props.value).join(`;`);return(0,I.jsx)(T,{..._,children:(0,I.jsxs)(oe,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:u(),value:k,onValueChange:A,open:D,onOpenChange:O,dir:E,triggerPointerDownPosRef:j,disabled:m,children:[(0,I.jsx)(G.Provider,{scope:t,children:(0,I.jsx)(se,{scope:e.__scopeSelect,onNativeOptionAdd:M.useCallback(e=>{F(t=>new Set(t).add(e))},[]),onNativeOptionRemove:M.useCallback(e=>{F(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),N?(0,I.jsxs)(et,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:k,onChange:e=>A(e.target.value),disabled:m,form:g,children:[k===void 0?(0,I.jsx)(`option`,{value:``}):null,Array.from(P)]},L):null]})})};le.displayName=W;var ue=`SelectTrigger`,de=M.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=J(n),o=Y(ue,n),c=o.disabled||r,l=s(t,o.onTriggerChange),u=K(n),d=M.useRef(`touch`),[f,p,m]=nt(e=>{let t=u().filter(e=>!e.disabled),n=rt(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),h=e=>{c||(o.onOpenChange(!0),m()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,I.jsx)(O,{asChild:!0,...a,children:(0,I.jsx)(U.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:c,"data-disabled":c?``:void 0,"data-placeholder":tt(o.value)?``:void 0,...i,ref:l,onClick:g(i.onClick,e=>{e.currentTarget.focus(),d.current!==`mouse`&&h(e)}),onPointerDown:g(i.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(h(e),e.preventDefault())}),onKeyDown:g(i.onKeyDown,e=>{let t=f.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&p(e.key),!(t&&e.key===` `)&&ne.includes(e.key)&&(h(),e.preventDefault())})})})});de.displayName=ue;var fe=`SelectValue`,pe=M.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...c}=e,l=Y(fe,n),{onValueNodeHasChildrenChange:u}=l,d=a!==void 0,f=s(t,l.onValueNodeChange);return h(()=>{u(d)},[u,d]),(0,I.jsx)(U.span,{...c,ref:f,style:{pointerEvents:`none`},children:tt(l.value)?(0,I.jsx)(I.Fragment,{children:o}):a})});pe.displayName=fe;var me=`SelectIcon`,he=M.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,I.jsx)(U.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});he.displayName=me;var ge=`SelectPortal`,_e=e=>(0,I.jsx)(w,{asChild:!0,...e});_e.displayName=ge;var X=`SelectContent`,ve=M.forwardRef((e,t)=>{let n=Y(X,e.__scopeSelect),[r,i]=M.useState();if(h(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?N.createPortal((0,I.jsx)(ye,{scope:e.__scopeSelect,children:(0,I.jsx)(G.Slot,{scope:e.__scopeSelect,children:(0,I.jsx)(`div`,{children:e.children})})}),t):null}return(0,I.jsx)(Se,{...e,ref:t})});ve.displayName=X;var Z=10,[ye,Q]=q(X),be=`SelectContentImpl`,xe=ee(`SelectContent.RemoveScroll`),Se=M.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:c,side:l,sideOffset:u,align:m,alignOffset:h,arrowPadding:_,collisionBoundary:v,collisionPadding:y,sticky:b,hideWhenDetached:x,avoidCollisions:S,...C}=e,w=Y(X,n),[T,E]=M.useState(null),[D,O]=M.useState(null),k=s(t,e=>E(e)),[j,N]=M.useState(null),[P,F]=M.useState(null),L=K(n),[R,ee]=M.useState(!1),z=M.useRef(!1);M.useEffect(()=>{if(T)return d(T)},[T]),p();let te=M.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&D&&(D.scrollTop=0),n===r&&D&&(D.scrollTop=D.scrollHeight),n?.focus(),document.activeElement!==i))return},[L,D]),B=M.useCallback(()=>te([j,T]),[te,j,T]);M.useEffect(()=>{R&&B()},[R,B]);let{onOpenChange:V,triggerPointerDownPosRef:H}=w;M.useEffect(()=>{if(T){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(H.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():T.contains(n.target)||V(!1),document.removeEventListener(`pointermove`,t),H.current=null};return H.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[T,V,H]),M.useEffect(()=>{let e=()=>V(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[V]);let[U,ne]=nt(e=>{let t=L().filter(e=>!e.disabled),n=rt(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),re=M.useCallback((e,t,n)=>{let r=!z.current&&!n;(w.value!==void 0&&w.value===t||r)&&(N(e),r&&(z.current=!0))},[w.value]),W=M.useCallback(()=>T?.focus(),[T]),G=M.useCallback((e,t,n)=>{let r=!z.current&&!n;(w.value!==void 0&&w.value===t||r)&&F(e)},[w.value]),ie=r===`popper`?Ee:we,q=ie===Ee?{side:l,sideOffset:u,align:m,alignOffset:h,arrowPadding:_,collisionBoundary:v,collisionPadding:y,sticky:b,hideWhenDetached:x,avoidCollisions:S}:{};return(0,I.jsx)(ye,{scope:n,content:T,viewport:D,onViewportChange:O,itemRefCallback:re,selectedItem:j,onItemLeave:W,itemTextRefCallback:G,focusSelectedItem:B,selectedItemText:P,position:r,isPositioned:R,searchRef:U,children:(0,I.jsx)(f,{as:xe,allowPinchZoom:!0,children:(0,I.jsx)(a,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:g(i,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,I.jsx)(A,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:(0,I.jsx)(ie,{role:`listbox`,id:w.contentId,"data-state":w.open?`open`:`closed`,dir:w.dir,onContextMenu:e=>e.preventDefault(),...C,...q,onPlaced:()=>ee(!0),ref:k,style:{display:`flex`,flexDirection:`column`,outline:`none`,...C.style},onKeyDown:g(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ne(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>te(t)),e.preventDefault()}})})})})})})});Se.displayName=be;var Ce=`SelectItemAlignedPosition`,we=M.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=Y(X,n),o=Q(X,n),[c,l]=M.useState(null),[u,d]=M.useState(null),f=s(t,e=>d(e)),p=K(n),m=M.useRef(!1),g=M.useRef(!0),{viewport:_,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=o,x=M.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&u&&_&&v&&y){let e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=y.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Z,d=F(a,[Z,Math.max(Z,u-l)]);c.style.minWidth=s+`px`,c.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Z,d=F(a,[Z,Math.max(Z,u-l)]);c.style.minWidth=s+`px`,c.style.right=d+`px`}let o=p(),s=window.innerHeight-Z*2,l=_.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=f+h+l+b+g,S=Math.min(v.offsetHeight*5,x),C=window.getComputedStyle(_),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Z,D=s-E,O=v.offsetHeight/2,k=v.offsetTop+O,A=f+h+k,j=x-A;if(A<=E){let e=o.length>0&&v===o[o.length-1].ref.current;c.style.bottom=`0px`;let t=u.clientHeight-_.offsetTop-_.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+g);c.style.height=n+`px`}else{let e=o.length>0&&v===o[0].ref.current;c.style.top=`0px`;let t=Math.max(E,f+_.offsetTop+(e?w:0)+O)+j;c.style.height=t+`px`,_.scrollTop=A-E+_.offsetTop}c.style.margin=`${Z}px 0`,c.style.minHeight=S+`px`,c.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,a.trigger,a.valueNode,c,u,_,v,y,a.dir,r]);h(()=>x(),[x]);let[S,C]=M.useState();return h(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]),(0,I.jsx)(De,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:M.useCallback(e=>{e&&g.current===!0&&(x(),b?.(),g.current=!1)},[x,b]),children:(0,I.jsx)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:S},children:(0,I.jsx)(U.div,{...i,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});we.displayName=Ce;var Te=`SelectPopperPosition`,Ee=M.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Z,...a}=e,o=J(n);return(0,I.jsx)(y,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});Ee.displayName=Te;var[De,Oe]=q(X,{}),ke=`SelectViewport`,Ae=M.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=Q(ke,n),o=Oe(ke,n),c=s(t,a.onViewportChange),l=M.useRef(0);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,I.jsx)(G.Slot,{scope:n,children:(0,I.jsx)(U.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:c,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:g(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-Z*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o0?s:0,n.style.justifyContent=`flex-end`)}}}l.current=t.scrollTop})})})]})});Ae.displayName=ke;var je=`SelectGroup`,[Me,Ne]=q(je),Pe=M.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=u();return(0,I.jsx)(Me,{scope:n,id:i,children:(0,I.jsx)(U.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Pe.displayName=je;var Fe=`SelectLabel`,Ie=M.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Ne(Fe,n);return(0,I.jsx)(U.div,{id:i.id,...r,ref:t})});Ie.displayName=Fe;var Le=`SelectItem`,[Re,ze]=q(Le),Be=M.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,c=Y(Le,n),l=Q(Le,n),d=c.value===r,[f,p]=M.useState(a??``),[m,h]=M.useState(!1),_=s(t,e=>l.itemRefCallback?.(e,r,i)),v=u(),y=M.useRef(`touch`),b=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r===``)throw Error(`A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,I.jsx)(Re,{scope:n,value:r,disabled:i,textId:v,isSelected:d,onItemTextChange:M.useCallback(e=>{p(t=>t||(e?.textContent??``).trim())},[]),children:(0,I.jsx)(G.ItemSlot,{scope:n,value:r,disabled:i,textValue:f,children:(0,I.jsx)(U.div,{role:`option`,"aria-labelledby":v,"data-highlighted":m?``:void 0,"aria-selected":d&&m,"data-state":d?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:_,onFocus:g(o.onFocus,()=>h(!0)),onBlur:g(o.onBlur,()=>h(!1)),onClick:g(o.onClick,()=>{y.current!==`mouse`&&b()}),onPointerUp:g(o.onPointerUp,()=>{y.current===`mouse`&&b()}),onPointerDown:g(o.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:g(o.onPointerMove,e=>{y.current=e.pointerType,i?l.onItemLeave?.():y.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:g(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:g(o.onKeyDown,e=>{l.searchRef?.current!==``&&e.key===` `||(re.includes(e.key)&&b(),e.key===` `&&e.preventDefault())})})})})});Be.displayName=Le;var $=`SelectItemText`,Ve=M.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=Y($,n),c=Q($,n),l=ze($,n),u=ce($,n),[d,f]=M.useState(null),p=s(t,e=>f(e),l.onItemTextChange,e=>c.itemTextRefCallback?.(e,l.value,l.disabled)),m=d?.textContent,g=M.useMemo(()=>(0,I.jsx)(`option`,{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:_,onNativeOptionRemove:v}=u;return h(()=>(_(g),()=>v(g)),[_,v,g]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(U.span,{id:l.textId,...a,ref:p}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?N.createPortal(a.children,o.valueNode):null]})});Ve.displayName=$;var He=`SelectItemIndicator`,Ue=M.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ze(He,n).isSelected?(0,I.jsx)(U.span,{"aria-hidden":!0,...r,ref:t}):null});Ue.displayName=He;var We=`SelectScrollUpButton`,Ge=M.forwardRef((e,t)=>{let n=Q(We,e.__scopeSelect),r=Oe(We,e.__scopeSelect),[i,a]=M.useState(!1),o=s(t,r.onScrollButtonChange);return h(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,I.jsx)(Je,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Ge.displayName=We;var Ke=`SelectScrollDownButton`,qe=M.forwardRef((e,t)=>{let n=Q(Ke,e.__scopeSelect),r=Oe(Ke,e.__scopeSelect),[i,a]=M.useState(!1),o=s(t,r.onScrollButtonChange);return h(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,I.jsx)(Je,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});qe.displayName=Ke;var Je=M.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Q(`SelectScrollButton`,n),o=M.useRef(null),s=K(n),c=M.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return M.useEffect(()=>()=>c(),[c]),h(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,I.jsx)(U.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:g(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:g(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:g(i.onPointerLeave,()=>{c()})})}),Ye=`SelectSeparator`,Xe=M.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,I.jsx)(U.div,{"aria-hidden":!0,...r,ref:t})});Xe.displayName=Ye;var Ze=`SelectArrow`,Qe=M.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=J(n),a=Y(Ze,n),o=Q(Ze,n);return a.open&&o.position===`popper`?(0,I.jsx)(x,{...i,...r,ref:t}):null});Qe.displayName=Ze;var $e=`SelectBubbleInput`,et=M.forwardRef(({__scopeSelect:e,value:t,...i},a)=>{let o=M.useRef(null),c=s(a,o),l=n(t);return M.useEffect(()=>{let e=o.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(l!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,I.jsx)(U.select,{...i,style:{...r,...i.style},ref:c,defaultValue:t})});et.displayName=$e;function tt(e){return e===``||e===void 0}function nt(e){let t=i(e),n=M.useRef(``),r=M.useRef(0),a=M.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),o=M.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return M.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,o]}function rt(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=it(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function it(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var at=le,ot=de,st=pe,ct=he,lt=_e,ut=ve,dt=Ae,ft=Be,pt=Ve,mt=Ue,ht=Ge,gt=qe;function _t(e){let t=(0,P.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,I.jsx)(at,{"data-slot":`select`,...n}),t[2]=n,t[3]=r),r}function vt(e){let t=(0,P.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,I.jsx)(st,{"data-slot":`select-value`,...n}),t[2]=n,t[3]=r),r}function yt(e){let n=(0,P.c)(13),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({className:i,size:o,children:r,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s=o===void 0?`default`:o,c;n[5]===i?c=n[6]:(c=m(`border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,i),n[5]=i,n[6]=c);let l;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,I.jsx)(ct,{asChild:!0,children:(0,I.jsx)(t,{className:`size-4 opacity-50`})}),n[7]=l):l=n[7];let u;return n[8]!==r||n[9]!==a||n[10]!==s||n[11]!==c?(u=(0,I.jsxs)(ot,{"data-slot":`select-trigger`,"data-size":s,className:c,...a,children:[r,l]}),n[8]=r,n[9]=a,n[10]=s,n[11]=c,n[12]=u):u=n[12],u}function bt(e){let t=(0,P.c)(26),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,children:n,position:a,side:o,sideOffset:s,align:c,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`popper`:a,u=o===void 0?`bottom`:o,d=s===void 0?4:s,f=c===void 0?`center`:c,p=l===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,h;t[8]!==r||t[9]!==p?(h=m(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,p,r),t[8]=r,t[9]=p,t[10]=h):h=t[10];let g;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,I.jsx)(St,{}),t[11]=g):g=t[11];let _=l===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`,v;t[12]===_?v=t[13]:(v=m(`p-1`,_),t[12]=_,t[13]=v);let y;t[14]!==n||t[15]!==v?(y=(0,I.jsx)(dt,{className:v,children:n}),t[14]=n,t[15]=v,t[16]=y):y=t[16];let b;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,I.jsx)(Ct,{}),t[17]=b):b=t[17];let x;return t[18]!==f||t[19]!==l||t[20]!==i||t[21]!==u||t[22]!==d||t[23]!==y||t[24]!==h?(x=(0,I.jsx)(lt,{children:(0,I.jsxs)(ut,{"data-slot":`select-content`,className:h,position:l,side:u,sideOffset:d,avoidCollisions:!1,align:f,...i,children:[g,y,b]})}),t[18]=f,t[19]=l,t[20]=i,t[21]=u,t[22]=d,t[23]=y,t[24]=h,t[25]=x):x=t[25],x}function xt(t){let n=(0,P.c)(13),r,i,a;n[0]===t?(r=n[1],i=n[2],a=n[3]):({className:i,children:r,...a}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=m(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,i),n[4]=i,n[5]=o);let s;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,I.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,I.jsx)(mt,{children:(0,I.jsx)(e,{className:`size-4`})})}),n[6]=s):s=n[6];let c;n[7]===r?c=n[8]:(c=(0,I.jsx)(pt,{children:r}),n[7]=r,n[8]=c);let l;return n[9]!==a||n[10]!==o||n[11]!==c?(l=(0,I.jsxs)(ft,{"data-slot":`select-item`,className:o,...a,children:[s,c]}),n[9]=a,n[10]=o,n[11]=c,n[12]=l):l=n[12],l}function St(e){let t=(0,P.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=m(`flex cursor-default items-center justify-center py-1`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,I.jsx)(j,{className:`size-4`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,I.jsx)(ht,{"data-slot":`select-scroll-up-button`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Ct(e){let n=(0,P.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=m(`flex cursor-default items-center justify-center py-1`,r),n[3]=r,n[4]=a);let o;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,I.jsx)(t,{className:`size-4`}),n[5]=o):o=n[5];let s;return n[6]!==i||n[7]!==a?(s=(0,I.jsx)(gt,{"data-slot":`select-scroll-down-button`,className:a,...i,children:o}),n[6]=i,n[7]=a,n[8]=s):s=n[8],s}export{vt as a,yt as i,bt as n,xt as r,_t as t}; \ No newline at end of file +import{t as e}from"./check-BBvDdM_9.js";import{t}from"./chevron-down-DuPWSveW.js";import{t as n}from"./dist-D5bK512v.js";import{$ as r,Bt as i,F as a,G as o,Ht as s,I as c,L as l,Lt as u,M as d,N as f,P as p,Q as m,Rt as h,Ut as g,Vt as _,Wt as v,at as y,et as b,it as x,ln as S,nn as C,nt as w,ot as T,qt as E,rn as D,rt as O,st as k,zt as A}from"./app-D7MKN1zp.js";var j=o(`ChevronUp`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),M=S(D(),1),N=S(C(),1),P=E();function F(e,[t,n]){return Math.min(n,Math.max(t,e))}var I=v();function L(e,t=[]){let n=[];function r(t,r){let i=M.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=M.useMemo(()=>o,Object.values(o));return(0,I.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=M.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>M.createContext(e));return function(n){let r=n?.[e]||t;return M.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,R(i,...t)]}function R(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function ee(e){let t=z(e),n=M.forwardRef((e,n)=>{let{children:r,...i}=e,a=M.Children.toArray(r),o=a.find(B);if(o){let e=o.props.children,r=a.map(t=>t===o?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t);return(0,I.jsx)(t,{...i,ref:n,children:M.isValidElement(e)?M.cloneElement(e,void 0,r):null})}return(0,I.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function z(e){let t=M.forwardRef((e,t)=>{let{children:n,...r}=e;if(M.isValidElement(n)){let e=H(n),i=V(r,n.props);return n.type!==M.Fragment&&(i.ref=t?_(t,e):e),M.cloneElement(n,i)}return M.Children.count(n)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var te=Symbol(`radix.slottable`);function B(e){return M.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===te}function V(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function H(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var U=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ee(`Primitive.${t}`),r=M.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,I.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ne=[` `,`Enter`,`ArrowUp`,`ArrowDown`],re=[` `,`Enter`],W=`Select`,[G,K,ie]=l(W),[q,ae]=L(W,[ie,k]),J=k(),[oe,Y]=q(W),[se,ce]=q(W),le=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:l,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:g}=e,_=J(t),[v,y]=M.useState(null),[x,S]=M.useState(null),[C,w]=M.useState(!1),E=c(d),[D,O]=b({prop:r,defaultProp:i??!1,onChange:a,caller:W}),[k,A]=b({prop:o,defaultProp:s,onChange:l,caller:W}),j=M.useRef(null),N=v?g||!!v.closest(`form`):!0,[P,F]=M.useState(new Set),L=Array.from(P).map(e=>e.props.value).join(`;`);return(0,I.jsx)(T,{..._,children:(0,I.jsxs)(oe,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:u(),value:k,onValueChange:A,open:D,onOpenChange:O,dir:E,triggerPointerDownPosRef:j,disabled:m,children:[(0,I.jsx)(G.Provider,{scope:t,children:(0,I.jsx)(se,{scope:e.__scopeSelect,onNativeOptionAdd:M.useCallback(e=>{F(t=>new Set(t).add(e))},[]),onNativeOptionRemove:M.useCallback(e=>{F(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),N?(0,I.jsxs)(et,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:k,onChange:e=>A(e.target.value),disabled:m,form:g,children:[k===void 0?(0,I.jsx)(`option`,{value:``}):null,Array.from(P)]},L):null]})})};le.displayName=W;var ue=`SelectTrigger`,de=M.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=J(n),o=Y(ue,n),c=o.disabled||r,l=s(t,o.onTriggerChange),u=K(n),d=M.useRef(`touch`),[f,p,m]=nt(e=>{let t=u().filter(e=>!e.disabled),n=rt(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),h=e=>{c||(o.onOpenChange(!0),m()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,I.jsx)(O,{asChild:!0,...a,children:(0,I.jsx)(U.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:c,"data-disabled":c?``:void 0,"data-placeholder":tt(o.value)?``:void 0,...i,ref:l,onClick:g(i.onClick,e=>{e.currentTarget.focus(),d.current!==`mouse`&&h(e)}),onPointerDown:g(i.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(h(e),e.preventDefault())}),onKeyDown:g(i.onKeyDown,e=>{let t=f.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&p(e.key),!(t&&e.key===` `)&&ne.includes(e.key)&&(h(),e.preventDefault())})})})});de.displayName=ue;var fe=`SelectValue`,pe=M.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...c}=e,l=Y(fe,n),{onValueNodeHasChildrenChange:u}=l,d=a!==void 0,f=s(t,l.onValueNodeChange);return h(()=>{u(d)},[u,d]),(0,I.jsx)(U.span,{...c,ref:f,style:{pointerEvents:`none`},children:tt(l.value)?(0,I.jsx)(I.Fragment,{children:o}):a})});pe.displayName=fe;var me=`SelectIcon`,he=M.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,I.jsx)(U.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});he.displayName=me;var ge=`SelectPortal`,_e=e=>(0,I.jsx)(w,{asChild:!0,...e});_e.displayName=ge;var X=`SelectContent`,ve=M.forwardRef((e,t)=>{let n=Y(X,e.__scopeSelect),[r,i]=M.useState();if(h(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?N.createPortal((0,I.jsx)(ye,{scope:e.__scopeSelect,children:(0,I.jsx)(G.Slot,{scope:e.__scopeSelect,children:(0,I.jsx)(`div`,{children:e.children})})}),t):null}return(0,I.jsx)(Se,{...e,ref:t})});ve.displayName=X;var Z=10,[ye,Q]=q(X),be=`SelectContentImpl`,xe=ee(`SelectContent.RemoveScroll`),Se=M.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:c,side:l,sideOffset:u,align:m,alignOffset:h,arrowPadding:_,collisionBoundary:v,collisionPadding:y,sticky:b,hideWhenDetached:x,avoidCollisions:S,...C}=e,w=Y(X,n),[T,E]=M.useState(null),[D,O]=M.useState(null),k=s(t,e=>E(e)),[j,N]=M.useState(null),[P,F]=M.useState(null),L=K(n),[R,ee]=M.useState(!1),z=M.useRef(!1);M.useEffect(()=>{if(T)return d(T)},[T]),p();let te=M.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&D&&(D.scrollTop=0),n===r&&D&&(D.scrollTop=D.scrollHeight),n?.focus(),document.activeElement!==i))return},[L,D]),B=M.useCallback(()=>te([j,T]),[te,j,T]);M.useEffect(()=>{R&&B()},[R,B]);let{onOpenChange:V,triggerPointerDownPosRef:H}=w;M.useEffect(()=>{if(T){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(H.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():T.contains(n.target)||V(!1),document.removeEventListener(`pointermove`,t),H.current=null};return H.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[T,V,H]),M.useEffect(()=>{let e=()=>V(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[V]);let[U,ne]=nt(e=>{let t=L().filter(e=>!e.disabled),n=rt(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),re=M.useCallback((e,t,n)=>{let r=!z.current&&!n;(w.value!==void 0&&w.value===t||r)&&(N(e),r&&(z.current=!0))},[w.value]),W=M.useCallback(()=>T?.focus(),[T]),G=M.useCallback((e,t,n)=>{let r=!z.current&&!n;(w.value!==void 0&&w.value===t||r)&&F(e)},[w.value]),ie=r===`popper`?Ee:we,q=ie===Ee?{side:l,sideOffset:u,align:m,alignOffset:h,arrowPadding:_,collisionBoundary:v,collisionPadding:y,sticky:b,hideWhenDetached:x,avoidCollisions:S}:{};return(0,I.jsx)(ye,{scope:n,content:T,viewport:D,onViewportChange:O,itemRefCallback:re,selectedItem:j,onItemLeave:W,itemTextRefCallback:G,focusSelectedItem:B,selectedItemText:P,position:r,isPositioned:R,searchRef:U,children:(0,I.jsx)(f,{as:xe,allowPinchZoom:!0,children:(0,I.jsx)(a,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:g(i,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,I.jsx)(A,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:(0,I.jsx)(ie,{role:`listbox`,id:w.contentId,"data-state":w.open?`open`:`closed`,dir:w.dir,onContextMenu:e=>e.preventDefault(),...C,...q,onPlaced:()=>ee(!0),ref:k,style:{display:`flex`,flexDirection:`column`,outline:`none`,...C.style},onKeyDown:g(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ne(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>te(t)),e.preventDefault()}})})})})})})});Se.displayName=be;var Ce=`SelectItemAlignedPosition`,we=M.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=Y(X,n),o=Q(X,n),[c,l]=M.useState(null),[u,d]=M.useState(null),f=s(t,e=>d(e)),p=K(n),m=M.useRef(!1),g=M.useRef(!0),{viewport:_,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=o,x=M.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&u&&_&&v&&y){let e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=y.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Z,d=F(a,[Z,Math.max(Z,u-l)]);c.style.minWidth=s+`px`,c.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Z,d=F(a,[Z,Math.max(Z,u-l)]);c.style.minWidth=s+`px`,c.style.right=d+`px`}let o=p(),s=window.innerHeight-Z*2,l=_.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=f+h+l+b+g,S=Math.min(v.offsetHeight*5,x),C=window.getComputedStyle(_),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Z,D=s-E,O=v.offsetHeight/2,k=v.offsetTop+O,A=f+h+k,j=x-A;if(A<=E){let e=o.length>0&&v===o[o.length-1].ref.current;c.style.bottom=`0px`;let t=u.clientHeight-_.offsetTop-_.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+g);c.style.height=n+`px`}else{let e=o.length>0&&v===o[0].ref.current;c.style.top=`0px`;let t=Math.max(E,f+_.offsetTop+(e?w:0)+O)+j;c.style.height=t+`px`,_.scrollTop=A-E+_.offsetTop}c.style.margin=`${Z}px 0`,c.style.minHeight=S+`px`,c.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,a.trigger,a.valueNode,c,u,_,v,y,a.dir,r]);h(()=>x(),[x]);let[S,C]=M.useState();return h(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]),(0,I.jsx)(De,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:M.useCallback(e=>{e&&g.current===!0&&(x(),b?.(),g.current=!1)},[x,b]),children:(0,I.jsx)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:S},children:(0,I.jsx)(U.div,{...i,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});we.displayName=Ce;var Te=`SelectPopperPosition`,Ee=M.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Z,...a}=e,o=J(n);return(0,I.jsx)(y,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});Ee.displayName=Te;var[De,Oe]=q(X,{}),ke=`SelectViewport`,Ae=M.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=Q(ke,n),o=Oe(ke,n),c=s(t,a.onViewportChange),l=M.useRef(0);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,I.jsx)(G.Slot,{scope:n,children:(0,I.jsx)(U.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:c,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:g(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-Z*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o0?s:0,n.style.justifyContent=`flex-end`)}}}l.current=t.scrollTop})})})]})});Ae.displayName=ke;var je=`SelectGroup`,[Me,Ne]=q(je),Pe=M.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=u();return(0,I.jsx)(Me,{scope:n,id:i,children:(0,I.jsx)(U.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});Pe.displayName=je;var Fe=`SelectLabel`,Ie=M.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Ne(Fe,n);return(0,I.jsx)(U.div,{id:i.id,...r,ref:t})});Ie.displayName=Fe;var Le=`SelectItem`,[Re,ze]=q(Le),Be=M.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,c=Y(Le,n),l=Q(Le,n),d=c.value===r,[f,p]=M.useState(a??``),[m,h]=M.useState(!1),_=s(t,e=>l.itemRefCallback?.(e,r,i)),v=u(),y=M.useRef(`touch`),b=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r===``)throw Error(`A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,I.jsx)(Re,{scope:n,value:r,disabled:i,textId:v,isSelected:d,onItemTextChange:M.useCallback(e=>{p(t=>t||(e?.textContent??``).trim())},[]),children:(0,I.jsx)(G.ItemSlot,{scope:n,value:r,disabled:i,textValue:f,children:(0,I.jsx)(U.div,{role:`option`,"aria-labelledby":v,"data-highlighted":m?``:void 0,"aria-selected":d&&m,"data-state":d?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:_,onFocus:g(o.onFocus,()=>h(!0)),onBlur:g(o.onBlur,()=>h(!1)),onClick:g(o.onClick,()=>{y.current!==`mouse`&&b()}),onPointerUp:g(o.onPointerUp,()=>{y.current===`mouse`&&b()}),onPointerDown:g(o.onPointerDown,e=>{y.current=e.pointerType}),onPointerMove:g(o.onPointerMove,e=>{y.current=e.pointerType,i?l.onItemLeave?.():y.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:g(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:g(o.onKeyDown,e=>{l.searchRef?.current!==``&&e.key===` `||(re.includes(e.key)&&b(),e.key===` `&&e.preventDefault())})})})})});Be.displayName=Le;var $=`SelectItemText`,Ve=M.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=Y($,n),c=Q($,n),l=ze($,n),u=ce($,n),[d,f]=M.useState(null),p=s(t,e=>f(e),l.onItemTextChange,e=>c.itemTextRefCallback?.(e,l.value,l.disabled)),m=d?.textContent,g=M.useMemo(()=>(0,I.jsx)(`option`,{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:_,onNativeOptionRemove:v}=u;return h(()=>(_(g),()=>v(g)),[_,v,g]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(U.span,{id:l.textId,...a,ref:p}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?N.createPortal(a.children,o.valueNode):null]})});Ve.displayName=$;var He=`SelectItemIndicator`,Ue=M.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ze(He,n).isSelected?(0,I.jsx)(U.span,{"aria-hidden":!0,...r,ref:t}):null});Ue.displayName=He;var We=`SelectScrollUpButton`,Ge=M.forwardRef((e,t)=>{let n=Q(We,e.__scopeSelect),r=Oe(We,e.__scopeSelect),[i,a]=M.useState(!1),o=s(t,r.onScrollButtonChange);return h(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,I.jsx)(Je,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Ge.displayName=We;var Ke=`SelectScrollDownButton`,qe=M.forwardRef((e,t)=>{let n=Q(Ke,e.__scopeSelect),r=Oe(Ke,e.__scopeSelect),[i,a]=M.useState(!1),o=s(t,r.onScrollButtonChange);return h(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,I.jsx)(Je,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});qe.displayName=Ke;var Je=M.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Q(`SelectScrollButton`,n),o=M.useRef(null),s=K(n),c=M.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return M.useEffect(()=>()=>c(),[c]),h(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,I.jsx)(U.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:g(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:g(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:g(i.onPointerLeave,()=>{c()})})}),Ye=`SelectSeparator`,Xe=M.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,I.jsx)(U.div,{"aria-hidden":!0,...r,ref:t})});Xe.displayName=Ye;var Ze=`SelectArrow`,Qe=M.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=J(n),a=Y(Ze,n),o=Q(Ze,n);return a.open&&o.position===`popper`?(0,I.jsx)(x,{...i,...r,ref:t}):null});Qe.displayName=Ze;var $e=`SelectBubbleInput`,et=M.forwardRef(({__scopeSelect:e,value:t,...i},a)=>{let o=M.useRef(null),c=s(a,o),l=n(t);return M.useEffect(()=>{let e=o.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(l!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,I.jsx)(U.select,{...i,style:{...r,...i.style},ref:c,defaultValue:t})});et.displayName=$e;function tt(e){return e===``||e===void 0}function nt(e){let t=i(e),n=M.useRef(``),r=M.useRef(0),a=M.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),o=M.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return M.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,o]}function rt(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=it(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function it(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var at=le,ot=de,st=pe,ct=he,lt=_e,ut=ve,dt=Ae,ft=Be,pt=Ve,mt=Ue,ht=Ge,gt=qe;function _t(e){let t=(0,P.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,I.jsx)(at,{"data-slot":`select`,...n}),t[2]=n,t[3]=r),r}function vt(e){let t=(0,P.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,I.jsx)(st,{"data-slot":`select-value`,...n}),t[2]=n,t[3]=r),r}function yt(e){let n=(0,P.c)(13),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({className:i,size:o,children:r,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s=o===void 0?`default`:o,c;n[5]===i?c=n[6]:(c=m(`border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,i),n[5]=i,n[6]=c);let l;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,I.jsx)(ct,{asChild:!0,children:(0,I.jsx)(t,{className:`size-4 opacity-50`})}),n[7]=l):l=n[7];let u;return n[8]!==r||n[9]!==a||n[10]!==s||n[11]!==c?(u=(0,I.jsxs)(ot,{"data-slot":`select-trigger`,"data-size":s,className:c,...a,children:[r,l]}),n[8]=r,n[9]=a,n[10]=s,n[11]=c,n[12]=u):u=n[12],u}function bt(e){let t=(0,P.c)(26),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:r,children:n,position:a,side:o,sideOffset:s,align:c,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=a===void 0?`popper`:a,u=o===void 0?`bottom`:o,d=s===void 0?4:s,f=c===void 0?`center`:c,p=l===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,h;t[8]!==r||t[9]!==p?(h=m(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,p,r),t[8]=r,t[9]=p,t[10]=h):h=t[10];let g;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,I.jsx)(St,{}),t[11]=g):g=t[11];let _=l===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`,v;t[12]===_?v=t[13]:(v=m(`p-1`,_),t[12]=_,t[13]=v);let y;t[14]!==n||t[15]!==v?(y=(0,I.jsx)(dt,{className:v,children:n}),t[14]=n,t[15]=v,t[16]=y):y=t[16];let b;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,I.jsx)(Ct,{}),t[17]=b):b=t[17];let x;return t[18]!==f||t[19]!==l||t[20]!==i||t[21]!==u||t[22]!==d||t[23]!==y||t[24]!==h?(x=(0,I.jsx)(lt,{children:(0,I.jsxs)(ut,{"data-slot":`select-content`,className:h,position:l,side:u,sideOffset:d,avoidCollisions:!1,align:f,...i,children:[g,y,b]})}),t[18]=f,t[19]=l,t[20]=i,t[21]=u,t[22]=d,t[23]=y,t[24]=h,t[25]=x):x=t[25],x}function xt(t){let n=(0,P.c)(13),r,i,a;n[0]===t?(r=n[1],i=n[2],a=n[3]):({className:i,children:r,...a}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=a);let o;n[4]===i?o=n[5]:(o=m(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,i),n[4]=i,n[5]=o);let s;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,I.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,I.jsx)(mt,{children:(0,I.jsx)(e,{className:`size-4`})})}),n[6]=s):s=n[6];let c;n[7]===r?c=n[8]:(c=(0,I.jsx)(pt,{children:r}),n[7]=r,n[8]=c);let l;return n[9]!==a||n[10]!==o||n[11]!==c?(l=(0,I.jsxs)(ft,{"data-slot":`select-item`,className:o,...a,children:[s,c]}),n[9]=a,n[10]=o,n[11]=c,n[12]=l):l=n[12],l}function St(e){let t=(0,P.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=m(`flex cursor-default items-center justify-center py-1`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,I.jsx)(j,{className:`size-4`}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,I.jsx)(ht,{"data-slot":`select-scroll-up-button`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function Ct(e){let n=(0,P.c)(9),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=m(`flex cursor-default items-center justify-center py-1`,r),n[3]=r,n[4]=a);let o;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,I.jsx)(t,{className:`size-4`}),n[5]=o):o=n[5];let s;return n[6]!==i||n[7]!==a?(s=(0,I.jsx)(gt,{"data-slot":`select-scroll-down-button`,className:a,...i,children:o}),n[6]=i,n[7]=a,n[8]=s):s=n[8],s}export{vt as a,yt as i,bt as n,xt as r,_t as t}; \ No newline at end of file diff --git a/public/build/assets/show-B7YwVVJB.js b/public/build/assets/show-B7YwVVJB.js deleted file mode 100644 index 6045fd5..0000000 --- a/public/build/assets/show-B7YwVVJB.js +++ /dev/null @@ -1,22 +0,0 @@ -import{t as e}from"./check-CCTwZBIw.js";import{t}from"./copy-CgW44MFY.js";import{t as n}from"./heart-DBfrxc2y.js";import{t as r}from"./appearance-tabs-Bbh38TuS.js";import{B as i,G as a,Gt as o,I as s,K as c,Kt as l,Lt as u,Q as d,R as f,S as p,Ut as m,V as h,Vt as g,Wt as _,Yt as v,b as y,et as b,ln as x,nn as S,qt as C,r as w,rn as T,tn as E,tt as D,x as O}from"./app-CVlP31Z1.js";import{a as ee,n as te,o as ne,r as re,t as k}from"./card-BMwhGcsv.js";import{i as ie,r as ae,t as oe}from"./glow-stack-DaYuOL5d.js";import{t as se}from"./placeholder-pattern-CMjSLXXB.js";import{t as ce}from"./label-D-AkZnW_.js";import{t as A}from"./badge-BeR0IMEC.js";import{n as j,r as M,t as le}from"./color-utils-ePYKqy3O.js";import{i as ue,n as de,r as fe,t as pe}from"./use-clipboard-C4ojyAai.js";var N=a(`ArrowLeft`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),me=a(`Clipboard`,[[`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`}]]),he=a(`Maximize2`,[[`polyline`,{points:`15 3 21 3 21 9`,key:`mznyad`}],[`polyline`,{points:`9 21 3 21 3 15`,key:`1avn1i`}],[`line`,{x1:`21`,x2:`14`,y1:`3`,y2:`10`,key:`ota7mn`}],[`line`,{x1:`3`,x2:`10`,y1:`21`,y2:`14`,key:`1atl0r`}]]),ge=a(`Minimize2`,[[`polyline`,{points:`4 14 10 14 10 20`,key:`11kfnr`}],[`polyline`,{points:`20 10 14 10 14 4`,key:`rlmsce`}],[`line`,{x1:`14`,x2:`21`,y1:`10`,y2:`3`,key:`o5lafz`}],[`line`,{x1:`3`,x2:`10`,y1:`21`,y2:`14`,key:`1atl0r`}]]),P=x(T(),1),F=_();function I(e,t=[]){let n=[];function r(t,r){let i=P.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=P.useMemo(()=>o,Object.values(o));return(0,F.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=P.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>P.createContext(e));return function(n){let r=n?.[e]||t;return P.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,L(i,...t)]}function L(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function _e(e){let t=ve(e),n=P.forwardRef((e,n)=>{let{children:r,...i}=e,a=P.Children.toArray(r),o=a.find(be);if(o){let e=o.props.children,r=a.map(t=>t===o?P.Children.count(e)>1?P.Children.only(null):P.isValidElement(e)?e.props.children:null:t);return(0,F.jsx)(t,{...i,ref:n,children:P.isValidElement(e)?P.cloneElement(e,void 0,r):null})}return(0,F.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ve(e){let t=P.forwardRef((e,t)=>{let{children:n,...r}=e;if(P.isValidElement(n)){let e=xe(n),i=R(r,n.props);return n.type!==P.Fragment&&(i.ref=t?g(t,e):e),P.cloneElement(n,i)}return P.Children.count(n)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ye=Symbol(`radix.slottable`);function be(e){return P.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===ye}function R(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function xe(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}S();var z=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=_e(`Primitive.${t}`),r=P.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,F.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),B=`Tabs`,[V,Se]=I(B,[p]),H=p(),[U,W]=V(B),G=P.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:c,activationMode:l=`automatic`,...d}=e,f=s(c),[p,m]=b({prop:r,onChange:i,defaultProp:a??``,caller:B});return(0,F.jsx)(U,{scope:n,baseId:u(),value:p,onValueChange:m,orientation:o,dir:f,activationMode:l,children:(0,F.jsx)(z.div,{dir:f,"data-orientation":o,...d,ref:t})})});G.displayName=B;var Ce=`TabsList`,K=P.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=W(Ce,n),o=H(n);return(0,F.jsx)(O,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,F.jsx)(z.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});K.displayName=Ce;var q=`TabsTrigger`,J=P.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=W(q,n),s=H(n),c=X(o.baseId,r),l=Z(o.baseId,r),u=r===o.value;return(0,F.jsx)(y,{asChild:!0,...s,focusable:!i,active:u,children:(0,F.jsx)(z.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:m(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:m(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:m(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});J.displayName=q;var Y=`TabsContent`,we=P.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=W(Y,n),c=X(s.baseId,r),l=Z(s.baseId,r),u=r===s.value,d=P.useRef(u);return P.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,F.jsx)(D,{present:i||u,children:({present:n})=>(0,F.jsx)(z.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})});we.displayName=Y;function X(e,t){return`${e}-trigger-${t}`}function Z(e,t){return`${e}-content-${t}`}var Te=G,Q=K,Ee=J,De=we,Oe=C();function ke(e){let t=(0,Oe.c)(14),{name:n,value:r}=e,[,i]=pe(),a;t[0]===r?a=t[1]:(a=le(r,`hex`)||r,t[0]=r,t[1]=a);let o=a,s;t[2]!==i||t[3]!==o||t[4]!==n?(s=async()=>{await i(o),l.success(`Copied ${n}`)},t[2]=i,t[3]=o,t[4]=n,t[5]=s):s=t[5];let c=s,u;t[6]===r?u=t[7]:(u=(0,F.jsx)(`span`,{className:`size-12 shrink-0 rounded ring-1 ring-black/10`,style:{backgroundColor:r}}),t[6]=r,t[7]=u);let d;t[8]===n?d=t[9]:(d=(0,F.jsx)(`span`,{className:`text-xs font-semibold tracking-wider text-muted-foreground uppercase`,children:n}),t[8]=n,t[9]=d);let f;return t[10]!==c||t[11]!==u||t[12]!==d?(f=(0,F.jsxs)(`button`,{onClick:c,className:`group inline-flex cursor-pointer items-center gap-2 rounded-lg border border-border/40 px-3 py-2 text-left transition-colors hover:border-border`,children:[u,d]}),t[10]=c,t[11]=u,t[12]=d,t[13]=f):f=t[13],f}ke.displayName=`ColorSwatch2`;function Ae(e){let t=(0,Oe.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=d(`group/tabs flex gap-2 data-[orientation=horizontal]:flex-col`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,F.jsx)(Te,{"data-slot":`tabs`,"data-orientation":a,orientation:a,className:o,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var je=c(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function Me(e){let t=(0,Oe.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=d(je({variant:a}),n),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,F.jsx)(Q,{"data-slot":`tabs-list`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function Ne(e){let t=(0,Oe.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent`,`data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(Ee,{"data-slot":`tabs-trigger`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Pe(e){let t=(0,Oe.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`flex-1 outline-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(De,{"data-slot":`tabs-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?e.apply(this,r):function(){var e=[...arguments];return t.apply(n,[].concat(r,e))}}}function $e(e){return{}.toString.call(e).includes(`Object`)}function et(e){return!Object.keys(e).length}function tt(e){return typeof e==`function`}function nt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rt(e,t){return $e(t)||ct(`changeType`),Object.keys(t).some(function(t){return!nt(e,t)})&&ct(`changeField`),t}function it(e){tt(e)||ct(`selectorType`)}function at(e){tt(e)||$e(e)||ct(`handlerType`),$e(e)&&Object.values(e).some(function(e){return!tt(e)})&&ct(`handlersType`)}function ot(e){e||ct(`initialIsRequired`),$e(e)||ct(`initialType`),et(e)&&ct(`initialContent`)}function st(e,t){throw Error(e[t]||e.default)}var ct=Qe(st)({initialIsRequired:`initial state is required`,initialType:`initial state should be an object`,initialContent:`initial state shouldn't be an empty object`,handlerType:`handler should be an object or a function`,handlersType:`all handlers should be a functions`,selectorType:`selector should be a function`,changeType:`provided value of changes should be an object`,changeField:`it seams you want to change a field in the state which is not specified in the "initial" state`,default:"an unknown error accured in `state-local` package"}),lt={changes:rt,selector:it,handler:at,initial:ot};function ut(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};lt.initial(e),lt.handler(t);var n={current:e},r=Qe(pt)(n,t),i=Qe(ft)(n),a=Qe(lt.changes)(e),o=Qe(dt)(n);function s(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(e){return e};return lt.selector(e),e(n.current)}function c(e){Ze(r,i,a,o)(e)}return[s,c]}function dt(e,t){return tt(t)?t(e.current):t}function ft(e,t){return e.current=Xe(Xe({},e.current),t),t}function pt(e,t,n){return tt(t)?t(e.current):Object.keys(n).forEach(function(n){return t[n]?.call(t,e.current[n])}),n}var mt={create:ut},ht={paths:{vs:`https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs`}};function gt(e){return function t(){var n=this,r=[...arguments];return r.length>=e.length?e.apply(this,r):function(){var e=[...arguments];return t.apply(n,[].concat(r,e))}}}function _t(e){return{}.toString.call(e).includes(`Object`)}function vt(e){return e||St(`configIsRequired`),_t(e)||St(`configType`),e.urls?(yt(),{paths:{vs:e.urls.monacoBase}}):e}function yt(){console.warn(xt.deprecation)}function bt(e,t){throw Error(e[t]||e.default)}var xt={configIsRequired:`the configuration object is required`,configType:`the configuration object should be an object`,default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning! - You are using deprecated way of configuration. - - Instead of using - monaco.config({ urls: { monacoBase: '...' } }) - use - monaco.config({ paths: { vs: '...' } }) - - For more please check the link https://github.com/suren-atoyan/monaco-loader#config - `},St=gt(bt)(xt),Ct={config:vt},wt=function(){var e=[...arguments];return function(t){return e.reduceRight(function(e,t){return t(e)},t)}};function Tt(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Tt(e[n],t[n]))}),Ve(Ve({},e),t)}var Et={type:`cancelation`,msg:`operation is manually canceled`};function Dt(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(Et):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n}var Ot=[`monaco`],kt=We(mt.create({config:ht,isInitialized:!1,resolve:null,reject:null,monaco:null}),2),At=kt[0],jt=kt[1];function Mt(e){var t=Ct.config(e),n=t.monaco,r=He(t,Ot);jt(function(e){return{config:Tt(e.config,r),monaco:n}})}function Nt(){var e=At(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(jt({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Dt(Bt);if(window.monaco&&window.monaco.editor)return Rt(window.monaco),e.resolve(window.monaco),Dt(Bt);wt(Pt,It)(Lt)}return Dt(Bt)}function Pt(e){return document.body.appendChild(e)}function Ft(e){var t=document.createElement(`script`);return e&&(t.src=e),t}function It(e){var t=At(function(e){return{config:e.config,reject:e.reject}}),n=Ft(`${t.config.paths.vs}/loader.js`);return n.onload=function(){return e()},n.onerror=t.reject,n}function Lt(){var e=At(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t([`vs/editor/editor.main`],function(t){var n=t.m||t;Rt(n),e.resolve(n)},function(t){e.reject(t)})}function Rt(e){At().monaco||jt({monaco:e})}function zt(){return At(function(e){return e.monaco})}var Bt=new Promise(function(e,t){return jt({resolve:e,reject:t})}),Vt={config:Mt,init:Nt,__getMonacoInstance:zt},Ht={wrapper:{display:`flex`,position:`relative`,textAlign:`initial`},fullWidth:{width:`100%`},hide:{display:`none`}},Ut={container:{display:`flex`,height:`100%`,width:`100%`,justifyContent:`center`,alignItems:`center`}};function Wt({children:e}){return P.createElement(`div`,{style:Ut.container},e)}var Gt=Wt;function Kt({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:a,wrapperProps:o}){return P.createElement(`section`,{style:{...Ht.wrapper,width:e,height:t},...o},!n&&P.createElement(Gt,null,r),P.createElement(`div`,{ref:i,style:{...Ht.fullWidth,...!n&&Ht.hide},className:a}))}var qt=(0,P.memo)(Kt);function Jt(e){(0,P.useEffect)(e,[])}var Yt=Jt;function Xt(e,t,n=!0){let r=(0,P.useRef)(!0);(0,P.useEffect)(r.current||!n?()=>{r.current=!1}:e,t)}var $=Xt;function Zt(){}function Qt(e,t,n,r){return $t(e,r)||en(e,t,n,r)}function $t(e,t){return e.editor.getModel(tn(e,t))}function en(e,t,n,r){return e.editor.createModel(t,n,r?tn(e,r):void 0)}function tn(e,t){return e.Uri.parse(t)}function nn({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:a,modifiedModelPath:o,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:c=!1,theme:l=`light`,loading:u=`Loading...`,options:d={},height:f=`100%`,width:p=`100%`,className:m,wrapperProps:h={},beforeMount:g=Zt,onMount:_=Zt}){let[v,y]=(0,P.useState)(!1),[b,x]=(0,P.useState)(!0),S=(0,P.useRef)(null),C=(0,P.useRef)(null),w=(0,P.useRef)(null),T=(0,P.useRef)(_),E=(0,P.useRef)(g),D=(0,P.useRef)(!1);Yt(()=>{let e=Vt.init();return e.then(e=>(C.current=e)&&x(!1)).catch(e=>e?.type!==`cancelation`&&console.error(`Monaco initialization: error:`,e)),()=>S.current?te():e.cancel()}),$(()=>{if(S.current&&C.current){let t=S.current.getOriginalEditor(),i=Qt(C.current,e||``,r||n||`text`,a||``);i!==t.getModel()&&t.setModel(i)}},[a],v),$(()=>{if(S.current&&C.current){let e=S.current.getModifiedEditor(),r=Qt(C.current,t||``,i||n||`text`,o||``);r!==e.getModel()&&e.setModel(r)}},[o],v),$(()=>{let e=S.current.getModifiedEditor();e.getOption(C.current.editor.EditorOption.readOnly)?e.setValue(t||``):t!==e.getValue()&&(e.executeEdits(``,[{range:e.getModel().getFullModelRange(),text:t||``,forceMoveMarkers:!0}]),e.pushUndoStop())},[t],v),$(()=>{S.current?.getModel()?.original.setValue(e||``)},[e],v),$(()=>{let{original:e,modified:t}=S.current.getModel();C.current.editor.setModelLanguage(e,r||n||`text`),C.current.editor.setModelLanguage(t,i||n||`text`)},[n,r,i],v),$(()=>{C.current?.editor.setTheme(l)},[l],v),$(()=>{S.current?.updateOptions(d)},[d],v);let O=(0,P.useCallback)(()=>{if(!C.current)return;E.current(C.current);let s=Qt(C.current,e||``,r||n||`text`,a||``),c=Qt(C.current,t||``,i||n||`text`,o||``);S.current?.setModel({original:s,modified:c})},[n,t,i,e,r,a,o]),ee=(0,P.useCallback)(()=>{!D.current&&w.current&&(S.current=C.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...d}),O(),C.current?.editor.setTheme(l),y(!0),D.current=!0)},[d,l,O]);(0,P.useEffect)(()=>{v&&T.current(S.current,C.current)},[v]),(0,P.useEffect)(()=>{!b&&!v&&ee()},[b,v,ee]);function te(){let e=S.current?.getModel();s||e?.original?.dispose(),c||e?.modified?.dispose(),S.current?.dispose()}return P.createElement(qt,{width:p,height:f,isEditorReady:v,loading:u,_ref:w,className:m,wrapperProps:h})}(0,P.memo)(nn);function rn(e){let t=(0,P.useRef)();return(0,P.useEffect)(()=>{t.current=e},[e]),t.current}var an=rn,on=new Map;function sn({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:a,theme:o=`light`,line:s,loading:c=`Loading...`,options:l={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:p=`100%`,height:m=`100%`,className:h,wrapperProps:g={},beforeMount:_=Zt,onMount:v=Zt,onChange:y,onValidate:b=Zt}){let[x,S]=(0,P.useState)(!1),[C,w]=(0,P.useState)(!0),T=(0,P.useRef)(null),E=(0,P.useRef)(null),D=(0,P.useRef)(null),O=(0,P.useRef)(v),ee=(0,P.useRef)(_),te=(0,P.useRef)(),ne=(0,P.useRef)(r),re=an(a),k=(0,P.useRef)(!1),ie=(0,P.useRef)(!1);Yt(()=>{let e=Vt.init();return e.then(e=>(T.current=e)&&w(!1)).catch(e=>e?.type!==`cancelation`&&console.error(`Monaco initialization: error:`,e)),()=>E.current?oe():e.cancel()}),$(()=>{let o=Qt(T.current,e||r||``,t||i||``,a||n||``);o!==E.current?.getModel()&&(d&&on.set(re,E.current?.saveViewState()),E.current?.setModel(o),d&&E.current?.restoreViewState(on.get(a)))},[a],x),$(()=>{E.current?.updateOptions(l)},[l],x),$(()=>{!E.current||r===void 0||(E.current.getOption(T.current.editor.EditorOption.readOnly)?E.current.setValue(r):r!==E.current.getValue()&&(ie.current=!0,E.current.executeEdits(``,[{range:E.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),E.current.pushUndoStop(),ie.current=!1))},[r],x),$(()=>{let e=E.current?.getModel();e&&i&&T.current?.editor.setModelLanguage(e,i)},[i],x),$(()=>{s!==void 0&&E.current?.revealLine(s)},[s],x),$(()=>{T.current?.editor.setTheme(o)},[o],x);let ae=(0,P.useCallback)(()=>{if(!(!D.current||!T.current)&&!k.current){ee.current(T.current);let c=a||n,f=Qt(T.current,r||e||``,t||i||``,c||``);E.current=T.current?.editor.create(D.current,{model:f,automaticLayout:!0,...l},u),d&&E.current.restoreViewState(on.get(c)),T.current.editor.setTheme(o),s!==void 0&&E.current.revealLine(s),S(!0),k.current=!0}},[e,t,n,r,i,a,l,u,d,o,s]);(0,P.useEffect)(()=>{x&&O.current(E.current,T.current)},[x]),(0,P.useEffect)(()=>{!C&&!x&&ae()},[C,x,ae]),ne.current=r,(0,P.useEffect)(()=>{x&&y&&(te.current?.dispose(),te.current=E.current?.onDidChangeModelContent(e=>{ie.current||y(E.current.getValue(),e)}))},[x,y]),(0,P.useEffect)(()=>{if(x){let e=T.current.editor.onDidChangeMarkers(e=>{let t=E.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=T.current.editor.getModelMarkers({resource:t});b?.(e)}});return()=>{e?.dispose()}}return()=>{}},[x,b]);function oe(){te.current?.dispose(),f?d&&on.set(a,E.current.saveViewState()):E.current.getModel()?.dispose(),E.current.dispose()}return P.createElement(qt,{width:p,height:m,isEditorReady:x,loading:c,_ref:D,className:h,wrapperProps:g})}var cn=(0,P.memo)(sn),ln=`editor-light`,un=`editor-dark`;function dn(e){let t=(e,t)=>j(e,`hex`)??t,n=e===`dark`;return{base:n?`vs-dark`:`vs`,inherit:!0,rules:[{token:`comment`,foreground:n?`6A9955`:`008000`,fontStyle:`italic`},{token:`keyword`,foreground:n?`C586C0`:`AF00DB`},{token:`string`,foreground:n?`CE9178`:`A31515`},{token:`number`,foreground:n?`B5CEA8`:`098658`},{token:`type`,foreground:n?`4EC9B0`:`267F99`}],colors:{"editor.background":t(`--background`,n?`#1e1e1e`:`#ffffff`),"editor.foreground":t(`--foreground`,n?`#d4d4d4`:`#000000`),"editor.selectionBackground":t(`--accent`,n?`#264f78`:`#add6ff`),"editor.inactiveSelectionBackground":t(`--muted`,n?`#3a3d41`:`#e5ebf1`),"editorLineNumber.foreground":t(`--muted-foreground`,n?`#858585`:`#237893`),"editorCursor.foreground":t(`--primary`,n?`#aeafad`:`#000000`),"editorWhitespace.foreground":t(`--border`,n?`#3b3b3b`:`#d4d4d4`),"editor.lineHighlightBackground":t(`--muted`,n?`#2a2d2e`:`#f5f5f5`),"editorWidget.background":t(`--card`,n?`#252526`:`#f3f3f3`),"editorWidget.border":t(`--border`,n?`#454545`:`#c8c8c8`),"input.background":t(`--input`,n?`#3c3c3c`:`#ffffff`),"scrollbarSlider.background":t(`--muted`,n?`#4e4e4e80`:`#64646480`),"scrollbarSlider.hoverBackground":t(`--muted-foreground`,`#646464b3`)}}}function fn(n){let r=(0,Oe.c)(72),{value:i,onChange:a,language:s,readOnly:c,lineNumbers:u,className:f,variant:p,showCopyButton:m,showFullScreenToggle:g,height:_,themeOverride:v,options:y,autoResize:b}=n,x=s===void 0?`javascript`:s,S=c===void 0?!0:c,C=u===void 0?!0:u,w=p===void 0?`default`:p,T=m===void 0?!0:m,E=g===void 0?!1:g,D=_===void 0?`200px`:_,O=b===void 0?!0:b,[ee,te]=(0,P.useState)(!1),[ne,re]=(0,P.useState)(!1),[k,ie]=(0,P.useState)(!1),ae=(0,P.useRef)(null),oe=(0,P.useRef)(null),[,se]=pe(),{resolvedAppearance:ce}=o(),A=v??ce,j=A===`dark`?un:ln,M;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(M={js:`javascript`,ts:`typescript`,css:`css`,php:`php`,markup:`markup`,sh:`bash`,shell:`bash`,html:`markup`},r[0]=M):M=r[0];let le=M,ue;r[1]===x?ue=r[2]:(ue=le[x.toLowerCase()]||x.toLowerCase(),r[1]=x,r[2]=ue);let de=ue,fe,N;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(fe=()=>{te(!0)},N=[],r[3]=fe,r[4]=N):(fe=r[3],N=r[4]),(0,P.useEffect)(fe,N);let me;r[5]===j?me=r[6]:(me=()=>{let e=oe.current;e&&(e.editor.defineTheme(ln,dn(`light`)),e.editor.defineTheme(un,dn(`dark`)),e.editor.setTheme(j))},r[5]=j,r[6]=me);let I;r[7]!==A||r[8]!==j?(I=[A,j],r[7]=A,r[8]=j,r[9]=I):I=r[9],(0,P.useEffect)(me,I);let L;r[10]!==se||r[11]!==i?(L=async()=>{await se(i)?(re(!0),l.success(`Copied to clipboard`),setTimeout(()=>re(!1),2e3)):l.error(`Failed to copy to clipboard`)},r[10]=se,r[11]=i,r[12]=L):L=r[12];let _e=L,ve;r[13]===Symbol.for(`react.memo_cache_sentinel`)?(ve=()=>{ae.current&&(document.fullscreenElement?document.exitFullscreen():ae.current.requestFullscreen().catch(pn))},r[13]=ve):ve=r[13];let ye=ve,be,R;r[14]===Symbol.for(`react.memo_cache_sentinel`)?(be=()=>{let e=()=>ie(!!document.fullscreenElement);return document.addEventListener(`fullscreenchange`,e),()=>document.removeEventListener(`fullscreenchange`,e)},R=[],r[14]=be,r[15]=R):(be=r[14],R=r[15]),(0,P.useEffect)(be,R);let xe;r[16]===Symbol.for(`react.memo_cache_sentinel`)?(xe={enabled:!1},r[16]=xe):xe=r[16];let z=C?`on`:`off`,B;r[17]===Symbol.for(`react.memo_cache_sentinel`)?(B={top:12,bottom:12},r[17]=B):B=r[17];let V;r[18]!==O||r[19]!==y||r[20]!==S||r[21]!==z?(V={minimap:xe,wordWrap:`on`,fontSize:14,lineNumbers:z,readOnly:S,automaticLayout:O,scrollBeyondLastLine:!1,padding:B,...y},r[18]=O,r[19]=y,r[20]=S,r[21]=z,r[22]=V):V=r[22];let Se=V;if(!ee){let e;r[23]===D?e=r[24]:(e={height:D},r[23]=D,r[24]=e);let t;r[25]===f?t=r[26]:(t=d(`w-full animate-pulse rounded-md border border-border bg-muted/30`,f),r[25]=f,r[26]=t);let n;return r[27]!==e||r[28]!==t?(n=(0,F.jsx)(`div`,{style:e,className:t}),r[27]=e,r[28]=t,r[29]=n):n=r[29],n}let H;r[30]!==ne||r[31]!==_e||r[32]!==T?(H=T&&(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(`span`,{className:d(`text-xs text-green-500 transition-opacity duration-200`,ne?`opacity-100`:`pointer-events-none opacity-0`),children:`Copied`}),(0,F.jsxs)(h,{variant:`ghost`,size:`icon`,onClick:_e,title:`Copy code`,className:`h-8 w-8 transition-opacity hover:opacity-100`,children:[ne?(0,F.jsx)(e,{className:`size-4 text-green-500`}):(0,F.jsx)(t,{className:`size-4`}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Copy`})]})]}),r[30]=ne,r[31]=_e,r[32]=T,r[33]=H):H=r[33];let U;r[34]!==k||r[35]!==E?(U=E&&(0,F.jsxs)(h,{variant:`ghost`,size:`icon`,onClick:ye,title:k?`Exit full-screen`:`Enter full-screen`,className:`h-8 w-8 transition-opacity hover:opacity-100`,children:[k?(0,F.jsx)(ge,{className:`size-4`}):(0,F.jsx)(he,{className:`size-4`}),(0,F.jsx)(`span`,{className:`sr-only`,children:`Toggle Fullscreen`})]}),r[34]=k,r[35]=E,r[36]=U):U=r[36];let W;r[37]!==H||r[38]!==U?(W=(0,F.jsxs)(`div`,{className:`flex items-center gap-1`,children:[H,U]}),r[37]=H,r[38]=U,r[39]=W):W=r[39];let G=W,Ce=k&&`fixed inset-0 z-50 rounded-none border-none bg-muted/50`,K;r[40]!==f||r[41]!==Ce?(K=d(`group/editor-block relative flex flex-col overflow-hidden rounded-md border border-border text-sm`,Ce,f),r[40]=f,r[41]=Ce,r[42]=K):K=r[42];let q;r[43]!==D||r[44]!==k?(q=k?void 0:{height:D},r[43]=D,r[44]=k,r[45]=q):q=r[45];let J;r[46]!==G||r[47]!==de||r[48]!==w?(J=w===`default`&&(0,F.jsxs)(`div`,{className:`flex h-14 shrink-0 items-center justify-between rounded-t-[inherit] border-b border-border bg-muted/50 px-3 py-2`,children:[(0,F.jsx)(`span`,{className:`font-mono text-sm font-bold text-muted-foreground`,children:de}),G]}),r[46]=G,r[47]=de,r[48]=w,r[49]=J):J=r[49];let Y;r[50]!==G||r[51]!==w?(Y=w===`minimal`&&(0,F.jsx)(`div`,{className:`absolute top-2 right-2 z-10 opacity-0 transition-opacity group-hover/editor-block:opacity-100`,children:G}),r[50]=G,r[51]=w,r[52]=Y):Y=r[52];let we;r[53]===Symbol.for(`react.memo_cache_sentinel`)?(we=e=>{oe.current=e,e.editor.defineTheme(ln,dn(`light`)),e.editor.defineTheme(un,dn(`dark`))},r[53]=we):we=r[53];let X;r[54]===j?X=r[55]:(X=(e,t)=>{t.editor.setTheme(j)},r[54]=j,r[55]=X);let Z;r[56]===a?Z=r[57]:(Z=e=>a?.(e||``),r[56]=a,r[57]=Z);let Te;r[58]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,F.jsx)(`div`,{className:`flex h-full w-full animate-pulse items-center justify-center bg-muted/10 text-muted-foreground`,children:`Loading editor...`}),r[58]=Te):Te=r[58];let Q;r[59]!==Se||r[60]!==j||r[61]!==de||r[62]!==X||r[63]!==Z||r[64]!==i?(Q=(0,F.jsx)(`div`,{className:`relative min-h-0 flex-1`,children:(0,F.jsx)(cn,{height:`100%`,language:de,beforeMount:we,onMount:X,theme:j,value:i,onChange:Z,options:Se,loading:Te})}),r[59]=Se,r[60]=j,r[61]=de,r[62]=X,r[63]=Z,r[64]=i,r[65]=Q):Q=r[65];let Ee;return r[66]!==K||r[67]!==q||r[68]!==J||r[69]!==Y||r[70]!==Q?(Ee=(0,F.jsxs)(`div`,{ref:ae,className:K,style:q,children:[J,Y,Q]}),r[66]=K,r[67]=q,r[68]=J,r[69]=Y,r[70]=Q,r[71]=Ee):Ee=r[71],Ee}function pn(e){l.error(`Error enabling full-screen: ${e.message}`)}function mn(e){let t=(0,Oe.c)(15),{children:n}=e,{theme:i}=E().props,{cssVars:a}=ae(i),o=a,s=a,c=a,l,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,F.jsxs)(h,{variant:`outline`,onClick:hn,children:[(0,F.jsx)(N,{className:`size-4`}),`Back`]}),u=(0,F.jsx)(r,{}),t[0]=l,t[1]=u):(l=t[0],u=t[1]);let d;t[2]===c?d=t[3]:(d=(0,F.jsxs)(ie,{style:c,className:`flex items-center justify-between gap-2`,children:[l,u]}),t[2]=c,t[3]=d);let f;t[4]!==s||t[5]!==d?(f=(0,F.jsx)(`div`,{style:s,className:`fixed inset-x-5 top-0 z-20 flex h-16 items-center justify-between bg-background/75 backdrop-blur`,children:d}),t[4]=s,t[5]=d,t[6]=f):f=t[6];let p;t[7]===n?p=t[8]:(p=(0,F.jsx)(`div`,{className:`flex min-h-screen flex-col`,children:(0,F.jsx)(`div`,{className:`my-16 flex-1`,children:n})}),t[7]=n,t[8]=p);let m,g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,F.jsx)(se,{className:`fixed inset-y-0 left-0 z-2 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),m=(0,F.jsx)(se,{className:`fixed inset-y-0 right-0 z-2 h-full w-2 border-l border-border/75 stroke-border/75 md:w-5`}),t[9]=m,t[10]=g):(m=t[9],g=t[10]);let _;return t[11]!==o||t[12]!==f||t[13]!==p?(_=(0,F.jsxs)(oe,{className:`relative bg-background`,style:o,children:[f,p,g,m]}),t[11]=o,t[12]=f,t[13]=p,t[14]=_):_=t[14],_}function hn(){return history.back()}mn.displayName=`ThemeLayout`;function gn(e){let t=(0,Oe.c)(13),{foreground:n,background:r}=e,i;try{let e;t[0]!==r||t[1]!==n?(e=M(n,r),t[0]=r,t[1]=n,t[2]=e):e=t[2],i=e}catch(e){console.log(e),i=0}let a=i,o=a>=7?`AAA`:a>=4.5?`AA`:a>=3?`Large`:`Fail`,s=a>=4.5?`default`:a>=3?`secondary`:`destructive`,c;t[3]!==o||t[4]!==s?(c=(0,F.jsx)(A,{variant:s,className:`h-4 px-1 py-0 text-[10px]`,children:o}),t[3]=o,t[4]=s,t[5]=c):c=t[5];let l;t[6]===a?l=t[7]:(l=a.toFixed(2),t[6]=a,t[7]=l);let u;t[8]===l?u=t[9]:(u=(0,F.jsxs)(`span`,{className:`font-mono text-xs`,children:[l,`:1`]}),t[8]=l,t[9]=u);let d;return t[10]!==c||t[11]!==u?(d=(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[c,u]}),t[10]=c,t[11]=u,t[12]=d):d=t[12],d}function _n(e){let t=(0,Oe.c)(34),{label:n,variable:r,value:i}=e,[,a]=pe();if(!i)return null;let o;t[0]!==a||t[1]!==n||t[2]!==i?(o=async()=>{await a(i),l.success(`Copied ${n} font family to clipboard`)},t[0]=a,t[1]=n,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===n?c=t[5]:(c=(0,F.jsx)(`h3`,{className:`text-lg font-semibold`,children:n}),t[4]=n,t[5]=c);let u;t[6]===i?u=t[7]:(u=(0,F.jsxs)(`span`,{className:`max-w-50 truncate font-mono text-xs text-muted-foreground md:max-w-none`,children:[`(`,i,`)`]}),t[6]=i,t[7]=u);let d;t[8]!==c||t[9]!==u?(d=(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[c,u]}),t[8]=c,t[9]=u,t[10]=d):d=t[10];let f;t[11]===r?f=t[12]:(f=(0,F.jsx)(A,{variant:`outline`,className:`font-mono`,children:r}),t[11]=r,t[12]=f);let p;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,F.jsx)(me,{className:`h-3 w-3`}),t[13]=p):p=t[13];let m;t[14]===s?m=t[15]:(m=(0,F.jsx)(h,{variant:`ghost`,size:`icon`,className:`h-6 w-6`,onClick:s,children:p}),t[14]=s,t[15]=m);let g;t[16]!==f||t[17]!==m?(g=(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[f,m]}),t[16]=f,t[17]=m,t[18]=g):g=t[18];let _;t[19]!==d||t[20]!==g?(_=(0,F.jsxs)(`div`,{className:`flex items-center justify-between`,children:[d,g]}),t[19]=d,t[20]=g,t[21]=_):_=t[21];let v=`${r} space-y-4 rounded-lg border border-border/40 bg-card p-6`,y,b;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,F.jsx)(`p`,{className:`text-4xl leading-tight font-normal`,children:`The quick brown fox jumps over the lazy dog.`}),b=(0,F.jsx)(`p`,{className:`text-2xl leading-tight font-semibold`,children:`The quick brown fox jumps over the lazy dog.`}),t[22]=y,t[23]=b):(y=t[22],b=t[23]);let x;t[24]===n?x=t[25]:(x=n===`Monospace`?(0,F.jsx)(`code`,{className:`block overflow-x-auto text-sm whitespace-pre`,children:`function resolveTheme(name: string) { - const theme = themes.find(t => t.name === name); - return theme ?? defaultTheme; -}`}):`Design is not just what it looks like and feels like. Design is how it works. Typography is the craft of endowing human language with a durable visual form.`,t[24]=n,t[25]=x);let S;t[26]===x?S=t[27]:(S=(0,F.jsx)(`p`,{className:`text-base leading-relaxed font-light`,children:x}),t[26]=x,t[27]=S);let C;t[28]!==v||t[29]!==S?(C=(0,F.jsxs)(`div`,{className:v,children:[y,b,S]}),t[28]=v,t[29]=S,t[30]=C):C=t[30];let w;return t[31]!==C||t[32]!==_?(w=(0,F.jsxs)(`div`,{className:`my-16 space-y-4`,children:[_,C]}),t[31]=C,t[32]=_,t[33]=w):w=t[33],w}function vn(e){let t=(0,Oe.c)(112),{theme:r}=e,{cssVars:a}=ae(r),{appearance:s}=o(),c;t[0]!==s||t[1]!==r.vars_dark||t[2]!==r.vars_light?(c=s===`dark`?r.vars_dark||r.vars_light||{}:r.vars_light||{},t[0]=s,t[1]=r.vars_dark,t[2]=r.vars_light,t[3]=c):c=t[3];let l=c,u;if(t[4]!==l){let e=[{title:`Primary Colors`,keys:[`primary`,`primary-foreground`,`foreground`,`background`]},{title:`Secondary & Accent Colors`,keys:[`secondary`,`secondary-foreground`,`accent`,`accent-foreground`]},{title:`UI Component Colors`,keys:[`card`,`card-foreground`,`popover`,`popover-foreground`,`muted`,`muted-foreground`]},{title:`Utility & Form Colors`,keys:[`border`,`input`,`ring`]},{title:`Status & Feedback Colors`,keys:[`destructive`,`destructive-foreground`]},{title:`Chart & Visualization Colors`,match:Tn},{title:`Sidebar & Navigation Colors`,match:wn}],n=Object.keys(l).filter(Cn),r=new Set,i=e.map(e=>{let t=e.keys?e.keys.filter(e=>n.includes(e)):n.filter(t=>e.match?.(t));return t.forEach(e=>r.add(e)),{title:e.title,keys:t}}),a=n.filter(e=>!r.has(e));if(a.length>0){let e;t[6]===a?e=t[7]:(e={title:`Custom Colors`,keys:a},t[6]=a,t[7]=e),i.push(e)}u=i.filter(Sn),t[4]=l,t[5]=u}else u=t[5];let d=u,p=`Theme: ${r.title}`,m=r.description||`Style guide and documentation for the ${r.title} theme.`,g;t[8]===m?g=t[9]:(g=(0,F.jsx)(`meta`,{name:`description`,content:m}),t[8]=m,t[9]=g);let _;t[10]!==p||t[11]!==g?(_=(0,F.jsx)(v,{title:p,children:g}),t[10]=p,t[11]=g,t[12]=_):_=t[12];let y=r.description||`Style guide and documentation for the ${r.title} theme.`,b;t[13]!==y||t[14]!==r.title?(b=(0,F.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,F.jsx)(w,{title:r.title,description:y})}),t[13]=y,t[14]=r.title,t[15]=b):b=t[15];let x;t[16]===r.author?x=t[17]:(x=r.author&&(0,F.jsxs)(A,{variant:`outline`,className:`text-sm`,children:[`by `,r.author]}),t[16]=r.author,t[17]=x);let S;t[18]===r.tags?S=t[19]:(S=r.tags?.map(xn),t[18]=r.tags,t[19]=S);let C;t[20]===r.style?C=t[21]:(C=r.style&&(0,F.jsxs)(A,{variant:`secondary`,className:`text-[10px]`,children:[`Style: `,r.style]}),t[20]=r.style,t[21]=C);let T;t[22]!==S||t[23]!==C||t[24]!==x?(T=(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[x,S,C]}),t[22]=S,t[23]=C,t[24]=x,t[25]=T):T=t[25];let E;t[26]!==T||t[27]!==b?(E=(0,F.jsxs)(`div`,{className:`space-y-2`,children:[b,T]}),t[26]=T,t[27]=b,t[28]=E):E=t[28];let D;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,F.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,F.jsx)(h,{variant:`outline`,size:`icon`,children:(0,F.jsx)(n,{className:`size-4`})})}),t[29]=D):D=t[29];let O;t[30]===E?O=t[31]:(O=(0,F.jsxs)(`div`,{className:`mb-8 flex flex-col justify-between gap-4 md:flex-row md:items-center`,children:[E,D]}),t[30]=E,t[31]=O);let oe;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,F.jsx)(`div`,{className:`flex items-center justify-between`,children:(0,F.jsxs)(Me,{children:[(0,F.jsx)(Ne,{value:`preview`,children:`Visual Guide`}),(0,F.jsx)(Ne,{value:`export`,children:`Code & Export`})]})}),t[32]=oe):oe=t[32];let se=s===`dark`?`dark`:``,j;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-2xl font-bold tracking-tight`,children:`Colors`}),(0,F.jsx)(`p`,{className:`text-muted-foreground`,children:`The foundational color palette of the theme.`})]}),t[33]=j):j=t[33];let M;t[34]!==l||t[35]!==d?(M=d.map(e=>(0,F.jsxs)(`div`,{className:`space-y-4`,children:[(0,F.jsx)(`h3`,{className:`text-sm font-semibold tracking-wider text-muted-foreground uppercase`,children:e.title}),(0,F.jsx)(`div`,{className:`grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-6`,children:e.keys.map(e=>(0,F.jsx)(ke,{name:e,value:l[e]},e))})]},e.title)),t[34]=l,t[35]=d,t[36]=M):M=t[36];let le;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,F.jsx)(`h3`,{className:`mb-4 text-sm font-semibold tracking-wider text-muted-foreground uppercase`,children:`Accessibility: Contrast Ratios`}),t[37]=le):le=t[37];let pe;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,F.jsx)(`span`,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Text on Background`}),t[38]=pe):pe=t[38];let N;t[39]!==l.background||t[40]!==l.foreground?(N=(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[pe,(0,F.jsx)(gn,{foreground:l.foreground,background:l.background})]}),t[39]=l.background,t[40]=l.foreground,t[41]=N):N=t[41];let me;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,F.jsx)(`span`,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Primary on Background`}),t[42]=me):me=t[42];let he;t[43]!==l.background||t[44]!==l.primary?(he=(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[me,(0,F.jsx)(gn,{foreground:l.primary,background:l.background})]}),t[43]=l.background,t[44]=l.primary,t[45]=he):he=t[45];let ge;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,F.jsx)(`span`,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Primary Foreground on Primary`}),t[46]=ge):ge=t[46];let P=l[`primary-foreground`],I;t[47]!==l.primary||t[48]!==P?(I=(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[ge,(0,F.jsx)(gn,{foreground:P,background:l.primary})]}),t[47]=l.primary,t[48]=P,t[49]=I):I=t[49];let L;t[50]!==N||t[51]!==he||t[52]!==I?(L=(0,F.jsxs)(`div`,{className:`mt-8 rounded-lg border border-border/40 bg-muted/30 p-4`,children:[le,(0,F.jsxs)(`div`,{className:`grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3`,children:[N,he,I]})]}),t[50]=N,t[51]=he,t[52]=I,t[53]=L):L=t[53];let _e;t[54]!==M||t[55]!==L?(_e=(0,F.jsxs)(`section`,{className:`space-y-12`,children:[j,M,L]}),t[54]=M,t[55]=L,t[56]=_e):_e=t[56];let ve;t[57]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,F.jsx)(f,{className:`my-12 bg-border/40`}),t[57]=ve):ve=t[57];let ye;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-2xl font-bold tracking-tight`,children:`Typography`}),(0,F.jsx)(`p`,{className:`text-muted-foreground`,children:`Font families and scale used in this theme.`})]}),t[58]=ye):ye=t[58];let be=r.font_family||l[`font-sans`]||`Geist Sans`,R;t[59]===be?R=t[60]:(R=(0,F.jsx)(_n,{label:`Sans Serif`,variable:`font-sans`,value:be}),t[59]=be,t[60]=R);let xe=r.font_serif||l[`font-serif`],z;t[61]===xe?z=t[62]:(z=(0,F.jsx)(_n,{label:`Serif`,variable:`font-serif`,value:xe}),t[61]=xe,t[62]=z);let B=r.font_mono||l[`font-mono`],V;t[63]===B?V=t[64]:(V=(0,F.jsx)(_n,{label:`Monospace`,variable:`font-mono`,value:B}),t[63]=B,t[64]=V);let Se;t[65]!==R||t[66]!==z||t[67]!==V?(Se=(0,F.jsxs)(`section`,{className:`space-y-6`,children:[ye,(0,F.jsxs)(`div`,{className:`space-y-8`,children:[R,z,V]})]}),t[65]=R,t[66]=z,t[67]=V,t[68]=Se):Se=t[68];let H;t[69]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,F.jsx)(f,{className:`my-12 bg-border/40`}),t[69]=H):H=t[69];let U;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-2xl font-bold tracking-tight`,children:`Component Previews`}),(0,F.jsx)(`p`,{className:`text-muted-foreground`,children:`How the theme looks applied to standard interface elements.`})]}),t[70]=U):U=t[70];let W;t[71]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,F.jsx)(`h3`,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Interactive`}),t[71]=W):W=t[71];let G;t[72]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 rounded-lg border border-border/40 bg-card p-6`,children:[(0,F.jsx)(h,{size:`sm`,children:`Primary`}),(0,F.jsx)(h,{size:`sm`,variant:`secondary`,children:`Secondary`}),(0,F.jsx)(h,{size:`sm`,variant:`outline`,children:`Outline`}),(0,F.jsx)(h,{size:`sm`,variant:`ghost`,children:`Ghost`}),(0,F.jsx)(h,{size:`sm`,variant:`destructive`,children:`Destructive`})]}),t[72]=G):G=t[72];let Ce;t[73]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,F.jsxs)(`div`,{className:`space-y-2`,children:[(0,F.jsx)(ce,{htmlFor:`email`,className:`text-xs`,children:`Email address`}),(0,F.jsx)(i,{id:`email`,placeholder:`hello@example.com`,className:`h-9`})]}),t[73]=Ce):Ce=t[73];let K;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,F.jsxs)(`div`,{className:`space-y-6`,children:[W,G,(0,F.jsxs)(`div`,{className:`space-y-4 rounded-lg border border-border/40 bg-card p-6`,children:[Ce,(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsx)(A,{children:`New`}),(0,F.jsx)(A,{variant:`secondary`,children:`In Progress`}),(0,F.jsx)(A,{variant:`outline`,children:`Draft`})]})]})]}),t[74]=K):K=t[74];let q;t[75]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,F.jsx)(`h3`,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Feedback & Containers`}),t[75]=q):q=t[75];let J;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,F.jsxs)(de,{className:`bg-card`,children:[(0,F.jsx)(ue,{className:`text-sm font-semibold`,children:`Heads up!`}),(0,F.jsx)(fe,{className:`text-xs text-muted-foreground`,children:`This is a preview of the theme applied to an alert component.`})]}),t[76]=J):J=t[76];let Y;t[77]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,F.jsxs)(ee,{className:`p-4`,children:[(0,F.jsx)(ne,{className:`text-sm font-bold`,children:`Card Component`}),(0,F.jsx)(re,{className:`text-xs`,children:`Visualizing elevation and spacing.`})]}),t[77]=Y):Y=t[77];let we;t[78]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,F.jsxs)(`section`,{className:`space-y-8`,children:[U,(0,F.jsxs)(`div`,{className:`grid grid-cols-1 gap-8 md:grid-cols-2`,children:[K,(0,F.jsxs)(`div`,{className:`space-y-6`,children:[q,J,(0,F.jsxs)(k,{className:`border-border/40`,children:[Y,(0,F.jsx)(te,{className:`p-4 pt-0`,children:(0,F.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:`Cards are used to group related information and provide a clear hierarchy.`})})]})]})]})]}),t[78]=we):we=t[78];let X;t[79]!==_e||t[80]!==Se?(X=(0,F.jsxs)(`div`,{className:`-mx-6 rounded-xl bg-black/5 p-6 transition-colors duration-300 dark:bg-white/5`,children:[_e,ve,Se,H,we]}),t[79]=_e,t[80]=Se,t[81]=X):X=t[81];let Z;t[82]!==se||t[83]!==X?(Z=(0,F.jsx)(Pe,{value:`preview`,className:`space-y-12 outline-none`,children:(0,F.jsx)(`div`,{className:se,children:X})}),t[82]=se,t[83]=X,t[84]=Z):Z=t[84];let Te;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-xl font-bold`,children:`Theme CSS Variables`}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Copy these into your main CSS file.`})]}),t[85]=Te):Te=t[85];let Q;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(Q={minimap:{enabled:!0}},t[86]=Q):Q=t[86];let Ee;t[87]===r.vars_light?Ee=t[88]:(Ee=Object.entries(r.vars_light||{}).map(bn),t[87]=r.vars_light,t[88]=Ee);let De=Ee.join(` -`),je;t[89]===r.vars_dark?je=t[90]:(je=Object.entries(r.vars_dark||{}).map(yn),t[89]=r.vars_dark,t[90]=je);let Fe=`:root { -${De} -} - -.dark { -${je.join(` -`)} -}`,Ie;t[91]===Fe?Ie=t[92]:(Ie=(0,F.jsxs)(`section`,{className:`space-y-4`,children:[Te,(0,F.jsx)(`div`,{className:`relative`,children:(0,F.jsx)(fn,{language:`css`,options:Q,showFullScreenToggle:!0,height:`780px`,value:Fe})})]}),t[91]=Fe,t[92]=Ie);let Le;t[93]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{className:`text-xl font-bold`,children:`Theme JSON`}),(0,F.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`The registry representation of the theme.`})]}),t[93]=Le):Le=t[93];let Re;t[94]===Symbol.for(`react.memo_cache_sentinel`)?(Re={minimap:{enabled:!0}},t[94]=Re):Re=t[94];let ze;t[95]===r?ze=t[96]:(ze=JSON.stringify(r,null,2),t[95]=r,t[96]=ze);let Be;t[97]===ze?Be=t[98]:(Be=(0,F.jsxs)(`section`,{className:`space-y-4`,children:[Le,(0,F.jsx)(`div`,{className:`relative`,children:(0,F.jsx)(fn,{language:`json`,options:Re,showFullScreenToggle:!0,height:`780px`,value:ze})})]}),t[97]=ze,t[98]=Be);let Ve;t[99]!==Ie||t[100]!==Be?(Ve=(0,F.jsxs)(Pe,{value:`export`,className:`space-y-8 outline-none`,children:[Ie,Be]}),t[99]=Ie,t[100]=Be,t[101]=Ve):Ve=t[101];let He;t[102]!==Z||t[103]!==Ve?(He=(0,F.jsxs)(Ae,{defaultValue:`preview`,className:`space-y-8`,children:[oe,Z,Ve]}),t[102]=Z,t[103]=Ve,t[104]=He):He=t[104];let Ue;t[105]!==O||t[106]!==_||t[107]!==He?(Ue=(0,F.jsxs)(ie,{className:`py-0`,children:[_,O,He]}),t[105]=O,t[106]=_,t[107]=He,t[108]=Ue):Ue=t[108];let We;return t[109]!==a||t[110]!==Ue?(We=(0,F.jsx)(`div`,{style:a,className:`bg-background`,children:Ue}),t[109]=a,t[110]=Ue,t[111]=We):We=t[111],We}function yn(e){let[t,n]=e;return` --${t}: ${n};`}function bn(e){let[t,n]=e;return` --${t}: ${n};`}function xn(e){return(0,F.jsx)(A,{variant:`secondary`,className:`text-[10px] capitalize`,children:typeof e==`string`?e:e.name},typeof e==`string`?e:e.name)}function Sn(e){return e.keys.length>0}function Cn(e){return!e.startsWith(`font-`)&&e!==`radius`&&!e.includes(`shadow`)}function wn(e){return e.startsWith(`sidebar`)}function Tn(e){return e.startsWith(`chart-`)}vn.layout=mn;export{vn as default}; \ No newline at end of file diff --git a/public/build/assets/show-D6Z2FFsL.js b/public/build/assets/show-D6Z2FFsL.js new file mode 100644 index 0000000..4628ef7 --- /dev/null +++ b/public/build/assets/show-D6Z2FFsL.js @@ -0,0 +1,22 @@ +import{t as e}from"./check-BBvDdM_9.js";import{t}from"./copy-HrVumo6t.js";import{t as n}from"./heart-BDAPM7f6.js";import{t as r}from"./appearance-tabs-BOBvnqrB.js";import{i,n as a,r as o,t as s}from"./tabs-CNNfAj8l.js";import{B as c,G as l,Gt as u,Kt as d,Q as f,R as p,V as m,Wt as h,Yt as g,Zt as _,ln as v,qt as y,r as b,rn as x,tn as S}from"./app-D7MKN1zp.js";import{a as C,n as w,o as T,r as E,t as D}from"./card-C1ekp7Ou.js";import{i as ee,l as te,r as ne,t as O}from"./glow-stack-BaNii-nE.js";import{t as k}from"./placeholder-pattern-DUvj6lOE.js";import{t as A}from"./label-fRwP89Ez.js";import{t as j}from"./badge-D9nNMnEq.js";import{i as re,n as ie,r as ae}from"./color-utils-DTvyGxAC.js";import{i as oe,n as se,r as M,t as ce}from"./use-clipboard-BvQkhUu9.js";var N=l(`ArrowLeft`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),le=l(`Clipboard`,[[`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`}]]),ue=l(`GitFork`,[[`circle`,{cx:`12`,cy:`18`,r:`3`,key:`1mpf1b`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`path`,{d:`M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9`,key:`1uq4wg`}],[`path`,{d:`M12 12v3`,key:`158kv8`}]]),de=l(`Maximize2`,[[`polyline`,{points:`15 3 21 3 21 9`,key:`mznyad`}],[`polyline`,{points:`9 21 3 21 3 15`,key:`1avn1i`}],[`line`,{x1:`21`,x2:`14`,y1:`3`,y2:`10`,key:`ota7mn`}],[`line`,{x1:`3`,x2:`10`,y1:`21`,y2:`14`,key:`1atl0r`}]]),fe=l(`Minimize2`,[[`polyline`,{points:`4 14 10 14 10 20`,key:`11kfnr`}],[`polyline`,{points:`20 10 14 10 14 4`,key:`rlmsce`}],[`line`,{x1:`14`,x2:`21`,y1:`10`,y2:`3`,key:`o5lafz`}],[`line`,{x1:`3`,x2:`10`,y1:`21`,y2:`14`,key:`1atl0r`}]]),pe=y(),P=h();function me(e){let t=(0,pe.c)(14),{name:n,value:r}=e,[,i]=ce(),a;t[0]===r?a=t[1]:(a=ie(r,`hex`)||r,t[0]=r,t[1]=a);let o=a,s;t[2]!==i||t[3]!==o||t[4]!==n?(s=async()=>{await i(o),d.success(`Copied ${n}`)},t[2]=i,t[3]=o,t[4]=n,t[5]=s):s=t[5];let c=s,l;t[6]===r?l=t[7]:(l=(0,P.jsx)(`span`,{className:`size-12 shrink-0 rounded ring-1 ring-black/10`,style:{backgroundColor:r}}),t[6]=r,t[7]=l);let u;t[8]===n?u=t[9]:(u=(0,P.jsx)(`span`,{className:`text-xs font-semibold tracking-wider text-muted-foreground uppercase`,children:n}),t[8]=n,t[9]=u);let f;return t[10]!==c||t[11]!==l||t[12]!==u?(f=(0,P.jsxs)(`button`,{onClick:c,className:`group inline-flex cursor-pointer items-center gap-2 rounded-lg border border-border/40 px-3 py-2 text-left transition-colors hover:border-border`,children:[l,u]}),t[10]=c,t[11]=l,t[12]=u,t[13]=f):f=t[13],f}me.displayName=`ColorSwatch2`;function F(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?e.apply(this,r):function(){var e=[...arguments];return t.apply(n,[].concat(r,e))}}}function W(e){return{}.toString.call(e).includes(`Object`)}function we(e){return!Object.keys(e).length}function G(e){return typeof e==`function`}function Te(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function K(e,t){return W(t)||Y(`changeType`),Object.keys(t).some(function(t){return!Te(e,t)})&&Y(`changeField`),t}function Ee(e){G(e)||Y(`selectorType`)}function q(e){G(e)||W(e)||Y(`handlerType`),W(e)&&Object.values(e).some(function(e){return!G(e)})&&Y(`handlersType`)}function De(e){e||Y(`initialIsRequired`),W(e)||Y(`initialType`),we(e)&&Y(`initialContent`)}function J(e,t){throw Error(e[t]||e.default)}var Y=U(J)({initialIsRequired:`initial state is required`,initialType:`initial state should be an object`,initialContent:`initial state shouldn't be an empty object`,handlerType:`handler should be an object or a function`,handlersType:`all handlers should be a functions`,selectorType:`selector should be a function`,changeType:`provided value of changes should be an object`,changeField:`it seams you want to change a field in the state which is not specified in the "initial" state`,default:"an unknown error accured in `state-local` package"}),X={changes:K,selector:Ee,handler:q,initial:De};function Oe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};X.initial(e),X.handler(t);var n={current:e},r=U(je)(n,t),i=U(Ae)(n),a=U(X.changes)(e),o=U(ke)(n);function s(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(e){return e};return X.selector(e),e(n.current)}function c(e){H(r,i,a,o)(e)}return[s,c]}function ke(e,t){return G(t)?t(e.current):t}function Ae(e,t){return e.current=V(V({},e.current),t),t}function je(e,t,n){return G(t)?t(e.current):Object.keys(n).forEach(function(n){return t[n]?.call(t,e.current[n])}),n}var Me={create:Oe},Ne={paths:{vs:`https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs`}};function Pe(e){return function t(){var n=this,r=[...arguments];return r.length>=e.length?e.apply(this,r):function(){var e=[...arguments];return t.apply(n,[].concat(r,e))}}}function Fe(e){return{}.toString.call(e).includes(`Object`)}function Ie(e){return e||Be(`configIsRequired`),Fe(e)||Be(`configType`),e.urls?(Le(),{paths:{vs:e.urls.monacoBase}}):e}function Le(){console.warn(ze.deprecation)}function Re(e,t){throw Error(e[t]||e.default)}var ze={configIsRequired:`the configuration object is required`,configType:`the configuration object should be an object`,default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning! + You are using deprecated way of configuration. + + Instead of using + monaco.config({ urls: { monacoBase: '...' } }) + use + monaco.config({ paths: { vs: '...' } }) + + For more please check the link https://github.com/suren-atoyan/monaco-loader#config + `},Be=Pe(Re)(ze),Ve={config:Ie},He=function(){var e=[...arguments];return function(t){return e.reduceRight(function(e,t){return t(e)},t)}};function Ue(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Ue(e[n],t[n]))}),_e(_e({},e),t)}var We={type:`cancelation`,msg:`operation is manually canceled`};function Ge(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(We):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n}var Ke=[`monaco`],qe=ye(Me.create({config:Ne,isInitialized:!1,resolve:null,reject:null,monaco:null}),2),Z=qe[0],Je=qe[1];function Ye(e){var t=Ve.config(e),n=t.monaco,r=ve(t,Ke);Je(function(e){return{config:Ue(e.config,r),monaco:n}})}function Xe(){var e=Z(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(Je({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ge(rt);if(window.monaco&&window.monaco.editor)return tt(window.monaco),e.resolve(window.monaco),Ge(rt);He(Ze,$e)(et)}return Ge(rt)}function Ze(e){return document.body.appendChild(e)}function Qe(e){var t=document.createElement(`script`);return e&&(t.src=e),t}function $e(e){var t=Z(function(e){return{config:e.config,reject:e.reject}}),n=Qe(`${t.config.paths.vs}/loader.js`);return n.onload=function(){return e()},n.onerror=t.reject,n}function et(){var e=Z(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t([`vs/editor/editor.main`],function(t){var n=t.m||t;tt(n),e.resolve(n)},function(t){e.reject(t)})}function tt(e){Z().monaco||Je({monaco:e})}function nt(){return Z(function(e){return e.monaco})}var rt=new Promise(function(e,t){return Je({resolve:e,reject:t})}),it={config:Ye,init:Xe,__getMonacoInstance:nt},Q=v(x(),1),at={wrapper:{display:`flex`,position:`relative`,textAlign:`initial`},fullWidth:{width:`100%`},hide:{display:`none`}},ot={container:{display:`flex`,height:`100%`,width:`100%`,justifyContent:`center`,alignItems:`center`}};function st({children:e}){return Q.createElement(`div`,{style:ot.container},e)}var ct=st;function lt({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:a,wrapperProps:o}){return Q.createElement(`section`,{style:{...at.wrapper,width:e,height:t},...o},!n&&Q.createElement(ct,null,r),Q.createElement(`div`,{ref:i,style:{...at.fullWidth,...!n&&at.hide},className:a}))}var ut=(0,Q.memo)(lt);function dt(e){(0,Q.useEffect)(e,[])}var ft=dt;function pt(e,t,n=!0){let r=(0,Q.useRef)(!0);(0,Q.useEffect)(r.current||!n?()=>{r.current=!1}:e,t)}var $=pt;function mt(){}function ht(e,t,n,r){return gt(e,r)||_t(e,t,n,r)}function gt(e,t){return e.editor.getModel(vt(e,t))}function _t(e,t,n,r){return e.editor.createModel(t,n,r?vt(e,r):void 0)}function vt(e,t){return e.Uri.parse(t)}function yt({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:a,modifiedModelPath:o,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:c=!1,theme:l=`light`,loading:u=`Loading...`,options:d={},height:f=`100%`,width:p=`100%`,className:m,wrapperProps:h={},beforeMount:g=mt,onMount:_=mt}){let[v,y]=(0,Q.useState)(!1),[b,x]=(0,Q.useState)(!0),S=(0,Q.useRef)(null),C=(0,Q.useRef)(null),w=(0,Q.useRef)(null),T=(0,Q.useRef)(_),E=(0,Q.useRef)(g),D=(0,Q.useRef)(!1);ft(()=>{let e=it.init();return e.then(e=>(C.current=e)&&x(!1)).catch(e=>e?.type!==`cancelation`&&console.error(`Monaco initialization: error:`,e)),()=>S.current?ne():e.cancel()}),$(()=>{if(S.current&&C.current){let t=S.current.getOriginalEditor(),i=ht(C.current,e||``,r||n||`text`,a||``);i!==t.getModel()&&t.setModel(i)}},[a],v),$(()=>{if(S.current&&C.current){let e=S.current.getModifiedEditor(),r=ht(C.current,t||``,i||n||`text`,o||``);r!==e.getModel()&&e.setModel(r)}},[o],v),$(()=>{let e=S.current.getModifiedEditor();e.getOption(C.current.editor.EditorOption.readOnly)?e.setValue(t||``):t!==e.getValue()&&(e.executeEdits(``,[{range:e.getModel().getFullModelRange(),text:t||``,forceMoveMarkers:!0}]),e.pushUndoStop())},[t],v),$(()=>{S.current?.getModel()?.original.setValue(e||``)},[e],v),$(()=>{let{original:e,modified:t}=S.current.getModel();C.current.editor.setModelLanguage(e,r||n||`text`),C.current.editor.setModelLanguage(t,i||n||`text`)},[n,r,i],v),$(()=>{C.current?.editor.setTheme(l)},[l],v),$(()=>{S.current?.updateOptions(d)},[d],v);let ee=(0,Q.useCallback)(()=>{if(!C.current)return;E.current(C.current);let s=ht(C.current,e||``,r||n||`text`,a||``),c=ht(C.current,t||``,i||n||`text`,o||``);S.current?.setModel({original:s,modified:c})},[n,t,i,e,r,a,o]),te=(0,Q.useCallback)(()=>{!D.current&&w.current&&(S.current=C.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...d}),ee(),C.current?.editor.setTheme(l),y(!0),D.current=!0)},[d,l,ee]);(0,Q.useEffect)(()=>{v&&T.current(S.current,C.current)},[v]),(0,Q.useEffect)(()=>{!b&&!v&&te()},[b,v,te]);function ne(){let e=S.current?.getModel();s||e?.original?.dispose(),c||e?.modified?.dispose(),S.current?.dispose()}return Q.createElement(ut,{width:p,height:f,isEditorReady:v,loading:u,_ref:w,className:m,wrapperProps:h})}(0,Q.memo)(yt);function bt(e){let t=(0,Q.useRef)();return(0,Q.useEffect)(()=>{t.current=e},[e]),t.current}var xt=bt,St=new Map;function Ct({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:a,theme:o=`light`,line:s,loading:c=`Loading...`,options:l={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:p=`100%`,height:m=`100%`,className:h,wrapperProps:g={},beforeMount:_=mt,onMount:v=mt,onChange:y,onValidate:b=mt}){let[x,S]=(0,Q.useState)(!1),[C,w]=(0,Q.useState)(!0),T=(0,Q.useRef)(null),E=(0,Q.useRef)(null),D=(0,Q.useRef)(null),ee=(0,Q.useRef)(v),te=(0,Q.useRef)(_),ne=(0,Q.useRef)(),O=(0,Q.useRef)(r),k=xt(a),A=(0,Q.useRef)(!1),j=(0,Q.useRef)(!1);ft(()=>{let e=it.init();return e.then(e=>(T.current=e)&&w(!1)).catch(e=>e?.type!==`cancelation`&&console.error(`Monaco initialization: error:`,e)),()=>E.current?ie():e.cancel()}),$(()=>{let o=ht(T.current,e||r||``,t||i||``,a||n||``);o!==E.current?.getModel()&&(d&&St.set(k,E.current?.saveViewState()),E.current?.setModel(o),d&&E.current?.restoreViewState(St.get(a)))},[a],x),$(()=>{E.current?.updateOptions(l)},[l],x),$(()=>{!E.current||r===void 0||(E.current.getOption(T.current.editor.EditorOption.readOnly)?E.current.setValue(r):r!==E.current.getValue()&&(j.current=!0,E.current.executeEdits(``,[{range:E.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),E.current.pushUndoStop(),j.current=!1))},[r],x),$(()=>{let e=E.current?.getModel();e&&i&&T.current?.editor.setModelLanguage(e,i)},[i],x),$(()=>{s!==void 0&&E.current?.revealLine(s)},[s],x),$(()=>{T.current?.editor.setTheme(o)},[o],x);let re=(0,Q.useCallback)(()=>{if(!(!D.current||!T.current)&&!A.current){te.current(T.current);let c=a||n,f=ht(T.current,r||e||``,t||i||``,c||``);E.current=T.current?.editor.create(D.current,{model:f,automaticLayout:!0,...l},u),d&&E.current.restoreViewState(St.get(c)),T.current.editor.setTheme(o),s!==void 0&&E.current.revealLine(s),S(!0),A.current=!0}},[e,t,n,r,i,a,l,u,d,o,s]);(0,Q.useEffect)(()=>{x&&ee.current(E.current,T.current)},[x]),(0,Q.useEffect)(()=>{!C&&!x&&re()},[C,x,re]),O.current=r,(0,Q.useEffect)(()=>{x&&y&&(ne.current?.dispose(),ne.current=E.current?.onDidChangeModelContent(e=>{j.current||y(E.current.getValue(),e)}))},[x,y]),(0,Q.useEffect)(()=>{if(x){let e=T.current.editor.onDidChangeMarkers(e=>{let t=E.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=T.current.editor.getModelMarkers({resource:t});b?.(e)}});return()=>{e?.dispose()}}return()=>{}},[x,b]);function ie(){ne.current?.dispose(),f?d&&St.set(a,E.current.saveViewState()):E.current.getModel()?.dispose(),E.current.dispose()}return Q.createElement(ut,{width:p,height:m,isEditorReady:x,loading:c,_ref:D,className:h,wrapperProps:g})}var wt=(0,Q.memo)(Ct),Tt=`editor-light`,Et=`editor-dark`;function Dt(e){let t=(e,t)=>ae(e,`hex`)??t,n=e===`dark`;return{base:n?`vs-dark`:`vs`,inherit:!0,rules:[{token:`comment`,foreground:n?`6A9955`:`008000`,fontStyle:`italic`},{token:`keyword`,foreground:n?`C586C0`:`AF00DB`},{token:`string`,foreground:n?`CE9178`:`A31515`},{token:`number`,foreground:n?`B5CEA8`:`098658`},{token:`type`,foreground:n?`4EC9B0`:`267F99`}],colors:{"editor.background":t(`--background`,n?`#1e1e1e`:`#ffffff`),"editor.foreground":t(`--foreground`,n?`#d4d4d4`:`#000000`),"editor.selectionBackground":t(`--accent`,n?`#264f78`:`#add6ff`),"editor.inactiveSelectionBackground":t(`--muted`,n?`#3a3d41`:`#e5ebf1`),"editorLineNumber.foreground":t(`--muted-foreground`,n?`#858585`:`#237893`),"editorCursor.foreground":t(`--primary`,n?`#aeafad`:`#000000`),"editorWhitespace.foreground":t(`--border`,n?`#3b3b3b`:`#d4d4d4`),"editor.lineHighlightBackground":t(`--muted`,n?`#2a2d2e`:`#f5f5f5`),"editorWidget.background":t(`--card`,n?`#252526`:`#f3f3f3`),"editorWidget.border":t(`--border`,n?`#454545`:`#c8c8c8`),"input.background":t(`--input`,n?`#3c3c3c`:`#ffffff`),"scrollbarSlider.background":t(`--muted`,n?`#4e4e4e80`:`#64646480`),"scrollbarSlider.hoverBackground":t(`--muted-foreground`,`#646464b3`)}}}function Ot(n){let r=(0,pe.c)(72),{value:i,onChange:a,language:o,readOnly:s,lineNumbers:c,className:l,variant:p,showCopyButton:h,showFullScreenToggle:g,height:_,themeOverride:v,options:y,autoResize:b}=n,x=o===void 0?`javascript`:o,S=s===void 0?!0:s,C=c===void 0?!0:c,w=p===void 0?`default`:p,T=h===void 0?!0:h,E=g===void 0?!1:g,D=_===void 0?`200px`:_,ee=b===void 0?!0:b,[te,ne]=(0,Q.useState)(!1),[O,k]=(0,Q.useState)(!1),[A,j]=(0,Q.useState)(!1),re=(0,Q.useRef)(null),ie=(0,Q.useRef)(null),[,ae]=ce(),{resolvedAppearance:oe}=u(),se=v??oe,M=se===`dark`?Et:Tt,N;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(N={js:`javascript`,ts:`typescript`,css:`css`,php:`php`,markup:`markup`,sh:`bash`,shell:`bash`,html:`markup`},r[0]=N):N=r[0];let le=N,ue;r[1]===x?ue=r[2]:(ue=le[x.toLowerCase()]||x.toLowerCase(),r[1]=x,r[2]=ue);let me=ue,F,I;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(F=()=>{ne(!0)},I=[],r[3]=F,r[4]=I):(F=r[3],I=r[4]),(0,Q.useEffect)(F,I);let he;r[5]===M?he=r[6]:(he=()=>{let e=ie.current;e&&(e.editor.defineTheme(Tt,Dt(`light`)),e.editor.defineTheme(Et,Dt(`dark`)),e.editor.setTheme(M))},r[5]=M,r[6]=he);let L;r[7]!==se||r[8]!==M?(L=[se,M],r[7]=se,r[8]=M,r[9]=L):L=r[9],(0,Q.useEffect)(he,L);let R;r[10]!==ae||r[11]!==i?(R=async()=>{await ae(i)?(k(!0),d.success(`Copied to clipboard`),setTimeout(()=>k(!1),2e3)):d.error(`Failed to copy to clipboard`)},r[10]=ae,r[11]=i,r[12]=R):R=r[12];let ge=R,_e;r[13]===Symbol.for(`react.memo_cache_sentinel`)?(_e=()=>{re.current&&(document.fullscreenElement?document.exitFullscreen():re.current.requestFullscreen().catch(kt))},r[13]=_e):_e=r[13];let ve=_e,z,ye;r[14]===Symbol.for(`react.memo_cache_sentinel`)?(z=()=>{let e=()=>j(!!document.fullscreenElement);return document.addEventListener(`fullscreenchange`,e),()=>document.removeEventListener(`fullscreenchange`,e)},ye=[],r[14]=z,r[15]=ye):(z=r[14],ye=r[15]),(0,Q.useEffect)(z,ye);let be;r[16]===Symbol.for(`react.memo_cache_sentinel`)?(be={enabled:!1},r[16]=be):be=r[16];let xe=C?`on`:`off`,Se;r[17]===Symbol.for(`react.memo_cache_sentinel`)?(Se={top:12,bottom:12},r[17]=Se):Se=r[17];let B;r[18]!==ee||r[19]!==y||r[20]!==S||r[21]!==xe?(B={minimap:be,wordWrap:`on`,fontSize:14,lineNumbers:xe,readOnly:S,automaticLayout:ee,scrollBeyondLastLine:!1,padding:Se,...y},r[18]=ee,r[19]=y,r[20]=S,r[21]=xe,r[22]=B):B=r[22];let Ce=B;if(!te){let e;r[23]===D?e=r[24]:(e={height:D},r[23]=D,r[24]=e);let t;r[25]===l?t=r[26]:(t=f(`w-full animate-pulse rounded-md border border-border bg-muted/30`,l),r[25]=l,r[26]=t);let n;return r[27]!==e||r[28]!==t?(n=(0,P.jsx)(`div`,{style:e,className:t}),r[27]=e,r[28]=t,r[29]=n):n=r[29],n}let V;r[30]!==O||r[31]!==ge||r[32]!==T?(V=T&&(0,P.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,P.jsx)(`span`,{className:f(`text-xs text-green-500 transition-opacity duration-200`,O?`opacity-100`:`pointer-events-none opacity-0`),children:`Copied`}),(0,P.jsxs)(m,{variant:`ghost`,size:`icon`,onClick:ge,title:`Copy code`,className:`h-8 w-8 transition-opacity hover:opacity-100`,children:[O?(0,P.jsx)(e,{className:`size-4 text-green-500`}):(0,P.jsx)(t,{className:`size-4`}),(0,P.jsx)(`span`,{className:`sr-only`,children:`Copy`})]})]}),r[30]=O,r[31]=ge,r[32]=T,r[33]=V):V=r[33];let H;r[34]!==A||r[35]!==E?(H=E&&(0,P.jsxs)(m,{variant:`ghost`,size:`icon`,onClick:ve,title:A?`Exit full-screen`:`Enter full-screen`,className:`h-8 w-8 transition-opacity hover:opacity-100`,children:[A?(0,P.jsx)(fe,{className:`size-4`}):(0,P.jsx)(de,{className:`size-4`}),(0,P.jsx)(`span`,{className:`sr-only`,children:`Toggle Fullscreen`})]}),r[34]=A,r[35]=E,r[36]=H):H=r[36];let U;r[37]!==V||r[38]!==H?(U=(0,P.jsxs)(`div`,{className:`flex items-center gap-1`,children:[V,H]}),r[37]=V,r[38]=H,r[39]=U):U=r[39];let W=U,we=A&&`fixed inset-0 z-50 rounded-none border-none bg-muted/50`,G;r[40]!==l||r[41]!==we?(G=f(`group/editor-block relative flex flex-col overflow-hidden rounded-md border border-border text-sm`,we,l),r[40]=l,r[41]=we,r[42]=G):G=r[42];let Te;r[43]!==D||r[44]!==A?(Te=A?void 0:{height:D},r[43]=D,r[44]=A,r[45]=Te):Te=r[45];let K;r[46]!==W||r[47]!==me||r[48]!==w?(K=w===`default`&&(0,P.jsxs)(`div`,{className:`flex h-14 shrink-0 items-center justify-between rounded-t-[inherit] border-b border-border bg-muted/50 px-3 py-2`,children:[(0,P.jsx)(`span`,{className:`font-mono text-sm font-bold text-muted-foreground`,children:me}),W]}),r[46]=W,r[47]=me,r[48]=w,r[49]=K):K=r[49];let Ee;r[50]!==W||r[51]!==w?(Ee=w===`minimal`&&(0,P.jsx)(`div`,{className:`absolute top-2 right-2 z-10 opacity-0 transition-opacity group-hover/editor-block:opacity-100`,children:W}),r[50]=W,r[51]=w,r[52]=Ee):Ee=r[52];let q;r[53]===Symbol.for(`react.memo_cache_sentinel`)?(q=e=>{ie.current=e,e.editor.defineTheme(Tt,Dt(`light`)),e.editor.defineTheme(Et,Dt(`dark`))},r[53]=q):q=r[53];let De;r[54]===M?De=r[55]:(De=(e,t)=>{t.editor.setTheme(M)},r[54]=M,r[55]=De);let J;r[56]===a?J=r[57]:(J=e=>a?.(e||``),r[56]=a,r[57]=J);let Y;r[58]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,P.jsx)(`div`,{className:`flex h-full w-full animate-pulse items-center justify-center bg-muted/10 text-muted-foreground`,children:`Loading editor...`}),r[58]=Y):Y=r[58];let X;r[59]!==Ce||r[60]!==M||r[61]!==me||r[62]!==De||r[63]!==J||r[64]!==i?(X=(0,P.jsx)(`div`,{className:`relative min-h-0 flex-1`,children:(0,P.jsx)(wt,{height:`100%`,language:me,beforeMount:q,onMount:De,theme:M,value:i,onChange:J,options:Ce,loading:Y})}),r[59]=Ce,r[60]=M,r[61]=me,r[62]=De,r[63]=J,r[64]=i,r[65]=X):X=r[65];let Oe;return r[66]!==G||r[67]!==Te||r[68]!==K||r[69]!==Ee||r[70]!==X?(Oe=(0,P.jsxs)(`div`,{ref:re,className:G,style:Te,children:[K,Ee,X]}),r[66]=G,r[67]=Te,r[68]=K,r[69]=Ee,r[70]=X,r[71]=Oe):Oe=r[71],Oe}function kt(e){d.error(`Error enabling full-screen: ${e.message}`)}function At(e){let t=(0,pe.c)(15),{children:n}=e,{theme:i}=S().props,{cssVars:a}=ne(i),o=a,s=a,c=a,l,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,P.jsxs)(m,{variant:`outline`,onClick:jt,children:[(0,P.jsx)(N,{className:`size-4`}),`Back`]}),u=(0,P.jsx)(r,{}),t[0]=l,t[1]=u):(l=t[0],u=t[1]);let d;t[2]===c?d=t[3]:(d=(0,P.jsxs)(te,{style:c,className:`flex items-center justify-between gap-2`,children:[l,u]}),t[2]=c,t[3]=d);let f;t[4]!==s||t[5]!==d?(f=(0,P.jsx)(`div`,{style:s,className:`fixed inset-x-5 top-0 z-20 flex h-16 items-center justify-between bg-background/75 backdrop-blur`,children:d}),t[4]=s,t[5]=d,t[6]=f):f=t[6];let p;t[7]===n?p=t[8]:(p=(0,P.jsx)(`div`,{className:`flex min-h-screen flex-col`,children:(0,P.jsx)(`div`,{className:`my-16 flex-1`,children:n})}),t[7]=n,t[8]=p);let h,g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,P.jsx)(k,{className:`fixed inset-y-0 left-0 z-2 h-full w-2 border-r border-border/75 stroke-border/75 md:w-5`}),h=(0,P.jsx)(k,{className:`fixed inset-y-0 right-0 z-2 h-full w-2 border-l border-border/75 stroke-border/75 md:w-5`}),t[9]=h,t[10]=g):(h=t[9],g=t[10]);let _;return t[11]!==o||t[12]!==f||t[13]!==p?(_=(0,P.jsxs)(O,{className:`relative bg-background`,style:o,children:[f,p,g,h]}),t[11]=o,t[12]=f,t[13]=p,t[14]=_):_=t[14],_}function jt(){return history.back()}At.displayName=`ThemeLayout`;function Mt(e){let t=(0,pe.c)(13),{foreground:n,background:r}=e,i;try{let e;t[0]!==r||t[1]!==n?(e=re(n,r),t[0]=r,t[1]=n,t[2]=e):e=t[2],i=e}catch(e){console.log(e),i=0}let a=i,o=a>=7?`AAA`:a>=4.5?`AA`:a>=3?`Large`:`Fail`,s=a>=4.5?`default`:a>=3?`secondary`:`destructive`,c;t[3]!==o||t[4]!==s?(c=(0,P.jsx)(j,{variant:s,className:`h-4 px-1 py-0 text-[10px]`,children:o}),t[3]=o,t[4]=s,t[5]=c):c=t[5];let l;t[6]===a?l=t[7]:(l=a.toFixed(2),t[6]=a,t[7]=l);let u;t[8]===l?u=t[9]:(u=(0,P.jsxs)(`span`,{className:`font-mono text-xs`,children:[l,`:1`]}),t[8]=l,t[9]=u);let d;return t[10]!==c||t[11]!==u?(d=(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[c,u]}),t[10]=c,t[11]=u,t[12]=d):d=t[12],d}function Nt(e){let t=(0,pe.c)(34),{label:n,variable:r,value:i}=e,[,a]=ce();if(!i)return null;let o;t[0]!==a||t[1]!==n||t[2]!==i?(o=async()=>{await a(i),d.success(`Copied ${n} font family to clipboard`)},t[0]=a,t[1]=n,t[2]=i,t[3]=o):o=t[3];let s=o,c;t[4]===n?c=t[5]:(c=(0,P.jsx)(`h3`,{className:`text-lg font-semibold`,children:n}),t[4]=n,t[5]=c);let l;t[6]===i?l=t[7]:(l=(0,P.jsxs)(`span`,{className:`max-w-50 truncate font-mono text-xs text-muted-foreground md:max-w-none`,children:[`(`,i,`)`]}),t[6]=i,t[7]=l);let u;t[8]!==c||t[9]!==l?(u=(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[c,l]}),t[8]=c,t[9]=l,t[10]=u):u=t[10];let f;t[11]===r?f=t[12]:(f=(0,P.jsx)(j,{variant:`outline`,className:`font-mono`,children:r}),t[11]=r,t[12]=f);let p;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,P.jsx)(le,{className:`h-3 w-3`}),t[13]=p):p=t[13];let h;t[14]===s?h=t[15]:(h=(0,P.jsx)(m,{variant:`ghost`,size:`icon`,className:`h-6 w-6`,onClick:s,children:p}),t[14]=s,t[15]=h);let g;t[16]!==f||t[17]!==h?(g=(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[f,h]}),t[16]=f,t[17]=h,t[18]=g):g=t[18];let _;t[19]!==u||t[20]!==g?(_=(0,P.jsxs)(`div`,{className:`flex items-center justify-between`,children:[u,g]}),t[19]=u,t[20]=g,t[21]=_):_=t[21];let v=`${r} space-y-4 rounded-lg border border-border/40 bg-card p-6`,y,b;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,P.jsx)(`p`,{className:`text-4xl leading-tight font-normal`,children:`The quick brown fox jumps over the lazy dog.`}),b=(0,P.jsx)(`p`,{className:`text-2xl leading-tight font-semibold`,children:`The quick brown fox jumps over the lazy dog.`}),t[22]=y,t[23]=b):(y=t[22],b=t[23]);let x;t[24]===n?x=t[25]:(x=n===`Monospace`?(0,P.jsx)(`code`,{className:`block overflow-x-auto text-sm whitespace-pre`,children:`function resolveTheme(name: string) { + const theme = themes.find(t => t.name === name); + return theme ?? defaultTheme; +}`}):`Design is not just what it looks like and feels like. Design is how it works. Typography is the craft of endowing human language with a durable visual form.`,t[24]=n,t[25]=x);let S;t[26]===x?S=t[27]:(S=(0,P.jsx)(`p`,{className:`text-base leading-relaxed font-light`,children:x}),t[26]=x,t[27]=S);let C;t[28]!==v||t[29]!==S?(C=(0,P.jsxs)(`div`,{className:v,children:[y,b,S]}),t[28]=v,t[29]=S,t[30]=C):C=t[30];let w;return t[31]!==C||t[32]!==_?(w=(0,P.jsxs)(`div`,{className:`my-16 space-y-4`,children:[_,C]}),t[31]=C,t[32]=_,t[33]=w):w=t[33],w}function Pt(e){let t=(0,pe.c)(120),{theme:r}=e,{cssVars:l}=ne(r),{appearance:d}=u(),f;t[0]!==d||t[1]!==r.vars_dark||t[2]!==r.vars_light?(f=d===`dark`?r.vars_dark||r.vars_light||{}:r.vars_light||{},t[0]=d,t[1]=r.vars_dark,t[2]=r.vars_light,t[3]=f):f=t[3];let h=f,v;if(t[4]!==h){let e=[{title:`Primary Colors`,keys:[`primary`,`primary-foreground`,`foreground`,`background`]},{title:`Secondary & Accent Colors`,keys:[`secondary`,`secondary-foreground`,`accent`,`accent-foreground`]},{title:`UI Component Colors`,keys:[`card`,`card-foreground`,`popover`,`popover-foreground`,`muted`,`muted-foreground`]},{title:`Utility & Form Colors`,keys:[`border`,`input`,`ring`]},{title:`Status & Feedback Colors`,keys:[`destructive`,`destructive-foreground`]},{title:`Chart & Visualization Colors`,match:Vt},{title:`Sidebar & Navigation Colors`,match:Bt}],n=Object.keys(h).filter(zt),r=new Set,i=e.map(e=>{let t=e.keys?e.keys.filter(e=>n.includes(e)):n.filter(t=>e.match?.(t));return t.forEach(e=>r.add(e)),{title:e.title,keys:t}}),a=n.filter(e=>!r.has(e));if(a.length>0){let e;t[6]===a?e=t[7]:(e={title:`Custom Colors`,keys:a},t[6]=a,t[7]=e),i.push(e)}v=i.filter(Rt),t[4]=h,t[5]=v}else v=t[5];let y=v,x=`Theme: ${r.title}`,S=r.description||`Style guide and documentation for the ${r.title} theme.`,O;t[8]===S?O=t[9]:(O=(0,P.jsx)(`meta`,{name:`description`,content:S}),t[8]=S,t[9]=O);let k;t[10]!==x||t[11]!==O?(k=(0,P.jsx)(g,{title:x,children:O}),t[10]=x,t[11]=O,t[12]=k):k=t[12];let re=r.description||`Style guide and documentation for the ${r.title} theme.`,ie;t[13]!==re||t[14]!==r.title?(ie=(0,P.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,P.jsx)(b,{title:r.title,description:re})}),t[13]=re,t[14]=r.title,t[15]=ie):ie=t[15];let ae;t[16]===r.author?ae=t[17]:(ae=r.author&&(0,P.jsxs)(j,{variant:`outline`,className:`text-sm`,children:[`by `,r.author]}),t[16]=r.author,t[17]=ae);let ce;t[18]===r.tags?ce=t[19]:(ce=r.tags?.map(Lt),t[18]=r.tags,t[19]=ce);let N;t[20]===r.style?N=t[21]:(N=r.style&&(0,P.jsxs)(j,{variant:`secondary`,className:`text-[10px]`,children:[`Style: `,r.style]}),t[20]=r.style,t[21]=N);let le;t[22]!==ce||t[23]!==N||t[24]!==ae?(le=(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[ae,ce,N]}),t[22]=ce,t[23]=N,t[24]=ae,t[25]=le):le=t[25];let de;t[26]!==le||t[27]!==ie?(de=(0,P.jsxs)(`div`,{className:`space-y-2`,children:[ie,le]}),t[26]=le,t[27]=ie,t[28]=de):de=t[28];let fe;t[29]===r.name?fe=t[30]:(fe=ee({query:{fork:r.name}}),t[29]=r.name,t[30]=fe);let F;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,P.jsxs)(m,{variant:`outline`,className:`gap-2`,children:[(0,P.jsx)(ue,{className:`size-4`}),`Fork Theme`]}),t[31]=F):F=t[31];let I;t[32]===fe.url?I=t[33]:(I=(0,P.jsx)(_,{href:fe.url,children:F}),t[32]=fe.url,t[33]=I);let he;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,P.jsx)(m,{variant:`outline`,size:`icon`,children:(0,P.jsx)(n,{className:`size-4`})}),t[34]=he):he=t[34];let L;t[35]===I?L=t[36]:(L=(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[I,he]}),t[35]=I,t[36]=L);let R;t[37]!==de||t[38]!==L?(R=(0,P.jsxs)(`div`,{className:`mb-8 flex flex-col justify-between gap-4 md:flex-row md:items-center`,children:[de,L]}),t[37]=de,t[38]=L,t[39]=R):R=t[39];let ge;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,P.jsx)(`div`,{className:`flex items-center justify-between`,children:(0,P.jsxs)(o,{children:[(0,P.jsx)(i,{value:`preview`,children:`Visual Guide`}),(0,P.jsx)(i,{value:`export`,children:`Code & Export`})]})}),t[40]=ge):ge=t[40];let _e=d===`dark`?`dark`:``,ve;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(ve=(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h2`,{className:`text-2xl font-bold tracking-tight`,children:`Colors`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`The foundational color palette of the theme.`})]}),t[41]=ve):ve=t[41];let z;t[42]!==h||t[43]!==y?(z=y.map(e=>(0,P.jsxs)(`div`,{className:`space-y-4`,children:[(0,P.jsx)(`h3`,{className:`text-sm font-semibold tracking-wider text-muted-foreground uppercase`,children:e.title}),(0,P.jsx)(`div`,{className:`grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-6`,children:e.keys.map(e=>(0,P.jsx)(me,{name:e,value:h[e]},e))})]},e.title)),t[42]=h,t[43]=y,t[44]=z):z=t[44];let ye;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(ye=(0,P.jsx)(`h3`,{className:`mb-4 text-sm font-semibold tracking-wider text-muted-foreground uppercase`,children:`Accessibility: Contrast Ratios`}),t[45]=ye):ye=t[45];let be;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,P.jsx)(`span`,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Text on Background`}),t[46]=be):be=t[46];let xe;t[47]!==h.background||t[48]!==h.foreground?(xe=(0,P.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[be,(0,P.jsx)(Mt,{foreground:h.foreground,background:h.background})]}),t[47]=h.background,t[48]=h.foreground,t[49]=xe):xe=t[49];let Se;t[50]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,P.jsx)(`span`,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Primary on Background`}),t[50]=Se):Se=t[50];let B;t[51]!==h.background||t[52]!==h.primary?(B=(0,P.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[Se,(0,P.jsx)(Mt,{foreground:h.primary,background:h.background})]}),t[51]=h.background,t[52]=h.primary,t[53]=B):B=t[53];let Ce;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(Ce=(0,P.jsx)(`span`,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Primary Foreground on Primary`}),t[54]=Ce):Ce=t[54];let V=h[`primary-foreground`],H;t[55]!==h.primary||t[56]!==V?(H=(0,P.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[Ce,(0,P.jsx)(Mt,{foreground:V,background:h.primary})]}),t[55]=h.primary,t[56]=V,t[57]=H):H=t[57];let U;t[58]!==xe||t[59]!==B||t[60]!==H?(U=(0,P.jsxs)(`div`,{className:`mt-8 rounded-lg border border-border/40 bg-muted/30 p-4`,children:[ye,(0,P.jsxs)(`div`,{className:`grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3`,children:[xe,B,H]})]}),t[58]=xe,t[59]=B,t[60]=H,t[61]=U):U=t[61];let W;t[62]!==z||t[63]!==U?(W=(0,P.jsxs)(`section`,{className:`space-y-12`,children:[ve,z,U]}),t[62]=z,t[63]=U,t[64]=W):W=t[64];let we;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(we=(0,P.jsx)(p,{className:`my-12 bg-border/40`}),t[65]=we):we=t[65];let G;t[66]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h2`,{className:`text-2xl font-bold tracking-tight`,children:`Typography`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`Font families and scale used in this theme.`})]}),t[66]=G):G=t[66];let Te=r.font_family||h[`font-sans`]||`Geist Sans`,K;t[67]===Te?K=t[68]:(K=(0,P.jsx)(Nt,{label:`Sans Serif`,variable:`font-sans`,value:Te}),t[67]=Te,t[68]=K);let Ee=r.font_serif||h[`font-serif`],q;t[69]===Ee?q=t[70]:(q=(0,P.jsx)(Nt,{label:`Serif`,variable:`font-serif`,value:Ee}),t[69]=Ee,t[70]=q);let De=r.font_mono||h[`font-mono`],J;t[71]===De?J=t[72]:(J=(0,P.jsx)(Nt,{label:`Monospace`,variable:`font-mono`,value:De}),t[71]=De,t[72]=J);let Y;t[73]!==K||t[74]!==q||t[75]!==J?(Y=(0,P.jsxs)(`section`,{className:`space-y-6`,children:[G,(0,P.jsxs)(`div`,{className:`space-y-8`,children:[K,q,J]})]}),t[73]=K,t[74]=q,t[75]=J,t[76]=Y):Y=t[76];let X;t[77]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,P.jsx)(p,{className:`my-12 bg-border/40`}),t[77]=X):X=t[77];let Oe;t[78]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h2`,{className:`text-2xl font-bold tracking-tight`,children:`Component Previews`}),(0,P.jsx)(`p`,{className:`text-muted-foreground`,children:`How the theme looks applied to standard interface elements.`})]}),t[78]=Oe):Oe=t[78];let ke;t[79]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,P.jsx)(`h3`,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Interactive`}),t[79]=ke):ke=t[79];let Ae;t[80]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 rounded-lg border border-border/40 bg-card p-6`,children:[(0,P.jsx)(m,{size:`sm`,children:`Primary`}),(0,P.jsx)(m,{size:`sm`,variant:`secondary`,children:`Secondary`}),(0,P.jsx)(m,{size:`sm`,variant:`outline`,children:`Outline`}),(0,P.jsx)(m,{size:`sm`,variant:`ghost`,children:`Ghost`}),(0,P.jsx)(m,{size:`sm`,variant:`destructive`,children:`Destructive`})]}),t[80]=Ae):Ae=t[80];let je;t[81]===Symbol.for(`react.memo_cache_sentinel`)?(je=(0,P.jsxs)(`div`,{className:`space-y-2`,children:[(0,P.jsx)(A,{htmlFor:`email`,className:`text-xs`,children:`Email address`}),(0,P.jsx)(c,{id:`email`,placeholder:`hello@example.com`,className:`h-9`})]}),t[81]=je):je=t[81];let Me;t[82]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,P.jsxs)(`div`,{className:`space-y-6`,children:[ke,Ae,(0,P.jsxs)(`div`,{className:`space-y-4 rounded-lg border border-border/40 bg-card p-6`,children:[je,(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,P.jsx)(j,{children:`New`}),(0,P.jsx)(j,{variant:`secondary`,children:`In Progress`}),(0,P.jsx)(j,{variant:`outline`,children:`Draft`})]})]})]}),t[82]=Me):Me=t[82];let Ne;t[83]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,P.jsx)(`h3`,{className:`text-[10px] font-bold tracking-wider text-muted-foreground uppercase`,children:`Feedback & Containers`}),t[83]=Ne):Ne=t[83];let Pe;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,P.jsxs)(se,{className:`bg-card`,children:[(0,P.jsx)(oe,{className:`text-sm font-semibold`,children:`Heads up!`}),(0,P.jsx)(M,{className:`text-xs text-muted-foreground`,children:`This is a preview of the theme applied to an alert component.`})]}),t[84]=Pe):Pe=t[84];let Fe;t[85]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=(0,P.jsxs)(C,{className:`p-4`,children:[(0,P.jsx)(T,{className:`text-sm font-bold`,children:`Card Component`}),(0,P.jsx)(E,{className:`text-xs`,children:`Visualizing elevation and spacing.`})]}),t[85]=Fe):Fe=t[85];let Ie;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,P.jsxs)(`section`,{className:`space-y-8`,children:[Oe,(0,P.jsxs)(`div`,{className:`grid grid-cols-1 gap-8 md:grid-cols-2`,children:[Me,(0,P.jsxs)(`div`,{className:`space-y-6`,children:[Ne,Pe,(0,P.jsxs)(D,{className:`border-border/40`,children:[Fe,(0,P.jsx)(w,{className:`p-4 pt-0`,children:(0,P.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:`Cards are used to group related information and provide a clear hierarchy.`})})]})]})]})]}),t[86]=Ie):Ie=t[86];let Le;t[87]!==W||t[88]!==Y?(Le=(0,P.jsxs)(`div`,{className:`-mx-6 rounded-xl bg-black/5 p-6 transition-colors duration-300 dark:bg-white/5`,children:[W,we,Y,X,Ie]}),t[87]=W,t[88]=Y,t[89]=Le):Le=t[89];let Re;t[90]!==_e||t[91]!==Le?(Re=(0,P.jsx)(a,{value:`preview`,className:`space-y-12 outline-none`,children:(0,P.jsx)(`div`,{className:_e,children:Le})}),t[90]=_e,t[91]=Le,t[92]=Re):Re=t[92];let ze;t[93]===Symbol.for(`react.memo_cache_sentinel`)?(ze=(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h2`,{className:`text-xl font-bold`,children:`Theme CSS Variables`}),(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Copy these into your main CSS file.`})]}),t[93]=ze):ze=t[93];let Be;t[94]===Symbol.for(`react.memo_cache_sentinel`)?(Be={minimap:{enabled:!0}},t[94]=Be):Be=t[94];let Ve;t[95]===r.vars_light?Ve=t[96]:(Ve=Object.entries(r.vars_light||{}).map(It),t[95]=r.vars_light,t[96]=Ve);let He=Ve.join(` +`),Ue;t[97]===r.vars_dark?Ue=t[98]:(Ue=Object.entries(r.vars_dark||{}).map(Ft),t[97]=r.vars_dark,t[98]=Ue);let We=`:root { +${He} +} + +.dark { +${Ue.join(` +`)} +}`,Ge;t[99]===We?Ge=t[100]:(Ge=(0,P.jsxs)(`section`,{className:`space-y-4`,children:[ze,(0,P.jsx)(`div`,{className:`relative`,children:(0,P.jsx)(Ot,{language:`css`,options:Be,showFullScreenToggle:!0,height:`780px`,value:We})})]}),t[99]=We,t[100]=Ge);let Ke;t[101]===Symbol.for(`react.memo_cache_sentinel`)?(Ke=(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`h2`,{className:`text-xl font-bold`,children:`Theme JSON`}),(0,P.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`The registry representation of the theme.`})]}),t[101]=Ke):Ke=t[101];let qe;t[102]===Symbol.for(`react.memo_cache_sentinel`)?(qe={minimap:{enabled:!0}},t[102]=qe):qe=t[102];let Z;t[103]===r?Z=t[104]:(Z=JSON.stringify(r,null,2),t[103]=r,t[104]=Z);let Je;t[105]===Z?Je=t[106]:(Je=(0,P.jsxs)(`section`,{className:`space-y-4`,children:[Ke,(0,P.jsx)(`div`,{className:`relative`,children:(0,P.jsx)(Ot,{language:`json`,options:qe,showFullScreenToggle:!0,height:`780px`,value:Z})})]}),t[105]=Z,t[106]=Je);let Ye;t[107]!==Ge||t[108]!==Je?(Ye=(0,P.jsxs)(a,{value:`export`,className:`space-y-8 outline-none`,children:[Ge,Je]}),t[107]=Ge,t[108]=Je,t[109]=Ye):Ye=t[109];let Xe;t[110]!==Re||t[111]!==Ye?(Xe=(0,P.jsxs)(s,{defaultValue:`preview`,className:`space-y-8`,children:[ge,Re,Ye]}),t[110]=Re,t[111]=Ye,t[112]=Xe):Xe=t[112];let Ze;t[113]!==R||t[114]!==k||t[115]!==Xe?(Ze=(0,P.jsxs)(te,{className:`py-0`,children:[k,R,Xe]}),t[113]=R,t[114]=k,t[115]=Xe,t[116]=Ze):Ze=t[116];let Qe;return t[117]!==l||t[118]!==Ze?(Qe=(0,P.jsx)(`div`,{style:l,className:`bg-background`,children:Ze}),t[117]=l,t[118]=Ze,t[119]=Qe):Qe=t[119],Qe}function Ft(e){let[t,n]=e;return` --${t}: ${n};`}function It(e){let[t,n]=e;return` --${t}: ${n};`}function Lt(e){return(0,P.jsx)(j,{variant:`secondary`,className:`text-[10px] capitalize`,children:typeof e==`string`?e:e.name},typeof e==`string`?e:e.name)}function Rt(e){return e.keys.length>0}function zt(e){return!e.startsWith(`font-`)&&e!==`radius`&&!e.includes(`shadow`)}function Bt(e){return e.startsWith(`sidebar`)}function Vt(e){return e.startsWith(`chart-`)}Pt.layout=At;export{Pt as default}; \ No newline at end of file diff --git a/public/build/assets/socialite-DAGU8Gzo.js b/public/build/assets/socialite-BBNBBxaD.js similarity index 96% rename from public/build/assets/socialite-DAGU8Gzo.js rename to public/build/assets/socialite-BBNBBxaD.js index 978848c..8eb877a 100644 --- a/public/build/assets/socialite-DAGU8Gzo.js +++ b/public/build/assets/socialite-BBNBBxaD.js @@ -1 +1 @@ -import{G as e,Wt as t,d as n,f as r,qt as i}from"./app-CVlP31Z1.js";var a=e(`Chrome`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`line`,{x1:`21.17`,x2:`12`,y1:`8`,y2:`8`,key:`a0cw5f`}],[`line`,{x1:`3.95`,x2:`8.54`,y1:`6.06`,y2:`14`,key:`1kftof`}],[`line`,{x1:`10.88`,x2:`15.46`,y1:`21.94`,y2:`14`,key:`1ymyh8`}]]),o=i(),s=t();function c(e){let t=(0,o.c)(3),{iconNode:n,className:r}=e;if(!n)return null;let i;return t[0]!==n||t[1]!==r?(i=(0,s.jsx)(n,{className:r}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}var l=(e,t)=>({url:l.url(e,t),method:`get`});l.definition={methods:[`get`,`head`],url:`/auth/{provider}/redirect`},l.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={provider:e}),Array.isArray(e)&&(e={provider:e[0]}),e=n(e);let i={provider:e.provider};return l.definition.url.replace(`{provider}`,i.provider.toString()).replace(/\/+$/,``)+r(t)},l.get=(e,t)=>({url:l.url(e,t),method:`get`}),l.head=(e,t)=>({url:l.url(e,t),method:`head`});var u=(e,t)=>({action:l.url(e,t),method:`get`});u.get=(e,t)=>({action:l.url(e,t),method:`get`}),u.head=(e,t)=>({action:l.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),l.form=u;var d=(e,t)=>({url:d.url(e,t),method:`get`});d.definition={methods:[`get`,`head`],url:`/auth/{provider}/callback`},d.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={provider:e}),Array.isArray(e)&&(e={provider:e[0]}),e=n(e);let i={provider:e.provider};return d.definition.url.replace(`{provider}`,i.provider.toString()).replace(/\/+$/,``)+r(t)},d.get=(e,t)=>({url:d.url(e,t),method:`get`}),d.head=(e,t)=>({url:d.url(e,t),method:`head`});var f=(e,t)=>({action:d.url(e,t),method:`get`});f.get=(e,t)=>({action:d.url(e,t),method:`get`}),f.head=(e,t)=>({action:d.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),d.form=f,Object.assign(l,l),Object.assign(d,d);export{c as n,a as r,l as t}; \ No newline at end of file +import{G as e,Wt as t,d as n,f as r,qt as i}from"./app-D7MKN1zp.js";var a=e(`Chrome`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`line`,{x1:`21.17`,x2:`12`,y1:`8`,y2:`8`,key:`a0cw5f`}],[`line`,{x1:`3.95`,x2:`8.54`,y1:`6.06`,y2:`14`,key:`1kftof`}],[`line`,{x1:`10.88`,x2:`15.46`,y1:`21.94`,y2:`14`,key:`1ymyh8`}]]),o=i(),s=t();function c(e){let t=(0,o.c)(3),{iconNode:n,className:r}=e;if(!n)return null;let i;return t[0]!==n||t[1]!==r?(i=(0,s.jsx)(n,{className:r}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}var l=(e,t)=>({url:l.url(e,t),method:`get`});l.definition={methods:[`get`,`head`],url:`/auth/{provider}/redirect`},l.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={provider:e}),Array.isArray(e)&&(e={provider:e[0]}),e=n(e);let i={provider:e.provider};return l.definition.url.replace(`{provider}`,i.provider.toString()).replace(/\/+$/,``)+r(t)},l.get=(e,t)=>({url:l.url(e,t),method:`get`}),l.head=(e,t)=>({url:l.url(e,t),method:`head`});var u=(e,t)=>({action:l.url(e,t),method:`get`});u.get=(e,t)=>({action:l.url(e,t),method:`get`}),u.head=(e,t)=>({action:l.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),l.form=u;var d=(e,t)=>({url:d.url(e,t),method:`get`});d.definition={methods:[`get`,`head`],url:`/auth/{provider}/callback`},d.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={provider:e}),Array.isArray(e)&&(e={provider:e[0]}),e=n(e);let i={provider:e.provider};return d.definition.url.replace(`{provider}`,i.provider.toString()).replace(/\/+$/,``)+r(t)},d.get=(e,t)=>({url:d.url(e,t),method:`get`}),d.head=(e,t)=>({url:d.url(e,t),method:`head`});var f=(e,t)=>({action:d.url(e,t),method:`get`});f.get=(e,t)=>({action:d.url(e,t),method:`get`}),f.head=(e,t)=>({action:d.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),d.form=f,Object.assign(l,l),Object.assign(d,d);export{c as n,a as r,l as t}; \ No newline at end of file diff --git a/public/build/assets/spinner-CoRrGFqk.js b/public/build/assets/spinner-CCI0ZpZ9.js similarity index 70% rename from public/build/assets/spinner-CoRrGFqk.js rename to public/build/assets/spinner-CCI0ZpZ9.js index 5f05eac..14a8e24 100644 --- a/public/build/assets/spinner-CoRrGFqk.js +++ b/public/build/assets/spinner-CCI0ZpZ9.js @@ -1 +1 @@ -import{t as e}from"./loader-circle-XO7crStb.js";import{Q as t,Wt as n,qt as r}from"./app-CVlP31Z1.js";var i=r(),a=n();function o(n){let r=(0,i.c)(8),o,s;r[0]===n?(o=r[1],s=r[2]):({className:o,...s}=n,r[0]=n,r[1]=o,r[2]=s);let c;r[3]===o?c=r[4]:(c=t(`size-4 animate-spin`,o),r[3]=o,r[4]=c);let l;return r[5]!==s||r[6]!==c?(l=(0,a.jsx)(e,{role:`status`,"aria-label":`Loading`,className:c,...s}),r[5]=s,r[6]=c,r[7]=l):l=r[7],l}export{o as t}; \ No newline at end of file +import{t as e}from"./loader-circle-YfjFJaoY.js";import{Q as t,Wt as n,qt as r}from"./app-D7MKN1zp.js";var i=r(),a=n();function o(n){let r=(0,i.c)(8),o,s;r[0]===n?(o=r[1],s=r[2]):({className:o,...s}=n,r[0]=n,r[1]=o,r[2]=s);let c;r[3]===o?c=r[4]:(c=t(`size-4 animate-spin`,o),r[3]=o,r[4]=c);let l;return r[5]!==s||r[6]!==c?(l=(0,a.jsx)(e,{role:`status`,"aria-label":`Loading`,className:c,...s}),r[5]=s,r[6]=c,r[7]=l):l=r[7],l}export{o as t}; \ No newline at end of file diff --git a/public/build/assets/subscription-BG3RHyD9.js b/public/build/assets/subscription-C-u-O6PN.js similarity index 95% rename from public/build/assets/subscription-BG3RHyD9.js rename to public/build/assets/subscription-C-u-O6PN.js index 5bcbcb7..8cb5688 100644 --- a/public/build/assets/subscription-BG3RHyD9.js +++ b/public/build/assets/subscription-C-u-O6PN.js @@ -1 +1 @@ -import{f as e}from"./app-CVlP31Z1.js";var t=e=>({url:t.url(e),method:`get`});t.definition={methods:[`get`,`head`],url:`/settings/subscription`},t.url=n=>t.definition.url+e(n),t.get=e=>({url:t.url(e),method:`get`}),t.head=e=>({url:t.url(e),method:`head`});var n=e=>({action:t.url(e),method:`get`});n.get=e=>({action:t.url(e),method:`get`}),n.head=e=>({action:t.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),t.form=n;var r=e=>({url:r.url(e),method:`post`});r.definition={methods:[`post`],url:`/settings/subscription/checkout`},r.url=t=>r.definition.url+e(t),r.post=e=>({url:r.url(e),method:`post`});var i=e=>({action:r.url(e),method:`post`});i.post=e=>({action:r.url(e),method:`post`}),r.form=i;var a=e=>({url:a.url(e),method:`post`});a.definition={methods:[`post`],url:`/settings/subscription/cancel`},a.url=t=>a.definition.url+e(t),a.post=e=>({url:a.url(e),method:`post`});var o=e=>({action:a.url(e),method:`post`});o.post=e=>({action:a.url(e),method:`post`}),a.form=o;var s=e=>({url:s.url(e),method:`post`});s.definition={methods:[`post`],url:`/settings/subscription/resume`},s.url=t=>s.definition.url+e(t),s.post=e=>({url:s.url(e),method:`post`});var c=e=>({action:s.url(e),method:`post`});c.post=e=>({action:s.url(e),method:`post`}),s.form=c,Object.assign(t,t),Object.assign(r,r),Object.assign(a,a),Object.assign(s,s);export{s as i,r as n,t as r,a as t}; \ No newline at end of file +import{f as e}from"./app-D7MKN1zp.js";var t=e=>({url:t.url(e),method:`get`});t.definition={methods:[`get`,`head`],url:`/settings/subscription`},t.url=n=>t.definition.url+e(n),t.get=e=>({url:t.url(e),method:`get`}),t.head=e=>({url:t.url(e),method:`head`});var n=e=>({action:t.url(e),method:`get`});n.get=e=>({action:t.url(e),method:`get`}),n.head=e=>({action:t.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),t.form=n;var r=e=>({url:r.url(e),method:`post`});r.definition={methods:[`post`],url:`/settings/subscription/checkout`},r.url=t=>r.definition.url+e(t),r.post=e=>({url:r.url(e),method:`post`});var i=e=>({action:r.url(e),method:`post`});i.post=e=>({action:r.url(e),method:`post`}),r.form=i;var a=e=>({url:a.url(e),method:`post`});a.definition={methods:[`post`],url:`/settings/subscription/cancel`},a.url=t=>a.definition.url+e(t),a.post=e=>({url:a.url(e),method:`post`});var o=e=>({action:a.url(e),method:`post`});o.post=e=>({action:a.url(e),method:`post`}),a.form=o;var s=e=>({url:s.url(e),method:`post`});s.definition={methods:[`post`],url:`/settings/subscription/resume`},s.url=t=>s.definition.url+e(t),s.post=e=>({url:s.url(e),method:`post`});var c=e=>({action:s.url(e),method:`post`});c.post=e=>({action:s.url(e),method:`post`}),s.form=c,Object.assign(t,t),Object.assign(r,r),Object.assign(a,a),Object.assign(s,s);export{s as i,r as n,t as r,a as t}; \ No newline at end of file diff --git a/public/build/assets/subscription-CWLd4fU4.js b/public/build/assets/subscription-DJjwwh89.js similarity index 92% rename from public/build/assets/subscription-CWLd4fU4.js rename to public/build/assets/subscription-DJjwwh89.js index 1bfec12..0846639 100644 --- a/public/build/assets/subscription-CWLd4fU4.js +++ b/public/build/assets/subscription-DJjwwh89.js @@ -1 +1 @@ -import{V as e,Wt as t,Yt as n,Zt as r,in as i,l as a,qt as o,r as s,tn as c}from"./app-CVlP31Z1.js";import{a as l,i as u,n as d,o as f,r as p,t as m}from"./card-BMwhGcsv.js";import{i as h,r as g,t as _}from"./subscription-BG3RHyD9.js";var v=o(),y=t();function b(){let t=(0,v.c)(27),{auth:i}=c().props,{user:o}=i,h=S,g=x,_;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,y.jsx)(n,{title:`Subscription`}),t[0]=_):_=t[0];let b;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,y.jsx)(s,{variant:`small`,title:`Subscription`,description:`Manage your subscription and billing`}),t[1]=b):b=t[1];let C;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,y.jsx)(f,{children:`Current Plan`}),t[2]=C):C=t[2];let w=o.is_subscribed?`You are currently subscribed to the ${o.plan_name} plan.`:`You are currently on the Free plan.`,T;t[3]===w?T=t[4]:(T=(0,y.jsxs)(l,{children:[C,(0,y.jsx)(p,{children:w})]}),t[3]=w,t[4]=T);let E;t[5]!==o.ends_at||t[6]!==o.is_subscribed||t[7]!==o.on_grace_period?(E=o.is_subscribed&&(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:o.on_grace_period?`Your subscription will end on ${new Date(o.ends_at).toLocaleDateString()}.`:`Your subscription is active.`})}),t[5]=o.ends_at,t[6]=o.is_subscribed,t[7]=o.on_grace_period,t[8]=E):E=t[8];let D;t[9]===E?D=t[10]:(D=(0,y.jsx)(d,{children:E}),t[9]=E,t[10]=D);let O;t[11]===o.is_subscribed?O=t[12]:(O=!o.is_subscribed&&(0,y.jsx)(e,{asChild:!0,children:(0,y.jsx)(r,{href:a(),children:`Upgrade Plan`})}),t[11]=o.is_subscribed,t[12]=O);let k;t[13]!==o.is_subscribed||t[14]!==o.on_grace_period?(k=o.is_subscribed&&!o.on_grace_period&&(0,y.jsx)(e,{variant:`destructive`,onClick:h,children:`Cancel Subscription`}),t[13]=o.is_subscribed,t[14]=o.on_grace_period,t[15]=k):k=t[15];let A;t[16]!==o.is_subscribed||t[17]!==o.on_grace_period?(A=o.is_subscribed&&o.on_grace_period&&(0,y.jsx)(e,{onClick:g,children:`Resume Subscription`}),t[16]=o.is_subscribed,t[17]=o.on_grace_period,t[18]=A):A=t[18];let j;t[19]!==O||t[20]!==k||t[21]!==A?(j=(0,y.jsxs)(u,{className:`flex gap-4`,children:[O,k,A]}),t[19]=O,t[20]=k,t[21]=A,t[22]=j):j=t[22];let M;return t[23]!==j||t[24]!==T||t[25]!==D?(M=(0,y.jsxs)(y.Fragment,{children:[_,(0,y.jsxs)(`div`,{className:`space-y-6`,children:[b,(0,y.jsxs)(m,{children:[T,D,j]})]})]}),t[23]=j,t[24]=T,t[25]=D,t[26]=M):M=t[26],M}function x(){i.post(h.url())}function S(){confirm(`Are you sure you want to cancel your subscription?`)&&i.post(_.url())}b.layout={breadcrumbs:[{title:`Subscription`,href:g.url()}]};export{b as default}; \ No newline at end of file +import{V as e,Wt as t,Yt as n,Zt as r,in as i,l as a,qt as o,r as s,tn as c}from"./app-D7MKN1zp.js";import{a as l,i as u,n as d,o as f,r as p,t as m}from"./card-C1ekp7Ou.js";import{i as h,r as g,t as _}from"./subscription-C-u-O6PN.js";var v=o(),y=t();function b(){let t=(0,v.c)(27),{auth:i}=c().props,{user:o}=i,h=S,g=x,_;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,y.jsx)(n,{title:`Subscription`}),t[0]=_):_=t[0];let b;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,y.jsx)(s,{variant:`small`,title:`Subscription`,description:`Manage your subscription and billing`}),t[1]=b):b=t[1];let C;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,y.jsx)(f,{children:`Current Plan`}),t[2]=C):C=t[2];let w=o.is_subscribed?`You are currently subscribed to the ${o.plan_name} plan.`:`You are currently on the Free plan.`,T;t[3]===w?T=t[4]:(T=(0,y.jsxs)(l,{children:[C,(0,y.jsx)(p,{children:w})]}),t[3]=w,t[4]=T);let E;t[5]!==o.ends_at||t[6]!==o.is_subscribed||t[7]!==o.on_grace_period?(E=o.is_subscribed&&(0,y.jsx)(`div`,{className:`space-y-2`,children:(0,y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:o.on_grace_period?`Your subscription will end on ${new Date(o.ends_at).toLocaleDateString()}.`:`Your subscription is active.`})}),t[5]=o.ends_at,t[6]=o.is_subscribed,t[7]=o.on_grace_period,t[8]=E):E=t[8];let D;t[9]===E?D=t[10]:(D=(0,y.jsx)(d,{children:E}),t[9]=E,t[10]=D);let O;t[11]===o.is_subscribed?O=t[12]:(O=!o.is_subscribed&&(0,y.jsx)(e,{asChild:!0,children:(0,y.jsx)(r,{href:a(),children:`Upgrade Plan`})}),t[11]=o.is_subscribed,t[12]=O);let k;t[13]!==o.is_subscribed||t[14]!==o.on_grace_period?(k=o.is_subscribed&&!o.on_grace_period&&(0,y.jsx)(e,{variant:`destructive`,onClick:h,children:`Cancel Subscription`}),t[13]=o.is_subscribed,t[14]=o.on_grace_period,t[15]=k):k=t[15];let A;t[16]!==o.is_subscribed||t[17]!==o.on_grace_period?(A=o.is_subscribed&&o.on_grace_period&&(0,y.jsx)(e,{onClick:g,children:`Resume Subscription`}),t[16]=o.is_subscribed,t[17]=o.on_grace_period,t[18]=A):A=t[18];let j;t[19]!==O||t[20]!==k||t[21]!==A?(j=(0,y.jsxs)(u,{className:`flex gap-4`,children:[O,k,A]}),t[19]=O,t[20]=k,t[21]=A,t[22]=j):j=t[22];let M;return t[23]!==j||t[24]!==T||t[25]!==D?(M=(0,y.jsxs)(y.Fragment,{children:[_,(0,y.jsxs)(`div`,{className:`space-y-6`,children:[b,(0,y.jsxs)(m,{children:[T,D,j]})]})]}),t[23]=j,t[24]=T,t[25]=D,t[26]=M):M=t[26],M}function x(){i.post(h.url())}function S(){confirm(`Are you sure you want to cancel your subscription?`)&&i.post(_.url())}b.layout={breadcrumbs:[{title:`Subscription`,href:g.url()}]};export{b as default}; \ No newline at end of file diff --git a/public/build/assets/sun-CDBr7ehg.js b/public/build/assets/sun-r0X8DC4y.js similarity index 88% rename from public/build/assets/sun-CDBr7ehg.js rename to public/build/assets/sun-r0X8DC4y.js index d1302a5..d145b3d 100644 --- a/public/build/assets/sun-CDBr7ehg.js +++ b/public/build/assets/sun-r0X8DC4y.js @@ -1 +1 @@ -import{G as e}from"./app-CVlP31Z1.js";var t=e(`Moon`,[[`path`,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,key:`a7tn18`}]]),n=e(`Sun`,[[`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`}]]);export{t as n,n as t}; \ No newline at end of file +import{G as e}from"./app-D7MKN1zp.js";var t=e(`Moon`,[[`path`,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,key:`a7tn18`}]]),n=e(`Sun`,[[`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`}]]);export{t as n,n as t}; \ No newline at end of file diff --git a/public/build/assets/tabs-CNNfAj8l.js b/public/build/assets/tabs-CNNfAj8l.js new file mode 100644 index 0000000..25acc7b --- /dev/null +++ b/public/build/assets/tabs-CNNfAj8l.js @@ -0,0 +1 @@ +import{I as e,K as t,Lt as n,Q as r,S as i,Ut as a,Vt as o,Wt as s,b as c,et as l,ln as u,nn as d,qt as f,rn as p,tt as m,x as h}from"./app-D7MKN1zp.js";var g=u(p(),1),_=s();function v(e,t=[]){let n=[];function r(t,r){let i=g.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=g.useMemo(()=>o,Object.values(o));return(0,_.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=g.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>g.createContext(e));return function(n){let r=n?.[e]||t;return g.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,y(i,...t)]}function y(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}d();function b(e){let t=x(e),n=g.forwardRef((e,n)=>{let{children:r,...i}=e,a=g.Children.toArray(r),o=a.find(C);if(o){let e=o.props.children,r=a.map(t=>t===o?g.Children.count(e)>1?g.Children.only(null):g.isValidElement(e)?e.props.children:null:t);return(0,_.jsx)(t,{...i,ref:n,children:g.isValidElement(e)?g.cloneElement(e,void 0,r):null})}return(0,_.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function x(e){let t=g.forwardRef((e,t)=>{let{children:n,...r}=e;if(g.isValidElement(n)){let e=T(n),i=w(r,n.props);return n.type!==g.Fragment&&(i.ref=t?o(t,e):e),g.cloneElement(n,i)}return g.Children.count(n)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var S=Symbol(`radix.slottable`);function C(e){return g.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===S}function w(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function T(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var E=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=b(`Primitive.${t}`),r=g.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,_.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),D=`Tabs`,[O,k]=v(D,[i]),A=i(),[j,M]=O(D),N=g.forwardRef((t,r)=>{let{__scopeTabs:i,value:a,onValueChange:o,defaultValue:s,orientation:c=`horizontal`,dir:u,activationMode:d=`automatic`,...f}=t,p=e(u),[m,h]=l({prop:a,onChange:o,defaultProp:s??``,caller:D});return(0,_.jsx)(j,{scope:i,baseId:n(),value:m,onValueChange:h,orientation:c,dir:p,activationMode:d,children:(0,_.jsx)(E.div,{dir:p,"data-orientation":c,...f,ref:r})})});N.displayName=D;var P=`TabsList`,F=g.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=M(P,n),o=A(n);return(0,_.jsx)(h,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,_.jsx)(E.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});F.displayName=P;var I=`TabsTrigger`,L=g.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,s=M(I,n),l=A(n),u=B(s.baseId,r),d=V(s.baseId,r),f=r===s.value;return(0,_.jsx)(c,{asChild:!0,...l,focusable:!i,active:f,children:(0,_.jsx)(E.button,{type:`button`,role:`tab`,"aria-selected":f,"aria-controls":d,"data-state":f?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:u,...o,ref:t,onMouseDown:a(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?s.onValueChange(r):e.preventDefault()}),onKeyDown:a(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&s.onValueChange(r)}),onFocus:a(e.onFocus,()=>{let e=s.activationMode!==`manual`;!f&&!i&&e&&s.onValueChange(r)})})})});L.displayName=I;var R=`TabsContent`,z=g.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=M(R,n),c=B(s.baseId,r),l=V(s.baseId,r),u=r===s.value,d=g.useRef(u);return g.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,_.jsx)(m,{present:i||u,children:({present:n})=>(0,_.jsx)(E.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})});z.displayName=R;function B(e,t){return`${e}-trigger-${t}`}function V(e,t){return`${e}-content-${t}`}var H=N,U=F,W=L,G=z,K=f();function q(e){let t=(0,K.c)(10),n,i,a;t[0]===e?(n=t[1],i=t[2],a=t[3]):({className:n,orientation:a,...i}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a);let o=a===void 0?`horizontal`:a,s;t[4]===n?s=t[5]:(s=r(`group/tabs flex gap-2 data-[orientation=horizontal]:flex-col`,n),t[4]=n,t[5]=s);let c;return t[6]!==o||t[7]!==i||t[8]!==s?(c=(0,_.jsx)(H,{"data-slot":`tabs`,"data-orientation":o,orientation:o,className:s,...i}),t[6]=o,t[7]=i,t[8]=s,t[9]=c):c=t[9],c}var J=t(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function Y(e){let t=(0,K.c)(11),n,i,a;t[0]===e?(n=t[1],i=t[2],a=t[3]):({className:n,variant:a,...i}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a);let o=a===void 0?`default`:a,s;t[4]!==n||t[5]!==o?(s=r(J({variant:o}),n),t[4]=n,t[5]=o,t[6]=s):s=t[6];let c;return t[7]!==i||t[8]!==s||t[9]!==o?(c=(0,_.jsx)(U,{"data-slot":`tabs-list`,"data-variant":o,className:s,...i}),t[7]=i,t[8]=s,t[9]=o,t[10]=c):c=t[10],c}function X(e){let t=(0,K.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent`,`data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,_.jsx)(W,{"data-slot":`tabs-trigger`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function Z(e){let t=(0,K.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`flex-1 outline-none`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,_.jsx)(G,{"data-slot":`tabs-content`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}export{X as i,Z as n,Y as r,q as t}; \ No newline at end of file diff --git a/public/build/assets/text-link-B7waIO2E.js b/public/build/assets/text-link-BlYfkXNw.js similarity index 88% rename from public/build/assets/text-link-B7waIO2E.js rename to public/build/assets/text-link-BlYfkXNw.js index 1ecfe9f..fd04b20 100644 --- a/public/build/assets/text-link-B7waIO2E.js +++ b/public/build/assets/text-link-BlYfkXNw.js @@ -1 +1 @@ -import{Q as e,Wt as t,Zt as n,qt as r}from"./app-CVlP31Z1.js";var i=r(),a=t();function o(t){let r=(0,i.c)(10),o,s,c;r[0]===t?(o=r[1],s=r[2],c=r[3]):({className:c,children:o,...s}=t,r[0]=t,r[1]=o,r[2]=s,r[3]=c);let l=c===void 0?``:c,u;r[4]===l?u=r[5]:(u=e(`text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,l),r[4]=l,r[5]=u);let d;return r[6]!==o||r[7]!==s||r[8]!==u?(d=(0,a.jsx)(n,{className:u,...s,children:o}),r[6]=o,r[7]=s,r[8]=u,r[9]=d):d=r[9],d}export{o as t}; \ No newline at end of file +import{Q as e,Wt as t,Zt as n,qt as r}from"./app-D7MKN1zp.js";var i=r(),a=t();function o(t){let r=(0,i.c)(10),o,s,c;r[0]===t?(o=r[1],s=r[2],c=r[3]):({className:c,children:o,...s}=t,r[0]=t,r[1]=o,r[2]=s,r[3]=c);let l=c===void 0?``:c,u;r[4]===l?u=r[5]:(u=e(`text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,l),r[4]=l,r[5]=u);let d;return r[6]!==o||r[7]!==s||r[8]!==u?(d=(0,a.jsx)(n,{className:u,...s,children:o}),r[6]=o,r[7]=s,r[8]=u,r[9]=d):d=r[9],d}export{o as t}; \ No newline at end of file diff --git a/public/build/assets/themes-BEIrAo01.js b/public/build/assets/themes-BEIrAo01.js deleted file mode 100644 index 1720a97..0000000 --- a/public/build/assets/themes-BEIrAo01.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,i as t,n,r,t as i}from"./select-DHOWe80x.js";import{i as a,n as o,r as s,t as c,u as l}from"./main-layout-DiaP0ISn.js";import{n as u,t as d}from"./glow-radial-JNwxsbej.js";import{B as f,G as p,H as m,V as h,Wt as g,Xt as _,Zt as v,in as y,ln as b,qt as x,r as S,rn as C}from"./app-CVlP31Z1.js";import{a as w,n as T,o as E,r as D,t as O}from"./card-BMwhGcsv.js";import{i as k,r as A}from"./glow-stack-DaYuOL5d.js";var j=p(`SearchX`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),M=x(),N=g(),P=[{key:`Primary`,bgClass:`bg-primary`,flex:3},{key:`Secondary`,bgClass:`bg-secondary`,flex:2},{key:`Accent`,bgClass:`bg-accent`,flex:2},{key:`Muted`,bgClass:`bg-muted`,flex:1}],F=[{label:`BG`,bgClass:`bg-background`},{label:`Card`,bgClass:`bg-card`},{label:`Border`,bgClass:`bg-border`},{label:`Ring`,bgClass:`bg-ring`}];function I(e){let t=(0,M.c)(22),n,r;t[0]===e?(n=t[1],r=t[2]):({theme:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let{cssVars:i}=A(r),a=n.className??``,o;t[3]===a?o=t[4]:(o=[`group relative isolate rounded-2xl border border-border/40 pt-0`,`bg-card shadow-sm transition-transform`,`hover:-translate-y-1 hover:shadow-xl hover:shadow-primary/10`,a],t[3]=a,t[4]=o);let s=o.join(` `),c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,N.jsx)(`div`,{className:`flex h-full w-full`,children:P.map(z)}),t[5]=c):c=t[5];let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,N.jsxs)(`div`,{className:`relative h-36 w-full overflow-hidden rounded-t-[inherit]`,children:[c,(0,N.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 flex h-8 bg-background/60 backdrop-blur-sm`,children:P.map(R)})]}),t[6]=l):l=t[6];let u;t[7]===r.title?u=t[8]:(u=(0,N.jsx)(E,{className:`text-base font-bold tracking-tight text-foreground`,children:r.title}),t[7]=r.title,t[8]=u);let f;t[9]===r.description?f=t[10]:(f=(0,N.jsx)(D,{className:`mt-0.5 line-clamp-2 text-xs leading-relaxed text-muted-foreground`,children:r.description}),t[9]=r.description,t[10]=f);let p;t[11]!==u||t[12]!==f?(p=(0,N.jsxs)(w,{className:`px-5 pt-4 pb-2`,children:[u,f]}),t[11]=u,t[12]=f,t[13]=p):p=t[13];let m,h;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,N.jsx)(T,{className:`px-5 pt-1 pb-5`,children:(0,N.jsx)(`div`,{className:`flex gap-2`,children:F.map(L)})}),m=(0,N.jsx)(`div`,{className:`pointer-events-none absolute inset-0 rounded-2xl opacity-0 ring-1 ring-primary/30 transition-opacity duration-500 ring-inset group-hover:opacity-100`}),t[14]=m,t[15]=h):(m=t[14],h=t[15]);let g;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,N.jsx)(d,{borderWidth:3,size:150,colors:[`var(--primary)`,`var(--secondary)`],className:`absolute -inset-0.5 z-10`}),t[16]=g):g=t[16];let _;return t[17]!==i||t[18]!==n||t[19]!==s||t[20]!==p?(_=(0,N.jsxs)(O,{style:i,...n,className:s,children:[l,p,h,m,g]}),t[17]=i,t[18]=n,t[19]=s,t[20]=p,t[21]=_):_=t[21],_}function L(e){let{label:t,bgClass:n}=e;return(0,N.jsxs)(`div`,{className:`flex flex-1 flex-col items-center gap-1.5`,children:[(0,N.jsx)(`div`,{className:`${n} h-1.5 w-full rounded-full border border-border/60`}),(0,N.jsx)(`span`,{className:`text-[9px] font-medium tracking-wider text-muted-foreground/60 uppercase`,children:t})]},t)}function R(e){let{key:t,flex:n}=e;return(0,N.jsx)(`div`,{style:{flex:n},className:`flex items-center justify-center`,children:(0,N.jsx)(`span`,{className:`text-[10px] font-semibold tracking-widest text-foreground/50 uppercase`,children:t})},t)}function z(e){let{key:t,bgClass:n,flex:r}=e;return(0,N.jsx)(`div`,{style:{flex:r},className:`${n} h-full transition-all duration-500 group-hover:opacity-90`},t)}I.displayName=`MainThemeCard`;var B=b(C(),1),V=`__all__`;function H(a){let s=(0,M.c)(25),{filters:c,availableTags:u}=a,[d,p]=(0,B.useState)(c?.search??``),[h,g]=(0,B.useState)(c?.tag??``),_=o(d,300),v=(0,B.useRef)(!1),b,x;s[0]!==_||s[1]!==h?(b=()=>{if(!v.current){v.current=!0;return}let e={};_&&(e.search=_),h&&(e.tag=h),y.get(`/themes`,e,{preserveState:!0,preserveScroll:!0})},x=[_,h],s[0]=_,s[1]=h,s[2]=b,s[3]=x):(b=s[2],x=s[3]),(0,B.useEffect)(b,x);let S;s[4]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,N.jsx)(l,{className:`absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),s[4]=S):S=s[4];let C;s[5]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>p(e.target.value),s[5]=C):C=s[5];let w,T;s[6]===d?(w=s[7],T=s[8]):(w=(0,N.jsx)(f,{value:d,onChange:C,placeholder:`Search themes...`,className:`pr-8 pl-9`}),T=d&&(0,N.jsx)(`button`,{onClick:()=>p(``),className:`absolute top-1/2 right-3 -translate-y-1/2 text-muted-foreground hover:text-foreground`,children:(0,N.jsx)(m,{className:`size-4`})}),s[6]=d,s[7]=w,s[8]=T);let E;s[9]!==w||s[10]!==T?(E=(0,N.jsxs)(`div`,{className:`relative flex-1`,children:[S,w,T]}),s[9]=w,s[10]=T,s[11]=E):E=s[11];let D=h||V,O;s[12]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>g(e===V?``:e),s[12]=O):O=s[12];let k;s[13]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,N.jsx)(t,{className:`w-45`,children:(0,N.jsx)(e,{placeholder:`All tags`})}),s[13]=k):k=s[13];let A;s[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,N.jsx)(r,{value:V,children:`All tags`}),s[14]=A):A=s[14];let j;s[15]===u?j=s[16]:(j=u.map(U),s[15]=u,s[16]=j);let P;s[17]===j?P=s[18]:(P=(0,N.jsxs)(n,{children:[A,j]}),s[17]=j,s[18]=P);let F;s[19]!==P||s[20]!==D?(F=(0,N.jsxs)(i,{value:D,onValueChange:O,children:[k,P]}),s[19]=P,s[20]=D,s[21]=F):F=s[21];let I;return s[22]!==F||s[23]!==E?(I=(0,N.jsxs)(`div`,{className:`mb-4 flex items-center gap-4`,children:[E,F]}),s[22]=F,s[23]=E,s[24]=I):I=s[24],I}function U(e){return(0,N.jsx)(r,{value:e,children:e},e)}function W(e){let t=(0,M.c)(22),{themes:n,filters:r,availableTags:i,totalThemesCount:a}=e,o=`Choose from ${a} themes to customize your site's look and feel. Preview, install, and manage them all in one place.`,c;t[0]===o?c=t[1]:(c=(0,N.jsx)(S,{title:`Themes`,description:o}),t[0]=o,t[1]=c);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=s(),t[2]=l):l=t[2];let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,N.jsx)(`div`,{className:`shrink-0`,children:(0,N.jsx)(v,{href:l.url,children:(0,N.jsxs)(h,{variant:`outline`,className:`transition-colors duration-300`,children:[(0,N.jsx)(u,{className:`h-4`}),(0,N.jsx)(`span`,{className:`sr-only md:not-sr-only`,children:`Create new theme`})]})})}),t[3]=d):d=t[3];let f;t[4]===c?f=t[5]:(f=(0,N.jsxs)(`div`,{className:`flex items-start justify-between md:items-center`,children:[c,d]}),t[4]=c,t[5]=f);let p;t[6]!==i||t[7]!==r?(p=(0,N.jsx)(H,{filters:r,availableTags:i}),t[6]=i,t[7]=r,t[8]=p):p=t[8];let m;t[9]===n.data?m=t[10]:(m=n.data.map(G),t[9]=n.data,t[10]=m);let g;t[11]===m?g=t[12]:(g=(0,N.jsx)(_,{data:`themes`,children:(0,N.jsx)(`div`,{className:`mb-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4`,children:m})}),t[11]=m,t[12]=g);let y;t[13]!==r?.search||t[14]!==r?.tag||t[15]!==n.data.length?(y=n.data.length===0&&(r?.search||r?.tag)&&(0,N.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-16 text-center`,children:[(0,N.jsx)(j,{className:`mb-4 size-12 text-muted-foreground`}),(0,N.jsx)(`h3`,{className:`text-lg font-semibold`,children:`Theme not found`}),(0,N.jsx)(`p`,{className:`text-muted-foreground`,children:`No themes match your search. Try adjusting your filters.`})]}),t[13]=r?.search,t[14]=r?.tag,t[15]=n.data.length,t[16]=y):y=t[16];let b;return t[17]!==f||t[18]!==p||t[19]!==g||t[20]!==y?(b=(0,N.jsxs)(k,{className:`pt-4`,children:[f,p,g,y]}),t[17]=f,t[18]=p,t[19]=g,t[20]=y,t[21]=b):b=t[21],b}function G(e,t){return(0,N.jsx)(v,{href:a(e.name),children:(0,N.jsx)(I,{theme:e})},t)}W.layout=c,W.displayName=`ThemesIndex`;export{W as default}; \ No newline at end of file diff --git a/public/build/assets/themes-dmvzolUC.js b/public/build/assets/themes-dmvzolUC.js new file mode 100644 index 0000000..820b133 --- /dev/null +++ b/public/build/assets/themes-dmvzolUC.js @@ -0,0 +1 @@ +import{a as e,i as t,n,r,t as i}from"./select-DsMxFFiu.js";import{n as a,s as o,t as s}from"./main-layout-qej9zSi0.js";import{t as c}from"./plus-D1KRmSaN.js";import{B as l,G as u,H as d,V as f,Wt as p,Xt as m,Zt as h,in as g,ln as _,qt as v,r as y,rn as b}from"./app-D7MKN1zp.js";import{i as x,l as S,s as C}from"./glow-stack-BaNii-nE.js";import{t as w}from"./main-theme-card-B0GTBBPN.js";var T=u(`SearchX`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),E=v(),D=_(b(),1),O=p(),k=`__all__`;function A(s){let c=(0,E.c)(25),{filters:u,availableTags:f}=s,[p,m]=(0,D.useState)(u?.search??``),[h,_]=(0,D.useState)(u?.tag??``),v=a(p,300),y=(0,D.useRef)(!1),b,x;c[0]!==v||c[1]!==h?(b=()=>{if(!y.current){y.current=!0;return}let e={};v&&(e.search=v),h&&(e.tag=h),g.get(`/themes`,e,{preserveState:!0,preserveScroll:!0})},x=[v,h],c[0]=v,c[1]=h,c[2]=b,c[3]=x):(b=c[2],x=c[3]),(0,D.useEffect)(b,x);let S;c[4]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,O.jsx)(o,{className:`absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),c[4]=S):S=c[4];let C;c[5]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>m(e.target.value),c[5]=C):C=c[5];let w,T;c[6]===p?(w=c[7],T=c[8]):(w=(0,O.jsx)(l,{value:p,onChange:C,placeholder:`Search themes...`,className:`pr-8 pl-9`}),T=p&&(0,O.jsx)(`button`,{onClick:()=>m(``),className:`absolute top-1/2 right-3 -translate-y-1/2 text-muted-foreground hover:text-foreground`,children:(0,O.jsx)(d,{className:`size-4`})}),c[6]=p,c[7]=w,c[8]=T);let A;c[9]!==w||c[10]!==T?(A=(0,O.jsxs)(`div`,{className:`relative flex-1`,children:[S,w,T]}),c[9]=w,c[10]=T,c[11]=A):A=c[11];let M=h||k,N;c[12]===Symbol.for(`react.memo_cache_sentinel`)?(N=e=>_(e===k?``:e),c[12]=N):N=c[12];let P;c[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,O.jsx)(t,{className:`w-45`,children:(0,O.jsx)(e,{placeholder:`All tags`})}),c[13]=P):P=c[13];let F;c[14]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,O.jsx)(r,{value:k,children:`All tags`}),c[14]=F):F=c[14];let I;c[15]===f?I=c[16]:(I=f.map(j),c[15]=f,c[16]=I);let L;c[17]===I?L=c[18]:(L=(0,O.jsxs)(n,{children:[F,I]}),c[17]=I,c[18]=L);let R;c[19]!==L||c[20]!==M?(R=(0,O.jsxs)(i,{value:M,onValueChange:N,children:[P,L]}),c[19]=L,c[20]=M,c[21]=R):R=c[21];let z;return c[22]!==R||c[23]!==A?(z=(0,O.jsxs)(`div`,{className:`mb-4 flex items-center gap-4`,children:[A,R]}),c[22]=R,c[23]=A,c[24]=z):z=c[24],z}function j(e){return(0,O.jsx)(r,{value:e,children:e},e)}function M(e){let t=(0,E.c)(22),{themes:n,filters:r,availableTags:i,totalThemesCount:a}=e,o=`Choose from ${a} themes to customize your site's look and feel. Preview, install, and manage them all in one place.`,s;t[0]===o?s=t[1]:(s=(0,O.jsx)(y,{title:`Themes`,description:o}),t[0]=o,t[1]=s);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=x(),t[2]=l):l=t[2];let u;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,O.jsx)(`div`,{className:`shrink-0`,children:(0,O.jsx)(h,{href:l.url,children:(0,O.jsxs)(f,{variant:`outline`,className:`transition-colors duration-300`,children:[(0,O.jsx)(c,{className:`h-4`}),(0,O.jsx)(`span`,{className:`sr-only md:not-sr-only`,children:`Create new theme`})]})})}),t[3]=u):u=t[3];let d;t[4]===s?d=t[5]:(d=(0,O.jsxs)(`div`,{className:`flex items-start justify-between md:items-center`,children:[s,u]}),t[4]=s,t[5]=d);let p;t[6]!==i||t[7]!==r?(p=(0,O.jsx)(A,{filters:r,availableTags:i}),t[6]=i,t[7]=r,t[8]=p):p=t[8];let g;t[9]===n.data?g=t[10]:(g=n.data.map(N),t[9]=n.data,t[10]=g);let _;t[11]===g?_=t[12]:(_=(0,O.jsx)(m,{data:`themes`,children:(0,O.jsx)(`div`,{className:`mb-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4`,children:g})}),t[11]=g,t[12]=_);let v;t[13]!==r?.search||t[14]!==r?.tag||t[15]!==n.data.length?(v=n.data.length===0&&(r?.search||r?.tag)&&(0,O.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-16 text-center`,children:[(0,O.jsx)(T,{className:`mb-4 size-12 text-muted-foreground`}),(0,O.jsx)(`h3`,{className:`text-lg font-semibold`,children:`Theme not found`}),(0,O.jsx)(`p`,{className:`text-muted-foreground`,children:`No themes match your search. Try adjusting your filters.`})]}),t[13]=r?.search,t[14]=r?.tag,t[15]=n.data.length,t[16]=v):v=t[16];let b;return t[17]!==d||t[18]!==p||t[19]!==_||t[20]!==v?(b=(0,O.jsxs)(S,{className:`pt-4`,children:[d,p,_,v]}),t[17]=d,t[18]=p,t[19]=_,t[20]=v,t[21]=b):b=t[21],b}function N(e,t){return(0,O.jsx)(h,{href:C(e.name),children:(0,O.jsx)(w,{theme:e})},t)}M.layout=s,M.displayName=`ThemesIndex`;export{M as default}; \ No newline at end of file diff --git a/public/build/assets/two-factor-challenge-CIH9e-kP.js b/public/build/assets/two-factor-challenge-Miwtb12I.js similarity index 92% rename from public/build/assets/two-factor-challenge-CIH9e-kP.js rename to public/build/assets/two-factor-challenge-Miwtb12I.js index 07e9db7..b6153a0 100644 --- a/public/build/assets/two-factor-challenge-CIH9e-kP.js +++ b/public/build/assets/two-factor-challenge-Miwtb12I.js @@ -1 +1 @@ -import{c as e,l as t,o as n,s as r,u as i}from"./use-two-factor-auth-B2IHMCS_.js";import{B as a,Jt as o,Qt as s,V as c,Wt as l,Yt as u,ln as d,qt as f,rn as p}from"./app-CVlP31Z1.js";import{t as m}from"./input-error-BdHD9-x4.js";var h=f(),g=d(p(),1),_=l();function v(){let t=(0,h.c)(14),[l,d]=(0,g.useState)(!1),[f,p]=(0,g.useState)(``),v;bb0:{if(l){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Recovery code`,description:`Please confirm access to your account by entering one of your emergency recovery codes.`,toggleText:`login using an authentication code`},t[0]=e):e=t[0],v=e;break bb0}let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Authentication code`,description:`Enter the authentication code provided by your authenticator application.`,toggleText:`login using a recovery code`},t[1]=e):e=t[1],v=e}let b=v;s({title:b.title,description:b.description});let x;t[2]===l?x=t[3]:(x=e=>{d(!l),e(),p(``)},t[2]=l,t[3]=x);let S=x,C;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,_.jsx)(u,{title:`Two-factor authentication`}),t[4]=C):C=t[4];let w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(w=n.form(),t[5]=w):w=t[5];let T=!l,E;t[6]!==b.toggleText||t[7]!==f||t[8]!==l||t[9]!==S?(E=t=>{let{errors:n,processing:o,clearErrors:s}=t;return(0,_.jsxs)(_.Fragment,{children:[l?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a,{name:`recovery_code`,type:`text`,placeholder:`Enter recovery code`,autoFocus:l,required:!0}),(0,_.jsx)(m,{message:n.recovery_code})]}):(0,_.jsxs)(`div`,{className:`flex flex-col items-center justify-center space-y-3 text-center`,children:[(0,_.jsx)(`div`,{className:`flex w-full items-center justify-center`,children:(0,_.jsx)(r,{name:`code`,maxLength:6,value:f,onChange:e=>p(e),disabled:o,pattern:i,autoFocus:!0,children:(0,_.jsx)(e,{children:Array.from({length:6},y)})})}),(0,_.jsx)(m,{message:n.code})]}),(0,_.jsx)(c,{type:`submit`,className:`w-full`,disabled:o,children:`Continue`}),(0,_.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[(0,_.jsx)(`span`,{children:`or you can `}),(0,_.jsx)(`button`,{type:`button`,className:`cursor-pointer text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,onClick:()=>S(s),children:b.toggleText})]})]})},t[6]=b.toggleText,t[7]=f,t[8]=l,t[9]=S,t[10]=E):E=t[10];let D;return t[11]!==T||t[12]!==E?(D=(0,_.jsxs)(_.Fragment,{children:[C,(0,_.jsx)(`div`,{className:`space-y-6`,children:(0,_.jsx)(o,{...w,className:`space-y-4`,resetOnError:!0,resetOnSuccess:T,children:E})})]}),t[11]=T,t[12]=E,t[13]=D):D=t[13],D}function y(e,n){return(0,_.jsx)(t,{index:n},n)}export{v as default}; \ No newline at end of file +import{c as e,l as t,o as n,s as r,u as i}from"./use-two-factor-auth-Bdh-sKJ3.js";import{B as a,Jt as o,Qt as s,V as c,Wt as l,Yt as u,ln as d,qt as f,rn as p}from"./app-D7MKN1zp.js";import{t as m}from"./input-error-CzZYqI_U.js";var h=f(),g=d(p(),1),_=l();function v(){let t=(0,h.c)(14),[l,d]=(0,g.useState)(!1),[f,p]=(0,g.useState)(``),v;bb0:{if(l){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Recovery code`,description:`Please confirm access to your account by entering one of your emergency recovery codes.`,toggleText:`login using an authentication code`},t[0]=e):e=t[0],v=e;break bb0}let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e={title:`Authentication code`,description:`Enter the authentication code provided by your authenticator application.`,toggleText:`login using a recovery code`},t[1]=e):e=t[1],v=e}let b=v;s({title:b.title,description:b.description});let x;t[2]===l?x=t[3]:(x=e=>{d(!l),e(),p(``)},t[2]=l,t[3]=x);let S=x,C;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,_.jsx)(u,{title:`Two-factor authentication`}),t[4]=C):C=t[4];let w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(w=n.form(),t[5]=w):w=t[5];let T=!l,E;t[6]!==b.toggleText||t[7]!==f||t[8]!==l||t[9]!==S?(E=t=>{let{errors:n,processing:o,clearErrors:s}=t;return(0,_.jsxs)(_.Fragment,{children:[l?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a,{name:`recovery_code`,type:`text`,placeholder:`Enter recovery code`,autoFocus:l,required:!0}),(0,_.jsx)(m,{message:n.recovery_code})]}):(0,_.jsxs)(`div`,{className:`flex flex-col items-center justify-center space-y-3 text-center`,children:[(0,_.jsx)(`div`,{className:`flex w-full items-center justify-center`,children:(0,_.jsx)(r,{name:`code`,maxLength:6,value:f,onChange:e=>p(e),disabled:o,pattern:i,autoFocus:!0,children:(0,_.jsx)(e,{children:Array.from({length:6},y)})})}),(0,_.jsx)(m,{message:n.code})]}),(0,_.jsx)(c,{type:`submit`,className:`w-full`,disabled:o,children:`Continue`}),(0,_.jsxs)(`div`,{className:`text-center text-sm text-muted-foreground`,children:[(0,_.jsx)(`span`,{children:`or you can `}),(0,_.jsx)(`button`,{type:`button`,className:`cursor-pointer text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500`,onClick:()=>S(s),children:b.toggleText})]})]})},t[6]=b.toggleText,t[7]=f,t[8]=l,t[9]=S,t[10]=E):E=t[10];let D;return t[11]!==T||t[12]!==E?(D=(0,_.jsxs)(_.Fragment,{children:[C,(0,_.jsx)(`div`,{className:`space-y-6`,children:(0,_.jsx)(o,{...w,className:`space-y-4`,resetOnError:!0,resetOnSuccess:T,children:E})})]}),t[11]=T,t[12]=E,t[13]=D):D=t[13],D}function y(e,n){return(0,_.jsx)(t,{index:n},n)}export{v as default}; \ No newline at end of file diff --git a/public/build/assets/use-clipboard-C4ojyAai.js b/public/build/assets/use-clipboard-BvQkhUu9.js similarity index 96% rename from public/build/assets/use-clipboard-C4ojyAai.js rename to public/build/assets/use-clipboard-BvQkhUu9.js index c368e33..c8a7c57 100644 --- a/public/build/assets/use-clipboard-C4ojyAai.js +++ b/public/build/assets/use-clipboard-BvQkhUu9.js @@ -1 +1 @@ -import{K as e,Q as t,Wt as n,ln as r,qt as i,rn as a}from"./app-CVlP31Z1.js";var o=i(),s=r(a(),1),c=n(),l=e(`relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-background text-foreground`,destructive:`text-destructive-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-destructive-foreground/80`}},defaultVariants:{variant:`default`}});function u(e){let n=(0,o.c)(10),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:r,variant:a,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let s;n[4]!==r||n[5]!==a?(s=t(l({variant:a}),r),n[4]=r,n[5]=a,n[6]=s):s=n[6];let u;return n[7]!==i||n[8]!==s?(u=(0,c.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:s,...i}),n[7]=i,n[8]=s,n[9]=u):u=n[9],u}function d(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,r),n[3]=r,n[4]=a);let s;return n[5]!==i||n[6]!==a?(s=(0,c.jsx)(`div`,{"data-slot":`alert-title`,className:a,...i}),n[5]=i,n[6]=a,n[7]=s):s=n[7],s}function f(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed`,r),n[3]=r,n[4]=a);let s;return n[5]!==i||n[6]!==a?(s=(0,c.jsx)(`div`,{"data-slot":`alert-description`,className:a,...i}),n[5]=i,n[6]=a,n[7]=s):s=n[7],s}function p(){let e=(0,o.c)(3),[t,n]=(0,s.useState)(null),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=async e=>{if(!navigator?.clipboard)return console.warn(`Clipboard not supported`),!1;try{return await navigator.clipboard.writeText(e),n(e),!0}catch(e){return console.warn(`Copy failed`,e),n(null),!1}},e[0]=r):r=e[0];let i=r,a;return e[1]===t?a=e[2]:(a=[t,i],e[1]=t,e[2]=a),a}export{d as i,u as n,f as r,p as t}; \ No newline at end of file +import{K as e,Q as t,Wt as n,ln as r,qt as i,rn as a}from"./app-D7MKN1zp.js";var o=i(),s=r(a(),1),c=n(),l=e(`relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-background text-foreground`,destructive:`text-destructive-foreground [&>svg]:text-current *:data-[slot=alert-description]:text-destructive-foreground/80`}},defaultVariants:{variant:`default`}});function u(e){let n=(0,o.c)(10),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:r,variant:a,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let s;n[4]!==r||n[5]!==a?(s=t(l({variant:a}),r),n[4]=r,n[5]=a,n[6]=s):s=n[6];let u;return n[7]!==i||n[8]!==s?(u=(0,c.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:s,...i}),n[7]=i,n[8]=s,n[9]=u):u=n[9],u}function d(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,r),n[3]=r,n[4]=a);let s;return n[5]!==i||n[6]!==a?(s=(0,c.jsx)(`div`,{"data-slot":`alert-title`,className:a,...i}),n[5]=i,n[6]=a,n[7]=s):s=n[7],s}function f(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed`,r),n[3]=r,n[4]=a);let s;return n[5]!==i||n[6]!==a?(s=(0,c.jsx)(`div`,{"data-slot":`alert-description`,className:a,...i}),n[5]=i,n[6]=a,n[7]=s):s=n[7],s}function p(){let e=(0,o.c)(3),[t,n]=(0,s.useState)(null),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=async e=>{if(!navigator?.clipboard)return console.warn(`Clipboard not supported`),!1;try{return await navigator.clipboard.writeText(e),n(e),!0}catch(e){return console.warn(`Copy failed`,e),n(null),!1}},e[0]=r):r=e[0];let i=r,a;return e[1]===t?a=e[2]:(a=[t,i],e[1]=t,e[2]=a),a}export{d as i,u as n,f as r,p as t}; \ No newline at end of file diff --git a/public/build/assets/use-two-factor-auth-B2IHMCS_.js b/public/build/assets/use-two-factor-auth-Bdh-sKJ3.js similarity index 99% rename from public/build/assets/use-two-factor-auth-B2IHMCS_.js rename to public/build/assets/use-two-factor-auth-Bdh-sKJ3.js index ae2bd68..4b12f68 100644 --- a/public/build/assets/use-two-factor-auth-B2IHMCS_.js +++ b/public/build/assets/use-two-factor-auth-Bdh-sKJ3.js @@ -1,4 +1,4 @@ -import{G as e,Q as t,Wt as n,en as r,f as i,ln as a,qt as o,rn as s}from"./app-CVlP31Z1.js";var c=e(`Minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),l=o(),u=a(s(),1),d=Object.defineProperty,f=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,_=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||={})h.call(t,n)&&_(e,n,t[n]);if(m)for(var n of m(t))g.call(t,n)&&_(e,n,t[n]);return e},ee=(e,t)=>f(e,p(t)),y=(e,t)=>{var n={};for(var r in e)h.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&m)for(var r of m(e))t.indexOf(r)<0&&g.call(e,r)&&(n[r]=e[r]);return n};function b(e){return[setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)]}function x(e){let t=u.useRef();return u.useEffect(()=>{t.current=e}),t.current}var S=18,C=40,w=`${C}px`,T=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function E({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,a]=u.useState(!1),[o,s]=u.useState(!1),[c,l]=u.useState(!1),d=u.useMemo(()=>n===`none`?!1:(n===`increase-width`||n===`experimental-no-flickering`)&&i&&o,[i,o,n]),f=u.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||c||n===`none`)return;let o=r,s=o.getBoundingClientRect().left+o.offsetWidth,u=o.getBoundingClientRect().top+o.offsetHeight/2,d=s-S,f=u;document.querySelectorAll(T).length===0&&document.elementFromPoint(d,f)===r||(a(!0),l(!0))},[e,t,c,n]);return u.useEffect(()=>{let t=e.current;if(!t||n===`none`)return;function r(){s(window.innerWidth-t.getBoundingClientRect().right>=C)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),u.useEffect(()=>{let e=r||document.activeElement===t.current;if(n===`none`||!e)return;let i=setTimeout(f,0),a=setTimeout(f,2e3),o=setTimeout(f,5e3),s=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(a),clearTimeout(o),clearTimeout(s)}},[t,r,n,f]),{hasPWMBadge:i,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:w}}var D=u.createContext({}),O=u.forwardRef((e,t)=>{var n=e,{value:r,onChange:i,maxLength:a,textAlign:o=`left`,pattern:s,placeholder:c,inputMode:l=`numeric`,onComplete:d,pushPasswordManagerStrategy:f=`increase-width`,pasteTransformer:p,containerClassName:m,noScriptCSSFallback:h=te,render:g,children:_}=n,S=y(n,[`value`,`onChange`,`maxLength`,`textAlign`,`pattern`,`placeholder`,`inputMode`,`onComplete`,`pushPasswordManagerStrategy`,`pasteTransformer`,`containerClassName`,`noScriptCSSFallback`,`render`,`children`]),C;let[w,T]=u.useState(typeof S.defaultValue==`string`?S.defaultValue:``),O=r??w,A=x(O),j=u.useCallback(e=>{i?.(e),T(e)},[i]),M=u.useMemo(()=>s?typeof s==`string`?new RegExp(s):s:null,[s]),N=u.useRef(null),P=u.useRef(null),F=u.useRef({value:O,onChange:j,isIOS:typeof window<`u`&&((C=window==null?void 0:window.CSS)?.supports)?.call(C,`-webkit-touch-callout`,`none`)}),I=u.useRef({prev:[N.current?.selectionStart,N.current?.selectionEnd,N.current?.selectionDirection]});u.useImperativeHandle(t,()=>N.current,[]),u.useEffect(()=>{let e=N.current,t=P.current;if(!e||!t)return;F.current.value!==e.value&&F.current.onChange(e.value),I.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function n(){if(document.activeElement!==e){H(null),W(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,a=e.value,o=I.current.prev,s=-1,c=-1,l;if(a.length!==0&&t!==null&&n!==null){let e=t===n,r=t===a.length&&a.length1&&a.length>1){let t=0;if(o[0]!==null&&o[1]!==null){l=e{t&&t.style.setProperty(`--root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{document.removeEventListener(`selectionchange`,n,{capture:!0}),i.disconnect()}},[]);let[L,R]=u.useState(!1),[z,B]=u.useState(!1),[V,H]=u.useState(null),[U,W]=u.useState(null);u.useEffect(()=>{b(()=>{var e;(e=N.current)==null||e.dispatchEvent(new Event(`input`));let t=N.current?.selectionStart,n=N.current?.selectionEnd,r=N.current?.selectionDirection;t!==null&&n!==null&&(H(t),W(n),I.current.prev=[t,n,r])})},[O,z]),u.useEffect(()=>{A!==void 0&&O!==A&&A.length{let t=e.currentTarget.value.slice(0,a);if(t.length>0&&M&&!M.test(t)){e.preventDefault();return}typeof A==`string`&&t.length{var e;if(N.current){let t=Math.min(N.current.value.length,a-1),n=N.current.value.length;(e=N.current)==null||e.setSelectionRange(t,n),H(t),W(n)}B(!0)},[a]),J=u.useCallback(e=>{let t=N.current;if(!p&&(!F.current.isIOS||!e.clipboardData||!t))return;let n=e.clipboardData.getData(`text/plain`),r=p?p(n):n;e.preventDefault();let i=N.current?.selectionStart,o=N.current?.selectionEnd,s=(i===o?O.slice(0,i)+r+O.slice(i):O.slice(0,i)+r+O.slice(o)).slice(0,a);if(s.length>0&&M&&!M.test(s))return;t.value=s,j(s);let c=Math.min(s.length,a-1),l=s.length;t.setSelectionRange(c,l),H(c),W(l)},[a,j,M,O]),Y=u.useMemo(()=>({position:`relative`,cursor:S.disabled?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}),[S.disabled]),X=u.useMemo(()=>({position:`absolute`,inset:0,width:G.willPushPWMBadge?`calc(100% + ${G.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:G.willPushPWMBadge?`inset(0 ${G.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:o,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}),[G.PWM_BADGE_SPACE_WIDTH,G.willPushPWMBadge,o]),Z=u.useMemo(()=>u.createElement(`input`,ee(v({autoComplete:S.autoComplete||`one-time-code`},S),{"data-input-otp":!0,"data-input-otp-placeholder-shown":O.length===0||void 0,"data-input-otp-mss":V,"data-input-otp-mse":U,inputMode:l,pattern:M?.source,"aria-placeholder":c,style:X,maxLength:a,value:O,ref:N,onPaste:e=>{var t;J(e),(t=S.onPaste)==null||t.call(S,e)},onChange:K,onMouseOver:e=>{var t;R(!0),(t=S.onMouseOver)==null||t.call(S,e)},onMouseLeave:e=>{var t;R(!1),(t=S.onMouseLeave)==null||t.call(S,e)},onFocus:e=>{var t;q(),(t=S.onFocus)==null||t.call(S,e)},onBlur:e=>{var t;B(!1),(t=S.onBlur)==null||t.call(S,e)}})),[K,q,J,l,X,a,U,V,S,M?.source,O]),Q=u.useMemo(()=>({slots:Array.from({length:a}).map((e,t)=>{let n=z&&V!==null&&U!==null&&(V===U&&t===V||t>=V&&tg?g(Q):u.createElement(D.Provider,{value:Q},_),[_,Q,g]);return u.createElement(u.Fragment,null,h!==null&&u.createElement(`noscript`,null,u.createElement(`style`,null,h)),u.createElement(`div`,{ref:P,"data-input-otp-container":!0,style:Y,className:m},$,u.createElement(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`}},Z)))});O.displayName=`Input`;function k(e,t){try{e.insertRule(t)}catch{console.error(`input-otp could not insert CSS rule:`,t)}}var te=` +import{G as e,Q as t,Wt as n,en as r,f as i,ln as a,qt as o,rn as s}from"./app-D7MKN1zp.js";var c=e(`Minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),l=o(),u=a(s(),1),d=Object.defineProperty,f=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,_=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||={})h.call(t,n)&&_(e,n,t[n]);if(m)for(var n of m(t))g.call(t,n)&&_(e,n,t[n]);return e},ee=(e,t)=>f(e,p(t)),y=(e,t)=>{var n={};for(var r in e)h.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&m)for(var r of m(e))t.indexOf(r)<0&&g.call(e,r)&&(n[r]=e[r]);return n};function b(e){return[setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)]}function x(e){let t=u.useRef();return u.useEffect(()=>{t.current=e}),t.current}var S=18,C=40,w=`${C}px`,T=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function E({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,a]=u.useState(!1),[o,s]=u.useState(!1),[c,l]=u.useState(!1),d=u.useMemo(()=>n===`none`?!1:(n===`increase-width`||n===`experimental-no-flickering`)&&i&&o,[i,o,n]),f=u.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||c||n===`none`)return;let o=r,s=o.getBoundingClientRect().left+o.offsetWidth,u=o.getBoundingClientRect().top+o.offsetHeight/2,d=s-S,f=u;document.querySelectorAll(T).length===0&&document.elementFromPoint(d,f)===r||(a(!0),l(!0))},[e,t,c,n]);return u.useEffect(()=>{let t=e.current;if(!t||n===`none`)return;function r(){s(window.innerWidth-t.getBoundingClientRect().right>=C)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),u.useEffect(()=>{let e=r||document.activeElement===t.current;if(n===`none`||!e)return;let i=setTimeout(f,0),a=setTimeout(f,2e3),o=setTimeout(f,5e3),s=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(a),clearTimeout(o),clearTimeout(s)}},[t,r,n,f]),{hasPWMBadge:i,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:w}}var D=u.createContext({}),O=u.forwardRef((e,t)=>{var n=e,{value:r,onChange:i,maxLength:a,textAlign:o=`left`,pattern:s,placeholder:c,inputMode:l=`numeric`,onComplete:d,pushPasswordManagerStrategy:f=`increase-width`,pasteTransformer:p,containerClassName:m,noScriptCSSFallback:h=te,render:g,children:_}=n,S=y(n,[`value`,`onChange`,`maxLength`,`textAlign`,`pattern`,`placeholder`,`inputMode`,`onComplete`,`pushPasswordManagerStrategy`,`pasteTransformer`,`containerClassName`,`noScriptCSSFallback`,`render`,`children`]),C;let[w,T]=u.useState(typeof S.defaultValue==`string`?S.defaultValue:``),O=r??w,A=x(O),j=u.useCallback(e=>{i?.(e),T(e)},[i]),M=u.useMemo(()=>s?typeof s==`string`?new RegExp(s):s:null,[s]),N=u.useRef(null),P=u.useRef(null),F=u.useRef({value:O,onChange:j,isIOS:typeof window<`u`&&((C=window==null?void 0:window.CSS)?.supports)?.call(C,`-webkit-touch-callout`,`none`)}),I=u.useRef({prev:[N.current?.selectionStart,N.current?.selectionEnd,N.current?.selectionDirection]});u.useImperativeHandle(t,()=>N.current,[]),u.useEffect(()=>{let e=N.current,t=P.current;if(!e||!t)return;F.current.value!==e.value&&F.current.onChange(e.value),I.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function n(){if(document.activeElement!==e){H(null),W(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,a=e.value,o=I.current.prev,s=-1,c=-1,l;if(a.length!==0&&t!==null&&n!==null){let e=t===n,r=t===a.length&&a.length1&&a.length>1){let t=0;if(o[0]!==null&&o[1]!==null){l=e{t&&t.style.setProperty(`--root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{document.removeEventListener(`selectionchange`,n,{capture:!0}),i.disconnect()}},[]);let[L,R]=u.useState(!1),[z,B]=u.useState(!1),[V,H]=u.useState(null),[U,W]=u.useState(null);u.useEffect(()=>{b(()=>{var e;(e=N.current)==null||e.dispatchEvent(new Event(`input`));let t=N.current?.selectionStart,n=N.current?.selectionEnd,r=N.current?.selectionDirection;t!==null&&n!==null&&(H(t),W(n),I.current.prev=[t,n,r])})},[O,z]),u.useEffect(()=>{A!==void 0&&O!==A&&A.length{let t=e.currentTarget.value.slice(0,a);if(t.length>0&&M&&!M.test(t)){e.preventDefault();return}typeof A==`string`&&t.length{var e;if(N.current){let t=Math.min(N.current.value.length,a-1),n=N.current.value.length;(e=N.current)==null||e.setSelectionRange(t,n),H(t),W(n)}B(!0)},[a]),J=u.useCallback(e=>{let t=N.current;if(!p&&(!F.current.isIOS||!e.clipboardData||!t))return;let n=e.clipboardData.getData(`text/plain`),r=p?p(n):n;e.preventDefault();let i=N.current?.selectionStart,o=N.current?.selectionEnd,s=(i===o?O.slice(0,i)+r+O.slice(i):O.slice(0,i)+r+O.slice(o)).slice(0,a);if(s.length>0&&M&&!M.test(s))return;t.value=s,j(s);let c=Math.min(s.length,a-1),l=s.length;t.setSelectionRange(c,l),H(c),W(l)},[a,j,M,O]),Y=u.useMemo(()=>({position:`relative`,cursor:S.disabled?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}),[S.disabled]),X=u.useMemo(()=>({position:`absolute`,inset:0,width:G.willPushPWMBadge?`calc(100% + ${G.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:G.willPushPWMBadge?`inset(0 ${G.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:o,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}),[G.PWM_BADGE_SPACE_WIDTH,G.willPushPWMBadge,o]),Z=u.useMemo(()=>u.createElement(`input`,ee(v({autoComplete:S.autoComplete||`one-time-code`},S),{"data-input-otp":!0,"data-input-otp-placeholder-shown":O.length===0||void 0,"data-input-otp-mss":V,"data-input-otp-mse":U,inputMode:l,pattern:M?.source,"aria-placeholder":c,style:X,maxLength:a,value:O,ref:N,onPaste:e=>{var t;J(e),(t=S.onPaste)==null||t.call(S,e)},onChange:K,onMouseOver:e=>{var t;R(!0),(t=S.onMouseOver)==null||t.call(S,e)},onMouseLeave:e=>{var t;R(!1),(t=S.onMouseLeave)==null||t.call(S,e)},onFocus:e=>{var t;q(),(t=S.onFocus)==null||t.call(S,e)},onBlur:e=>{var t;B(!1),(t=S.onBlur)==null||t.call(S,e)}})),[K,q,J,l,X,a,U,V,S,M?.source,O]),Q=u.useMemo(()=>({slots:Array.from({length:a}).map((e,t)=>{let n=z&&V!==null&&U!==null&&(V===U&&t===V||t>=V&&tg?g(Q):u.createElement(D.Provider,{value:Q},_),[_,Q,g]);return u.createElement(u.Fragment,null,h!==null&&u.createElement(`noscript`,null,u.createElement(`style`,null,h)),u.createElement(`div`,{ref:P,"data-input-otp-container":!0,style:Y,className:m},$,u.createElement(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`}},Z)))});O.displayName=`Input`;function k(e,t){try{e.insertRule(t)}catch{console.error(`input-otp could not insert CSS rule:`,t)}}var te=` [data-input-otp] { --nojs-bg: white !important; --nojs-fg: black !important; diff --git a/public/build/assets/verification-PIrv5pnj.js b/public/build/assets/verification-D4buixpo.js similarity index 95% rename from public/build/assets/verification-PIrv5pnj.js rename to public/build/assets/verification-D4buixpo.js index b565e97..12199b1 100644 --- a/public/build/assets/verification-PIrv5pnj.js +++ b/public/build/assets/verification-D4buixpo.js @@ -1 +1 @@ -import{d as e,f as t}from"./app-CVlP31Z1.js";var n=e=>({url:n.url(e),method:`get`});n.definition={methods:[`get`,`head`],url:`/email/verify`},n.url=e=>n.definition.url+t(e),n.get=e=>({url:n.url(e),method:`get`}),n.head=e=>({url:n.url(e),method:`head`});var r=e=>({action:n.url(e),method:`get`});r.get=e=>({action:n.url(e),method:`get`}),r.head=e=>({action:n.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),n.form=r;var i=(e,t)=>({url:i.url(e,t),method:`get`});i.definition={methods:[`get`,`head`],url:`/email/verify/{id}/{hash}`},i.url=(n,r)=>{Array.isArray(n)&&(n={id:n[0],hash:n[1]}),n=e(n);let a={id:n.id,hash:n.hash};return i.definition.url.replace(`{id}`,a.id.toString()).replace(`{hash}`,a.hash.toString()).replace(/\/+$/,``)+t(r)},i.get=(e,t)=>({url:i.url(e,t),method:`get`}),i.head=(e,t)=>({url:i.url(e,t),method:`head`});var a=(e,t)=>({action:i.url(e,t),method:`get`});a.get=(e,t)=>({action:i.url(e,t),method:`get`}),a.head=(e,t)=>({action:i.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),i.form=a;var o=e=>({url:o.url(e),method:`post`});o.definition={methods:[`post`],url:`/email/verification-notification`},o.url=e=>o.definition.url+t(e),o.post=e=>({url:o.url(e),method:`post`});var s=e=>({action:o.url(e),method:`post`});s.post=e=>({action:o.url(e),method:`post`}),o.form=s,Object.assign(n,n),Object.assign(i,i),Object.assign(o,o);export{o as t}; \ No newline at end of file +import{d as e,f as t}from"./app-D7MKN1zp.js";var n=e=>({url:n.url(e),method:`get`});n.definition={methods:[`get`,`head`],url:`/email/verify`},n.url=e=>n.definition.url+t(e),n.get=e=>({url:n.url(e),method:`get`}),n.head=e=>({url:n.url(e),method:`head`});var r=e=>({action:n.url(e),method:`get`});r.get=e=>({action:n.url(e),method:`get`}),r.head=e=>({action:n.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),n.form=r;var i=(e,t)=>({url:i.url(e,t),method:`get`});i.definition={methods:[`get`,`head`],url:`/email/verify/{id}/{hash}`},i.url=(n,r)=>{Array.isArray(n)&&(n={id:n[0],hash:n[1]}),n=e(n);let a={id:n.id,hash:n.hash};return i.definition.url.replace(`{id}`,a.id.toString()).replace(`{hash}`,a.hash.toString()).replace(/\/+$/,``)+t(r)},i.get=(e,t)=>({url:i.url(e,t),method:`get`}),i.head=(e,t)=>({url:i.url(e,t),method:`head`});var a=(e,t)=>({action:i.url(e,t),method:`get`});a.get=(e,t)=>({action:i.url(e,t),method:`get`}),a.head=(e,t)=>({action:i.url(e,{[t?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...t?.query??t?.mergeQuery??{}}}),method:`get`}),i.form=a;var o=e=>({url:o.url(e),method:`post`});o.definition={methods:[`post`],url:`/email/verification-notification`},o.url=e=>o.definition.url+t(e),o.post=e=>({url:o.url(e),method:`post`});var s=e=>({action:o.url(e),method:`post`});s.post=e=>({action:o.url(e),method:`post`}),o.form=s,Object.assign(n,n),Object.assign(i,i),Object.assign(o,o);export{o as t}; \ No newline at end of file diff --git a/public/build/assets/verify-email-CBOEFMni.js b/public/build/assets/verify-email-D806-GRE.js similarity index 84% rename from public/build/assets/verify-email-CBOEFMni.js rename to public/build/assets/verify-email-D806-GRE.js index 9cedb64..4dd37f6 100644 --- a/public/build/assets/verify-email-CBOEFMni.js +++ b/public/build/assets/verify-email-D806-GRE.js @@ -1 +1 @@ -import{Jt as e,V as t,Wt as n,Yt as r,c as i,qt as a}from"./app-CVlP31Z1.js";import{t as o}from"./spinner-CoRrGFqk.js";import{t as s}from"./text-link-B7waIO2E.js";import{t as c}from"./verification-PIrv5pnj.js";var l=a(),u=n();function d(t){let n=(0,l.c)(6),{status:i}=t,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(r,{title:`Email verification`}),n[0]=a):a=n[0];let o;n[1]===i?o=n[2]:(o=i===`verification-link-sent`&&(0,u.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:`A new verification link has been sent to the email address you provided during registration.`}),n[1]=i,n[2]=o);let s;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,u.jsx)(e,{...c.form(),className:`space-y-6 text-center`,children:f}),n[3]=s):s=n[3];let d;return n[4]===o?d=n[5]:(d=(0,u.jsxs)(u.Fragment,{children:[a,o,s]}),n[4]=o,n[5]=d),d}function f(e){let{processing:n}=e;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(t,{disabled:n,variant:`secondary`,children:[n&&(0,u.jsx)(o,{}),`Resend verification email`]}),(0,u.jsx)(s,{href:i(),className:`mx-auto block text-sm`,children:`Log out`})]})}d.layout={title:`Verify email`,description:`Please verify your email address by clicking on the link we just emailed to you.`};export{d as default}; \ No newline at end of file +import{Jt as e,V as t,Wt as n,Yt as r,c as i,qt as a}from"./app-D7MKN1zp.js";import{t as o}from"./spinner-CCI0ZpZ9.js";import{t as s}from"./text-link-BlYfkXNw.js";import{t as c}from"./verification-D4buixpo.js";var l=a(),u=n();function d(t){let n=(0,l.c)(6),{status:i}=t,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,u.jsx)(r,{title:`Email verification`}),n[0]=a):a=n[0];let o;n[1]===i?o=n[2]:(o=i===`verification-link-sent`&&(0,u.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:`A new verification link has been sent to the email address you provided during registration.`}),n[1]=i,n[2]=o);let s;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,u.jsx)(e,{...c.form(),className:`space-y-6 text-center`,children:f}),n[3]=s):s=n[3];let d;return n[4]===o?d=n[5]:(d=(0,u.jsxs)(u.Fragment,{children:[a,o,s]}),n[4]=o,n[5]=d),d}function f(e){let{processing:n}=e;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(t,{disabled:n,variant:`secondary`,children:[n&&(0,u.jsx)(o,{}),`Resend verification email`]}),(0,u.jsx)(s,{href:i(),className:`mx-auto block text-sm`,children:`Log out`})]})}d.layout={title:`Verify email`,description:`Please verify your email address by clicking on the link we just emailed to you.`};export{d as default}; \ No newline at end of file diff --git a/public/build/manifest.json b/public/build/manifest.json index aebf761..dc03903 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -1,67 +1,67 @@ { - "_appearance-tabs-Bbh38TuS.js": { - "file": "assets/appearance-tabs-Bbh38TuS.js", + "_appearance-tabs-BOBvnqrB.js": { + "file": "assets/appearance-tabs-BOBvnqrB.js", "name": "appearance-tabs", "imports": [ "resources/js/app.tsx", - "_sun-CDBr7ehg.js" + "_sun-r0X8DC4y.js" ] }, - "_badge-BeR0IMEC.js": { - "file": "assets/badge-BeR0IMEC.js", + "_badge-D9nNMnEq.js": { + "file": "assets/badge-D9nNMnEq.js", "name": "badge", "imports": [ "resources/js/app.tsx" ] }, - "_card-BMwhGcsv.js": { - "file": "assets/card-BMwhGcsv.js", + "_card-C1ekp7Ou.js": { + "file": "assets/card-C1ekp7Ou.js", "name": "card", "imports": [ "resources/js/app.tsx" ] }, - "_check-CCTwZBIw.js": { - "file": "assets/check-CCTwZBIw.js", + "_check-BBvDdM_9.js": { + "file": "assets/check-BBvDdM_9.js", "name": "check", "imports": [ "resources/js/app.tsx" ] }, - "_chevron-down-Cx1PhGaQ.js": { - "file": "assets/chevron-down-Cx1PhGaQ.js", + "_chevron-down-DuPWSveW.js": { + "file": "assets/chevron-down-DuPWSveW.js", "name": "chevron-down", "imports": [ "resources/js/app.tsx" ] }, - "_color-utils-ePYKqy3O.js": { - "file": "assets/color-utils-ePYKqy3O.js", + "_color-utils-DTvyGxAC.js": { + "file": "assets/color-utils-DTvyGxAC.js", "name": "color-utils" }, - "_confirm-iDcX_7zW.js": { - "file": "assets/confirm-iDcX_7zW.js", + "_confirm-tDhmficG.js": { + "file": "assets/confirm-tDhmficG.js", "name": "confirm", "imports": [ "resources/js/app.tsx" ] }, - "_copy-CgW44MFY.js": { - "file": "assets/copy-CgW44MFY.js", + "_copy-HrVumo6t.js": { + "file": "assets/copy-HrVumo6t.js", "name": "copy", "imports": [ "resources/js/app.tsx" ] }, - "_dialog-D1phUQb7.js": { - "file": "assets/dialog-D1phUQb7.js", + "_dialog-CM260op0.js": { + "file": "assets/dialog-CM260op0.js", "name": "dialog", "imports": [ "resources/js/app.tsx" ] }, - "_dist-CyCRNm1V.js": { - "file": "assets/dist-CyCRNm1V.js", + "_dist-D5bK512v.js": { + "file": "assets/dist-D5bK512v.js", "name": "dist", "imports": [ "resources/js/app.tsx" @@ -71,37 +71,37 @@ "file": "assets/fonts-DkuEHybc.css", "src": "_fonts-DkuEHybc.css" }, - "_github-BytY2MM3.js": { - "file": "assets/github-BytY2MM3.js", + "_github-Be9qoVk0.js": { + "file": "assets/github-Be9qoVk0.js", "name": "github", "imports": [ "resources/js/app.tsx" ] }, - "_glow-radial-JNwxsbej.js": { - "file": "assets/glow-radial-JNwxsbej.js", + "_glow-radial-CIe4ekoG.js": { + "file": "assets/glow-radial-CIe4ekoG.js", "name": "glow-radial", "imports": [ "resources/js/app.tsx", - "_glow-stack-DaYuOL5d.js" + "_glow-stack-BaNii-nE.js" ] }, - "_glow-stack-DaYuOL5d.js": { - "file": "assets/glow-stack-DaYuOL5d.js", + "_glow-stack-BaNii-nE.js": { + "file": "assets/glow-stack-BaNii-nE.js", "name": "glow-stack", "imports": [ "resources/js/app.tsx" ] }, - "_heart-DBfrxc2y.js": { - "file": "assets/heart-DBfrxc2y.js", + "_heart-BDAPM7f6.js": { + "file": "assets/heart-BDAPM7f6.js", "name": "heart", "imports": [ "resources/js/app.tsx" ] }, - "_input-error-BdHD9-x4.js": { - "file": "assets/input-error-BdHD9-x4.js", + "_input-error-CzZYqI_U.js": { + "file": "assets/input-error-CzZYqI_U.js", "name": "input-error", "imports": [ "resources/js/app.tsx" @@ -155,126 +155,157 @@ "file": "assets/instrument-sans-600-normal-DMks36a2.woff", "src": "_instrument-sans-600-normal-DMks36a2.woff" }, - "_label-D-AkZnW_.js": { - "file": "assets/label-D-AkZnW_.js", + "_label-fRwP89Ez.js": { + "file": "assets/label-fRwP89Ez.js", "name": "label", "imports": [ "resources/js/app.tsx" ] }, - "_loader-circle-XO7crStb.js": { - "file": "assets/loader-circle-XO7crStb.js", + "_loader-circle-YfjFJaoY.js": { + "file": "assets/loader-circle-YfjFJaoY.js", "name": "loader-circle", "imports": [ "resources/js/app.tsx" ] }, - "_main-layout-DiaP0ISn.js": { - "file": "assets/main-layout-DiaP0ISn.js", + "_main-layout-qej9zSi0.js": { + "file": "assets/main-layout-qej9zSi0.js", "name": "main-layout", "imports": [ "resources/js/app.tsx", - "_check-CCTwZBIw.js", - "_github-BytY2MM3.js", - "_sun-CDBr7ehg.js", - "_placeholder-pattern-CMjSLXXB.js", - "_glow-stack-DaYuOL5d.js" + "_check-BBvDdM_9.js", + "_github-Be9qoVk0.js", + "_sun-r0X8DC4y.js", + "_placeholder-pattern-DUvj6lOE.js", + "_glow-stack-BaNii-nE.js" ] }, - "_main-registry-installer-CWpQAmy4.js": { - "file": "assets/main-registry-installer-CWpQAmy4.js", + "_main-registry-installer-_-xwUN0S.js": { + "file": "assets/main-registry-installer-_-xwUN0S.js", "name": "main-registry-installer", "imports": [ "resources/js/app.tsx", - "_main-layout-DiaP0ISn.js", - "_check-CCTwZBIw.js", - "_copy-CgW44MFY.js" + "_main-layout-qej9zSi0.js", + "_check-BBvDdM_9.js", + "_copy-HrVumo6t.js" ] }, - "_password-CsunKxsK.js": { - "file": "assets/password-CsunKxsK.js", + "_main-theme-card-B0GTBBPN.js": { + "file": "assets/main-theme-card-B0GTBBPN.js", + "name": "main-theme-card", + "imports": [ + "resources/js/app.tsx", + "_card-C1ekp7Ou.js", + "_glow-stack-BaNii-nE.js", + "_glow-radial-CIe4ekoG.js" + ] + }, + "_password-BDtte38w.js": { + "file": "assets/password-BDtte38w.js", "name": "password", "imports": [ "resources/js/app.tsx", - "_confirm-iDcX_7zW.js" + "_confirm-tDhmficG.js" ] }, - "_password-input-QL8S9D3F.js": { - "file": "assets/password-input-QL8S9D3F.js", + "_password-input-__9RhIwi.js": { + "file": "assets/password-input-__9RhIwi.js", "name": "password-input", "imports": [ "resources/js/app.tsx" ] }, - "_placeholder-pattern-CMjSLXXB.js": { - "file": "assets/placeholder-pattern-CMjSLXXB.js", + "_placeholder-pattern-DUvj6lOE.js": { + "file": "assets/placeholder-pattern-DUvj6lOE.js", "name": "placeholder-pattern", "imports": [ "resources/js/app.tsx" ] }, - "_select-DHOWe80x.js": { - "file": "assets/select-DHOWe80x.js", + "_plus-D1KRmSaN.js": { + "file": "assets/plus-D1KRmSaN.js", + "name": "plus", + "imports": [ + "resources/js/app.tsx" + ] + }, + "_popover-B2UUPq8p.js": { + "file": "assets/popover-B2UUPq8p.js", + "name": "popover", + "imports": [ + "resources/js/app.tsx" + ] + }, + "_select-DsMxFFiu.js": { + "file": "assets/select-DsMxFFiu.js", "name": "select", "imports": [ "resources/js/app.tsx", - "_dist-CyCRNm1V.js", - "_check-CCTwZBIw.js", - "_chevron-down-Cx1PhGaQ.js" + "_dist-D5bK512v.js", + "_check-BBvDdM_9.js", + "_chevron-down-DuPWSveW.js" ] }, - "_socialite-DAGU8Gzo.js": { - "file": "assets/socialite-DAGU8Gzo.js", + "_socialite-BBNBBxaD.js": { + "file": "assets/socialite-BBNBBxaD.js", "name": "socialite", "imports": [ "resources/js/app.tsx" ] }, - "_spinner-CoRrGFqk.js": { - "file": "assets/spinner-CoRrGFqk.js", + "_spinner-CCI0ZpZ9.js": { + "file": "assets/spinner-CCI0ZpZ9.js", "name": "spinner", "imports": [ "resources/js/app.tsx", - "_loader-circle-XO7crStb.js" + "_loader-circle-YfjFJaoY.js" ] }, - "_subscription-BG3RHyD9.js": { - "file": "assets/subscription-BG3RHyD9.js", + "_subscription-C-u-O6PN.js": { + "file": "assets/subscription-C-u-O6PN.js", "name": "subscription", "imports": [ "resources/js/app.tsx" ] }, - "_sun-CDBr7ehg.js": { - "file": "assets/sun-CDBr7ehg.js", + "_sun-r0X8DC4y.js": { + "file": "assets/sun-r0X8DC4y.js", "name": "sun", "imports": [ "resources/js/app.tsx" ] }, - "_text-link-B7waIO2E.js": { - "file": "assets/text-link-B7waIO2E.js", + "_tabs-CNNfAj8l.js": { + "file": "assets/tabs-CNNfAj8l.js", + "name": "tabs", + "imports": [ + "resources/js/app.tsx" + ] + }, + "_text-link-BlYfkXNw.js": { + "file": "assets/text-link-BlYfkXNw.js", "name": "text-link", "imports": [ "resources/js/app.tsx" ] }, - "_use-clipboard-C4ojyAai.js": { - "file": "assets/use-clipboard-C4ojyAai.js", + "_use-clipboard-BvQkhUu9.js": { + "file": "assets/use-clipboard-BvQkhUu9.js", "name": "use-clipboard", "imports": [ "resources/js/app.tsx" ] }, - "_use-two-factor-auth-B2IHMCS_.js": { - "file": "assets/use-two-factor-auth-B2IHMCS_.js", + "_use-two-factor-auth-Bdh-sKJ3.js": { + "file": "assets/use-two-factor-auth-Bdh-sKJ3.js", "name": "use-two-factor-auth", "imports": [ "resources/js/app.tsx" ] }, - "_verification-PIrv5pnj.js": { - "file": "assets/verification-PIrv5pnj.js", + "_verification-D4buixpo.js": { + "file": "assets/verification-D4buixpo.js", "name": "verification", "imports": [ "resources/js/app.tsx" @@ -297,7 +328,7 @@ "src": "node_modules/@fontsource/bebas-neue/files/bebas-neue-latin-ext-400-normal.woff2" }, "resources/css/app.css": { - "file": "assets/app-DwgJtLjQ.css", + "file": "assets/app-DN02iwDR.css", "name": "app", "names": [ "app.css" @@ -312,7 +343,7 @@ ] }, "resources/js/app.tsx": { - "file": "assets/app-CVlP31Z1.js", + "file": "assets/app-D7MKN1zp.js", "name": "app", "src": "resources/js/app.tsx", "isEntry": true, @@ -339,276 +370,283 @@ ] }, "resources/js/pages/animate-css/index.tsx": { - "file": "assets/animate-css-DIxn22Sl.js", + "file": "assets/animate-css-BwrG5zYQ.js", "name": "animate-css", "src": "resources/js/pages/animate-css/index.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_main-layout-DiaP0ISn.js", - "_main-registry-installer-CWpQAmy4.js", - "_check-CCTwZBIw.js", - "_chevron-down-Cx1PhGaQ.js", - "_copy-CgW44MFY.js", - "_heart-DBfrxc2y.js", - "_card-BMwhGcsv.js", - "_dialog-D1phUQb7.js", - "_glow-stack-DaYuOL5d.js" + "_main-layout-qej9zSi0.js", + "_main-registry-installer-_-xwUN0S.js", + "_check-BBvDdM_9.js", + "_chevron-down-DuPWSveW.js", + "_copy-HrVumo6t.js", + "_heart-BDAPM7f6.js", + "_card-C1ekp7Ou.js", + "_dialog-CM260op0.js", + "_glow-stack-BaNii-nE.js" ] }, "resources/js/pages/auth/confirm-password.tsx": { - "file": "assets/confirm-password-hf93YGU9.js", + "file": "assets/confirm-password-BNeZIAHY.js", "name": "confirm-password", "src": "resources/js/pages/auth/confirm-password.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_label-D-AkZnW_.js", - "_password-input-QL8S9D3F.js", - "_input-error-BdHD9-x4.js", - "_spinner-CoRrGFqk.js", - "_confirm-iDcX_7zW.js" + "_label-fRwP89Ez.js", + "_password-input-__9RhIwi.js", + "_input-error-CzZYqI_U.js", + "_spinner-CCI0ZpZ9.js", + "_confirm-tDhmficG.js" ] }, "resources/js/pages/auth/forgot-password.tsx": { - "file": "assets/forgot-password-H3UJsxPQ.js", + "file": "assets/forgot-password-B5S_AFXd.js", "name": "forgot-password", "src": "resources/js/pages/auth/forgot-password.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_label-D-AkZnW_.js", - "_loader-circle-XO7crStb.js", - "_input-error-BdHD9-x4.js", - "_text-link-B7waIO2E.js", - "_password-CsunKxsK.js" + "_label-fRwP89Ez.js", + "_loader-circle-YfjFJaoY.js", + "_input-error-CzZYqI_U.js", + "_text-link-BlYfkXNw.js", + "_password-BDtte38w.js" ] }, "resources/js/pages/auth/login.tsx": { - "file": "assets/login-B4lH5do8.js", + "file": "assets/login-00JrbYrx.js", "name": "login", "src": "resources/js/pages/auth/login.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_label-D-AkZnW_.js", - "_dist-CyCRNm1V.js", - "_check-CCTwZBIw.js", - "_socialite-DAGU8Gzo.js", - "_password-input-QL8S9D3F.js", - "_github-BytY2MM3.js", - "_input-error-BdHD9-x4.js", - "_text-link-B7waIO2E.js", - "_spinner-CoRrGFqk.js", - "_password-CsunKxsK.js" + "_label-fRwP89Ez.js", + "_dist-D5bK512v.js", + "_check-BBvDdM_9.js", + "_socialite-BBNBBxaD.js", + "_password-input-__9RhIwi.js", + "_github-Be9qoVk0.js", + "_input-error-CzZYqI_U.js", + "_text-link-BlYfkXNw.js", + "_spinner-CCI0ZpZ9.js", + "_password-BDtte38w.js" ] }, "resources/js/pages/auth/register.tsx": { - "file": "assets/register-DvZlJMq4.js", + "file": "assets/register-DjsSoOdi.js", "name": "register", "src": "resources/js/pages/auth/register.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_label-D-AkZnW_.js", - "_socialite-DAGU8Gzo.js", - "_password-input-QL8S9D3F.js", - "_github-BytY2MM3.js", - "_input-error-BdHD9-x4.js", - "_text-link-B7waIO2E.js", - "_spinner-CoRrGFqk.js" + "_label-fRwP89Ez.js", + "_socialite-BBNBBxaD.js", + "_password-input-__9RhIwi.js", + "_github-Be9qoVk0.js", + "_input-error-CzZYqI_U.js", + "_text-link-BlYfkXNw.js", + "_spinner-CCI0ZpZ9.js" ] }, "resources/js/pages/auth/reset-password.tsx": { - "file": "assets/reset-password-CjTooPZv.js", + "file": "assets/reset-password-CoN8fAaC.js", "name": "reset-password", "src": "resources/js/pages/auth/reset-password.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_label-D-AkZnW_.js", - "_password-input-QL8S9D3F.js", - "_input-error-BdHD9-x4.js", - "_spinner-CoRrGFqk.js", - "_password-CsunKxsK.js" + "_label-fRwP89Ez.js", + "_password-input-__9RhIwi.js", + "_input-error-CzZYqI_U.js", + "_spinner-CCI0ZpZ9.js", + "_password-BDtte38w.js" ] }, "resources/js/pages/auth/two-factor-challenge.tsx": { - "file": "assets/two-factor-challenge-CIH9e-kP.js", + "file": "assets/two-factor-challenge-Miwtb12I.js", "name": "two-factor-challenge", "src": "resources/js/pages/auth/two-factor-challenge.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_use-two-factor-auth-B2IHMCS_.js", - "_input-error-BdHD9-x4.js" + "_use-two-factor-auth-Bdh-sKJ3.js", + "_input-error-CzZYqI_U.js" ] }, "resources/js/pages/auth/verify-email.tsx": { - "file": "assets/verify-email-CBOEFMni.js", + "file": "assets/verify-email-D806-GRE.js", "name": "verify-email", "src": "resources/js/pages/auth/verify-email.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_text-link-B7waIO2E.js", - "_spinner-CoRrGFqk.js", - "_verification-PIrv5pnj.js" + "_text-link-BlYfkXNw.js", + "_spinner-CCI0ZpZ9.js", + "_verification-D4buixpo.js" ] }, "resources/js/pages/dashboard.tsx": { - "file": "assets/dashboard-DfTez4xA.js", + "file": "assets/dashboard-oAHwTN2S.js", "name": "dashboard", "src": "resources/js/pages/dashboard.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_placeholder-pattern-CMjSLXXB.js" + "_placeholder-pattern-DUvj6lOE.js" ] }, "resources/js/pages/fonts/index.tsx": { - "file": "assets/fonts-P-PzeNmJ.js", + "file": "assets/fonts-CaQ0upX0.js", "name": "fonts", "src": "resources/js/pages/fonts/index.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_select-DHOWe80x.js", - "_main-layout-DiaP0ISn.js", - "_main-registry-installer-CWpQAmy4.js", - "_badge-BeR0IMEC.js", - "_card-BMwhGcsv.js", - "_glow-stack-DaYuOL5d.js" + "_select-DsMxFFiu.js", + "_main-layout-qej9zSi0.js", + "_main-registry-installer-_-xwUN0S.js", + "_badge-D9nNMnEq.js", + "_card-C1ekp7Ou.js", + "_glow-stack-BaNii-nE.js" ] }, "resources/js/pages/home.tsx": { - "file": "assets/home-C2LooHG2.js", + "file": "assets/home-C3JgkfjT.js", "name": "home", "src": "resources/js/pages/home.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_color-utils-ePYKqy3O.js", - "_main-layout-DiaP0ISn.js", - "_heart-DBfrxc2y.js", - "_glow-radial-JNwxsbej.js", - "_glow-stack-DaYuOL5d.js" + "_popover-B2UUPq8p.js", + "_color-utils-DTvyGxAC.js", + "_main-layout-qej9zSi0.js", + "_heart-BDAPM7f6.js", + "_plus-D1KRmSaN.js", + "_glow-stack-BaNii-nE.js", + "_glow-radial-CIe4ekoG.js" ] }, "resources/js/pages/pricing.tsx": { - "file": "assets/pricing-B924f0vZ.js", + "file": "assets/pricing-BiBh6JwN.js", "name": "pricing", "src": "resources/js/pages/pricing.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_main-layout-DiaP0ISn.js", - "_check-CCTwZBIw.js", - "_card-BMwhGcsv.js", - "_glow-stack-DaYuOL5d.js", - "_subscription-BG3RHyD9.js" + "_main-layout-qej9zSi0.js", + "_check-BBvDdM_9.js", + "_card-C1ekp7Ou.js", + "_glow-stack-BaNii-nE.js", + "_subscription-C-u-O6PN.js" ] }, "resources/js/pages/settings/appearance.tsx": { - "file": "assets/appearance-DkF4xOip.js", + "file": "assets/appearance-8Z1L6Aly.js", "name": "appearance", "src": "resources/js/pages/settings/appearance.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_appearance-tabs-Bbh38TuS.js" + "_appearance-tabs-BOBvnqrB.js" ] }, "resources/js/pages/settings/profile.tsx": { - "file": "assets/profile-CEhMOmdF.js", + "file": "assets/profile-CQF7e4MZ.js", "name": "profile", "src": "resources/js/pages/settings/profile.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_label-D-AkZnW_.js", - "_password-input-QL8S9D3F.js", - "_input-error-BdHD9-x4.js", - "_dialog-D1phUQb7.js", - "_verification-PIrv5pnj.js" + "_label-fRwP89Ez.js", + "_password-input-__9RhIwi.js", + "_input-error-CzZYqI_U.js", + "_dialog-CM260op0.js", + "_verification-D4buixpo.js" ] }, "resources/js/pages/settings/security.tsx": { - "file": "assets/security-CnUHyk63.js", + "file": "assets/security-BxjNuG8g.js", "name": "security", "src": "resources/js/pages/settings/security.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_label-D-AkZnW_.js", - "_use-two-factor-auth-B2IHMCS_.js", - "_check-CCTwZBIw.js", - "_copy-CgW44MFY.js", - "_password-input-QL8S9D3F.js", - "_input-error-BdHD9-x4.js", - "_use-clipboard-C4ojyAai.js", - "_card-BMwhGcsv.js", - "_dialog-D1phUQb7.js", - "_spinner-CoRrGFqk.js" + "_label-fRwP89Ez.js", + "_use-two-factor-auth-Bdh-sKJ3.js", + "_check-BBvDdM_9.js", + "_copy-HrVumo6t.js", + "_password-input-__9RhIwi.js", + "_input-error-CzZYqI_U.js", + "_use-clipboard-BvQkhUu9.js", + "_card-C1ekp7Ou.js", + "_dialog-CM260op0.js", + "_spinner-CCI0ZpZ9.js" ] }, "resources/js/pages/settings/subscription.tsx": { - "file": "assets/subscription-CWLd4fU4.js", + "file": "assets/subscription-DJjwwh89.js", "name": "subscription", "src": "resources/js/pages/settings/subscription.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_card-BMwhGcsv.js", - "_subscription-BG3RHyD9.js" + "_card-C1ekp7Ou.js", + "_subscription-C-u-O6PN.js" ] }, "resources/js/pages/themes/create.tsx": { - "file": "assets/create-DWmMMfkI.js", + "file": "assets/create-BmSt6sO8.js", "name": "create", "src": "resources/js/pages/themes/create.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_label-D-AkZnW_.js", - "_main-layout-DiaP0ISn.js", - "_loader-circle-XO7crStb.js", - "_card-BMwhGcsv.js", - "_glow-stack-DaYuOL5d.js" + "_label-fRwP89Ez.js", + "_popover-B2UUPq8p.js", + "_tabs-CNNfAj8l.js", + "_color-utils-DTvyGxAC.js", + "_main-layout-qej9zSi0.js", + "_loader-circle-YfjFJaoY.js", + "_card-C1ekp7Ou.js", + "_glow-stack-BaNii-nE.js", + "_main-theme-card-B0GTBBPN.js" ] }, "resources/js/pages/themes/index.tsx": { - "file": "assets/themes-BEIrAo01.js", + "file": "assets/themes-dmvzolUC.js", "name": "themes", "src": "resources/js/pages/themes/index.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_select-DHOWe80x.js", - "_main-layout-DiaP0ISn.js", - "_glow-radial-JNwxsbej.js", - "_card-BMwhGcsv.js", - "_glow-stack-DaYuOL5d.js" + "_select-DsMxFFiu.js", + "_main-layout-qej9zSi0.js", + "_plus-D1KRmSaN.js", + "_glow-stack-BaNii-nE.js", + "_main-theme-card-B0GTBBPN.js" ] }, "resources/js/pages/themes/show.tsx": { - "file": "assets/show-B7YwVVJB.js", + "file": "assets/show-D6Z2FFsL.js", "name": "show", "src": "resources/js/pages/themes/show.tsx", "isDynamicEntry": true, "imports": [ "resources/js/app.tsx", - "_label-D-AkZnW_.js", - "_color-utils-ePYKqy3O.js", - "_check-CCTwZBIw.js", - "_copy-CgW44MFY.js", - "_heart-DBfrxc2y.js", - "_appearance-tabs-Bbh38TuS.js", - "_use-clipboard-C4ojyAai.js", - "_badge-BeR0IMEC.js", - "_card-BMwhGcsv.js", - "_placeholder-pattern-CMjSLXXB.js", - "_glow-stack-DaYuOL5d.js" + "_label-fRwP89Ez.js", + "_tabs-CNNfAj8l.js", + "_color-utils-DTvyGxAC.js", + "_check-BBvDdM_9.js", + "_copy-HrVumo6t.js", + "_heart-BDAPM7f6.js", + "_appearance-tabs-BOBvnqrB.js", + "_use-clipboard-BvQkhUu9.js", + "_badge-D9nNMnEq.js", + "_card-C1ekp7Ou.js", + "_placeholder-pattern-DUvj6lOE.js", + "_glow-stack-BaNii-nE.js" ] } } \ No newline at end of file diff --git a/resources/js/components/themes/ai-theme-generator.tsx b/resources/js/components/themes/ai-theme-generator.tsx new file mode 100644 index 0000000..faf458d --- /dev/null +++ b/resources/js/components/themes/ai-theme-generator.tsx @@ -0,0 +1,92 @@ +import { Sparkles, Loader2 } from 'lucide-react'; +import { useState } from 'react'; +import { toast } from 'sonner'; +import { Button } from '@/components/ui/button'; +import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card'; +import { Input } from '@/components/ui/input'; +import { Label } from '@/components/ui/label'; +import { generate } from '@/routes/themes'; + +interface AiThemeGeneratorProps { + onGenerated: (data: any) => void; +} + +export default function AiThemeGenerator({ onGenerated }: AiThemeGeneratorProps) { + const [prompt, setPrompt] = useState(''); + const [loading, setLoading] = useState(false); + + const handleGenerate = async () => { + if (!prompt) { +return; +} + + setLoading(true); + + try { + const response = await fetch(generate().url, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + 'X-CSRF-TOKEN': (document.querySelector('meta[name="csrf-token"]') as HTMLMetaElement)?.content || '', + }, + body: JSON.stringify({ prompt }), + }); + + if (!response.ok) { + throw new Error('Failed to generate theme'); + } + + const data = await response.json(); + onGenerated(data); + toast.success('Theme generated successfully!'); + } catch (error) { + console.error(error); + toast.error('Failed to generate theme. Please try again.'); + } finally { + setLoading(false); + } + }; + + return ( + + + + + Generate with AI + + + Describe the mood, style, or specific colors you want for your theme. + + + +
+ + setPrompt(e.target.value)} + onKeyDown={(e) => e.key === 'Enter' && handleGenerate()} + /> +
+ +
+
+ ); +} diff --git a/resources/js/components/themes/color-picker.tsx b/resources/js/components/themes/color-picker.tsx new file mode 100644 index 0000000..0223078 --- /dev/null +++ b/resources/js/components/themes/color-picker.tsx @@ -0,0 +1,102 @@ +import { useMemo } from 'react'; +import { Input } from '@/components/ui/input'; +import { Label } from '@/components/ui/label'; +import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; +import { convertColor, TAILWIND_COLORS } from '@/lib/color-utils'; + +interface ColorPickerProps { + label: string; + value: string; + onChange: (value: string) => void; +} + +export default function ColorPicker({ label, value, onChange }: ColorPickerProps) { + // We assume the value is HSL "h s% l%" + const hexValue = useMemo(() => { + return convertColor(`hsl(${value})`, 'hex') || '#000000'; + }, [value]); + + const handleColorChange = (e: React.ChangeEvent) => { + const hex = e.target.value; + const hsl = convertColor(hex, 'hsl'); + + if (hsl) { + // Extract values from "hsl(h, s%, l%)" or "hsl(h s% l%)" + const match = hsl.match(/hsl\(([^)]+)\)/); + + if (match) { + // normalize to "h s% l%" + const parts = match[1].split(/[,\s]+/).filter(Boolean); + onChange(parts.join(' ')); + } + } + }; + + const handleTailwindSelect = (oklch: string) => { + const hsl = convertColor(oklch, 'hsl'); + + if (hsl) { + const match = hsl.match(/hsl\(([^)]+)\)/); + + if (match) { + const parts = match[1].split(/[,\s]+/).filter(Boolean); + onChange(parts.join(' ')); + } + } + }; + + return ( +
+ +
+ + +
+
+ ))} +
+ + + + onChange(e.target.value)} + className="h-8 text-xs font-mono" + /> + + + ); +} diff --git a/resources/js/components/themes/theme-editor-variables.tsx b/resources/js/components/themes/theme-editor-variables.tsx new file mode 100644 index 0000000..0061b2a --- /dev/null +++ b/resources/js/components/themes/theme-editor-variables.tsx @@ -0,0 +1,83 @@ +import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card'; +import { Input } from '@/components/ui/input'; +import { Label } from '@/components/ui/label'; +import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; +import ColorPicker from './color-picker'; + +interface ThemeEditorVariablesProps { + vars_light: Record; + vars_dark: Record; + onChange: (mode: 'light' | 'dark', key: string, value: string) => void; +} + +const COLOR_KEYS = [ + 'background', 'foreground', + 'card', 'card-foreground', + 'popover', 'popover-foreground', + 'primary', 'primary-foreground', + 'secondary', 'secondary-foreground', + 'muted', 'muted-foreground', + 'accent', 'accent-foreground', + 'destructive', 'destructive-foreground', + 'border', 'input', 'ring' +]; + +export default function ThemeEditorVariables({ vars_light, vars_dark, onChange }: ThemeEditorVariablesProps) { + return ( + + + Theme Colors + + Adjust the HSL values for light and dark modes. + + + + +
+ + Light Mode + Dark Mode + +
+ + +
+ {COLOR_KEYS.map(key => ( + onChange('light', key, val)} + /> + ))} +
+
+
+ + onChange('light', 'radius', e.target.value)} + placeholder="e.g. 0.5rem" + /> +
+
+
+ + +
+ {COLOR_KEYS.map(key => ( + onChange('dark', key, val)} + /> + ))} +
+
+
+
+
+ ); +} diff --git a/resources/js/lib/build-css-vars.ts b/resources/js/lib/build-css-vars.ts index fc9e2da..02608de 100644 --- a/resources/js/lib/build-css-vars.ts +++ b/resources/js/lib/build-css-vars.ts @@ -47,7 +47,13 @@ function buildCSSVars(vars: Record): React.CSSProperties { // Directly set --color-* variable to bypass var() indirection if (colorMap[normalizedKey]) { - result[`--color-${colorMap[normalizedKey]}`] = value; + // Check if value already has hsl() or oklch() wrapper + if (/^(hsl|oklch|rgb|#)/i.test(value)) { + result[`--color-${colorMap[normalizedKey]}`] = value; + } else { + // Assume it's a raw HSL value if it's not a standard color format + result[`--color-${colorMap[normalizedKey]}`] = `hsl(${value})`; + } } } diff --git a/resources/js/pages/themes/create.tsx b/resources/js/pages/themes/create.tsx index e305005..d3ae3b4 100644 --- a/resources/js/pages/themes/create.tsx +++ b/resources/js/pages/themes/create.tsx @@ -1,6 +1,9 @@ import { Head, useForm } from '@inertiajs/react'; -import { Loader2 } from 'lucide-react'; +import { Loader2, Sparkles, FileJson, Edit3, Save } from 'lucide-react'; +import { useState, useEffect } from 'react'; import Heading from '@/components/heading'; +import AiThemeGenerator from '@/components/themes/ai-theme-generator'; +import ThemeEditorVariables from '@/components/themes/theme-editor-variables'; import { Button } from '@/components/ui/button'; import { Card, @@ -12,80 +15,289 @@ import { } from '@/components/ui/card'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; +import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import MainWrapper from '@/layouts/main/main-wrapper'; +import MainThemeCard from '@/layouts/main/theme/main-theme-card'; import MainLayout from '@/layouts/main-layout'; import { store } from '@/routes/themes'; -export default function ThemeCreate() { +interface ThemeCreateProps { + baseTheme?: any; +} + +const DEFAULT_VARS_LIGHT = { + background: '0 0% 100%', + foreground: '240 10% 3.9%', + card: '0 0% 100%', + 'card-foreground': '240 10% 3.9%', + popover: '0 0% 100%', + 'popover-foreground': '240 10% 3.9%', + primary: '240 5.9% 10%', + 'primary-foreground': '0 0% 98%', + secondary: '240 4.8% 95.9%', + 'secondary-foreground': '240 5.9% 10%', + muted: '240 4.8% 95.9%', + 'muted-foreground': '240 3.8% 46.1%', + accent: '240 4.8% 95.9%', + 'accent-foreground': '240 5.9% 10%', + destructive: '0 84.2% 60.2%', + 'destructive-foreground': '0 0% 98%', + border: '240 5.9% 90%', + input: '240 5.9% 90%', + ring: '240 5.9% 10%', + radius: '0.5rem', +}; + +const DEFAULT_VARS_DARK = { + background: '240 10% 3.9%', + foreground: '0 0% 98%', + card: '240 10% 3.9%', + 'card-foreground': '0 0% 98%', + popover: '240 10% 3.9%', + 'popover-foreground': '0 0% 98%', + primary: '0 0% 98%', + 'primary-foreground': '240 5.9% 10%', + secondary: '240 3.7% 15.9%', + 'secondary-foreground': '0 0% 98%', + muted: '240 3.7% 15.9%', + 'muted-foreground': '240 5% 64.9%', + accent: '240 3.7% 15.9%', + 'accent-foreground': '0 0% 98%', + destructive: '0 62.8% 30.6%', + 'destructive-foreground': '0 0% 98%', + border: '240 3.7% 15.9%', + input: '240 3.7% 15.9%', + ring: '240 4.9% 83.9%', +}; + +export default function ThemeCreate({ baseTheme }: ThemeCreateProps) { + const [activeTab, setActiveTab] = useState(baseTheme ? 'manual' : 'import'); + const { data, setData, post, processing, errors } = useForm({ url: '', + theme_data: null as any, + }); + + const [manualTheme, setManualTheme] = useState({ + title: baseTheme?.title || 'My New Theme', + name: baseTheme?.name ? `${baseTheme.name}-fork` : 'my-new-theme', + description: + baseTheme?.description || 'A custom theme created manually.', + tags: baseTheme?.tags || ['custom'], + vars_light: baseTheme?.vars_light || DEFAULT_VARS_LIGHT, + vars_dark: baseTheme?.vars_dark || DEFAULT_VARS_DARK, + font_family: baseTheme?.font_family || 'Inter', }); - const handleSubmit = (e: React.FormEvent) => { + const handleImportSubmit = (e: React.FormEvent) => { e.preventDefault(); post(store().url); }; + const handleManualSubmit = (e: React.FormEvent) => { + e.preventDefault(); + setData('theme_data', { + ...manualTheme, + cssVars: { + light: manualTheme.vars_light, + dark: manualTheme.vars_dark, + } + }); + }; + + // We need to watch data.theme_data to post it when it changes via handleManualSubmit + useEffect(() => { + if (data.theme_data) { + post(store().url); + } + }, [data.theme_data, post]); + + const handleAiGenerated = (aiData: any) => { + setManualTheme({ + title: aiData.title, + name: aiData.name, + description: aiData.description, + tags: aiData.tags, + vars_light: aiData.vars_light, + vars_dark: aiData.vars_dark, + font_family: aiData.font_family || 'Inter', + }); + setActiveTab('manual'); + }; + + const handleVariableChange = (mode: 'light' | 'dark', key: string, value: string) => { + setManualTheme(prev => ({ + ...prev, + vars_light: mode === 'light' ? { ...prev.vars_light, [key]: value } : prev.vars_light, + vars_dark: mode === 'dark' ? { ...prev.vars_dark, [key]: value } : prev.vars_dark, + })); + }; + + // Mock Registry object for preview + const previewTheme = { + ...manualTheme, + cssVars: { + light: manualTheme.vars_light, + dark: manualTheme.vars_dark, + theme: {} + } + } as any; + return ( -
+
- - - - Import from URL - - Enter a valid shadcn registry JSON URL (e.g. - from tweakcn.com). - - - -
- - - setData('url', e.target.value) - } - required - autoFocus + + + + + Import URL + + + + AI + + + + Manual + + + + + + + + Import from URL + + Enter a valid shadcn registry JSON URL (e.g. + from tweakcn.com). + + + +
+ + + setData('url', e.target.value) + } + required + autoFocus + /> + {errors.url && ( +

+ {errors.url} +

+ )} +
+
+ + + + +
+
+ + +
+ +
+
+ + +
+
+ + + Theme Information + Basic details about your theme. + + +
+
+ + setManualTheme(p => ({ ...p, title: e.target.value }))} + /> +
+
+ + setManualTheme(p => ({ ...p, name: e.target.value }))} + /> +
+
+
+ + setManualTheme(p => ({ ...p, description: e.target.value }))} + /> +
+
+
+ + - {errors.url && ( -

- {errors.url} -

- )} + +
+ +
+
+ +
+
+

Preview

+ + +
+

Your theme will be saved to your account. You can further refine it or publish it for others to use.

+
+
- - - - - - - -
+
+ + + +

- Example URLs: + Tips:

    -
  • https://tweakcn.com/r/themes/neo-brutalism.json
  • -
  • https://tweakcn.com/r/themes/modern-dark.json
  • +
  • Importing from URL is the fastest way to bring in existing themes.
  • +
  • Use AI to quickly explore different color palettes and moods.
  • +
  • Manual mode gives you full control over every single color variable.
diff --git a/resources/js/pages/themes/show.tsx b/resources/js/pages/themes/show.tsx index a478e21..2a1e672 100644 --- a/resources/js/pages/themes/show.tsx +++ b/resources/js/pages/themes/show.tsx @@ -1,6 +1,6 @@ -import { Head } from '@inertiajs/react'; +import { Head, Link } from '@inertiajs/react'; import { wcagContrast } from 'culori'; -import { Clipboard, Heart } from 'lucide-react'; +import { Clipboard, Heart, GitFork } from 'lucide-react'; import { useMemo } from 'react'; import { toast } from 'sonner'; @@ -29,6 +29,7 @@ import MainEditorBlock from '@/layouts/main/theme/main-editor-block'; /* eslint-disable @typescript-eslint/no-unused-vars */ import MainLayout from '@/layouts/main-layout'; import ThemeLayout from '@/layouts/theme-layout'; +import { create } from '@/routes/themes'; import type { Registry } from '@/types/registry'; interface ThemesShowProps { @@ -282,6 +283,12 @@ function ThemesShow({ theme }: ThemesShowProps) {
+ + +