hyper-admin 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hyper_admin-1.0.0.dist-info/METADATA +366 -0
- hyper_admin-1.0.0.dist-info/RECORD +442 -0
- hyper_admin-1.0.0.dist-info/WHEEL +4 -0
- hyper_admin-1.0.0.dist-info/entry_points.txt +2 -0
- hyper_admin-1.0.0.dist-info/licenses/LICENSE +21 -0
- hyperadmin/__init__.py +52 -0
- hyperadmin/__main__.py +21 -0
- hyperadmin/adapters/__init__.py +28 -0
- hyperadmin/adapters/_estimate.py +33 -0
- hyperadmin/adapters/_filter_clause.py +9 -0
- hyperadmin/adapters/_occ.py +44 -0
- hyperadmin/adapters/_relation_loading.py +23 -0
- hyperadmin/adapters/_search.py +84 -0
- hyperadmin/adapters/filtering.py +86 -0
- hyperadmin/adapters/introspection.py +239 -0
- hyperadmin/adapters/registry.py +37 -0
- hyperadmin/adapters/schema.py +239 -0
- hyperadmin/adapters/sqlalchemy.py +423 -0
- hyperadmin/adapters/sqlmodel.py +650 -0
- hyperadmin/auth/__init__.py +156 -0
- hyperadmin/auth/_types.py +52 -0
- hyperadmin/auth/backend.py +37 -0
- hyperadmin/auth/bridge.py +351 -0
- hyperadmin/auth/exceptions.py +124 -0
- hyperadmin/auth/middleware.py +287 -0
- hyperadmin/auth/models.py +245 -0
- hyperadmin/auth/oauth/__init__.py +81 -0
- hyperadmin/auth/oauth/backend.py +611 -0
- hyperadmin/auth/oauth/providers.py +214 -0
- hyperadmin/auth/oauth/refresh.py +126 -0
- hyperadmin/auth/oauth/session.py +96 -0
- hyperadmin/auth/oauth/tokens.py +114 -0
- hyperadmin/auth/oauth/views.py +306 -0
- hyperadmin/auth/oauth/wiring.py +131 -0
- hyperadmin/auth/otp.py +189 -0
- hyperadmin/auth/permissions.py +232 -0
- hyperadmin/auth/session.py +81 -0
- hyperadmin/auth/session_middleware.py +164 -0
- hyperadmin/auth/token_handoff.py +452 -0
- hyperadmin/auth/user_cache.py +222 -0
- hyperadmin/auth/views.py +581 -0
- hyperadmin/core/__init__.py +76 -0
- hyperadmin/core/actions.py +151 -0
- hyperadmin/core/adapters.py +883 -0
- hyperadmin/core/app.py +1437 -0
- hyperadmin/core/auth.py +97 -0
- hyperadmin/core/bulk_results.py +28 -0
- hyperadmin/core/cache.py +68 -0
- hyperadmin/core/choices.py +38 -0
- hyperadmin/core/concurrency.py +107 -0
- hyperadmin/core/csrf.py +108 -0
- hyperadmin/core/discovery.py +161 -0
- hyperadmin/core/display.py +172 -0
- hyperadmin/core/fields.py +158 -0
- hyperadmin/core/fieldsets.py +22 -0
- hyperadmin/core/filtering.py +403 -0
- hyperadmin/core/filters_compat.py +78 -0
- hyperadmin/core/inlines.py +64 -0
- hyperadmin/core/introspection.py +280 -0
- hyperadmin/core/layouts.py +17 -0
- hyperadmin/core/lifecycle.py +278 -0
- hyperadmin/core/model.py +189 -0
- hyperadmin/core/navigation.py +354 -0
- hyperadmin/core/options.py +391 -0
- hyperadmin/core/palette.py +94 -0
- hyperadmin/core/panels.py +227 -0
- hyperadmin/core/plugin_wiring.py +205 -0
- hyperadmin/core/plugins.py +588 -0
- hyperadmin/core/primary_key.py +118 -0
- hyperadmin/core/rate_limit.py +90 -0
- hyperadmin/core/registry.py +129 -0
- hyperadmin/core/relation_loading.py +25 -0
- hyperadmin/core/schema.py +83 -0
- hyperadmin/core/sensitive.py +134 -0
- hyperadmin/core/settings.py +377 -0
- hyperadmin/core/storage_paths.py +54 -0
- hyperadmin/core/timezones.py +137 -0
- hyperadmin/core/uploads.py +16 -0
- hyperadmin/db.py +160 -0
- hyperadmin/discover.py +54 -0
- hyperadmin/filters/__init__.py +39 -0
- hyperadmin/filters/base.py +246 -0
- hyperadmin/filters/boolean.py +105 -0
- hyperadmin/filters/choice.py +74 -0
- hyperadmin/filters/date.py +265 -0
- hyperadmin/filters/relation.py +69 -0
- hyperadmin/filters/saved_views.py +203 -0
- hyperadmin/i18n/__init__.py +50 -0
- hyperadmin/i18n/loader.py +150 -0
- hyperadmin/i18n/middleware.py +159 -0
- hyperadmin/i18n/validation_messages.py +264 -0
- hyperadmin/loadtest/__init__.py +28 -0
- hyperadmin/loadtest/batch.py +263 -0
- hyperadmin/loadtest/checkpoint.py +168 -0
- hyperadmin/loadtest/generators/__init__.py +29 -0
- hyperadmin/loadtest/generators/auth.py +86 -0
- hyperadmin/loadtest/generators/erp.py +177 -0
- hyperadmin/loadtest/plan.py +189 -0
- hyperadmin/loadtest/pool.py +113 -0
- hyperadmin/loadtest/progress.py +150 -0
- hyperadmin/locale/ar/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ar/LC_MESSAGES/messages.po +2139 -0
- hyperadmin/locale/de/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/de/LC_MESSAGES/messages.po +2114 -0
- hyperadmin/locale/en/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/en/LC_MESSAGES/messages.po +1780 -0
- hyperadmin/locale/es/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/es/LC_MESSAGES/messages.po +2094 -0
- hyperadmin/locale/fr/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/fr/LC_MESSAGES/messages.po +2100 -0
- hyperadmin/locale/he/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/he/LC_MESSAGES/messages.po +2076 -0
- hyperadmin/locale/hi/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/hi/LC_MESSAGES/messages.po +2084 -0
- hyperadmin/locale/id/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/id/LC_MESSAGES/messages.po +2071 -0
- hyperadmin/locale/it/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/it/LC_MESSAGES/messages.po +2098 -0
- hyperadmin/locale/ja/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ja/LC_MESSAGES/messages.po +2049 -0
- hyperadmin/locale/ko/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ko/LC_MESSAGES/messages.po +2049 -0
- hyperadmin/locale/nl/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/nl/LC_MESSAGES/messages.po +2100 -0
- hyperadmin/locale/pl/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/pl/LC_MESSAGES/messages.po +2112 -0
- hyperadmin/locale/pt_BR/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/pt_BR/LC_MESSAGES/messages.po +2098 -0
- hyperadmin/locale/ru/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ru/LC_MESSAGES/messages.po +2112 -0
- hyperadmin/locale/th/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/th/LC_MESSAGES/messages.po +2065 -0
- hyperadmin/locale/tr/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/tr/LC_MESSAGES/messages.po +2084 -0
- hyperadmin/locale/uk/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/uk/LC_MESSAGES/messages.po +1889 -0
- hyperadmin/locale/vi/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/vi/LC_MESSAGES/messages.po +2063 -0
- hyperadmin/locale/zh_CN/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/zh_CN/LC_MESSAGES/messages.po +2049 -0
- hyperadmin/main.py +3 -0
- hyperadmin/management/__init__.py +0 -0
- hyperadmin/management/commands/__init__.py +0 -0
- hyperadmin/management/commands/createsuperuser.py +114 -0
- hyperadmin/management/commands/initdb.py +76 -0
- hyperadmin/management/commands/plugins.py +31 -0
- hyperadmin/management/commands/seed.py +125 -0
- hyperadmin/navigation/__init__.py +9 -0
- hyperadmin/navigation/pins.py +153 -0
- hyperadmin/panels/__init__.py +10 -0
- hyperadmin/panels/pdf.py +151 -0
- hyperadmin/permissions/__init__.py +59 -0
- hyperadmin/permissions/audit.py +109 -0
- hyperadmin/permissions/matrix.py +343 -0
- hyperadmin/permissions/object_rules.py +143 -0
- hyperadmin/realtime/__init__.py +51 -0
- hyperadmin/realtime/_debug.py +77 -0
- hyperadmin/realtime/config.py +124 -0
- hyperadmin/realtime/emitting.py +143 -0
- hyperadmin/realtime/events.py +107 -0
- hyperadmin/realtime/presence.py +193 -0
- hyperadmin/realtime/presence_redis.py +142 -0
- hyperadmin/realtime/pubsub.py +129 -0
- hyperadmin/realtime/pubsub_redis.py +159 -0
- hyperadmin/realtime/registry.py +102 -0
- hyperadmin/realtime/sse.py +82 -0
- hyperadmin/realtime/ws.py +477 -0
- hyperadmin/routing.py +680 -0
- hyperadmin/static/css/_accessibility.css +149 -0
- hyperadmin/static/css/_alerts.css +147 -0
- hyperadmin/static/css/_autocomplete.css +39 -0
- hyperadmin/static/css/_banner.css +118 -0
- hyperadmin/static/css/_buttons.css +241 -0
- hyperadmin/static/css/_card.css +86 -0
- hyperadmin/static/css/_dark-mode.css +232 -0
- hyperadmin/static/css/_fieldsets.css +71 -0
- hyperadmin/static/css/_filter.css +203 -0
- hyperadmin/static/css/_fonts.css +25 -0
- hyperadmin/static/css/_forms.css +862 -0
- hyperadmin/static/css/_inline-cell.css +222 -0
- hyperadmin/static/css/_inlines.css +160 -0
- hyperadmin/static/css/_layout.css +62 -0
- hyperadmin/static/css/_login.css +112 -0
- hyperadmin/static/css/_menu.css +156 -0
- hyperadmin/static/css/_navbar.css +299 -0
- hyperadmin/static/css/_page-header.css +139 -0
- hyperadmin/static/css/_pagination.css +125 -0
- hyperadmin/static/css/_palette.css +304 -0
- hyperadmin/static/css/_panels.css +174 -0
- hyperadmin/static/css/_permissions.css +547 -0
- hyperadmin/static/css/_pill.css +123 -0
- hyperadmin/static/css/_popover.css +170 -0
- hyperadmin/static/css/_popup.css +65 -0
- hyperadmin/static/css/_progress.css +161 -0
- hyperadmin/static/css/_realtime.css +78 -0
- hyperadmin/static/css/_reset.css +48 -0
- hyperadmin/static/css/_responsive.css +51 -0
- hyperadmin/static/css/_rtl.css +23 -0
- hyperadmin/static/css/_search.css +67 -0
- hyperadmin/static/css/_seg.css +95 -0
- hyperadmin/static/css/_sidebar.css +446 -0
- hyperadmin/static/css/_sticky.css +54 -0
- hyperadmin/static/css/_table.css +776 -0
- hyperadmin/static/css/_theme-terminal-type.css +92 -0
- hyperadmin/static/css/_theme-terminal.css +330 -0
- hyperadmin/static/css/_theme-toggle.css +46 -0
- hyperadmin/static/css/_tokens.css +232 -0
- hyperadmin/static/css/_utilities.css +133 -0
- hyperadmin/static/css/hyperadmin.css +58 -0
- hyperadmin/static/fonts/Inter-OFL.txt +93 -0
- hyperadmin/static/fonts/InterVariable.woff2 +0 -0
- hyperadmin/static/fonts/JetBrainsMono-OFL.txt +93 -0
- hyperadmin/static/fonts/JetBrainsMonoVariable.woff2 +0 -0
- hyperadmin/static/icons/arrow-down.svg +1 -0
- hyperadmin/static/icons/arrow-up.svg +1 -0
- hyperadmin/static/icons/bar-chart-3.svg +1 -0
- hyperadmin/static/icons/bell.svg +1 -0
- hyperadmin/static/icons/bookmark.svg +1 -0
- hyperadmin/static/icons/briefcase.svg +1 -0
- hyperadmin/static/icons/building-2.svg +1 -0
- hyperadmin/static/icons/calendar.svg +1 -0
- hyperadmin/static/icons/check.svg +1 -0
- hyperadmin/static/icons/chevron-down.svg +1 -0
- hyperadmin/static/icons/chevron-left.svg +1 -0
- hyperadmin/static/icons/chevron-right.svg +1 -0
- hyperadmin/static/icons/circle-check.svg +1 -0
- hyperadmin/static/icons/circle-help.svg +1 -0
- hyperadmin/static/icons/circle-x.svg +1 -0
- hyperadmin/static/icons/clock.svg +1 -0
- hyperadmin/static/icons/columns-3.svg +1 -0
- hyperadmin/static/icons/command.svg +1 -0
- hyperadmin/static/icons/copy.svg +1 -0
- hyperadmin/static/icons/credit-card.svg +1 -0
- hyperadmin/static/icons/database.svg +1 -0
- hyperadmin/static/icons/download.svg +1 -0
- hyperadmin/static/icons/ellipsis.svg +1 -0
- hyperadmin/static/icons/external-link.svg +1 -0
- hyperadmin/static/icons/eye.svg +1 -0
- hyperadmin/static/icons/file-text.svg +1 -0
- hyperadmin/static/icons/filter.svg +1 -0
- hyperadmin/static/icons/folder.svg +1 -0
- hyperadmin/static/icons/globe.svg +1 -0
- hyperadmin/static/icons/history.svg +1 -0
- hyperadmin/static/icons/home.svg +1 -0
- hyperadmin/static/icons/image.svg +1 -0
- hyperadmin/static/icons/info.svg +1 -0
- hyperadmin/static/icons/key-round.svg +1 -0
- hyperadmin/static/icons/layers.svg +1 -0
- hyperadmin/static/icons/layout-grid.svg +1 -0
- hyperadmin/static/icons/list-checks.svg +1 -0
- hyperadmin/static/icons/lock.svg +1 -0
- hyperadmin/static/icons/log-out.svg +1 -0
- hyperadmin/static/icons/mail.svg +1 -0
- hyperadmin/static/icons/map-pin.svg +1 -0
- hyperadmin/static/icons/menu.svg +1 -0
- hyperadmin/static/icons/moon.svg +1 -0
- hyperadmin/static/icons/package.svg +1 -0
- hyperadmin/static/icons/panel-left-close.svg +1 -0
- hyperadmin/static/icons/panel-left-open.svg +1 -0
- hyperadmin/static/icons/pencil.svg +1 -0
- hyperadmin/static/icons/pin-off.svg +1 -0
- hyperadmin/static/icons/pin.svg +1 -0
- hyperadmin/static/icons/plus.svg +1 -0
- hyperadmin/static/icons/receipt.svg +1 -0
- hyperadmin/static/icons/refresh-cw.svg +1 -0
- hyperadmin/static/icons/rotate-ccw.svg +1 -0
- hyperadmin/static/icons/search.svg +1 -0
- hyperadmin/static/icons/settings.svg +1 -0
- hyperadmin/static/icons/shield-check.svg +1 -0
- hyperadmin/static/icons/shopping-cart.svg +1 -0
- hyperadmin/static/icons/sliders-horizontal.svg +1 -0
- hyperadmin/static/icons/sparkles.svg +1 -0
- hyperadmin/static/icons/store.svg +1 -0
- hyperadmin/static/icons/sun.svg +1 -0
- hyperadmin/static/icons/tag.svg +1 -0
- hyperadmin/static/icons/trash-2.svg +1 -0
- hyperadmin/static/icons/triangle-alert.svg +1 -0
- hyperadmin/static/icons/truck.svg +1 -0
- hyperadmin/static/icons/upload.svg +1 -0
- hyperadmin/static/icons/user.svg +1 -0
- hyperadmin/static/icons/users.svg +1 -0
- hyperadmin/static/icons/wallet.svg +1 -0
- hyperadmin/static/icons/x.svg +1 -0
- hyperadmin/static/img/hyperadmin-favicon.svg +1 -0
- hyperadmin/static/img/hyperadmin-mark-mono.svg +1 -0
- hyperadmin/static/img/hyperadmin-mark.svg +1 -0
- hyperadmin/static/img/hyperadmin-wordmark-dark.svg +1 -0
- hyperadmin/static/img/hyperadmin-wordmark.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-favicon-16.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-favicon.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-mark.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-wordmark-dark.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-wordmark.svg +1 -0
- hyperadmin/static/js/autocomplete.js +475 -0
- hyperadmin/static/js/confirm_delete.js +113 -0
- hyperadmin/static/js/error_summary.js +37 -0
- hyperadmin/static/js/form_guard.js +77 -0
- hyperadmin/static/js/inline_edit.js +97 -0
- hyperadmin/static/js/palette.js +292 -0
- hyperadmin/static/js/primitives.js +205 -0
- hyperadmin/static/js/realtime-status.js +515 -0
- hyperadmin/static/js/request_errors.js +85 -0
- hyperadmin/static/js/shortcuts.js +175 -0
- hyperadmin/static/js/sidebar.js +83 -0
- hyperadmin/static/js/vendor/LICENSE-alpinejs.txt +21 -0
- hyperadmin/static/js/vendor/LICENSE-htmx.txt +25 -0
- hyperadmin/static/js/vendor/alpinejs-3.17.4.min.js +21 -0
- hyperadmin/static/js/vendor/alpinejs-focus-3.17.4.min.js +18 -0
- hyperadmin/static/js/vendor/htmx-1.9.10.min.js +1 -0
- hyperadmin/templates/_base.html +161 -0
- hyperadmin/templates/_messages.html +11 -0
- hyperadmin/templates/_navbar.html +126 -0
- hyperadmin/templates/_sidebar.html +80 -0
- hyperadmin/templates/auth/mfa_challenge.html +75 -0
- hyperadmin/templates/auth/mfa_settings.html +110 -0
- hyperadmin/templates/auth/oauth_link_required.html +24 -0
- hyperadmin/templates/auth/oauth_settings.html +55 -0
- hyperadmin/templates/base.html +16 -0
- hyperadmin/templates/bulk_form.html +18 -0
- hyperadmin/templates/bulk_result.html +20 -0
- hyperadmin/templates/components/_icons.html +86 -0
- hyperadmin/templates/components/_macros.html +27 -0
- hyperadmin/templates/components/_nav.html +55 -0
- hyperadmin/templates/components/_row_access.html +26 -0
- hyperadmin/templates/components/banner.html +77 -0
- hyperadmin/templates/components/bulk_form.html +81 -0
- hyperadmin/templates/components/bulk_result.html +133 -0
- hyperadmin/templates/components/bulk_toolbar.html +63 -0
- hyperadmin/templates/components/command_palette.html +59 -0
- hyperadmin/templates/components/confirm_delete_dialog.html +26 -0
- hyperadmin/templates/components/conflict_dialog.html +42 -0
- hyperadmin/templates/components/csrf_reload_banner.html +20 -0
- hyperadmin/templates/components/error_summary.html +39 -0
- hyperadmin/templates/components/error_toast.html +18 -0
- hyperadmin/templates/components/fieldset.html +38 -0
- hyperadmin/templates/components/filter_bar.html +50 -0
- hyperadmin/templates/components/filter_sidebar.html +31 -0
- hyperadmin/templates/components/filters/boolean.html +10 -0
- hyperadmin/templates/components/filters/current_period.html +8 -0
- hyperadmin/templates/components/filters/date_range.html +26 -0
- hyperadmin/templates/components/filters/is_owner.html +8 -0
- hyperadmin/templates/components/filters/multi_choice.html +10 -0
- hyperadmin/templates/components/filters/multi_relation.html +20 -0
- hyperadmin/templates/components/filters/select.html +11 -0
- hyperadmin/templates/components/inline_cell.html +23 -0
- hyperadmin/templates/components/inline_cell_error.html +51 -0
- hyperadmin/templates/components/inline_cell_stale.html +20 -0
- hyperadmin/templates/components/inline_editor.html +85 -0
- hyperadmin/templates/components/inline_formset.html +34 -0
- hyperadmin/templates/components/inline_row.html +49 -0
- hyperadmin/templates/components/list_error.html +12 -0
- hyperadmin/templates/components/menu.html +74 -0
- hyperadmin/templates/components/nav_pinned.html +24 -0
- hyperadmin/templates/components/pagination.html +87 -0
- hyperadmin/templates/components/panel_document.html +19 -0
- hyperadmin/templates/components/panel_states.html +35 -0
- hyperadmin/templates/components/panel_tab_strip.html +31 -0
- hyperadmin/templates/components/pill.html +15 -0
- hyperadmin/templates/components/popover.html +59 -0
- hyperadmin/templates/components/presence_banner.html +28 -0
- hyperadmin/templates/components/progress.html +72 -0
- hyperadmin/templates/components/saved_views.html +61 -0
- hyperadmin/templates/components/search_input.html +19 -0
- hyperadmin/templates/components/seg.html +38 -0
- hyperadmin/templates/components/shortcuts_overlay.html +45 -0
- hyperadmin/templates/components/sortable_header.html +23 -0
- hyperadmin/templates/components/table.html +45 -0
- hyperadmin/templates/components/table_body.html +86 -0
- hyperadmin/templates/components/thumbnail.html +8 -0
- hyperadmin/templates/components/toast.html +36 -0
- hyperadmin/templates/components/tooltip.html +20 -0
- hyperadmin/templates/create.html +43 -0
- hyperadmin/templates/dashboard.html +8 -0
- hyperadmin/templates/detail.html +120 -0
- hyperadmin/templates/detail_layout.html +15 -0
- hyperadmin/templates/error.html +24 -0
- hyperadmin/templates/form_layout.html +26 -0
- hyperadmin/templates/list.html +5 -0
- hyperadmin/templates/list_layout.html +105 -0
- hyperadmin/templates/login.html +79 -0
- hyperadmin/templates/permissions/_banner.html +55 -0
- hyperadmin/templates/permissions/_diff_row.html +6 -0
- hyperadmin/templates/permissions/_group_gone.html +16 -0
- hyperadmin/templates/permissions/_macros.html +22 -0
- hyperadmin/templates/permissions/matrix.html +408 -0
- hyperadmin/templates/permissions/object_popover.html +95 -0
- hyperadmin/templates/update.html +69 -0
- hyperadmin/templates/widgets/autocomplete.html +100 -0
- hyperadmin/templates/widgets/checkbox_input.html +20 -0
- hyperadmin/templates/widgets/choices_options.html +3 -0
- hyperadmin/templates/widgets/date_input.html +13 -0
- hyperadmin/templates/widgets/datetime_input.html +18 -0
- hyperadmin/templates/widgets/encoded_textarea.html +4 -0
- hyperadmin/templates/widgets/file_input.html +15 -0
- hyperadmin/templates/widgets/float_input.html +12 -0
- hyperadmin/templates/widgets/image_input.html +108 -0
- hyperadmin/templates/widgets/multiselect_input.html +13 -0
- hyperadmin/templates/widgets/number_input.html +11 -0
- hyperadmin/templates/widgets/popup_form.html +64 -0
- hyperadmin/templates/widgets/relation_multiselect_input.html +36 -0
- hyperadmin/templates/widgets/relation_select_input.html +38 -0
- hyperadmin/templates/widgets/select_input.html +17 -0
- hyperadmin/templates/widgets/text_input.html +13 -0
- hyperadmin/templates/widgets/textarea.html +4 -0
- hyperadmin/uploads/__init__.py +44 -0
- hyperadmin/uploads/images.py +272 -0
- hyperadmin/uploads/storage.py +265 -0
- hyperadmin/uploads/validation.py +37 -0
- hyperadmin/views/__init__.py +3 -0
- hyperadmin/views/csrf.py +316 -0
- hyperadmin/views/dynamic/__init__.py +35 -0
- hyperadmin/views/dynamic/actions.py +264 -0
- hyperadmin/views/dynamic/base.py +576 -0
- hyperadmin/views/dynamic/concurrency.py +138 -0
- hyperadmin/views/dynamic/core.py +33 -0
- hyperadmin/views/dynamic/create.py +189 -0
- hyperadmin/views/dynamic/detail.py +231 -0
- hyperadmin/views/dynamic/files.py +233 -0
- hyperadmin/views/dynamic/form_data.py +162 -0
- hyperadmin/views/dynamic/helpers.py +151 -0
- hyperadmin/views/dynamic/inline.py +348 -0
- hyperadmin/views/dynamic/list_view.py +612 -0
- hyperadmin/views/dynamic/model_view.py +17 -0
- hyperadmin/views/dynamic/palette_search.py +78 -0
- hyperadmin/views/dynamic/relations.py +544 -0
- hyperadmin/views/dynamic/saved_views.py +159 -0
- hyperadmin/views/dynamic/update.py +313 -0
- hyperadmin/views/error_pages.py +46 -0
- hyperadmin/views/forms.py +1294 -0
- hyperadmin/views/htmx.py +53 -0
- hyperadmin/views/locale.py +113 -0
- hyperadmin/views/nav_pins.py +149 -0
- hyperadmin/views/navigation.py +143 -0
- hyperadmin/views/palette_context.py +91 -0
- hyperadmin/views/palette_search.py +103 -0
- hyperadmin/views/permissions_matrix.py +490 -0
- hyperadmin/views/rate_limit.py +87 -0
- hyperadmin/views/route.py +316 -0
- hyperadmin/views/static.py +138 -0
- hyperadmin/views/template_filters.py +305 -0
- hyperadmin/views/uploads.py +92 -0
- hyperadmin/views/urls.py +180 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* HyperAdmin keyboard shortcut registry: window.haShortcuts (st-v059-nav-04).
|
|
3
|
+
*
|
|
4
|
+
* haShortcuts.register({keys, description, handler, scope, single}) -> unregister()
|
|
5
|
+
* keys "mod+k", "mod+s", "shift+enter", "/", "j", "?". "mod" is Cmd on
|
|
6
|
+
* macOS and Ctrl elsewhere; modifiers in any order.
|
|
7
|
+
* description shown by the "?" overlay; scope groups it there ("global", "list").
|
|
8
|
+
* handler(event) runs on keydown; return false to pass the key on (no
|
|
9
|
+
* preventDefault, the next match is tried).
|
|
10
|
+
* single true for a single-key shortcut (WCAG 2.1.4): ignored while focus
|
|
11
|
+
* is in an input, textarea, select or contenteditable, while a
|
|
12
|
+
* modifier is held, and while localStorage "ha-shortcuts" is "off".
|
|
13
|
+
* Modifier shortcuts are always on.
|
|
14
|
+
* haShortcuts.list() registered entries, in registration order.
|
|
15
|
+
* haShortcuts.enabled() whether single-key shortcuts are on.
|
|
16
|
+
* haShortcuts.setEnabled(on) the off switch (stored in localStorage "ha-shortcuts").
|
|
17
|
+
* haShortcuts.isMac true when "mod" is Cmd.
|
|
18
|
+
* The last registered match wins. Loaded with defer, before palette.js and
|
|
19
|
+
* form_guard.js (mod+s). Also holds the "?" overlay and the list keys (kbd-02).
|
|
20
|
+
*/
|
|
21
|
+
(function () {
|
|
22
|
+
'use strict';
|
|
23
|
+
var STORE = 'ha-shortcuts';
|
|
24
|
+
var isMac = /Mac|iP(hone|ad|od)/.test(navigator.platform || navigator.userAgent);
|
|
25
|
+
var entries = [];
|
|
26
|
+
|
|
27
|
+
function combo(mod, alt, shift, key) {
|
|
28
|
+
// "?" or "/" depend on the layout's shift state, so shift only counts for letters and named keys.
|
|
29
|
+
if (key.length === 1 && !/[a-z]/.test(key)) shift = false;
|
|
30
|
+
return (mod ? 'mod+' : '') + (alt ? 'alt+' : '') + (shift ? 'shift+' : '') + key;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function parse(keys) {
|
|
34
|
+
var parts = keys.toLowerCase().split('+');
|
|
35
|
+
var key = parts.pop();
|
|
36
|
+
return combo(parts.indexOf('mod') > -1, parts.indexOf('alt') > -1, parts.indexOf('shift') > -1, key);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function enabled() {
|
|
40
|
+
try { return localStorage.getItem(STORE) !== 'off'; } catch (e) { return true; }
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function setEnabled(on) {
|
|
44
|
+
try { localStorage.setItem(STORE, on ? 'on' : 'off'); } catch (e) { /* private mode */ }
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function editable(el) {
|
|
48
|
+
return !!(el && el.closest && el.closest('input,textarea,select,[contenteditable]:not([contenteditable="false"])'));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function register(entry) {
|
|
52
|
+
var item = Object.assign({ scope: 'global', single: false }, entry, { combo: parse(entry.keys) });
|
|
53
|
+
entries.push(item);
|
|
54
|
+
return function () { entries.splice(entries.indexOf(item), 1); };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
document.addEventListener('keydown', function (event) {
|
|
58
|
+
if (event.defaultPrevented || event.isComposing || !event.key) return;
|
|
59
|
+
var mod = isMac ? event.metaKey : event.ctrlKey;
|
|
60
|
+
var pressed = combo(mod, event.altKey, event.shiftKey, event.key.toLowerCase());
|
|
61
|
+
var held = event.ctrlKey || event.metaKey || event.altKey;
|
|
62
|
+
for (var i = entries.length - 1; i >= 0; i--) {
|
|
63
|
+
var item = entries[i];
|
|
64
|
+
if (item.combo !== pressed) continue;
|
|
65
|
+
if (item.single && (held || editable(event.target) || !enabled())) continue;
|
|
66
|
+
if (item.handler(event) !== false) {
|
|
67
|
+
event.preventDefault();
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
window.haShortcuts = {
|
|
74
|
+
register: register,
|
|
75
|
+
list: function () { return entries.slice(); },
|
|
76
|
+
enabled: enabled,
|
|
77
|
+
setEnabled: setEnabled,
|
|
78
|
+
isMac: isMac
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// "?" (single key) and mod+/ (always on, the way back after turning single
|
|
82
|
+
// keys off) open components/shortcuts_overlay.html (st-v059-kbd-02). It lists
|
|
83
|
+
// every entry by scope and holds the off switch; focus returns on close.
|
|
84
|
+
var dlg = document.getElementById('ha-shortcuts');
|
|
85
|
+
if (dlg && dlg.showModal) {
|
|
86
|
+
var L = JSON.parse(dlg.dataset.labels);
|
|
87
|
+
var body = dlg.querySelector('[data-ha-shortcuts-list]');
|
|
88
|
+
var sw = dlg.querySelector('[role="switch"]');
|
|
89
|
+
var NAMES = isMac ? { mod: '\u2318', alt: '\u2325', shift: '\u21e7' } : { mod: 'Ctrl', alt: 'Alt', shift: 'Shift' };
|
|
90
|
+
var opener;
|
|
91
|
+
var add = function (tag, parent, text) {
|
|
92
|
+
var e = parent.appendChild(document.createElement(tag));
|
|
93
|
+
if (text) e.textContent = L[text] || text;
|
|
94
|
+
return e;
|
|
95
|
+
};
|
|
96
|
+
var overlay = function () {
|
|
97
|
+
if (dlg.open) return dlg.close();
|
|
98
|
+
if (document.querySelector('dialog[open]')) return false;
|
|
99
|
+
opener = document.activeElement;
|
|
100
|
+
body.textContent = '';
|
|
101
|
+
var lists = {};
|
|
102
|
+
entries.forEach(function (it) {
|
|
103
|
+
var dl = lists[it.scope];
|
|
104
|
+
if (!dl) {
|
|
105
|
+
var sec = add('section', body);
|
|
106
|
+
add('h3', sec, it.scope);
|
|
107
|
+
dl = lists[it.scope] = add('dl', sec);
|
|
108
|
+
}
|
|
109
|
+
// Alternatives for one action share a row: "? or Cmd /".
|
|
110
|
+
var same = dl.haDesc === it.description;
|
|
111
|
+
var dt = same ? dl.lastChild.previousSibling : add('dt', dl);
|
|
112
|
+
if (same) add('span', dt, 'or');
|
|
113
|
+
it.keys.split('+').forEach(function (k, i, all) {
|
|
114
|
+
add('kbd', dt, NAMES[k] || (all[1] ? k.toUpperCase() : k)).className = 'ha-kbd';
|
|
115
|
+
});
|
|
116
|
+
if (!same) add('dd', dl, it.description);
|
|
117
|
+
dl.haDesc = it.description;
|
|
118
|
+
});
|
|
119
|
+
sw.checked = enabled();
|
|
120
|
+
dlg.showModal();
|
|
121
|
+
};
|
|
122
|
+
sw.addEventListener('change', function () { setEnabled(sw.checked); });
|
|
123
|
+
dlg.addEventListener('click', function (e) { if (e.target === dlg) dlg.close(); });
|
|
124
|
+
dlg.addEventListener('close', function () { if (opener && opener.focus) opener.focus(); });
|
|
125
|
+
register({ keys: '?', single: true, description: 'Show keyboard shortcuts', handler: overlay });
|
|
126
|
+
register({ keys: 'mod+/', description: 'Show keyboard shortcuts', handler: overlay });
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// "/" focuses the list search (moved from the inline handler in _base.html).
|
|
130
|
+
register({
|
|
131
|
+
keys: '/',
|
|
132
|
+
single: true,
|
|
133
|
+
scope: 'list',
|
|
134
|
+
description: 'Focus search',
|
|
135
|
+
handler: function () {
|
|
136
|
+
var search = document.querySelector('[name="search"]');
|
|
137
|
+
if (!search) return false;
|
|
138
|
+
search.focus();
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
// List pages: j/k move between row links (rows without one are skipped), Enter
|
|
143
|
+
// opens the focused one natively, x toggles its bulk checkbox, c creates.
|
|
144
|
+
if (document.getElementById('list-container')) {
|
|
145
|
+
var LINK = '[data-testid="row-link"]';
|
|
146
|
+
var row = function () {
|
|
147
|
+
var a = document.activeElement;
|
|
148
|
+
return a && a.closest && a.closest('[data-testid="list-row"]');
|
|
149
|
+
};
|
|
150
|
+
// find() returns the element to act on, or nothing to pass the key on. A
|
|
151
|
+
// modal <dialog> (delete confirmation, palette, overlay) keeps the keys.
|
|
152
|
+
var listKey = function (keys, description, find, act) {
|
|
153
|
+
register({ keys: keys, single: true, scope: 'list', description: description, handler: function () {
|
|
154
|
+
var t = !document.querySelector('dialog[open]') && find();
|
|
155
|
+
if (!t) return false;
|
|
156
|
+
t[act || 'click']();
|
|
157
|
+
} });
|
|
158
|
+
};
|
|
159
|
+
var step = function (d) {
|
|
160
|
+
return function () {
|
|
161
|
+
var links = [].slice.call(document.querySelectorAll(LINK));
|
|
162
|
+
var r = row();
|
|
163
|
+
var i = r ? links.indexOf(r.querySelector(LINK)) : -1;
|
|
164
|
+
return links[i < 0 ? (d > 0 ? 0 : links.length - 1) : Math.max(0, Math.min(links.length - 1, i + d))];
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
listKey('j', 'Next row', step(1), 'focus');
|
|
168
|
+
listKey('k', 'Previous row', step(-1), 'focus');
|
|
169
|
+
listKey('x', 'Select row', function () {
|
|
170
|
+
var r = row();
|
|
171
|
+
return r && r.querySelector('input[name="ids"][data-testid="bulk-checkbox"]');
|
|
172
|
+
});
|
|
173
|
+
listKey('c', 'Create new', function () { return document.querySelector('[data-testid="create-link"]'); });
|
|
174
|
+
}
|
|
175
|
+
})();
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* HyperAdmin sidebar — collapsible nav groups and the desktop icon rail
|
|
3
|
+
* (templates/_sidebar.html, docs/specs/navigation-and-list-ux.md "UI details").
|
|
4
|
+
*
|
|
5
|
+
* The server renders both states from cookies, so this only flips the markup
|
|
6
|
+
* and writes the cookies back:
|
|
7
|
+
*
|
|
8
|
+
* - ha-nav-collapsed: comma-separated slugs of the collapsed groups;
|
|
9
|
+
* - ha-sidebar-rail: "1" while the sidebar is an icon rail, else "0".
|
|
10
|
+
*
|
|
11
|
+
* Both are SameSite=Lax and scoped to the admin path. Delegated on document,
|
|
12
|
+
* so it works however late the script loads; without it the sidebar keeps
|
|
13
|
+
* the state the server rendered.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
(function () {
|
|
17
|
+
"use strict";
|
|
18
|
+
|
|
19
|
+
if (window.hyperadminSidebar) return;
|
|
20
|
+
window.hyperadminSidebar = true;
|
|
21
|
+
|
|
22
|
+
var ONE_YEAR = 31536000;
|
|
23
|
+
|
|
24
|
+
function setCookie(source, name, value) {
|
|
25
|
+
var holder = source.closest("[data-ha-cookie-path]");
|
|
26
|
+
var path = (holder && holder.getAttribute("data-ha-cookie-path")) || "/";
|
|
27
|
+
try {
|
|
28
|
+
document.cookie =
|
|
29
|
+
name + "=" + encodeURIComponent(value) +
|
|
30
|
+
"; Path=" + path + "; Max-Age=" + ONE_YEAR + "; SameSite=Lax";
|
|
31
|
+
} catch (e) {
|
|
32
|
+
// Cookies blocked: the state lasts until the next page load.
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function toggleGroup(button) {
|
|
37
|
+
var group = button.closest(".ha-nav-group");
|
|
38
|
+
var collapse = button.getAttribute("aria-expanded") !== "false";
|
|
39
|
+
button.setAttribute("aria-expanded", collapse ? "false" : "true");
|
|
40
|
+
if (group) group.classList.toggle("ha-nav-group--collapsed", collapse);
|
|
41
|
+
var scope = button.closest("nav") || document;
|
|
42
|
+
var slugs = [];
|
|
43
|
+
scope.querySelectorAll('[data-ha-nav-group][aria-expanded="false"]').forEach(function (el) {
|
|
44
|
+
slugs.push(el.getAttribute("data-ha-nav-group"));
|
|
45
|
+
});
|
|
46
|
+
setCookie(button, "ha-nav-collapsed", slugs.join(","));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function toggleRail(button) {
|
|
50
|
+
var shell = button.closest("[data-collapsed]");
|
|
51
|
+
if (!shell) return;
|
|
52
|
+
var rail = shell.getAttribute("data-collapsed") !== "true";
|
|
53
|
+
shell.setAttribute("data-collapsed", rail ? "true" : "false");
|
|
54
|
+
button.setAttribute("aria-pressed", rail ? "true" : "false");
|
|
55
|
+
setCookie(button, "ha-sidebar-rail", rail ? "1" : "0");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
document.addEventListener("click", function (event) {
|
|
59
|
+
var target = event.target;
|
|
60
|
+
if (!target || !target.closest) return;
|
|
61
|
+
var rail = target.closest("[data-ha-rail-toggle]");
|
|
62
|
+
if (rail) {
|
|
63
|
+
toggleRail(rail);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
var group = target.closest("[data-ha-nav-group]");
|
|
67
|
+
if (group) toggleGroup(group);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// A pin toggle is replaced (out of band) by the pin endpoint's response;
|
|
71
|
+
// give the focus back to its replacement so keyboard users stay in place.
|
|
72
|
+
var pendingPin = null;
|
|
73
|
+
document.addEventListener("htmx:beforeRequest", function (event) {
|
|
74
|
+
var elt = event.detail && event.detail.elt;
|
|
75
|
+
pendingPin = elt && elt.hasAttribute && elt.hasAttribute("data-ha-nav-pin") ? elt.id : null;
|
|
76
|
+
});
|
|
77
|
+
document.addEventListener("htmx:afterSettle", function () {
|
|
78
|
+
if (!pendingPin) return;
|
|
79
|
+
var replacement = document.getElementById(pendingPin);
|
|
80
|
+
pendingPin = null;
|
|
81
|
+
if (replacement && document.activeElement !== replacement) replacement.focus();
|
|
82
|
+
});
|
|
83
|
+
})();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright © 2019-2025 Caleb Porzio and contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
BSD 2-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020, Big Sky Software
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
17
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
18
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
19
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
20
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
21
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
22
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
23
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
24
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
25
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(()=>{var bt=!1,Et=!1,B=[],vt=-1,Fe=!1,wt=!1;function gr(e){ai(e)}function xr(){wt=!0}function yr(){wt=!1,br()}function ai(e){B.includes(e)||(B.push(e),e._x_schedulerPriority!==void 0&&(Fe=!0)),br()}function ue(e){let t=B.indexOf(e);t!==-1&&t>vt&&B.splice(t,1)}function br(){if(!Et&&!bt){if(wt)return;bt=!0,queueMicrotask(ci)}}function ci(){bt=!1,Et=!0;for(let e=0;e<B.length;e++)Fe&&li(e),B[e](),vt=e;B.length=0,vt=-1,Fe=!1,Et=!1}function li(e){let t=new Map,r=B.slice(e).sort((n,i)=>fi(n,i,t));for(let n=0;n<r.length;n++)B[e+n]=r[n];Fe=!1}function fi(e,t,r){return yt(e)?yt(t)?_r(e._x_schedulerPriority.el,r)-_r(t._x_schedulerPriority.el,r)||e._x_schedulerPriority.order-t._x_schedulerPriority.order:-1:yt(t)?1:0}function yt(e){return e._x_schedulerPriority!==void 0}function _r(e,t){if(t.has(e))return t.get(e);let r=0,n=e;for(;e;)r++,e._x_teleportBack?e=e._x_teleportBack:typeof ShadowRoot=="function"&&e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentElement;return t.set(n,r),r}var R,k,H,At,ui=0,St=!0;function Er(e){St=!1,e(),St=!0}function vr(e){R=e.reactive,H=e.release,k=t=>e.effect(t,{scheduler:r=>{St?gr(r):r()}}),At=e.raw}function Tt(e){k=e}function wr(e){let t=()=>{};return[(n,i)=>{let o=i?.priority==="structural"?ui++:void 0,s=k(n);return o!==void 0&&s!==void 0&&(s._x_schedulerPriority={el:e,order:o}),e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(a=>a())}),e._x_effects.add(s),t=()=>{s!==void 0&&(e._x_effects.delete(s),H(s))},s},()=>{t()}]}function Ve(e,t){let r=!0,n,i,o=k(()=>{let s=e(),a=JSON.stringify(s);if(!r&&(typeof s=="object"||s!==n)){let c=typeof n=="object"?JSON.parse(i):n;queueMicrotask(()=>{t(s,c)})}n=s,i=a,r=!1});return()=>{ue(o),H(o)}}async function Sr(e){xr();try{await e(),await Promise.resolve()}finally{yr()}}var Ar=[],Tr=[],Or=[];function Nr(e){Or.push(e)}function de(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Tr.push(t))}function Be(e){Ar.push(e)}function He(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}function Ot(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([r,n])=>{(t===void 0||t.includes(r))&&(n.forEach(i=>i()),delete e._x_attributeCleanups[r])})}function Cr(e){for(e._x_effects?.forEach(ue);e._x_cleanups?.length;)e._x_cleanups.pop()()}var Ue=new MutationObserver(qe),Nt=!1;function we(){Ue.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Nt=!0}function Ct(){di(),Ue.disconnect(),Nt=!1}var Z=[];function di(){let e=Ue.takeRecords();Z.push(()=>e.length>0&&qe(e));let t=Z.length;queueMicrotask(()=>{if(Z.length===t)for(;Z.length>0;)Z.shift()()})}function Rr(){for(;Z.length>0;)Z.shift()();let e=Ue.takeRecords();e.length>0&&qe(e)}function h(e){if(!Nt)return e();Ct();try{return e()}finally{we()}}var Rt=!1,$e=[];function Dr(){Rt=!0}function Mr(){Rt=!1,qe($e),$e=[]}function qe(e){if(Rt){$e=$e.concat(e);return}let t=[],r=new Set,n=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&(e[o].type==="childList"&&(e[o].removedNodes.forEach(s=>{s.nodeType===1&&s._x_marker&&r.add(s)}),e[o].addedNodes.forEach(s=>{if(s.nodeType===1){if(r.has(s)){r.delete(s);return}s._x_marker||t.push(s)}})),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,c=e[o].oldValue,l=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},f=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&c===null?l():s.hasAttribute(a)?(f(),l()):f()}i.forEach((o,s)=>{Ot(s,o)}),n.forEach((o,s)=>{Ar.forEach(a=>a(s,o))});for(let o of r)t.some(s=>s.contains(o))||Tr.forEach(s=>s(o));for(let o of t)o.isConnected&&Or.forEach(s=>s(o));t=null,r=null,n=null,i=null}function ze(e){return I(U(e))}function P(e,t,r){return e._x_dataStack=[t,...U(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(n=>n!==t)}}function U(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?U(e.host):e.parentNode?U(e.parentNode):[]}function I(e){return new Proxy({objects:e},pi)}function kr(e,t){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,t)?e:kr(Object.getPrototypeOf(e),t)}var pi={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(r=>Object.prototype.hasOwnProperty.call(r,t)||Reflect.has(r,t))},get({objects:e},t,r){return t=="toJSON"?hi:Reflect.get(e.find(n=>Reflect.has(n,t))||{},t,r)},set({objects:e},t,r,n){let i;for(let s of e)if(i=kr(s,t),i)break;i||(i=e[e.length-1]);let o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?o.set.call(n,r)||!0:Reflect.set(i,t,r)}};function hi(){return Reflect.ownKeys(this).reduce((t,r)=>(t[r]=Reflect.get(this,r),t),{})}function pe(e,t=()=>{}){let r=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,n=(i,o="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([s,{value:a,enumerable:c}])=>{if(c===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let l=o===""?s:`${o}.${s}`;typeof a=="object"&&a!==null&&a._x_interceptor?i[s]=a.initialize(e,l,s,t):r(a)&&a!==i&&!(a instanceof Element)&&n(a,l)})};return n(e)}function Ke(e,t=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o,s){return e(this.initialValue,()=>mi(n,i),a=>Dt(n,i,a),i,o,s)}};return t(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a,c)=>{let l=n.initialize(o,s,a,c);return r.initialValue=l,i(o,s,a,c)}}else r.initialValue=n;return r}}function mi(e,t){return t.split(".").reduce((r,n)=>r[n],e)}function Dt(e,t,r){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=r;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Dt(e[t[0]],t.slice(1),r)}}var Pr={};function b(e,t){Pr[e]=t}function G(e,t){let r=_i(t);return Object.entries(Pr).forEach(([n,i])=>{Object.defineProperty(e,`$${n}`,{get(){return i(t,r)},enumerable:!1})}),e}function _i(e){let[t,r]=Mt(e),n={interceptor:Ke,...t};return de(e,r),n}function Ir(e,t,r,...n){try{return r(...n)}catch(i){Y(i,e,t)}}function Y(...e){return Lr(...e)}var Lr=gi;function jr(e){Lr=e}function gi(e,t,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message}
|
|
2
|
+
|
|
3
|
+
${r?'Expression: "'+r+`"
|
|
4
|
+
|
|
5
|
+
`:""}`,t),setTimeout(()=>{throw e},0)}var he=!0;function We(e){let t=he;he=!1;let r=e();return he=t,r}function D(e,t,r={}){let n;return x(e,t)(i=>n=i,r),n}function x(...e){return Fr(...e)}var Fr=()=>{};function Vr(e){Fr=e}var $r;function Br(e){$r=e}function Hr(e,t){let r={};G(r,e);let n=[r,...U(e)],i=typeof t=="function"?xi(n,t):bi(n,t,e);return Ir.bind(null,e,t,i)}function xi(e,t){return(r=()=>{},{scope:n={},params:i=[],context:o}={})=>{if(!he){Se(r,t,I([n,...e]),i);return}let s=t.apply(I([n,...e]),i);Se(r,s)}}var kt={};function yi(e,t){if(kt[e])return kt[e];let r=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return Y(s,t,e),Promise.resolve()}})();return kt[e]=o,o}function bi(e,t,r){let n=yi(t,r);return(i=()=>{},{scope:o={},params:s=[],context:a}={})=>{n.result=void 0,n.finished=!1;let c=I([o,...e]);if(typeof n=="function"){let l=n.call(a,n,c).catch(f=>Y(f,r,t));n.finished?(Se(i,n.result,c,s,r),n.result=void 0):l.then(f=>{Se(i,f,c,s,r)}).catch(f=>Y(f,r,t)).finally(()=>n.result=void 0)}}}function Se(e,t,r,n,i){if(he&&typeof t=="function"){let o=t.apply(r,n);o instanceof Promise?o.then(s=>Se(e,s,r,n)).catch(s=>Y(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}function Ur(...e){return $r(...e)}function qr(e,t,r={}){let n={};G(n,e);let i=[n,...U(e)],o=I([r.scope??{},...i]),s=r.params??[];if(t.includes("await")){let a=Object.getPrototypeOf(async function(){}).constructor,c=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t;return new a(["scope"],`with (scope) { let __result = ${c}; return __result }`).call(r.context,o)}else{let a=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(()=>{ ${t} })()`:t,l=new Function(["scope"],`with (scope) { let __result = ${a}; return __result }`).call(r.context,o);return typeof l=="function"&&he?l.apply(o,s):l}}var Lt="x-";function N(e=""){return Lt+e}function zr(e){Lt=e}var Ge={};function p(e,t){return Ge[e]=t,{before(r){if(!Ge[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}let n=Q.indexOf(r);Q.splice(n>=0?n:Q.indexOf("DEFAULT"),0,e)}}}function Kr(e){return Object.keys(Ge).includes(e)}function ee(e,t,r){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),s=jt(o);o=o.map(a=>s.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(o)}let n={};return t.map(Yr((o,s)=>n[o]=s)).filter(Xr).map(vi(n,r)).sort(wi).map(o=>Ei(e,o))}function jt(e){return Array.from(e).map(Yr()).filter(t=>!Xr(t))}var Pt=!1,Ae=new Map,Wr=Symbol();function Gr(e){Pt=!0;let t=Symbol();Wr=t,Ae.set(t,[]);let r=()=>{for(;Ae.get(t).length;)Ae.get(t).shift()();Ae.delete(t)},n=()=>{Pt=!1,r()};e(r),n()}function Mt(e){let t=[],r=a=>t.push(a),[n,i]=wr(e);return t.push(i),[{Alpine:q,effect:n,cleanup:r,evaluateLater:x.bind(x,e),evaluate:D.bind(D,e)},()=>t.forEach(a=>a())]}function Ei(e,t){let r=()=>{},n=Ge[t.type]||r,[i,o]=Mt(e);He(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,i),n=n.bind(n,e,t,i),Pt?Ae.get(Wr).push(n):n())};return s.runCleanups=o,s}var Ye=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n}),Je=e=>e;function Yr(e=()=>{}){return({name:t,value:r})=>{let{name:n,value:i}=Jr.reduce((o,s)=>s(o),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var Jr=[];function me(e){Jr.push(e)}function Xr({name:e}){return Zr().test(e)}var Zr=()=>new RegExp(`^${Lt}([^:^.]+)\\b`);function vi(e,t){return({name:r,value:n})=>{r===n&&(n="");let i=r.match(Zr()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var It="DEFAULT",Q=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",It,"teleport"];function wi(e,t){let r=Q.indexOf(e.type)===-1?It:e.type,n=Q.indexOf(t.type)===-1?It:t.type;return Q.indexOf(r)-Q.indexOf(n)}function L(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>L(i,t));return}let r=!1;if(t(e,()=>r=!0),r)return;let n=e.firstElementChild;for(;n;)L(n,t,!1),n=n.nextElementSibling}var j=!1;function w(e,t=()=>{}){return(...r)=>j?t(...r):e(...r)}function Qr(e){return(...t)=>j&&e(...t)}var en=[];function F(e){en.push(e)}function tn(e,t){en.forEach(r=>r(e,t)),j=!0,nn(()=>{S(t,(r,n)=>{n(r,()=>{})})}),j=!1}var Xe=!1;function rn(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),j=!0,Xe=!0,nn(()=>{Si(t)}),j=!1,Xe=!1}function Si(e){let t=!1;S(e,(n,i)=>{L(n,(o,s)=>{if(t&&on(o))return s();t=!0,i(o,s)})})}function nn(e){let t=k;Tt((r,n)=>{let i=t(r);return H(i),()=>{}}),e(),Tt(t)}var Ze=0;function sn(e,t){let r=e._x_deferInit;r||(r=e._x_deferInit={pending:0,ownsIgnore:!e._x_ignore,queuedAttributes:new Map},r.ownsIgnore&&(e._x_ignore=!0),Ze++),r.pending++,Promise.resolve(t).catch(n=>{try{Y(n,e)}catch(i){setTimeout(()=>{throw i},0)}}).then(()=>Ai(e,r))}function Ai(e,t){t.pending--,!(t.pending>0)&&(Rr(),!(t.pending>0)&&e._x_deferInit===t&&(delete e._x_deferInit,t.ownsIgnore&&delete e._x_ignore,Ze--,e.isConnected&&(Ti(t),S(e))))}function an(e,t){if(Ze===0)return!1;let r=A(e,n=>n._x_deferInit);return r?(cn(r._x_deferInit,e,t.map(({name:n})=>n)),!0):!1}function cn(e,t,r){let n=e.queuedAttributes.get(t);(!n||n.marker!==t._x_marker)&&(n={marker:t._x_marker,names:new Set},e.queuedAttributes.set(t,n)),r.forEach(i=>n.names.add(i))}function Ti(e){e.queuedAttributes.forEach((t,r)=>{if(!r.isConnected||!r._x_marker||r._x_marker!==t.marker)return;let n=A(r,o=>o._x_deferInit);if(n){cn(n._x_deferInit,r,Array.from(t.names));return}let i=Array.from(t.names).filter(o=>r.hasAttribute(o)).map(o=>({name:o,value:r.getAttribute(o)}));i.length!==0&&ee(r,i).forEach(o=>o())})}F((e,t)=>{Ze!==0&&(!e||e.nodeType!==1||!t||t.nodeType!==1||A(e,r=>r._x_deferInit)&&(t._x_ignore=!0))});function te(e,t,r={},n={}){return e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0,...n}))}function T(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var ln=!1;function fn(){ln&&T("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),ln=!0,document.body||T("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),te(document,"alpine:init"),te(document,"alpine:initializing"),we(),Nr(t=>S(t,L)),de(t=>C(t)),Be((t,r)=>{an(t,r)||ee(t,r).forEach(n=>n())});let e=t=>!re(t.parentElement,!0);Array.from(document.querySelectorAll(pn().join(","))).filter(e).forEach(t=>{S(t)}),te(document,"alpine:initialized"),setTimeout(()=>{Ni()})}var Ft=[],un=[];function dn(){return Ft.map(e=>e())}function pn(){return Ft.concat(un).map(e=>e())}function Qe(e){Ft.push(e)}function et(e){un.push(e)}function re(e,t=!1){return A(e,r=>{if((t?pn():dn()).some(i=>r.matches(i)))return!0})}function A(e,t){if(e){if(t(e))return e;if(e._x_teleportBack)return A(e._x_teleportBack,t);if(e.parentNode instanceof ShadowRoot)return A(e.parentNode.host,t);if(e.parentElement)return A(e.parentElement,t)}}function on(e){return dn().some(t=>e.matches(t))}var hn=[];function mn(e){hn.push(e)}var Oi=1;function S(e,t=L,r=()=>{}){A(e,n=>n._x_ignore)||Gr(()=>{t(e,(n,i)=>{n._x_marker||(r(n,i),hn.forEach(o=>o(n,i)),ee(n,n.attributes).forEach(o=>o()),n._x_ignore||(n._x_marker=Oi++),n._x_ignore&&i())})})}function C(e,t=L){t(e,r=>{Cr(r),Ot(r),delete r._x_marker})}function Ni(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,r,n])=>{Kr(r)||n.some(i=>{if(document.querySelector(i))return T(`found "${i}", but missing ${t} plugin`),!0})})}var Vt=[],$t=!1;function _e(e=()=>{}){return queueMicrotask(()=>{$t||setTimeout(()=>{tt()})}),new Promise(t=>{Vt.push(()=>{e(),t()})})}function tt(){for($t=!1;Vt.length;)Vt.shift()()}function _n(){$t=!0}function Te(e,t){return Array.isArray(t)?gn(e,t.join(" ")):typeof t=="object"&&t!==null?Ci(e,t):typeof t=="function"?Te(e,t()):gn(e,t)}function Bt(e){return e.split(/\s/).filter(Boolean)}function gn(e,t){let r=i=>Bt(i).filter(o=>!e.classList.contains(o)).filter(Boolean),n=i=>(e.classList.add(...i),()=>{e.classList.remove(...i)});return t=t===!0?t="":t||"",n(r(t))}function Ci(e,t){let r=Object.entries(t).flatMap(([s,a])=>a?Bt(s):!1).filter(Boolean),n=Object.entries(t).flatMap(([s,a])=>a?!1:Bt(s)).filter(Boolean),i=[],o=[];return n.forEach(s=>{e.classList.contains(s)&&(e.classList.remove(s),o.push(s))}),r.forEach(s=>{e.classList.contains(s)||(e.classList.add(s),i.push(s))}),()=>{o.forEach(s=>e.classList.add(s)),i.forEach(s=>e.classList.remove(s))}}function ne(e,t){return typeof t=="object"&&t!==null?Ri(e,t):Di(e,t)}function Ri(e,t){let r={};return Object.entries(t).forEach(([n,i])=>{r[n]=e.style[n],n.startsWith("--")||(n=Mi(n)),e.style.setProperty(n,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{ne(e,r)}}function Di(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}function Mi(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Oe(e,t=()=>{}){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}p("transition",(e,{value:t,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n!==!1&&(!n||typeof n=="boolean"?Pi(e,r,t):ki(e,n,t))});function ki(e,t,r){xn(e,Te,""),{enter:i=>{e._x_transition.enter.during=i},"enter-start":i=>{e._x_transition.enter.start=i},"enter-end":i=>{e._x_transition.enter.end=i},leave:i=>{e._x_transition.leave.during=i},"leave-start":i=>{e._x_transition.leave.start=i},"leave-end":i=>{e._x_transition.leave.end=i}}[r](t)}function Pi(e,t,r){xn(e,ne);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),o=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter((v,fe)=>fe<t.indexOf("out"))),t.includes("out")&&!n&&(t=t.filter((v,fe)=>fe>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),c=s||t.includes("scale"),l=a?0:1,f=c?Ne(t,"scale",95)/100:1,u=Ne(t,"delay",0)/1e3,g=Ne(t,"origin","center"),y="opacity, transform",$=Ne(t,"duration",150)/1e3,d=Ne(t,"duration",75)/1e3,E="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:g,transitionDelay:`${u}s`,transitionProperty:y,transitionDuration:`${$}s`,transitionTimingFunction:E},e._x_transition.enter.start={opacity:l,transform:`scale(${f})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:g,transitionDelay:`${u}s`,transitionProperty:y,transitionDuration:`${d}s`,transitionTimingFunction:E},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${f})`})}function xn(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){rt(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){rt(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(r);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(r):o():e._x_transition?e._x_transition.in(r):o();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(n)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=yn(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):i(()=>{let a=c=>{let l=Promise.all([c._x_hidePromise,...(c._x_hideChildren||[]).map(a)]).then(([f])=>f?.());return delete c._x_hidePromise,delete c._x_hideChildren,l};a(e).catch(c=>{if(!c.isFromCancelledTransition)throw c})})})};function yn(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:yn(t)}function rt(e,t,{during:r,start:n,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){o(),s();return}let a,c,l;Ii(e,{start(){a=t(e,n)},during(){c=t(e,r)},before:o,end(){a(),l=t(e,i)},after:s,cleanup(){c(),l()}})}function Ii(e,t){let r,n,i,o=Oe(()=>{h(()=>{r=!0,n||t.before(),i||(t.end(),tt()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:Oe(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},h(()=>{t.start(),t.during()}),_n(),requestAnimationFrame(()=>{if(r)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),h(()=>{t.before()}),n=!0,requestAnimationFrame(()=>{r||(h(()=>{t.end()}),tt(),setTimeout(e._x_transitioning.finish,s+a),i=!0)})})}function Ne(e,t,r){if(e.indexOf(t)===-1)return r;let n=e[e.indexOf(t)+1];if(!n||t==="scale"&&isNaN(n))return r;if(t==="duration"||t==="delay"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}function Ce(e,t,r,n=[]){switch(e._x_bindings||(e._x_bindings=R({})),e._x_bindings[t]=r,t=n.includes("camel")?Ui(t):t,t){case"value":Li(e,r);break;case"style":Fi(e,r);break;case"class":ji(e,r);break;case"selected":case"checked":Vi(e,t,r);break;default:Ht(e,t,r);break}}function Li(e,t){if(nt(e))e.attributes.value===void 0&&(e.value=t);else if(De(e))Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(r=>qi(r,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Hi(e,t);else if(e.tagName==="OPTION")Ht(e,"value",t);else{if(e.value===t&&(typeof t!="object"||t===null))return;e.value=t===void 0?"":t}}function ji(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Te(e,t)}function Fi(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=ne(e,t)}function Vi(e,t,r){Ht(e,t,r),Bi(e,t,r)}function Ht(e,t,r){[null,void 0,!1].includes(r)&&Ki(t)?e.removeAttribute(t):(bn(t)&&(r=t),Wi(r)&&(r=JSON.stringify(r)),$i(e,t,r))}function $i(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}function Bi(e,t,r){e[t]!==r&&(e[t]=r)}function Hi(e,t){let r=[].concat(t).map(n=>n+"");Array.from(e.options).forEach(n=>{n.selected=r.includes(n.value)})}function Ui(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function qi(e,t){return e==t}function Re(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?Boolean(e):null}var zi=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function bn(e){return zi.has(e)}function Ki(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Wi(e){return typeof e=="object"&&e!==null}function En(e,t,r){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:wn(e,t,r)}function vn(e,t,r,n=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let i=e._x_inlineBindings[t];return i.extract=n,We(()=>D(e,i.expression))}return wn(e,t,r)}function wn(e,t,r){let n=e.getAttribute(t);return n===null?typeof r=="function"?r():r:n===""?!0:bn(t)?!![t,"true"].includes(n):n}function De(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function nt(e){return e.type==="radio"||e.localName==="ui-radio"}function it(e,t){let r;return function(){let n=this,i=arguments,o=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(o,t)}}function ot(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout(()=>r=!1,t))}}function st({get:e,set:t},{get:r,set:n}){let i=!0,o,s,a=k(()=>{let c=e(),l=r();if(i)n(Ut(c)),i=!1;else{let f=JSON.stringify(c),u=JSON.stringify(l);f!==o?n(Ut(c)):f!==u&&t(Ut(l))}o=JSON.stringify(e()),s=JSON.stringify(r())});return()=>{ue(a),H(a)}}function Ut(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function Sn(e){(Array.isArray(e)?e:[e]).forEach(r=>r(q))}var z={},An=!1;function Tn(e,t){if(An||(z=R(z),An=!0),t===void 0)return z[e];z[e]=t,typeof t=="object"&&t!==null&&t._x_interceptor?z[e]=t.initialize(z,e,e,()=>{}):pe(z[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&z[e].init()}function On(){return z}var Nn={};function Cn(e,t){let r=typeof t!="function"?()=>t:t;return e instanceof Element?qt(e,r()):(Nn[e]=r,()=>{})}function Rn(e){return Object.entries(Nn).forEach(([t,r])=>{Object.defineProperty(e,t,{get(){return(...n)=>r(...n)}})}),e}function qt(e,t,r){let n=[];for(;n.length;)n.pop()();let i=Object.entries(t).map(([s,a])=>({name:s,value:a})),o=jt(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),ee(e,i,r).map(s=>{n.push(s.runCleanups),s()}),()=>{for(;n.length;)n.pop()()}}var Dn={};function Mn(e,t){Dn[e]=t}function kn(e,t){return Object.entries(Dn).forEach(([r,n])=>{Object.defineProperty(e,r,{get(){return(...i)=>n.bind(t)(...i)},enumerable:!1})}),e}var Gi={get reactive(){return R},get release(){return H},get effect(){return k},get raw(){return At},get transaction(){return Sr},version:"3.17.4",flushAndStopDeferringMutations:Mr,dontAutoEvaluateFunctions:We,disableEffectScheduling:Er,startObservingMutations:we,stopObservingMutations:Ct,setReactivityEngine:vr,onAttributeRemoved:He,onAttributesAdded:Be,closestDataStack:U,skipDuringClone:w,onlyDuringClone:Qr,addRootSelector:Qe,addInitSelector:et,setErrorHandler:jr,interceptClone:F,addScopeToNode:P,deferMutations:Dr,mapAttributes:me,evaluateLater:x,interceptInit:mn,initInterceptors:pe,injectMagics:G,setEvaluator:Vr,setRawEvaluator:Br,mergeProxies:I,extractProp:vn,findClosest:A,onElRemoved:de,closestRoot:re,destroyTree:C,interceptor:Ke,transition:rt,setStyles:ne,mutateDom:h,deferInit:sn,directive:p,entangle:st,throttle:ot,debounce:it,evaluate:D,evaluateRaw:Ur,initTree:S,nextTick:_e,prefixed:N,prefix:zr,plugin:Sn,magic:b,store:Tn,start:fn,clone:rn,cloneNode:tn,bound:En,$data:ze,watch:Ve,walk:L,data:Mn,bind:Cn},q=Gi;function zt(e){let t=Object.create(null);for(let r of e.split(","))t[r]=1;return r=>r in t}var Yi=Object.freeze({}),Ca=Object.freeze([]);var ge=Object.assign;var Ji=Object.prototype.hasOwnProperty,at=(e,t)=>Ji.call(e,t),xe=Array.isArray,ye=e=>Pn(e)==="[object Map]";var Xi=e=>typeof e=="string",be=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object";var Zi=Object.prototype.toString,Pn=e=>Zi.call(e),Kt=e=>Pn(e).slice(8,-1);var ct=e=>Xi(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e;var lt=e=>{let t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Qi=/-\w/g,Ra=lt(e=>e.replace(Qi,t=>t.slice(1).toUpperCase())),eo=/\B([A-Z])/g,Da=lt(e=>e.replace(eo,"-$1").toLowerCase()),Wt=lt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ma=lt(e=>e?`on${Wt(e)}`:""),J=(e,t)=>!Object.is(e,t);var to="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var ka=zt(to+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function oe(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Gt;var m;var Yt=new WeakSet,dt=class{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Gt&&(Gt.active?Gt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Yt.has(this)&&(Yt.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ro(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,In(this),Vn(this);let t=m,r=M;m=this,M=!0;try{return this.fn()}finally{m!==this&&oe("Active effect was not restored correctly - this is likely a Vue internal bug."),$n(this),m=t,M=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)lr(t);this.deps=this.depsTail=void 0,In(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Yt.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zt(this)&&this.run()}get dirty(){return Zt(this)}},Fn=0,ke,Pe;function ro(e,t=!1){if(e.flags|=8,t){e.next=Pe,Pe=e;return}e.next=ke,ke=e}function ar(){Fn++}function cr(){if(--Fn>0)return;if(Pe){let t=Pe;for(Pe=void 0;t;){let r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;ke;){let t=ke;for(ke=void 0;t;){let r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Vn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $n(e){let t,r=e.depsTail,n=r;for(;n;){let i=n.prevDep;n.version===-1?(n===r&&(r=i),lr(n),io(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function Zt(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(no(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function no(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pt)||(e.globalVersion=pt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Zt(e))))return;e.flags|=2;let t=e.dep,r=m,n=M;m=e,M=!0;try{Vn(e);let i=e.fn(e._value);(t.version===0||J(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{m=r,M=n,$n(e),e.flags&=-3}}function lr(e,t=!1){let{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subsHead===e&&(r.subsHead=i),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let o=r.computed.deps;o;o=o.nextDep)lr(o,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function io(e){let{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function Bn(e,t){e.effect instanceof dt&&(e=e.effect.fn);let r=new dt(e);t&&ge(r,t);try{r.run()}catch(i){throw r.stop(),i}let n=r.run.bind(r);return n.effect=r,n}function Hn(e){e.effect.stop()}var M=!0,Un=[];function oo(){Un.push(M),M=!1}function so(){let e=Un.pop();M=e===void 0?!0:e}function In(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let r=m;m=void 0;try{t()}finally{m=r}}}var pt=0,Qt=class{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},er=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,this.subsHead=void 0}track(t){if(!m||!M||m===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==m)r=this.activeLink=new Qt(m,this),m.deps?(r.prevDep=m.depsTail,m.depsTail.nextDep=r,m.depsTail=r):m.deps=m.depsTail=r,qn(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){let n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=m.depsTail,r.nextDep=void 0,m.depsTail.nextDep=r,m.depsTail=r,m.deps===r&&(m.deps=n)}return m.onTrack&&m.onTrack(ge({effect:m},t)),r}trigger(t){this.version++,pt++,this.notify(t)}notify(t){ar();try{for(let r=this.subsHead;r;r=r.nextSub)r.sub.onTrigger&&!(r.sub.flags&8)&&r.sub.onTrigger(ge({effect:r.sub},t));for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{cr()}}};function qn(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)qn(n)}let r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}var tr=new WeakMap,ie=Symbol("Object iterate"),rr=Symbol("Map keys iterate"),Le=Symbol("Array iterate");function O(e,t,r){if(M&&m){let n=tr.get(e);n||tr.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new er),i.map=n,i.key=r),i.track({target:e,type:t,key:r})}}function X(e,t,r,n,i,o){let s=tr.get(e);if(!s){pt++;return}let a=c=>{c&&c.trigger({target:e,type:t,key:r,newValue:n,oldValue:i,oldTarget:o})};if(ar(),t==="clear")s.forEach(a);else{let c=xe(e),l=c&&ct(r);if(c&&r==="length"){let f=Number(n);s.forEach((u,g)=>{(g==="length"||g===Le||!be(g)&&g>=f)&&a(u)})}else switch((r!==void 0||s.has(void 0))&&a(s.get(r)),l&&a(s.get(Le)),t){case"add":c?l&&a(s.get("length")):(a(s.get(ie)),ye(e)&&a(s.get(rr)));break;case"delete":c||(a(s.get(ie)),ye(e)&&a(s.get(rr)));break;case"set":ye(e)&&a(s.get(ie));break}}cr()}function ve(e){let t=_(e);return t===e?t:(O(t,"iterate",Le),ae(e)?t:t.map(ce))}function fr(e){return O(e=_(e),"iterate",Le),e}function V(e,t){return se(e)?Jn(e)?je(ce(t)):je(t):ce(t)}var ao={__proto__:null,[Symbol.iterator](){return Jt(this,Symbol.iterator,e=>V(this,e))},concat(...e){return ve(this).concat(...e.map(t=>xe(t)?ve(t):t))},entries(){return Jt(this,"entries",e=>(e[1]=V(this,e[1]),e))},every(e,t){return K(this,"every",e,t,void 0,arguments)},filter(e,t){return K(this,"filter",e,t,r=>r.map(n=>V(this,n)),arguments)},find(e,t){return K(this,"find",e,t,r=>V(this,r),arguments)},findIndex(e,t){return K(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return K(this,"findLast",e,t,r=>V(this,r),arguments)},findLastIndex(e,t){return K(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return K(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xt(this,"includes",e)},indexOf(...e){return Xt(this,"indexOf",e)},join(e){return ve(this).join(e)},lastIndexOf(...e){return Xt(this,"lastIndexOf",e)},map(e,t){return K(this,"map",e,t,void 0,arguments)},pop(){return Me(this,"pop")},push(...e){return Me(this,"push",e)},reduce(e,...t){return Ln(this,"reduce",e,t)},reduceRight(e,...t){return Ln(this,"reduceRight",e,t)},shift(){return Me(this,"shift")},some(e,t){return K(this,"some",e,t,void 0,arguments)},splice(...e){return Me(this,"splice",e)},toReversed(){return ve(this).toReversed()},toSorted(e){return ve(this).toSorted(e)},toSpliced(...e){return ve(this).toSpliced(...e)},unshift(...e){return Me(this,"unshift",e)},values(){return Jt(this,"values",e=>V(this,e))}};function Jt(e,t,r){let n=fr(e),i=n[t]();return n!==e&&!ae(e)&&(i._next=i.next,i.next=()=>{let o=i._next();return o.done||(o.value=r(o.value)),o}),i}var co=Array.prototype;function K(e,t,r,n,i,o){let s=fr(e),a=s!==e&&!ae(e),c=s[t];if(c!==co[t]){let u=c.apply(e,o);return a?ce(u):u}let l=r;s!==e&&(a?l=function(u,g){return r.call(this,V(e,u),g,e)}:r.length>2&&(l=function(u,g){return r.call(this,u,g,e)}));let f=c.call(s,l,n);return a&&i?i(f):f}function Ln(e,t,r,n){let i=fr(e),o=i!==e&&!ae(e),s=r,a=!1;i!==e&&(o?(a=n.length===0,s=function(l,f,u){return a&&(a=!1,l=V(e,l)),r.call(this,l,V(e,f),u,e)}):r.length>3&&(s=function(l,f,u){return r.call(this,l,f,u,e)}));let c=i[t](s,...n);return a?V(e,c):c}function Xt(e,t,r){let n=_(e);O(n,"iterate",Le);let i=n[t](...r);return(i===-1||i===!1)&&Eo(r[0])?(r[0]=_(r[0]),n[t](...r)):i}function Me(e,t,r=[]){oo(),ar();let n=_(e)[t].apply(e,r);return cr(),so(),n}var lo=zt("__proto__,__v_isRef,__isVue"),zn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(be));function fo(e){be(e)||(e=String(e));let t=_(this);return O(t,"has",e),t.hasOwnProperty(e)}var ht=class{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;let i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?yo:Gn:o?xo:Wn).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;let s=xe(t);if(!i){let c;if(s&&(c=ao[r]))return c;if(r==="hasOwnProperty")return fo}let a=Reflect.get(t,r,Ie(t)?t:n);if((be(r)?zn.has(r):lo(r))||(i||O(t,"get",r),o))return a;if(Ie(a)){let c=s&&ct(r)?a:a.value;return i&&Ee(c)?sr(c):c}return Ee(a)?i?sr(a):mt(a):a}},nr=class extends ht{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r],s=xe(t)&&ct(r);if(!this._isShallow){let l=se(o);if(!ae(n)&&!se(n)&&(o=_(o),n=_(n)),!s&&Ie(o)&&!Ie(n))return l?(oe(`Set operation on key "${String(r)}" failed: target is readonly.`,t[r]),!0):(o.value=n,!0)}let a=s?Number(r)<t.length:at(t,r),c=Reflect.set(t,r,n,Ie(t)?t:i);return t===_(i)&&c&&(a?J(n,o)&&X(t,"set",r,n,o):X(t,"add",r,n)),c}deleteProperty(t,r){let n=at(t,r),i=t[r],o=Reflect.deleteProperty(t,r);return o&&n&&X(t,"delete",r,void 0,i),o}has(t,r){let n=Reflect.has(t,r);return(!be(r)||!zn.has(r))&&O(t,"has",r),n}ownKeys(t){return O(t,"iterate",xe(t)?"length":ie),Reflect.ownKeys(t)}},ir=class extends ht{constructor(t=!1){super(!0,t)}set(t,r){return oe(`Set operation on key "${String(r)}" failed: target is readonly.`,t),!0}deleteProperty(t,r){return oe(`Delete operation on key "${String(r)}" failed: target is readonly.`,t),!0}},uo=new nr,po=new ir;var or=e=>e,ft=e=>Reflect.getPrototypeOf(e);function ho(e,t,r){return function(...n){let i=this.__v_raw,o=_(i),s=ye(o),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=i[e](...n),f=r?or:t?je:ce;return!t&&O(o,"iterate",c?rr:ie),ge(Object.create(l),{next(){let{value:u,done:g}=l.next();return g?{value:u,done:g}:{value:a?[f(u[0]),f(u[1])]:f(u),done:g}}})}}function ut(e){return function(...t){{let r=t[0]?`on key "${t[0]}" `:"";oe(`${Wt(e)} operation ${r}failed: target is readonly.`,_(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function mo(e,t){let r={get(i){let o=this.__v_raw,s=_(o),a=_(i);e||(J(i,a)&&O(s,"get",i),O(s,"get",a));let{has:c}=ft(s),l=t?or:e?je:ce;if(c.call(s,i))return l(o.get(i));if(c.call(s,a))return l(o.get(a));o!==s&&o.get(i)},get size(){let i=this.__v_raw;return!e&&O(_(i),"iterate",ie),i.size},has(i){let o=this.__v_raw,s=_(o),a=_(i);return e||(J(i,a)&&O(s,"has",i),O(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){let s=this,a=s.__v_raw,c=_(a),l=t?or:e?je:ce;return!e&&O(c,"iterate",ie),a.forEach((f,u)=>i.call(o,l(f),l(u),s))}};return ge(r,e?{add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear")}:{add(i){let o=_(this),s=ft(o),a=_(i),c=!t&&!ae(i)&&!se(i)?a:i;return s.has.call(o,c)||J(i,c)&&s.has.call(o,i)||J(a,c)&&s.has.call(o,a)||(o.add(c),X(o,"add",c,c)),this},set(i,o){!t&&!ae(o)&&!se(o)&&(o=_(o));let s=_(this),{has:a,get:c}=ft(s),l=a.call(s,i);l?jn(s,a,i):(i=_(i),l=a.call(s,i));let f=c.call(s,i);return s.set(i,o),l?J(o,f)&&X(s,"set",i,o,f):X(s,"add",i,o),this},delete(i){let o=_(this),{has:s,get:a}=ft(o),c=s.call(o,i);c?jn(o,s,i):(i=_(i),c=s.call(o,i));let l=a?a.call(o,i):void 0,f=o.delete(i);return c&&X(o,"delete",i,void 0,l),f},clear(){let i=_(this),o=i.size!==0,s=ye(i)?new Map(i):new Set(i),a=i.clear();return o&&X(i,"clear",void 0,void 0,s),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=ho(i,e,t)}),r}function Kn(e,t){let r=mo(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(at(r,i)&&i in n?r:n,i,o)}var _o={get:Kn(!1,!1)};var go={get:Kn(!0,!1)};function jn(e,t,r){let n=_(r);if(n!==r&&t.call(e,n)){let i=Kt(e);oe(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Wn=new WeakMap,xo=new WeakMap,Gn=new WeakMap,yo=new WeakMap;function bo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mt(e){return se(e)?e:Yn(e,!1,uo,_o,Wn)}function sr(e){return Yn(e,!0,po,go,Gn)}function Yn(e,t,r,n,i){if(!Ee(e))return oe(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let o=i.get(e);if(o)return o;let s=bo(Kt(e));if(s===0)return e;let a=new Proxy(e,s===2?n:r);return i.set(e,a),a}function Jn(e){return se(e)?Jn(e.__v_raw):!!(e&&e.__v_isReactive)}function se(e){return!!(e&&e.__v_isReadonly)}function ae(e){return!!(e&&e.__v_isShallow)}function Eo(e){return e?!!e.__v_raw:!1}function _(e){let t=e&&e.__v_raw;return t?_(t):e}var ce=e=>Ee(e)?mt(e):e,je=e=>Ee(e)?sr(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}b("nextTick",()=>_e);b("dispatch",e=>te.bind(te,e));b("watch",(e,{evaluateLater:t,cleanup:r})=>(n,i)=>{let o=t(n),a=Ve(()=>{let c;return o(l=>c=l),c},i);r(a)});b("store",On);b("data",e=>ze(e));b("root",e=>re(e));b("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=I(vo(e))),e._x_refs_proxy));function vo(e){let t=[];return A(e,r=>{r._x_refs&&t.push(r._x_refs)}),t}var ur={};function dr(e){return ur[e]||(ur[e]=0),++ur[e]}function Xn(e,t){return A(e,r=>{if(r._x_ids&&r._x_ids[t])return!0})}function Zn(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=dr(t))}b("id",(e,{cleanup:t})=>(r,n=null)=>{let i=`${r}${n?`-${n}`:""}`;return wo(e,i,t,()=>{let o=Xn(e,r),s=o?o._x_ids[r]:dr(r);return n?`${r}-${s}-${n}`:`${r}-${s}`})});F((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function wo(e,t,r,n){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let i=n();return e._x_id[t]=i,r(()=>{delete e._x_id[t]}),i}b("el",e=>e);Qn("Focus","focus","focus");Qn("Persist","persist","persist");function Qn(e,t,r){b(t,n=>T(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}p("modelable",(e,{expression:t},{effect:r,evaluateLater:n,cleanup:i})=>{let o=n(t),s=()=>{let f;return o(u=>f=u),f},a=n(`${t} = __placeholder`),c=f=>a(()=>{},{scope:{__placeholder:f}}),l=s();c(l),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let f=e._x_model.get,u=e._x_model.setWithModifiers,g=st({get(){return f()},set(y){u(y)}},{get(){return s()},set(y){c(y)}});i(g)})});p("teleport",(e,{modifiers:t,expression:r},{cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&T("x-teleport can only be used on a <template> tag",e);let i=ei(r),o=e.content.cloneNode(!0).firstElementChild;e._x_teleport=o,o._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(a=>{o.addEventListener(a,c=>{c.stopPropagation(),e.dispatchEvent(new c.constructor(c.type,c))})}),P(o,{},e);let s=(a,c,l)=>{l.includes("prepend")?c.parentNode.insertBefore(a,c):l.includes("append")?c.parentNode.insertBefore(a,c.nextSibling):c.appendChild(a)};h(()=>{w(()=>{s(o,i,t),S(o)})()}),e._x_teleportPutBack=()=>{let a=ei(r);h(()=>{s(e._x_teleport,a,t)})},n(()=>h(()=>{o.remove(),C(o)}))});var So=document.createElement("div");function ei(e){let t=w(()=>document.querySelector(e),()=>So)();return t||T(`Cannot find x-teleport element for selector: "${e}"`),t}var ti=()=>{};ti.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};p("ignore",ti);p("effect",w((e,{expression:t},{effect:r})=>{r(x(e,t))}));function W(e,t,r,n){let i=e,o=c=>n(c),s={},a=(c,l)=>f=>l(c,f);return r.includes("dot")&&(t=Ao(t)),r.includes("camel")&&(t=To(t)),r.includes("capture")&&(s.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("passive")&&(s.passive=r[r.indexOf("passive")+1]!=="false"),o=pr(r,o),r.includes("prevent")&&(o=a(o,(c,l)=>{l.preventDefault(),c(l)})),r.includes("stop")&&(o=a(o,(c,l)=>{l.stopPropagation(),c(l)})),r.includes("once")&&(o=a(o,(c,l)=>{c(l),i.removeEventListener(t,o,s)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(c,l)=>{e.contains(l.target)||l.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&c(l))})),r.includes("self")&&(o=a(o,(c,l)=>{l.target===e&&c(l)})),t==="submit"&&(o=a(o,(c,l)=>{l.target._x_pendingModelUpdates&&l.target._x_pendingModelUpdates.forEach(f=>f()),c(l)})),(No(t)||ni(t))&&(o=a(o,(c,l)=>{Ro(l,r)||c(l)})),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function pr(e,t){if(e.includes("debounce")){let r=e[e.indexOf("debounce")+1]||"invalid-wait",n=_t(r.split("ms")[0])?Number(r.split("ms")[0]):250;t=it(t,n)}if(e.includes("throttle")){let r=e[e.indexOf("throttle")+1]||"invalid-wait",n=_t(r.split("ms")[0])?Number(r.split("ms")[0]):250;t=ot(t,n)}return t}function Ao(e){return e.replace(/-/g,".")}function To(e){return e.toLowerCase().replace(/-(\w)/g,(t,r)=>r.toUpperCase())}function _t(e){return!Array.isArray(e)&&!isNaN(e)}function Oo(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function No(e){return["keydown","keyup"].includes(e)}function ni(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}var Co=["window","document","prevent","stop","once","capture","self","away","outside","passive","dot","camel","preserve-scroll","blur","change","lazy","number","boolean","trim","fill","unintrusive","parent"];function Ro(e,t){let r=t.filter((o,s)=>o==="false"&&t[s-1]==="passive"?!1:!Co.includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,_t((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let o=r.indexOf("throttle");r.splice(o,_t((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&ri(e.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&(ni(e.type)||ri(e.key).includes(r[0])))}function ri(e){if(!e)return[];e=Oo(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(r=>{if(t[r]===e)return r}).filter(r=>r)}p("model",(e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let o=e;t.includes("parent")&&(o=A(e,d=>d!==e));let s=x(o,r),a;typeof r=="string"?a=x(o,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?a=x(o,`${r()} = __placeholder`):a=()=>{};let c=()=>{let d;return s(E=>d=E),ii(d)?d.get():d},l=d=>{let E;s(v=>E=v),ii(E)?E.set(d):a(()=>{},{scope:{__placeholder:d}})};typeof r=="string"&&e.type==="radio"&&h(()=>{e.hasAttribute("name")||e.setAttribute("name",r)});let f=t.includes("change")||t.includes("lazy"),u=t.includes("blur"),g=t.includes("enter"),y=f||u||g,$;if(j)$=()=>{};else if(y){let d=[],E=v=>l(gt(e,t,v,c()));if(f&&d.push(W(e,"change",t,E)),u&&(d.push(W(e,"blur",t,E)),e.form)){let v=e.form,fe=()=>E({target:e});v._x_pendingModelUpdates||(v._x_pendingModelUpdates=[]),v._x_pendingModelUpdates.push(fe),i(()=>{v._x_pendingModelUpdates&&v._x_pendingModelUpdates.splice(v._x_pendingModelUpdates.indexOf(fe),1)})}g&&d.push(W(e,"keydown",t,v=>{v.key==="Enter"&&E(v)})),$=()=>d.forEach(v=>v())}else{let d=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)?"change":"input";$=W(e,d,t,E=>{l(gt(e,t,E,c()))})}if(t.includes("fill")&&([void 0,null,""].includes(c())||De(e)&&Array.isArray(c())||e.tagName.toLowerCase()==="select"&&e.multiple)&&l(gt(e,t,{target:e},c())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=$,i(()=>e._x_removeModelListeners.default()),e.form){let d=W(e.form,"reset",[],E=>{_e(()=>e._x_model&&e._x_model.set(gt(e,t,{target:e},c())))});i(()=>d())}if(e._x_model={get(){return c()},set(d){l(d)},setWithModifiers:pr(t,l)},e._x_forceModelUpdate=d=>{d===void 0&&typeof r=="string"&&r.match(/\./)&&(d=""),h(()=>{De(e)?Array.isArray(d)?e.checked=d.some(E=>E==e.value):e.checked=!!d:nt(e)?typeof d=="boolean"?e.checked=Re(e.value)===d:e.checked=e.value==d:Ce(e,"value",d)})},e.tagName==="SELECT"){let d=new MutationObserver(()=>{e._x_forceModelUpdate(c())});d.observe(e,{childList:!0}),i(()=>d.disconnect())}n(()=>{let d=c();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(d)})});function gt(e,t,r,n){return h(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(De(e))if(Array.isArray(n)){let i=null;return t.includes("number")?i=hr(r.target.value):t.includes("boolean")?i=Re(r.target.value):i=r.target.value,r.target.checked?n.includes(i)?n:n.concat([i]):n.filter(o=>!Do(o,i))}else return r.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return hr(o)}):t.includes("boolean")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return Re(o)}):Array.from(r.target.selectedOptions).map(i=>i.value||i.text);{let i;return nt(e)?r.target.checked?i=r.target.value:i=n:i=r.target.value,t.includes("number")?hr(i):t.includes("boolean")?Re(i):t.includes("trim")?i.trim():i}}})}function hr(e){let t=e?parseFloat(e):null;return Mo(t)?t:e}function Do(e,t){return e==t}function Mo(e){return!Array.isArray(e)&&!isNaN(e)}function ii(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}p("cloak",e=>queueMicrotask(()=>h(()=>e.removeAttribute(N("cloak")))));et(()=>`[${N("init")}]`);p("init",w((e,{expression:t},{evaluate:r})=>typeof t=="string"?!!t.trim()&&r(t,{},!1):r(t,{},!1)));p("text",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{h(()=>{e.textContent=o})})})});p("html",(e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r(()=>{i(o=>{h(()=>{Array.from(e.children).forEach(s=>C(s)),e.innerHTML=o??"",e._x_ignoreSelf=!0,S(e),delete e._x_ignoreSelf})})},{priority:"structural"})});me(Ye(":",Je(N("bind:"))));var oi=(e,{value:t,modifiers:r,expression:n,original:i},{effect:o,cleanup:s})=>{if(!t){let c={};Rn(c),x(e,n)(f=>{qt(e,f,i)},{scope:c});return}if(t==="key")return ko(e,n);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let a=x(e,n);o(()=>a(c=>{c===void 0&&typeof n=="string"&&n.match(/\./)&&(c=""),h(()=>Ce(e,t,c,r))})),s(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};oi.inline=(e,{value:t,modifiers:r,expression:n})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:n,extract:!1})};p("bind",oi);function ko(e,t){e._x_keyExpression=t}Qe(()=>`[${N("data")}]`);var le=Symbol();p("data",(e,{expression:t},{cleanup:r})=>{if(Io(e))return;let n=e[le];if(n?.expression===t)return;t=t===""?"{}":t;let i={};G(i,e);let o={};kn(o,i);let s=D(e,t,{scope:o});(s===void 0||s===!0)&&(s={}),G(s,e);let a;if(n?.reactiveData){a=n.reactiveData,Po(a,s);let l={expression:t};e[le]=l,queueMicrotask(()=>{e[le]===l&&delete e[le]})}else a=R(s);pe(a,r);let c=P(e,a);w(()=>{a.init&&D(e,a.init)})(),r(()=>{a.destroy&&D(e,a.destroy),c();let l={reactiveData:a};e[le]=l,queueMicrotask(()=>{e[le]===l&&delete e[le]})})});function Po(e,t){Object.keys(t).forEach(r=>{let n=Object.getOwnPropertyDescriptor(t,r),i=Object.getOwnPropertyDescriptor(e,r);n.get||n.set||i?.get||i?.set?(i&&delete e[r],i||(e[r]=void 0),n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]):e[r]=t[r]}),Object.keys(e).filter(r=>!Object.prototype.hasOwnProperty.call(t,r)).forEach(r=>delete e[r])}F((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function Io(e){return j?Xe?!0:e.hasAttribute("data-has-alpine-state"):!1}p("show",(e,{modifiers:t,expression:r},{effect:n})=>{let i=x(e,r);e._x_doHide||(e._x_doHide=()=>{h(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{h(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let o=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},a=()=>setTimeout(s),c=Oe(u=>u?s():o(),u=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,u,s,o):u?a():o()}),l,f=!0;n(()=>i(u=>{!f&&u===l||(t.includes("immediate")&&(u?a():o()),c(u),l=u,f=!1)}))});p("for",w((e,{expression:t},{effect:r,cleanup:n})=>{let i=Fo(t),o=x(e,i.items),s=x(e,e._x_keyExpression||"index");e._x_lookup=new Map,r(()=>jo(e,i,o,s),{priority:"structural"}),n(()=>{e._x_lookup.forEach(a=>h(()=>{C(a),a.remove()})),delete e._x_lookup,delete e._x_lastRenderedEl})}));function Lo(e){return t=>{Object.entries(t).forEach(([r,n])=>{e[r]=n})}}function jo(e,t,r,n){r(i=>{$o(i)&&(i=Array.from({length:i},(l,f)=>f+1)),i==null&&(i=[]),i instanceof Set&&(i=Array.from(i)),i instanceof Map&&(i=Array.from(i));let o=e._x_lookup,s=new Map;e._x_lookup=s;let a=Bo(i),c=Object.entries(i).map(([l,f])=>{a||(l=parseInt(l));let u=Vo(t,f,l,i),g;return n(y=>{typeof y=="object"&&T("x-for key cannot be an object, it must be a string or an integer",e),o.has(y)&&(s.set(y,o.get(y)),o.delete(y)),g=y},{scope:{index:l,...u}}),[g,u]});h(()=>{o.forEach(u=>{C(u),u.remove()});let l=new Set,f=e;c.forEach(([u,g])=>{if(s.has(u)){let d=s.get(u);d._x_refreshXForScope(g),f.nextElementSibling!==d&&(f.nextElementSibling&&d.replaceWith(f.nextElementSibling),f.after(d)),f=d,d._x_currentIfEl&&(d.nextElementSibling!==d._x_currentIfEl&&f.after(d._x_currentIfEl),f=d._x_currentIfEl);return}e.content.children.length>1&&T("x-for templates require a single root element, additional elements will be ignored.",e);let y=document.importNode(e.content,!0).firstElementChild,$=R(g);P(y,$,e),y._x_refreshXForScope=Lo($),s.set(u,y),l.add(y),f.after(y),f=y}),l.forEach(u=>S(u)),f!==e?e._x_lastRenderedEl=f:delete e._x_lastRenderedEl})})}function Fo(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\b(?:in|of)\b([\s\S]*)/,i=e.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(t);return a?(o.item=s.replace(t,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function Vo(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=t[s]}):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function $o(e){return typeof e!="object"&&!isNaN(e)}function Bo(e){return typeof e=="object"&&!Array.isArray(e)}function si(){}si.inline=(e,{expression:t},{cleanup:r})=>{let n=re(e);n&&(n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r(()=>delete n._x_refs[t]))};p("ref",si);p("if",w((e,{expression:t},{effect:r,cleanup:n})=>{e.tagName.toLowerCase()!=="template"&&T("x-if can only be used on a <template> tag",e);let i=x(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return P(a,{},e),h(()=>{e.after(a),S(a)}),e._x_currentIfEl=a,e._x_lastRenderedEl=a,e._x_undoIf=()=>{h(()=>{C(a),a.remove()}),delete e._x_currentIfEl,delete e._x_lastRenderedEl},a},s=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};r(()=>i(a=>{a?o():s()}),{priority:"structural"}),n(()=>e._x_undoIf&&e._x_undoIf())}));p("id",(e,{expression:t},{evaluate:r})=>{r(t).forEach(i=>Zn(e,i))});F((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});me(Ye("@",Je(N("on:"))));p("on",w((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let o=n?x(e,n):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=W(e,t,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));xt("Collapse","collapse","collapse");xt("Intersect","intersect","intersect");xt("Focus","trap","focus");xt("Mask","mask","mask");function xt(e,t,r){p(t,n=>T(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}q.setEvaluator(Hr);q.setRawEvaluator(qr);q.setReactivityEngine({reactive:mt,effect:(e,t={})=>{let r;return r=Bn(e,{scheduler:()=>{r&&(t.scheduler?t.scheduler(r):r())}}),r},release:Hn,raw:_});var mr=q;window.Alpine=mr;queueMicrotask(()=>{mr.start()});})();
|
|
6
|
+
/*! Bundled license information:
|
|
7
|
+
|
|
8
|
+
@vue/shared/dist/shared.esm-bundler.js:
|
|
9
|
+
(**
|
|
10
|
+
* @vue/shared v3.5.41
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**)
|
|
14
|
+
|
|
15
|
+
@vue/reactivity/dist/reactivity.esm-bundler.js:
|
|
16
|
+
(**
|
|
17
|
+
* @vue/reactivity v3.5.41
|
|
18
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
|
+
* @license MIT
|
|
20
|
+
**)
|
|
21
|
+
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
(()=>{var fe=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],J=fe.join(","),de=typeof Element>"u",M=de?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Q=!de&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a?.ownerDocument},ee=function(e,t){var n;t===void 0&&(t=!0);var l=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),u=l===""||l==="true",r=u||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ee(e.parentNode));return r},Oe=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},ve=function(e,t,n){if(ee(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(J));return t&&M.call(e,J)&&l.unshift(e),l=l.filter(n),l},te=function(e,t,n){for(var l=[],u=Array.from(e);u.length;){var r=u.shift();if(!ee(r,!1))if(r.tagName==="SLOT"){var f=r.assignedElements(),d=f.length?f:r.children,h=te(d,!0,n);n.flatten?l.push.apply(l,h):l.push({scopeParent:r,candidates:h})}else{var S=M.call(r,J);S&&n.filter(r)&&(t||!e.includes(r))&&l.push(r);var w=r.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(r),k=!ee(w,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(r));if(w&&k){var E=te(w===!0?r.children:w.children,!0,n);n.flatten?l.push.apply(l,E):l.push({scopeParent:r,candidates:E})}else u.unshift.apply(u,r.children)}}return l},be=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},L=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Oe(e))&&!be(e)?0:e.tabIndex},Re=function(e,t){var n=L(e);return n<0&&t&&!be(e)?0:n},Pe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},he=function(e){return e.tagName==="INPUT"},De=function(e){return he(e)&&e.type==="hidden"},Ce=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},xe=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},je=function(e){if(!e.name)return!0;var t=e.form||Q(e),n=function(f){return t.querySelectorAll('input[type="radio"][name="'+f+'"]')},l;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")l=n(window.CSS.escape(e.name));else try{l=n(e.name)}catch(r){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",r.message),!1}var u=xe(l,e.form);return!u||u===e},_e=function(e){return he(e)&&e.type==="radio"},Le=function(e){return _e(e)&&!je(e)},Be=function(e){var t,n=e&&Q(e),l=(t=n)===null||t===void 0?void 0:t.host,u=!1;if(n&&n!==e){var r,f,d;for(u=!!((r=l)!==null&&r!==void 0&&(f=r.ownerDocument)!==null&&f!==void 0&&f.contains(l)||e!=null&&(d=e.ownerDocument)!==null&&d!==void 0&&d.contains(e));!u&&l;){var h,S,w;n=Q(l),l=(h=n)===null||h===void 0?void 0:h.host,u=!!((S=l)!==null&&S!==void 0&&(w=S.ownerDocument)!==null&&w!==void 0&&w.contains(l))}}return u},ce=function(e){var t=e.getBoundingClientRect(),n=t.width,l=t.height;return n===0&&l===0},Ge=function(e,t){var n=t.displayCheck,l=t.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var u=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!u}if(getComputedStyle(e).visibility==="hidden")return!0;var r=M.call(e,"details>summary:first-of-type"),f=r?e.parentElement:e;if(M.call(f,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof l=="function"){for(var d=e;e;){var h=e.parentElement,S=Q(e);if(h&&!h.shadowRoot&&l(h)===!0)return ce(e);e.assignedSlot?e=e.assignedSlot:!h&&S!==e.ownerDocument?e=S.host:e=h}e=d}if(Be(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return ce(e);return!1},Ke=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var l=t.children.item(n);if(l.tagName==="LEGEND")return M.call(t,"fieldset[disabled] *")?!0:!l.contains(e)}return!0}t=t.parentElement}return!1},re=function(e,t){return!(t.disabled||De(t)||Ge(t,e)||Ce(t)||Ke(t))},le=function(e,t){return!(Le(t)||L(t)<0||!re(e,t))},Me=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},pe=function(e){var t=[],n=[];return e.forEach(function(l,u){var r=!!l.scopeParent,f=r?l.scopeParent:l,d=Re(f,r),h=r?pe(l.candidates):f;d===0?r?t.push.apply(t,h):t.push(f):n.push({documentOrder:u,tabIndex:d,item:l,isScope:r,content:h})}),n.sort(Pe).reduce(function(l,u){return u.isScope?l.push.apply(l,u.content):l.push(u.content),l},[]).concat(t)},ye=function(e,t){t=t||{};var n;return t.getShadowRoot?n=te([e],t.includeContainer,{filter:le.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Me}):n=ve(e,t.includeContainer,le.bind(null,t)),pe(n)},ae=function(e,t){t=t||{};var n;return t.getShadowRoot?n=te([e],t.includeContainer,{filter:re.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=ve(e,t.includeContainer,re.bind(null,t)),n},V=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return M.call(e,J)===!1?!1:le(t,e)},Ve=fe.concat("iframe:not([inert]):not([inert] *)").join(","),q=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return M.call(e,Ve)===!1?!1:re(t,e)};function se(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=Array(e);t<e;t++)n[t]=a[t];return n}function We(a){if(Array.isArray(a))return se(a)}function me(a,e,t,n,l,u,r){try{var f=a[u](r),d=f.value}catch(h){return void t(h)}f.done?e(d):Promise.resolve(d).then(n,l)}function ge(a){return function(){var e=this,t=arguments;return new Promise(function(n,l){var u=a.apply(e,t);function r(d){me(u,n,l,r,f,"next",d)}function f(d){me(u,n,l,r,f,"throw",d)}r(void 0)})}}function we(a,e){var t=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!t){if(Array.isArray(a)||(t=Ee(a))||e){t&&(a=t);var n=0,l=function(){};return{s:l,n:function(){return n>=a.length?{done:!0}:{done:!1,value:a[n++]}},e:function(d){throw d},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,r=!0,f=!1;return{s:function(){t=t.call(a)},n:function(){var d=t.next();return r=d.done,d},e:function(d){f=!0,u=d},f:function(){try{r||t.return==null||t.return()}finally{if(f)throw u}}}}function qe(a,e,t){return(e=$e(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Ue(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Ye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Se(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),t.push.apply(t,n)}return t}function Te(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Se(Object(t),!0).forEach(function(n){qe(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Se(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function H(){var a,e,t=typeof Symbol=="function"?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function u(E,F,B,D){var W=F&&F.prototype instanceof f?F:f,U=Object.create(W.prototype);return P(U,"_invoke",function(ie,$,z){var C,T,I,G=0,X=z||[],x=!1,A={p:0,n:0,v:a,a:y,f:y.bind(a,4),d:function(i,o){return C=i,T=0,I=a,A.n=o,r}};function y(i,o){for(T=i,I=o,e=0;!x&&G&&!s&&e<X.length;e++){var s,c=X[e],b=A.p,p=c[2];i>3?(s=p===o)&&(I=c[(T=c[4])?5:(T=3,3)],c[4]=c[5]=a):c[0]<=b&&((s=i<2&&b<c[1])?(T=0,A.v=o,A.n=c[1]):b<p&&(s=i<3||c[0]>o||o>p)&&(c[4]=i,c[5]=o,A.n=p,T=0))}if(s||i>1)return r;throw x=!0,o}return function(i,o,s){if(G>1)throw TypeError("Generator is already running");for(x&&o===1&&y(o,s),T=o,I=s;(e=T<2?a:I)||!x;){C||(T?T<3?(T>1&&(A.n=-1),y(T,I)):A.n=I:A.v=I);try{if(G=2,C){if(T||(i="next"),e=C[i]){if(!(e=e.call(C,I)))throw TypeError("iterator result is not an object");if(!e.done)return e;I=e.value,T<2&&(T=0)}else T===1&&(e=C.return)&&e.call(C),T<2&&(I=TypeError("The iterator does not provide a '"+i+"' method"),T=1);C=a}else if((e=(x=A.n<0)?I:ie.call($,A))!==r)break}catch(c){C=a,T=1,I=c}finally{G=1}}return{value:e,done:x}}}(E,B,D),!0),U}var r={};function f(){}function d(){}function h(){}e=Object.getPrototypeOf;var S=[][n]?e(e([][n]())):(P(e={},n,function(){return this}),e),w=h.prototype=f.prototype=Object.create(S);function k(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,h):(E.__proto__=h,P(E,l,"GeneratorFunction")),E.prototype=Object.create(w),E}return d.prototype=h,P(w,"constructor",h),P(h,"constructor",d),d.displayName="GeneratorFunction",P(h,l,"GeneratorFunction"),P(w),P(w,l,"Generator"),P(w,n,function(){return this}),P(w,"toString",function(){return"[object Generator]"}),(H=function(){return{w:u,m:k}})()}function P(a,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch{l=0}P=function(u,r,f,d){function h(S,w){P(u,S,function(k){return this._invoke(S,w,k)})}r?l?l(u,r,{value:f,enumerable:!d,configurable:!d,writable:!d}):u[r]=f:(h("next",0),h("throw",1),h("return",2))},P(a,e,t,n)}function He(a){return We(a)||Ue(a)||Ee(a)||Ye()}function Ze(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function $e(a){var e=Ze(a,"string");return typeof e=="symbol"?e:e+""}function Ee(a,e){if(a){if(typeof a=="string")return se(a,e);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?se(a,e):void 0}}var j={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){var n=j.getActiveTrap(e);t!==n&&j.pauseTrap(e);var l=e.indexOf(t);l===-1||e.splice(l,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),j.unpauseTrap(e)},pauseTrap:function(e){var t=j.getActiveTrap(e);t?._setPausedState(!0)},unpauseTrap:function(e){var t=j.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},ze=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Xe=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Z=function(e){return e?.key==="Tab"||e?.keyCode===9},Je=function(e){return Z(e)&&!e.shiftKey},Qe=function(e){return Z(e)&&e.shiftKey},Ne=function(e){return setTimeout(e,0)},Y=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return typeof e=="function"?e.apply(void 0,n):e},ne=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},et=[],Fe=function(e,t){var n=t?.document||document,l=t?.trapStack||et,u=Te({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Je,isKeyBackward:Qe},t),r={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},f,d=function(i,o,s){return i&&i[o]!==void 0?i[o]:u[s||o]},h=function(i,o){var s=typeof o?.composedPath=="function"?o.composedPath():void 0;return r.containerGroups.findIndex(function(c){var b=c.container,p=c.tabbableNodes;return b.contains(i)||s?.includes(b)||p.find(function(v){return v===i})})},S=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.hasFallback,c=s===void 0?!1:s,b=o.params,p=b===void 0?[]:b,v=u[i];if(typeof v=="function"&&(v=v.apply(void 0,He(p))),v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var m=v;if(typeof v=="string"){try{m=n.querySelector(v)}catch(g){throw new Error("`".concat(i,'` appears to be an invalid selector; error="').concat(g.message,'"'))}if(!m&&!c)throw new Error("`".concat(i,"` as selector refers to no known node"))}return m},w=function(){var i=S("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!q(i,u.tabbableOptions))if(h(n.activeElement)>=0)i=n.activeElement;else{var o=r.tabbableGroups[0],s=o&&o.firstTabbableNode;i=s||S("fallbackFocus")}else i===null&&(i=S("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},k=function(){if(r.containerGroups=r.containers.map(function(i){var o=ye(i,u.tabbableOptions),s=ae(i,u.tabbableOptions),c=o.length>0?o[0]:void 0,b=o.length>0?o[o.length-1]:void 0,p=s.find(function(g){return V(g)}),v=s.slice().reverse().find(function(g){return V(g)}),m=!!o.find(function(g){return L(g)>0});return{container:i,tabbableNodes:o,focusableNodes:s,posTabIndexesFound:m,firstTabbableNode:c,lastTabbableNode:b,firstDomTabbableNode:p,lastDomTabbableNode:v,nextTabbableNode:function(N){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=o.indexOf(N);return O<0?R?s.slice(s.indexOf(N)+1).find(function(K){return V(K)}):s.slice(0,s.indexOf(N)).reverse().find(function(K){return V(K)}):o[O+(R?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!S("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(i){return i.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function(i){var o=i.activeElement;if(o)return o.shadowRoot&&o.shadowRoot.activeElement!==null?E(o.shadowRoot):o},F=function(i){if(i!==!1&&i!==E(document)){if(!i||!i.focus){F(w());return}i.focus({preventScroll:!!u.preventScroll}),r.mostRecentlyFocusedNode=i,ze(i)&&i.select()}},B=function(i){var o=S("setReturnFocus",{params:[i]});return o||(o===!1?!1:i)},D=function(i){var o=i.target,s=i.event,c=i.isBackward,b=c===void 0?!1:c;o=o||ne(s),k();var p=null;if(r.tabbableGroups.length>0){var v=h(o,s),m=v>=0?r.containerGroups[v]:void 0;if(v<0)b?p=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:p=r.tabbableGroups[0].firstTabbableNode;else if(b){var g=r.tabbableGroups.findIndex(function(oe){var ue=oe.firstTabbableNode;return o===ue});if(g<0&&(m.container===o||q(o,u.tabbableOptions)&&!V(o,u.tabbableOptions)&&!m.nextTabbableNode(o,!1))&&(g=v),g>=0){var N=g===0?r.tabbableGroups.length-1:g-1,R=r.tabbableGroups[N];p=L(o)>=0?R.lastTabbableNode:R.lastDomTabbableNode}else Z(s)||(p=m.nextTabbableNode(o,!1))}else{var O=r.tabbableGroups.findIndex(function(oe){var ue=oe.lastTabbableNode;return o===ue});if(O<0&&(m.container===o||q(o,u.tabbableOptions)&&!V(o,u.tabbableOptions)&&!m.nextTabbableNode(o))&&(O=v),O>=0){var K=O===r.tabbableGroups.length-1?0:O+1,_=r.tabbableGroups[K];p=L(o)>=0?_.firstTabbableNode:_.firstDomTabbableNode}else Z(s)||(p=m.nextTabbableNode(o))}}else p=S("fallbackFocus");return p},W=function(i){var o=ne(i);if(!(h(o,i)>=0)){if(Y(u.clickOutsideDeactivates,i)){f.deactivate({returnFocus:u.returnFocusOnDeactivate});return}Y(u.allowOutsideClick,i)||i.preventDefault()}},U=function(i){var o=ne(i),s=h(o,i)>=0;if(s||o instanceof Document)s&&(r.mostRecentlyFocusedNode=o);else{i.stopImmediatePropagation();var c,b=!0;if(r.mostRecentlyFocusedNode)if(L(r.mostRecentlyFocusedNode)>0){var p=h(r.mostRecentlyFocusedNode),v=r.containerGroups[p].tabbableNodes;if(v.length>0){var m=v.findIndex(function(g){return g===r.mostRecentlyFocusedNode});m>=0&&(u.isKeyForward(r.recentNavEvent)?m+1<v.length&&(c=v[m+1],b=!1):m-1>=0&&(c=v[m-1],b=!1))}}else r.containerGroups.some(function(g){return g.tabbableNodes.some(function(N){return L(N)>0})})||(b=!1);else b=!1;b&&(c=D({target:r.mostRecentlyFocusedNode,isBackward:u.isKeyBackward(r.recentNavEvent)})),F(c||r.mostRecentlyFocusedNode||w())}r.recentNavEvent=void 0},ie=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=i;var s=D({event:i,isBackward:o});s&&(Z(i)&&i.preventDefault(),F(s))},$=function(i){(u.isKeyForward(i)||u.isKeyBackward(i))&&ie(i,u.isKeyBackward(i))},z=function(i){Xe(i)&&Y(u.escapeDeactivates,i)!==!1&&(i.preventDefault(),f.deactivate())},C=function(i){var o=ne(i);h(o,i)>=0||Y(u.clickOutsideDeactivates,i)||Y(u.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},T=function(){if(!r.active)return Promise.resolve();j.activateTrap(l,f);var i;return u.delayInitialFocus?i=new Promise(function(o){r.delayInitialFocusTimer=Ne(function(){F(w()),o()})}):(i=Promise.resolve(),F(w())),n.addEventListener("focusin",U,!0),n.addEventListener("mousedown",W,{capture:!0,passive:!1}),n.addEventListener("touchstart",W,{capture:!0,passive:!1}),n.addEventListener("click",C,{capture:!0,passive:!1}),n.addEventListener("keydown",$,{capture:!0,passive:!1}),n.addEventListener("keydown",z),i},I=function(i){r.active&&!r.paused&&f._setSubtreeIsolation(!1),r.adjacentElements.clear(),r.alreadySilent.clear();var o=new Set,s=new Set,c=we(i),b;try{for(c.s();!(b=c.n()).done;){var p=b.value;o.add(p);for(var v=typeof ShadowRoot<"u"&&p.getRootNode()instanceof ShadowRoot,m=p;m;){o.add(m);var g=m.parentElement,N=[];g?N=g.children:!g&&v&&(N=m.getRootNode().children,g=m.getRootNode().host,v=typeof ShadowRoot<"u"&&g.getRootNode()instanceof ShadowRoot);var R=we(N),O;try{for(R.s();!(O=R.n()).done;){var K=O.value;s.add(K)}}catch(_){R.e(_)}finally{R.f()}m=g}}}catch(_){c.e(_)}finally{c.f()}o.forEach(function(_){s.delete(_)}),r.adjacentElements=s},G=function(){if(r.active)return n.removeEventListener("focusin",U,!0),n.removeEventListener("mousedown",W,!0),n.removeEventListener("touchstart",W,!0),n.removeEventListener("click",C,!0),n.removeEventListener("keydown",$,!0),n.removeEventListener("keydown",z),f},X=function(i){var o=i.some(function(s){var c=Array.from(s.removedNodes);return c.some(function(b){return b===r.mostRecentlyFocusedNode})});o&&F(w())},x=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(X):void 0,A=function(){x&&(x.disconnect(),r.active&&!r.paused&&r.containers.map(function(i){x.observe(i,{subtree:!0,childList:!0})}))};return f={get active(){return r.active},get paused(){return r.paused},activate:function(i){if(r.active)return this;var o=d(i,"onActivate"),s=d(i,"onPostActivate"),c=d(i,"checkCanFocusTrap"),b=j.getActiveTrap(l),p=!1;if(b&&!b.paused){var v;(v=b._setSubtreeIsolation)===null||v===void 0||v.call(b,!1),p=!0}try{c||k(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=E(n),o?.();var m=function(){var N=ge(H().m(function R(){return H().w(function(O){for(;;)switch(O.n){case 0:return c&&k(),O.n=1,T();case 1:f._setSubtreeIsolation(!0),A(),s?.();case 2:return O.a(2)}},R)}));return function(){return N.apply(this,arguments)}}();if(c)return c(r.containers.concat()).then(m,m),this;m()}catch(N){if(b===j.getActiveTrap(l)&&p){var g;(g=b._setSubtreeIsolation)===null||g===void 0||g.call(b,!0)}throw N}return this},deactivate:function(i){if(!r.active)return this;var o=Te({onDeactivate:u.onDeactivate,onPostDeactivate:u.onPostDeactivate,checkCanReturnFocus:u.checkCanReturnFocus},i);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,r.paused||f._setSubtreeIsolation(!1),r.alreadySilent.clear(),G(),r.active=!1,r.paused=!1,A(),j.deactivateTrap(l,f);var s=d(o,"onDeactivate"),c=d(o,"onPostDeactivate"),b=d(o,"checkCanReturnFocus"),p=d(o,"returnFocus","returnFocusOnDeactivate");s?.();var v=function(){Ne(function(){p&&F(B(r.nodeFocusedBeforeActivation)),c?.()})};return p&&b?(b(B(r.nodeFocusedBeforeActivation)).then(v,v),this):(v(),this)},pause:function(i){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return r.active?(r.manuallyPaused=!1,l[l.length-1]!==this?this:this._setPausedState(!1,i)):this},updateContainerElements:function(i){var o=[].concat(i).filter(Boolean);return r.containers=o.map(function(s){return typeof s=="string"?n.querySelector(s):s}),u.isolateSubtrees&&I(r.containers),r.active&&(k(),r.paused||f._setSubtreeIsolation(!0)),A(),this}},Object.defineProperties(f,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(i,o){if(r.paused===i)return this;if(r.paused=i,i){var s=d(o,"onPause"),c=d(o,"onPostPause");s?.(),G(),f._setSubtreeIsolation(!1),A(),c?.()}else{var b=d(o,"onUnpause"),p=d(o,"onPostUnpause");b?.();var v=function(){var m=ge(H().m(function g(){return H().w(function(N){for(;;)switch(N.n){case 0:return k(),N.n=1,T();case 1:f._setSubtreeIsolation(!0),A(),p?.();case 2:return N.a(2)}},g)}));return function(){return m.apply(this,arguments)}}();v()}return this}},_setSubtreeIsolation:{value:function(i){u.isolateSubtrees&&r.adjacentElements.forEach(function(o){var s;if(i)switch(u.isolateSubtrees){case"aria-hidden":(o.ariaHidden==="true"||((s=o.getAttribute("aria-hidden"))===null||s===void 0?void 0:s.toLowerCase())==="true")&&r.alreadySilent.add(o),o.setAttribute("aria-hidden","true");break;default:(o.inert||o.hasAttribute("inert"))&&r.alreadySilent.add(o),o.setAttribute("inert",!0);break}else if(!r.alreadySilent.has(o))switch(u.isolateSubtrees){case"aria-hidden":o.removeAttribute("aria-hidden");break;default:o.removeAttribute("inert");break}})}}}),f.updateContainerElements(e),f};function ke(a){let e,t;window.addEventListener("focusin",()=>{e=t,t=document.activeElement}),a.magic("focus",n=>{let l=n;return{__noscroll:!1,__wrapAround:!1,within(u){return l=u,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(u){return q(u)},previouslyFocused(){return e},lastFocused(){return e},focused(){return t},focusables(){return Array.isArray(l)?l:ae(l,{displayCheck:"none"})},all(){return this.focusables()},isFirst(u){let r=this.all();return r[0]&&r[0].isSameNode(u)},isLast(u){let r=this.all();return r.length&&r.slice(-1)[0].isSameNode(u)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let u=this.all(),r=document.activeElement;if(u.indexOf(r)!==-1)return this.__wrapAround&&u.indexOf(r)===u.length-1?u[0]:u[u.indexOf(r)+1]},getPrevious(){let u=this.all(),r=document.activeElement;if(u.indexOf(r)!==-1)return this.__wrapAround&&u.indexOf(r)===0?u.slice(-1)[0]:u[u.indexOf(r)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(u){u&&setTimeout(()=>{u.hasAttribute("tabindex")||u.setAttribute("tabindex","0"),u.focus({preventScroll:this.__noscroll})})}}}),a.directive("trap",a.skipDuringClone((n,{expression:l,modifiers:u},{effect:r,evaluateLater:f,cleanup:d})=>{let h=f(l),S=!1,w={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>n},k=()=>{};if(u.includes("noautofocus"))w.initialFocus=!1;else{let D=n.querySelector("[autofocus]");D&&(w.initialFocus=D)}u.includes("inert")&&(w.onPostActivate=()=>{a.nextTick(()=>{k=Ae(n)})});let E=Fe(n,w),F=()=>{},B=()=>{k(),k=()=>{},F(),F=()=>{},E.deactivate({returnFocus:!u.includes("noreturn")})};r(()=>h(D=>{S!==D&&(D&&!S&&(u.includes("noscroll")&&(F=tt()),setTimeout(()=>{E.activate()},15)),!D&&S&&B(),S=!!D)})),d(B)},(n,{expression:l,modifiers:u},{evaluate:r})=>{u.includes("inert")&&r(l)&&Ae(n)}))}function Ae(a){let e=[];return Ie(a,t=>{let n=t.hasAttribute("aria-hidden");t.setAttribute("aria-hidden","true"),e.push(()=>n||t.removeAttribute("aria-hidden"))}),()=>{for(;e.length;)e.pop()()}}function Ie(a,e){a.isSameNode(document.body)||!a.parentNode||Array.from(a.parentNode.children).forEach(t=>{t.isSameNode(a)?Ie(a.parentNode,e):e(t)})}function tt(){let a=document.documentElement.style.overflow,e=document.documentElement.style.paddingRight,t=window.innerWidth-document.documentElement.clientWidth,n=window.getComputedStyle(document.documentElement).scrollbarGutter;return document.documentElement.style.overflow="hidden",n&&n!=="auto"?()=>{document.documentElement.style.overflow=a}:(document.documentElement.style.paddingRight=`${t}px`,()=>{document.documentElement.style.overflow=a,document.documentElement.style.paddingRight=e})}document.addEventListener("alpine:init",()=>{window.Alpine.plugin(ke)});})();
|
|
4
|
+
/*! Bundled license information:
|
|
5
|
+
|
|
6
|
+
tabbable/dist/index.esm.js:
|
|
7
|
+
(*!
|
|
8
|
+
* tabbable 6.4.0
|
|
9
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
10
|
+
*)
|
|
11
|
+
|
|
12
|
+
focus-trap/dist/focus-trap.esm.js:
|
|
13
|
+
(*!
|
|
14
|
+
* focus-trap 8.0.0
|
|
15
|
+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
16
|
+
*)
|
|
17
|
+
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
|
|
18
|
+
*/
|