@nestadmin/core 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +79 -2
- package/dist/assets/admin.css +2 -0
- package/dist/assets/admin.js +25 -0
- package/dist/index.cjs +2762 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +441 -0
- package/dist/index.d.ts +441 -0
- package/dist/index.js +2730 -0
- package/dist/index.js.map +1 -0
- package/package.json +65 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 @nestadmin 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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,80 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @nestadmin/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Zero-Config + Progressive Eject** native admin panel core for **NestJS** (v10 & v11).
|
|
4
|
+
|
|
5
|
+
- **Zero-Config Instant Start:** Auto-discovers ORM entities at `/admin` with automatic sensitive-field masking, smart default columns, search, sort, filters, pagination, and full CRUD.
|
|
6
|
+
- **Progressive Eject:** Customize only the resources you need via `@Admin(Model)` + `extends BaseAdmin<T>` with full NestJS Dependency Injection, `@AdminDisplay` virtual columns, `@AdminAction` bulk actions, and lifecycle hooks.
|
|
7
|
+
- **SSR + HTMX + Alpine.js + Tailwind CSS v4:** Zero runtime bundler, pre-compiled isolated assets (< 45 KB gzipped), dual CJS + ESM output.
|
|
8
|
+
- **Express & Fastify Parity:** Works identically on Express and Fastify without requiring `cookie-parser`, `@fastify/cookie`, `@fastify/formbody`, or `serve-static`.
|
|
9
|
+
- **Production Security Built-In:** Mass assignment whitelist sanitizer, explicit HTML escaping + `SafeHtml` (`ui.*`), AES-256-GCM encrypted session cookies, Signed Double-Submit CSRF, login rate limiter, security headers, and Fail-Safe Production Guard.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add @nestadmin/core @nestadmin/typeorm
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quickstart
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
// src/app.module.ts
|
|
21
|
+
import { Module } from '@nestjs/common';
|
|
22
|
+
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
23
|
+
import { AdminModule } from '@nestadmin/core';
|
|
24
|
+
import { TypeOrmAdapter } from '@nestadmin/typeorm';
|
|
25
|
+
|
|
26
|
+
@Module({
|
|
27
|
+
imports: [
|
|
28
|
+
TypeOrmModule.forRoot({ /* ... */ }),
|
|
29
|
+
AdminModule.forRoot({
|
|
30
|
+
title: 'My Admin',
|
|
31
|
+
adapter: TypeOrmAdapter.create(),
|
|
32
|
+
autoDiscoverAll: true,
|
|
33
|
+
}),
|
|
34
|
+
],
|
|
35
|
+
})
|
|
36
|
+
export class AppModule {}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Start your NestJS server and open `http://localhost:3000/admin`.
|
|
40
|
+
|
|
41
|
+
## Progressive Eject Example
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import { Injectable } from '@nestjs/common';
|
|
45
|
+
import { Admin, AdminAction, AdminDisplay, BaseAdmin, ui } from '@nestadmin/core';
|
|
46
|
+
import { User } from '../../users/user.entity';
|
|
47
|
+
import { MailService } from '../../mail/mail.service';
|
|
48
|
+
|
|
49
|
+
@Admin(User)
|
|
50
|
+
@Injectable()
|
|
51
|
+
export class UserAdmin extends BaseAdmin<User> {
|
|
52
|
+
constructor(private readonly mailService: MailService) {
|
|
53
|
+
super();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
override group = 'User Management';
|
|
57
|
+
override listDisplay = ['id', 'email', 'statusBadge', 'createdAt'];
|
|
58
|
+
|
|
59
|
+
@AdminDisplay({ label: 'Status' })
|
|
60
|
+
statusBadge(user: User) {
|
|
61
|
+
return user.isActive
|
|
62
|
+
? ui.badge('Active', 'success')
|
|
63
|
+
: ui.badge('Suspended', 'danger');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@AdminAction({ label: 'Resend Verification', confirm: true })
|
|
67
|
+
async resendVerification(selectedUsers: User[]) {
|
|
68
|
+
await this.mailService.sendBulkVerification(selectedUsers.map((u) => u.email));
|
|
69
|
+
return { message: `Sent to ${selectedUsers.length} user(s).` };
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Documentation
|
|
75
|
+
|
|
76
|
+
Full documentation, architecture ADRs, and production checklist: https://github.com/bbal10/nest-admin
|
|
77
|
+
|
|
78
|
+
## License
|
|
79
|
+
|
|
80
|
+
MIT
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-amber-100:oklch(96.2% .059 95.617);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-sky-100:oklch(95.1% .026 236.824);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-950:oklch(25.7% .09 281.288);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-rose-950:oklch(27.1% .105 12.094);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}body{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}}@layer components;@layer utilities{.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.static{position:static}.right-4{right:calc(var(--spacing) * 4)}.bottom-4{bottom:calc(var(--spacing) * 4)}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-1{margin-top:var(--spacing)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-14{height:calc(var(--spacing) * 14)}.max-h-40{max-height:calc(var(--spacing) * 40)}.min-h-screen{min-height:100vh}.w-10{width:calc(var(--spacing) * 10)}.w-64{width:calc(var(--spacing) * 64)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:0}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-slate-200>:not(:last-child)){border-color:var(--color-slate-200)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-indigo-200{border-color:var(--color-indigo-200)}.border-rose-200{border-color:var(--color-rose-200)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-100{background-color:var(--color-rose-100)}.bg-rose-600{background-color:var(--color-rose-600)}.bg-sky-100{background-color:var(--color-sky-100)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-2{padding-top:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.whitespace-nowrap{white-space:nowrap}.text-amber-800{color:var(--color-amber-800)}.text-emerald-800{color:var(--color-emerald-800)}.text-indigo-600{color:var(--color-indigo-600)}.text-indigo-700{color:var(--color-indigo-700)}.text-rose-500{color:var(--color-rose-500)}.text-rose-600{color:var(--color-rose-600)}.text-rose-700{color:var(--color-rose-700)}.text-rose-800{color:var(--color-rose-800)}.text-sky-800{color:var(--color-sky-800)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:bg-indigo-50:hover{background-color:var(--color-indigo-50)}.hover\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\:bg-rose-50:hover{background-color:var(--color-rose-50)}.hover\:bg-rose-700:hover{background-color:var(--color-rose-700)}.hover\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\:text-slate-900:hover{color:var(--color-slate-900)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-indigo-500:focus{--tw-ring-color:var(--color-indigo-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:opacity-60:disabled{opacity:.6}@media (min-width:40rem){.sm\:w-72{width:calc(var(--spacing) * 72)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:64rem){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:p-8{padding:calc(var(--spacing) * 8)}}:where(.dark\:divide-slate-800:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-slate-800)}.dark\:border-indigo-800:where(.dark,.dark *){border-color:var(--color-indigo-800)}.dark\:border-rose-800:where(.dark,.dark *){border-color:var(--color-rose-800)}.dark\:border-slate-700:where(.dark,.dark *){border-color:var(--color-slate-700)}.dark\:border-slate-800:where(.dark,.dark *){border-color:var(--color-slate-800)}.dark\:bg-amber-900\/40:where(.dark,.dark *){background-color:#7b330666}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-amber-900) 40%, transparent)}}.dark\:bg-emerald-900\/40:where(.dark,.dark *){background-color:#004e3b66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-emerald-900) 40%, transparent)}}.dark\:bg-indigo-950:where(.dark,.dark *){background-color:var(--color-indigo-950)}.dark\:bg-indigo-950\/50:where(.dark,.dark *){background-color:#1e1a4d80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-950\/50:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-indigo-950) 50%, transparent)}}.dark\:bg-indigo-950\/60:where(.dark,.dark *){background-color:#1e1a4d99}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-950\/60:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-indigo-950) 60%, transparent)}}.dark\:bg-rose-900\/40:where(.dark,.dark *){background-color:#8b083666}@supports (color:color-mix(in lab, red, red)){.dark\:bg-rose-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-rose-900) 40%, transparent)}}.dark\:bg-rose-950\/60:where(.dark,.dark *){background-color:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark\:bg-rose-950\/60:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-rose-950) 60%, transparent)}}.dark\:bg-sky-900\/40:where(.dark,.dark *){background-color:#024a7066}@supports (color:color-mix(in lab, red, red)){.dark\:bg-sky-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-sky-900) 40%, transparent)}}.dark\:bg-slate-800:where(.dark,.dark *){background-color:var(--color-slate-800)}.dark\:bg-slate-900:where(.dark,.dark *){background-color:var(--color-slate-900)}.dark\:bg-slate-900\/60:where(.dark,.dark *){background-color:#0f172b99}@supports (color:color-mix(in lab, red, red)){.dark\:bg-slate-900\/60:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-slate-900) 60%, transparent)}}.dark\:bg-slate-950:where(.dark,.dark *){background-color:var(--color-slate-950)}.dark\:text-amber-300:where(.dark,.dark *){color:var(--color-amber-300)}.dark\:text-emerald-300:where(.dark,.dark *){color:var(--color-emerald-300)}.dark\:text-indigo-300:where(.dark,.dark *){color:var(--color-indigo-300)}.dark\:text-indigo-400:where(.dark,.dark *){color:var(--color-indigo-400)}.dark\:text-rose-300:where(.dark,.dark *){color:var(--color-rose-300)}.dark\:text-rose-400:where(.dark,.dark *){color:var(--color-rose-400)}.dark\:text-sky-300:where(.dark,.dark *){color:var(--color-sky-300)}.dark\:text-slate-100:where(.dark,.dark *){color:var(--color-slate-100)}.dark\:text-slate-200:where(.dark,.dark *){color:var(--color-slate-200)}.dark\:text-slate-300:where(.dark,.dark *){color:var(--color-slate-300)}.dark\:text-slate-400:where(.dark,.dark *){color:var(--color-slate-400)}.dark\:text-slate-500:where(.dark,.dark *){color:var(--color-slate-500)}.dark\:text-slate-700:where(.dark,.dark *){color:var(--color-slate-700)}.dark\:text-white:where(.dark,.dark *){color:var(--color-white)}@media (hover:hover){.dark\:hover\:bg-indigo-950:where(.dark,.dark *):hover{background-color:var(--color-indigo-950)}.dark\:hover\:bg-rose-950:where(.dark,.dark *):hover{background-color:var(--color-rose-950)}.dark\:hover\:bg-slate-800:where(.dark,.dark *):hover{background-color:var(--color-slate-800)}.dark\:hover\:bg-slate-800\/40:where(.dark,.dark *):hover{background-color:#1d293d66}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-slate-800\/40:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--color-slate-800) 40%, transparent)}}.dark\:hover\:text-white:where(.dark,.dark *):hover{color:var(--color-white)}}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";(()=>{var Br=(function(){"use strict";let htmx={onLoad:null,process:null,on:null,off:null,trigger:null,ajax:null,find:null,findAll:null,closest:null,values:function(e,t){return getInputValues(e,t||"post").values},remove:null,addClass:null,removeClass:null,toggleClass:null,takeClass:null,swap:null,defineExtension:null,removeExtension:null,logAll:null,logNone:null,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",inlineStyleNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",scrollBehavior:"instant",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get","delete"],selfRequestsOnly:!0,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null,disableInheritance:!1,responseHandling:[{code:"204",swap:!1},{code:"[23]..",swap:!0},{code:"[45]..",swap:!1,error:!0}],allowNestedOobSwaps:!0,historyRestoreAsHxRequest:!0,reportValidityOfForms:!1},parseInterval:null,location,_:null,version:"2.0.11"};htmx.onLoad=onLoadHelper,htmx.process=processNode,htmx.on=addEventListenerImpl,htmx.off=removeEventListenerImpl,htmx.trigger=triggerEvent,htmx.ajax=ajaxHelper,htmx.find=find,htmx.findAll=findAll,htmx.closest=closest,htmx.remove=removeElement,htmx.addClass=addClassToElement,htmx.removeClass=removeClassFromElement,htmx.toggleClass=toggleClassOnElement,htmx.takeClass=takeClassForElement,htmx.swap=swap,htmx.defineExtension=defineExtension,htmx.removeExtension=removeExtension,htmx.logAll=logAll,htmx.logNone=logNone,htmx.parseInterval=parseInterval,htmx._=internalEval;let internalAPI={addTriggerHandler,bodyContains,canAccessLocalStorage,findThisElement,filterValues,swap,hasAttribute,getAttributeValue,getClosestAttributeValue,getClosestMatch,getExpressionVars,getHeaders,getInputValues,getInternalData,getSwapSpecification,getTriggerSpecs,getTarget,makeFragment,mergeObjects,makeSettleInfo,oobSwap,querySelectorExt,settleImmediately,shouldCancel,triggerEvent,triggerErrorEvent,withExtensions},VERBS=["get","post","put","delete","patch"],VERB_SELECTOR=VERBS.map(function(e){return"[hx-"+e+"], [data-hx-"+e+"]"}).join(", ");function parseInterval(e){if(e==null)return;let t=NaN;return e.slice(-2)=="ms"?t=parseFloat(e.slice(0,-2)):e.slice(-1)=="s"?t=parseFloat(e.slice(0,-1))*1e3:e.slice(-1)=="m"?t=parseFloat(e.slice(0,-1))*1e3*60:t=parseFloat(e),isNaN(t)?void 0:t}function getRawAttribute(e,t){return e instanceof Element&&e.getAttribute(t)}function hasAttribute(e,t){return!!e.hasAttribute&&(e.hasAttribute(t)||e.hasAttribute("data-"+t))}function getAttributeValue(e,t){return getRawAttribute(e,t)||getRawAttribute(e,"data-"+t)}function parentElt(e){let t=e.parentElement;return!t&&e.parentNode instanceof ShadowRoot?e.parentNode:t}function getDocument(){return document}function getRootNode(e,t){return e.getRootNode?e.getRootNode({composed:t}):getDocument()}function getClosestMatch(e,t){for(;e&&!t(e);)e=parentElt(e);return e||null}function getAttributeValueWithDisinheritance(e,t,n){let r=getAttributeValue(t,n),i=getAttributeValue(t,"hx-disinherit");var o=getAttributeValue(t,"hx-inherit");if(e!==t){if(htmx.config.disableInheritance)return o&&(o==="*"||o.split(" ").indexOf(n)>=0)?r:null;if(i&&(i==="*"||i.split(" ").indexOf(n)>=0))return"unset"}return r}function getClosestAttributeValue(e,t){let n=null;if(getClosestMatch(e,function(r){return!!(n=getAttributeValueWithDisinheritance(e,asElement(r),t))}),n!=="unset")return n}function matches(e,t){return e instanceof Element&&e.matches(t)}function getStartTag(e){let n=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(e);return n?n[1].toLowerCase():""}function parseHTML(e){return"parseHTMLUnsafe"in Document?Document.parseHTMLUnsafe(e):new DOMParser().parseFromString(e,"text/html")}function takeChildrenFor(e,t){for(;t.childNodes.length>0;)e.append(t.childNodes[0])}function duplicateScript(e){let t=getDocument().createElement("script");return forEach(e.attributes,function(n){t.setAttribute(n.name,n.value)}),t.textContent=e.textContent,t.async=!1,htmx.config.inlineScriptNonce&&(t.nonce=htmx.config.inlineScriptNonce),t}function isJavaScriptScriptNode(e){return e.matches("script")&&(e.type==="text/javascript"||e.type==="module"||e.type==="")}function normalizeScriptTags(e){if(!htmx.config.allowScriptTags){e.querySelectorAll("script").forEach(t=>t.remove());return}Array.from(e.querySelectorAll("script")).forEach(t=>{if(isJavaScriptScriptNode(t)){let n=duplicateScript(t),r=t.parentNode;try{r.insertBefore(n,t)}catch(i){logError(i)}finally{t.remove()}}})}function makeFragment(e){e=e.replace(/<hx-([a-z]+)((?:\s[^>]*)?)>/gi,'<template hx type="$1"$2>').replace(/<\/hx-[a-z]+>/gi,"</template>");let t=e.replace(/<head(\s[^>]*)?>[\s\S]*?<\/head>/i,""),n=getStartTag(t),r;if(n==="html"){r=new DocumentFragment;let o=parseHTML(e);takeChildrenFor(r,o.body),r.title=o.title}else if(n==="body"){r=new DocumentFragment;let o=parseHTML(t);takeChildrenFor(r,o.body),r.title=o.title}else{let o=parseHTML('<body><template class="internal-htmx-wrapper">'+t+"</template></body>");r=o.querySelector("template").content,r.title=o.title;var i=r.querySelector("title");i&&i.parentNode===r&&(i.remove(),r.title=i.innerText)}return r&&normalizeScriptTags(r),r}function maybeCall(e){e&&e()}function isType(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function isFunction(e){return typeof e=="function"}function isRawObject(e){return isType(e,"Object")}function getInternalData(e){let t="htmx-internal-data",n=e[t];return n||(n=e[t]={}),n}function toArray(e){let t=[];if(e)for(let n=0;n<e.length;n++)t.push(e[n]);return t}function forEach(e,t){if(e)for(let n=0;n<e.length;n++)t(e[n])}function isScrolledIntoView(e){let t=e.getBoundingClientRect(),n=t.top,r=t.bottom;return n<window.innerHeight&&r>=0}function bodyContains(e){return e.getRootNode({composed:!0})===document}function splitOnWhitespace(e){return e.trim().split(/\s+/)}function mergeObjects(e,t){return Object.assign({},e,t)}function parseJSON(e){try{return JSON.parse(e)}catch(t){return logError(t),null}}function canAccessLocalStorage(){let e="htmx:sessionStorageTest";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch{return!1}}function normalizePath(e){try{let t=new URL(e,window.location.href);e=t.pathname+t.search}catch{}return e!="/"&&(e=e.replace(/\/+$/,"")),e}function internalEval(str){return maybeEval(getDocument().body,function(){return eval(str)})}function onLoadHelper(e){return htmx.on("htmx:load",function(n){e(n.detail.elt)})}function logAll(){htmx.logger=function(e,t,n){console&&console.log(t,e,n)}}function logNone(){htmx.logger=null}function find(e,t){return typeof e!="string"?e.querySelector(t):find(getDocument(),e)}function findAll(e,t){return typeof e!="string"?e.querySelectorAll(t):findAll(getDocument(),e)}function getWindow(){return window}function removeElement(e,t){e=resolveTarget(e),t?getWindow().setTimeout(function(){removeElement(e),e=null},t):parentElt(e).removeChild(e)}function asElement(e){return e instanceof Element?e:null}function asHtmlElement(e){return e instanceof HTMLElement?e:null}function asString(e){return typeof e=="string"?e:null}function asParentNode(e){return e instanceof Element||e instanceof Document||e instanceof DocumentFragment?e:null}function addClassToElement(e,t,n){e=asElement(resolveTarget(e)),e&&(n?getWindow().setTimeout(function(){addClassToElement(e,t),e=null},n):e.classList&&e.classList.add(t))}function removeClassFromElement(e,t,n){let r=asElement(resolveTarget(e));r&&(n?getWindow().setTimeout(function(){removeClassFromElement(r,t),r=null},n):r.classList&&(r.classList.remove(t),r.classList.length===0&&r.removeAttribute("class")))}function toggleClassOnElement(e,t){e=resolveTarget(e),e.classList.toggle(t)}function takeClassForElement(e,t){e=resolveTarget(e),forEach(e.parentElement.children,function(n){removeClassFromElement(n,t)}),addClassToElement(asElement(e),t)}function closest(e,t){return e=asElement(resolveTarget(e)),e?e.closest(t):null}function startsWith(e,t){return e.substring(0,t.length)===t}function endsWith(e,t){return e.substring(e.length-t.length)===t}function normalizeSelector(e){let t=e.trim();return startsWith(t,"<")&&endsWith(t,"/>")?t.substring(1,t.length-2):t}function querySelectorAllExt(e,t,n){if(t.indexOf("global ")===0)return querySelectorAllExt(e,t.slice(7),!0);e=resolveTarget(e);let r=[];{let s=0,a=0;for(let l=0;l<t.length;l++){let u=t[l];if(u===","&&s===0){r.push(t.substring(a,l)),a=l+1;continue}u==="<"?s++:u==="/"&&l<t.length-1&&t[l+1]===">"&&s--}a<t.length&&r.push(t.substring(a))}let i=[],o=[];for(;r.length>0;){let s=normalizeSelector(r.shift()),a;s.indexOf("closest ")===0?a=closest(asElement(e),normalizeSelector(s.slice(8))):s.indexOf("find ")===0?a=find(asParentNode(e),normalizeSelector(s.slice(5))):s==="next"||s==="nextElementSibling"?a=asElement(e).nextElementSibling:s.indexOf("next ")===0?a=scanForwardQuery(e,normalizeSelector(s.slice(5)),!!n):s==="previous"||s==="previousElementSibling"?a=asElement(e).previousElementSibling:s.indexOf("previous ")===0?a=scanBackwardsQuery(e,normalizeSelector(s.slice(9)),!!n):s==="document"?a=document:s==="window"?a=window:s==="body"?a=document.body:s==="root"?a=getRootNode(e,!!n):s==="host"?a=e.getRootNode().host:o.push(s),a&&i.push(a)}if(o.length>0){let s=o.join(","),a=asParentNode(getRootNode(e,!!n));i.push(...toArray(a.querySelectorAll(s)))}return i}var scanForwardQuery=function(e,t,n){let r=asParentNode(getRootNode(e,n)).querySelectorAll(t);for(let i=0;i<r.length;i++){let o=r[i];if(o.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_PRECEDING)return o}},scanBackwardsQuery=function(e,t,n){let r=asParentNode(getRootNode(e,n)).querySelectorAll(t);for(let i=r.length-1;i>=0;i--){let o=r[i];if(o.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_FOLLOWING)return o}};function querySelectorExt(e,t){return typeof e!="string"?querySelectorAllExt(e,t)[0]:querySelectorAllExt(getDocument().body,e)[0]}function resolveTarget(e,t){return typeof e=="string"?find(asParentNode(t)||document,e):e}function processEventArgs(e,t,n,r){return isFunction(t)?{target:getDocument().body,event:asString(e),listener:t,options:n}:{target:resolveTarget(e),event:asString(t),listener:n,options:r}}function addEventListenerImpl(e,t,n,r){return ready(function(){let o=processEventArgs(e,t,n,r);o.target.addEventListener(o.event,o.listener,o.options)}),isFunction(t)?t:n}function removeEventListenerImpl(e,t,n){return ready(function(){let r=processEventArgs(e,t,n);r.target.removeEventListener(r.event,r.listener)}),isFunction(t)?t:n}let DUMMY_ELT=getDocument().createElement("output");function findAttributeTargets(e,t){let n=getClosestAttributeValue(e,t);if(n){if(n==="this")return[findThisElement(e,t)];{let r=querySelectorAllExt(e,n);if(/(^|,)(\s*)inherit(\s*)($|,)/.test(n)){let o=asElement(getClosestMatch(e,function(s){return s!==e&&hasAttribute(asElement(s),t)}));o&&r.push(...findAttributeTargets(o,t))}return r.length===0?(logError('The selector "'+n+'" on '+t+" returned no matches!"),[DUMMY_ELT]):r}}}function findThisElement(e,t){return asElement(getClosestMatch(e,function(n){return getAttributeValue(asElement(n),t)!=null}))}function getTarget(e){let t=getClosestAttributeValue(e,"hx-target");return t?t==="this"?findThisElement(e,"hx-target"):querySelectorExt(e,t):getInternalData(e).boosted?getDocument().body:e}function shouldSettleAttribute(e){return htmx.config.attributesToSettle.includes(e)}function cloneAttributes(e,t){forEach(Array.from(e.attributes),function(n){!t.hasAttribute(n.name)&&shouldSettleAttribute(n.name)&&e.removeAttribute(n.name)}),forEach(t.attributes,function(n){shouldSettleAttribute(n.name)&&e.setAttribute(n.name,n.value)})}function isInlineSwap(e,t){let n=getExtensions(t);for(let r=0;r<n.length;r++){let i=n[r];try{if(i.isInlineSwap(e))return!0}catch(o){logError(o)}}return e==="outerHTML"}function oobSwap(e,t,n,r){r=r||getDocument();let i="#"+CSS.escape(getRawAttribute(t,"id")),o="outerHTML";e==="true"||(e.indexOf(":")>0?(o=e.substring(0,e.indexOf(":")),i=e.substring(e.indexOf(":")+1)):o=e),t.removeAttribute("hx-swap-oob"),t.removeAttribute("data-hx-swap-oob");let s=querySelectorAllExt(r,i,!1);return s.length?(forEach(s,function(a){let l,u=t.cloneNode(!0);l=getDocument().createDocumentFragment(),l.appendChild(u),isInlineSwap(o,a)||(l=asParentNode(u));let c={shouldSwap:!0,target:a,fragment:l};triggerEvent(a,"htmx:oobBeforeSwap",c)&&(a=c.target,c.shouldSwap&&(handlePreservedElements(l),swapWithStyle(o,a,a,l,n),restorePreservedElements()),forEach(n.elts,function(f){triggerEvent(f,"htmx:oobAfterSwap",c)}))}),t.parentNode.removeChild(t)):(t.parentNode.removeChild(t),triggerErrorEvent(getDocument().body,"htmx:oobErrorNoTarget",{content:t,target:i})),e}function restorePreservedElements(){let e=find("#--htmx-preserve-pantry--");if(e){for(let t of[...e.children]){let n=find("#"+t.id);n.parentNode.moveBefore(t,n),n.remove()}e.remove()}}function handlePreservedElements(e){forEach(findAll(e,"[hx-preserve], [data-hx-preserve]"),function(t){let n=getAttributeValue(t,"id"),r=getDocument().getElementById(n);if(r!=null)if(t.moveBefore){let i=find("#--htmx-preserve-pantry--");i==null&&(getDocument().body.insertAdjacentHTML("afterend","<div id='--htmx-preserve-pantry--'></div>"),i=find("#--htmx-preserve-pantry--")),i.moveBefore(r,null)}else t.parentNode.replaceChild(r,t)})}function handleAttributes(e,t,n){forEach(t.querySelectorAll("[id]"),function(r){let i=getRawAttribute(r,"id");if(i&&i.length>0){let o=asParentNode(e),s=o&&o.querySelector(CSS.escape(r.tagName)+"#"+CSS.escape(i));if(s&&s!==o){let a=r.cloneNode();cloneAttributes(r,s),n.tasks.push(function(){cloneAttributes(r,a)})}}})}function makeAjaxLoadTask(e){return function(){removeClassFromElement(e,htmx.config.addedClass),processNode(asElement(e)),processFocus(asParentNode(e)),triggerEvent(e,"htmx:load")}}function processFocus(e){let t="[autofocus]",n=asHtmlElement(matches(e,t)?e:e.querySelector(t));n?.focus()}function insertNodesBefore(e,t,n,r){for(handleAttributes(e,n,r);n.childNodes.length>0;){let i=n.firstChild;addClassToElement(asElement(i),htmx.config.addedClass),e.insertBefore(i,t),i.nodeType!==Node.TEXT_NODE&&i.nodeType!==Node.COMMENT_NODE&&r.tasks.push(makeAjaxLoadTask(i))}}function stringHash(e,t){let n=0;for(;n<e.length;)t=(t<<5)-t+e.charCodeAt(n++)|0;return t}function attributeHash(e){let t=0;for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];r.value&&(t=stringHash(r.name,t),t=stringHash(r.value,t))}return t}function deInitOnHandlers(e){let t=getInternalData(e);if(t.onHandlers){for(let n=0;n<t.onHandlers.length;n++){let r=t.onHandlers[n];removeEventListenerImpl(e,r.event,r.listener)}delete t.onHandlers}}function deInitNode(e){let t=getInternalData(e);t.timeout&&clearTimeout(t.timeout),t.listenerInfos&&forEach(t.listenerInfos,function(n){n.on&&removeEventListenerImpl(n.on,n.trigger,n.listener)}),deInitOnHandlers(e),forEach(Object.keys(t),function(n){n!=="firstInitCompleted"&&delete t[n]})}function cleanUpElement(e){triggerEvent(e,"htmx:beforeCleanupElement"),deInitNode(e),forEach(e.children,function(t){cleanUpElement(t)})}function swapOuterHTML(e,t,n){if(e.tagName==="BODY")return swapInnerHTML(e,t,n);let r,i=e.previousSibling,o=parentElt(e);if(o){for(insertNodesBefore(o,e,t,n),i==null?r=o.firstChild:r=i.nextSibling,n.elts=n.elts.filter(function(s){return s!==e});r&&r!==e;)r instanceof Element&&n.elts.push(r),r=r.nextSibling;cleanUpElement(e),e.remove()}}function swapAfterBegin(e,t,n){return insertNodesBefore(e,e.firstChild,t,n)}function swapBeforeBegin(e,t,n){return insertNodesBefore(parentElt(e),e,t,n)}function swapBeforeEnd(e,t,n){return insertNodesBefore(e,null,t,n)}function swapAfterEnd(e,t,n){return insertNodesBefore(parentElt(e),e.nextSibling,t,n)}function swapDelete(e){cleanUpElement(e);let t=parentElt(e);if(t)return t.removeChild(e)}function swapInnerHTML(e,t,n){let r=e.firstChild;if(insertNodesBefore(e,r,t,n),r){for(;r.nextSibling;)cleanUpElement(r.nextSibling),e.removeChild(r.nextSibling);cleanUpElement(r),e.removeChild(r)}}function swapWithStyle(e,t,n,r,i){switch(e){case"none":return;case"outerHTML":swapOuterHTML(n,r,i);return;case"afterbegin":swapAfterBegin(n,r,i);return;case"beforebegin":swapBeforeBegin(n,r,i);return;case"beforeend":swapBeforeEnd(n,r,i);return;case"afterend":swapAfterEnd(n,r,i);return;case"delete":swapDelete(n);return;default:var o=getExtensions(t);for(let s=0;s<o.length;s++){let a=o[s];try{let l=a.handleSwap(e,n,r,i);if(l){if(Array.isArray(l))for(let u=0;u<l.length;u++){let c=l[u];c.nodeType!==Node.TEXT_NODE&&c.nodeType!==Node.COMMENT_NODE&&i.tasks.push(makeAjaxLoadTask(c))}return}}catch(l){logError(l)}}e==="innerHTML"?swapInnerHTML(n,r,i):swapWithStyle(htmx.config.defaultSwapStyle,t,n,r,i)}}function findAndSwapPartials(e,t,n){var r=findAll(e,"template[hx]");return forEach(r,function(i){var o=getRawAttribute(i,"type");if(o==="partial"){var s=getAttributeValue(i,"hx-target")||(i.id?"#"+CSS.escape(i.id):null);if(s){var a=getAttributeValue(i,"hx-swap"),l=getSwapSpecification(i,a),u=querySelectorAllExt(n||getDocument().body,s,!1);u.length===0&&triggerErrorEvent(getDocument().body,"htmx:partialErrorNoTarget",{template:i,targetSelector:s,sourceElement:n}),forEach(u,function(c){if(c=asElement(c),c){var f=i.content.cloneNode(!0);normalizeScriptTags(f);var h={shouldSwap:!0,target:c,fragment:f};if(!triggerEvent(c,"htmx:partialBeforeSwap",h))return;c=h.target,h.shouldSwap&&swap(c,h.fragment,l,{contextElement:c,afterSwapCallback:function(){forEach(t.elts,function(p){triggerEvent(p,"htmx:partialAfterSwap",h)})}})}})}}else triggerEvent(getDocument().body,"htmx:processTemplate",{type:o,template:i,settleInfo:t,sourceElement:n});i.parentNode.removeChild(i)}),r.length>0}function findAndSwapOobElements(e,t,n){var r=findAll(e,"[hx-swap-oob], [data-hx-swap-oob]");return forEach(r,function(i){if(htmx.config.allowNestedOobSwaps||i.parentElement===null){let o=getAttributeValue(i,"hx-swap-oob");o!=null&&oobSwap(o,i,t,n)}else i.removeAttribute("hx-swap-oob"),i.removeAttribute("data-hx-swap-oob")}),r.length>0}function swap(e,t,n,r){r||(r={});let i=null,o=null,s=function(){maybeCall(r.beforeSwapCallback),e=resolveTarget(e);let u=r.contextElement&&r.contextElement.isConnected?getRootNode(r.contextElement,!1):getDocument(),c=document.activeElement,f={};f={elt:c,start:c?c.selectionStart:null,end:c?c.selectionEnd:null};let h=makeSettleInfo(e);if(n.swapStyle==="textContent")e.textContent=t;else{let d=typeof t=="string"?makeFragment(t):t;if(h.title=r.title||d.title,r.historyRequest&&(d=d.querySelector("[hx-history-elt],[data-hx-history-elt]")||d),r.selectOOB){let g=r.selectOOB.split(",");for(let m=0;m<g.length;m++){let A=g[m].split(":",2),E=A[0].trim();E.indexOf("#")===0&&(E=E.substring(1));let w=A[1]||"true",me=d.querySelector("#"+E);me&&oobSwap(w,me,h,u)}}findAndSwapOobElements(d,h,u),forEach(findAll(d,"template"),function(g){g.content&&findAndSwapOobElements(g.content,h,u)&&g.remove()});var p=findAndSwapPartials(d,h,r.contextElement||asElement(e));if(r.select){let g=getDocument().createDocumentFragment();forEach(d.querySelectorAll(r.select),function(m){g.appendChild(m)}),d=g}handlePreservedElements(d),p&&!d.childElementCount&&!d.textContent.trim()?h.elts=[asElement(e)]:swapWithStyle(n.swapStyle,r.contextElement,e,d,h),restorePreservedElements()}if(f.elt&&!bodyContains(f.elt)&&getRawAttribute(f.elt,"id")){let d=document.getElementById(getRawAttribute(f.elt,"id")),g={preventScroll:n.focusScroll!==void 0?!n.focusScroll:!htmx.config.defaultFocusScroll};if(d){if(f.start&&d.setSelectionRange)try{d.setSelectionRange(f.start,f.end)}catch{}d.focus(g)}}removeClassFromElement(e,htmx.config.swappingClass),forEach(h.elts,function(d){d.classList&&addClassToElement(d,htmx.config.settlingClass),triggerEvent(d,"htmx:afterSwap",r.eventInfo)}),maybeCall(r.afterSwapCallback),n.ignoreTitle||handleTitle(h.title);let b=function(){if(forEach(h.tasks,function(d){d.call()}),forEach(h.elts,function(d){d.classList&&removeClassFromElement(d,htmx.config.settlingClass),triggerEvent(d,"htmx:afterSettle",r.eventInfo)}),r.anchor){let d=asElement(resolveTarget("#"+r.anchor));d&&d.scrollIntoView({block:"start",behavior:"auto"})}updateScrollState(h.elts,n),maybeCall(r.afterSettleCallback),maybeCall(i)};n.settleDelay>0?getWindow().setTimeout(b,n.settleDelay):b()},a=htmx.config.globalViewTransitions;n.hasOwnProperty("transition")&&(a=n.transition);let l=r.contextElement||getDocument();if(a&&triggerEvent(l,"htmx:beforeTransition",r.eventInfo)&&typeof Promise<"u"&&document.startViewTransition){let u=new Promise(function(f,h){i=f,o=h}),c=s;s=function(){document.startViewTransition(function(){return c(),u})}}try{n?.swapDelay&&n.swapDelay>0?getWindow().setTimeout(s,n.swapDelay):s()}catch(u){throw triggerErrorEvent(l,"htmx:swapError",r.eventInfo),maybeCall(o),u}}function handleTriggerHeader(e,t,n){let r=e.getResponseHeader(t);if(r.indexOf("{")===0){let i=parseJSON(r)||{};for(let o of Object.keys(i)){let s=i[o];isRawObject(s)?n=s.target!==void 0?s.target:n:s={value:s},triggerEvent(n,o,s)}}else{let i=r.split(",");for(let o=0;o<i.length;o++)triggerEvent(n,i[o].trim(),[])}}let WHITESPACE=/\s/,WHITESPACE_OR_COMMA=/[\s,]/,SYMBOL_START=/[_$a-zA-Z]/,SYMBOL_CONT=/[_$a-zA-Z0-9]/,STRINGISH_START=['"',"'","/"],NOT_WHITESPACE=/[^\s]/,COMBINED_SELECTOR_START=/[{(]/,COMBINED_SELECTOR_END=/[})]/;function tokenizeString(e){let t=[],n=0;for(;n<e.length;){if(SYMBOL_START.exec(e.charAt(n))){for(var r=n;SYMBOL_CONT.exec(e.charAt(n+1));)n++;t.push(e.substring(r,n+1))}else if(STRINGISH_START.indexOf(e.charAt(n))!==-1){let i=e.charAt(n);var r=n;for(n++;n<e.length&&e.charAt(n)!==i;)e.charAt(n)==="\\"&&n++,n++;t.push(e.substring(r,n+1))}else{let i=e.charAt(n);t.push(i)}n++}return t}function isPossibleRelativeReference(e,t,n){return SYMBOL_START.exec(e.charAt(0))&&e!=="true"&&e!=="false"&&e!=="this"&&e!==n&&t!=="."}function maybeGenerateConditional(e,t,n){if(t[0]==="["){t.shift();let r=1,i=" return (function("+n+"){ return (",o=null;for(;t.length>0;){let s=t[0];if(s==="]"){if(r--,r===0){o===null&&(i=i+"true"),t.shift(),i+=")})";try{let a=maybeEval(e,function(){return Function(i)()},function(){return!0});return a.source=i,a}catch(a){return triggerErrorEvent(getDocument().body,"htmx:syntax:error",{error:a,source:i}),null}}}else s==="["&&r++;isPossibleRelativeReference(s,o,n)?i+="(("+n+"."+s+") ? ("+n+"."+s+") : (window."+s+"))":i=i+s,o=t.shift()}}}function consumeUntil(e,t){let n="";for(;e.length>0&&!t.test(e[0]);)n+=e.shift();return n}function consumeCSSSelector(e){let t;return e.length>0&&COMBINED_SELECTOR_START.test(e[0])?(e.shift(),t=consumeUntil(e,COMBINED_SELECTOR_END).trim(),e.shift()):t=consumeUntil(e,WHITESPACE_OR_COMMA),t}let INPUT_SELECTOR="input, textarea, select";function parseAndCacheTrigger(e,t,n){let r=[],i=tokenizeString(t);do{consumeUntil(i,NOT_WHITESPACE);let a=i.length,l=consumeUntil(i,/[,\[\s]/);if(l!=="")if(l==="every"){let u={trigger:"every"};consumeUntil(i,NOT_WHITESPACE),u.pollInterval=parseInterval(consumeUntil(i,/[,\[\s]/)),consumeUntil(i,NOT_WHITESPACE);var o=maybeGenerateConditional(e,i,"event");o&&(u.eventFilter=o),r.push(u)}else{let u={trigger:l};var o=maybeGenerateConditional(e,i,"event");for(o&&(u.eventFilter=o),consumeUntil(i,NOT_WHITESPACE);i.length>0&&i[0]!==",";){let f=i.shift();if(f==="changed")u.changed=!0;else if(f==="once")u.once=!0;else if(f==="consume")u.consume=!0;else if(f==="delay"&&i[0]===":")i.shift(),u.delay=parseInterval(consumeUntil(i,WHITESPACE_OR_COMMA));else if(f==="from"&&i[0]===":"){if(i.shift(),COMBINED_SELECTOR_START.test(i[0]))var s=consumeCSSSelector(i);else{var s=consumeUntil(i,WHITESPACE_OR_COMMA);if(s==="closest"||s==="find"||s==="next"||s==="previous"){i.shift();let p=consumeCSSSelector(i);p.length>0&&(s+=" "+p)}}u.from=s}else f==="target"&&i[0]===":"?(i.shift(),u.target=consumeCSSSelector(i)):f==="throttle"&&i[0]===":"?(i.shift(),u.throttle=parseInterval(consumeUntil(i,WHITESPACE_OR_COMMA))):f==="queue"&&i[0]===":"?(i.shift(),u.queue=consumeUntil(i,WHITESPACE_OR_COMMA)):f==="root"&&i[0]===":"?(i.shift(),u[f]=consumeCSSSelector(i)):f==="threshold"&&i[0]===":"?(i.shift(),u[f]=consumeUntil(i,WHITESPACE_OR_COMMA)):triggerErrorEvent(e,"htmx:syntax:error",{token:i.shift()});consumeUntil(i,NOT_WHITESPACE)}r.push(u)}i.length===a&&triggerErrorEvent(e,"htmx:syntax:error",{token:i.shift()}),consumeUntil(i,NOT_WHITESPACE)}while(i[0]===","&&i.shift());return n&&(n[t]=r),r}function getTriggerSpecs(e){let t=getAttributeValue(e,"hx-trigger"),n=[];if(t){let r=htmx.config.triggerSpecsCache;n=r&&r[t]||parseAndCacheTrigger(e,t,r)}return n.length>0?n:matches(e,"form")?[{trigger:"submit"}]:matches(e,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:matches(e,INPUT_SELECTOR)?[{trigger:"change"}]:[{trigger:"click"}]}function cancelPolling(e){getInternalData(e).cancelled=!0}function processPolling(e,t,n){let r=getInternalData(e);r.timeout=getWindow().setTimeout(function(){bodyContains(e)&&r.cancelled!==!0&&(maybeFilterEvent(n,e,makeEvent("hx:poll:trigger",{triggerSpec:n,target:e}))||t(e),processPolling(e,t,n))},n.pollInterval)}function isLocalLink(e){return location.hostname===e.hostname&&getRawAttribute(e,"href")&&getRawAttribute(e,"href").indexOf("#")!==0}function eltIsDisabled(e){return closest(e,htmx.config.disableSelector)}function boostElement(e,t,n){if(e instanceof HTMLAnchorElement&&isLocalLink(e)&&(e.target===""||e.target==="_self")||e.tagName==="FORM"&&String(getRawAttribute(e,"method")).toLowerCase()!=="dialog"){t.boosted=!0;let r,i;if(e.tagName==="A")r="get",i=getRawAttribute(e,"href");else{let o=getRawAttribute(e,"method");r=o?o.toLowerCase():"get",i=getRawAttribute(e,"action"),(i==null||i==="")&&(i=location.href),r==="get"&&i.includes("?")&&(i=i.replace(/\?[^#]+/,""))}n.forEach(function(o){addEventListener(e,function(s,a){let l=asElement(s);if(eltIsDisabled(l)){cleanUpElement(l);return}issueAjaxRequest(r,i,l,a)},t,o,!0)})}}function shouldCancel(e,t){if(e.type==="submit"&&t.tagName==="FORM")return!0;if(e.type==="click"){let n=t.closest('input[type="submit"], button');if(n&&n.form&&n.type==="submit")return!0;let r=t.closest("a"),i=/^#.+/;if(r&&r.href&&!i.test(r.getAttribute("href")))return!0}return!1}function ignoreBoostedAnchorCtrlClick(e,t){return getInternalData(e).boosted&&e instanceof HTMLAnchorElement&&t.type==="click"&&(t.ctrlKey||t.metaKey)}function maybeFilterEvent(e,t,n){let r=e.eventFilter;if(r)try{return r.call(t,n)!==!0}catch(i){let o=r.source;return triggerErrorEvent(getDocument().body,"htmx:eventFilter:error",{error:i,source:o}),!0}return!1}function addEventListener(e,t,n,r,i){let o=getInternalData(e),s;r.from?s=querySelectorAllExt(e,r.from):s=[e],r.changed&&("lastValue"in o||(o.lastValue=new WeakMap),s.forEach(function(a){o.lastValue.has(r)||o.lastValue.set(r,new WeakMap),o.lastValue.get(r).set(a,a.value)})),forEach(s,function(a){let l=function(u){if(!bodyContains(e)){a.removeEventListener(r.trigger,l);return}if(ignoreBoostedAnchorCtrlClick(e,u)||((i||shouldCancel(u,a))&&u.preventDefault(),maybeFilterEvent(r,e,u)))return;let c=getInternalData(u);if(c.triggerSpec=r,c.handledFor==null&&(c.handledFor=[]),c.handledFor.indexOf(e)<0){if(c.handledFor.push(e),r.consume&&u.stopPropagation(),r.target&&u.target&&!matches(asElement(u.target),r.target))return;if(r.once){if(o.triggeredOnce)return;o.triggeredOnce=!0}if(r.changed){let f=u.target,h=f.value,p=o.lastValue.get(r);if(p.has(f)&&p.get(f)===h)return;p.set(f,h)}if(o.delayed&&clearTimeout(o.delayed),o.throttle)return;r.throttle>0?o.throttle||(triggerEvent(e,"htmx:trigger"),t(e,u),o.throttle=getWindow().setTimeout(function(){o.throttle=null},r.throttle)):r.delay>0?o.delayed=getWindow().setTimeout(function(){triggerEvent(e,"htmx:trigger"),t(e,u)},r.delay):(triggerEvent(e,"htmx:trigger"),t(e,u))}};n.listenerInfos==null&&(n.listenerInfos=[]),n.listenerInfos.push({trigger:r.trigger,listener:l,on:a}),a.addEventListener(r.trigger,l)})}let windowIsScrolling=!1,scrollHandler=null;function initScrollHandler(){scrollHandler||(scrollHandler=function(){windowIsScrolling=!0},window.addEventListener("scroll",scrollHandler),window.addEventListener("resize",scrollHandler),setInterval(function(){windowIsScrolling&&(windowIsScrolling=!1,forEach(getDocument().querySelectorAll("[hx-trigger*='revealed'],[data-hx-trigger*='revealed']"),function(e){maybeReveal(e)}))},200))}function maybeReveal(e){!hasAttribute(e,"data-hx-revealed")&&isScrolledIntoView(e)&&(e.setAttribute("data-hx-revealed","true"),getInternalData(e).initHash?triggerEvent(e,"revealed"):e.addEventListener("htmx:afterProcessNode",function(){triggerEvent(e,"revealed")},{once:!0}))}function loadImmediately(e,t,n,r){let i=function(){n.loaded||(n.loaded=!0,triggerEvent(e,"htmx:trigger"),t(e))};r>0?getWindow().setTimeout(i,r):i()}function processVerbs(e,t,n){let r=!1;return forEach(VERBS,function(i){if(hasAttribute(e,"hx-"+i)){let o=getAttributeValue(e,"hx-"+i);r=!0,t.path=o,t.verb=i,n.forEach(function(s){addTriggerHandler(e,s,t,function(a,l){let u=asElement(a);if(eltIsDisabled(u)){cleanUpElement(u);return}issueAjaxRequest(i,o,u,l)})})}}),r}function addTriggerHandler(e,t,n,r){if(t.trigger==="revealed")initScrollHandler(),addEventListener(e,r,n,t),maybeReveal(asElement(e));else if(t.trigger==="intersect"){let i={};t.root&&(i.root=querySelectorExt(e,t.root)),t.threshold&&(i.threshold=parseFloat(t.threshold)),new IntersectionObserver(function(s){for(let a=0;a<s.length;a++)if(s[a].isIntersecting){triggerEvent(e,"intersect");break}},i).observe(asElement(e)),addEventListener(asElement(e),r,n,t)}else!n.firstInitCompleted&&t.trigger==="load"?maybeFilterEvent(t,e,makeEvent("load",{elt:e}))||loadImmediately(asElement(e),r,n,t.delay):t.pollInterval>0?(n.polling=!0,processPolling(asElement(e),r,t)):addEventListener(e,r,n,t)}function shouldProcessHxOn(e){let t=asElement(e);if(!t)return!1;let n=t.attributes;for(let r=0;r<n.length;r++){let i=n[r].name;if(startsWith(i,"hx-on:")||startsWith(i,"data-hx-on:")||startsWith(i,"hx-on-")||startsWith(i,"data-hx-on-"))return!0}return!1}let HX_ON_QUERY=new XPathEvaluator().createExpression('.//*[@*[ starts-with(name(), "hx-on:") or starts-with(name(), "data-hx-on:") or starts-with(name(), "hx-on-") or starts-with(name(), "data-hx-on-") ]]');function processHXOnRoot(e,t){shouldProcessHxOn(e)&&t.push(asElement(e));let n=HX_ON_QUERY.evaluate(e),r=null;for(;r=n.iterateNext();)t.push(asElement(r))}function findHxOnWildcardElements(e){let t=[];if(e instanceof DocumentFragment)for(let n of e.childNodes)processHXOnRoot(n,t);else processHXOnRoot(e,t);return t}function findElementsToProcess(e){if(e.querySelectorAll){let n=", [hx-boost] a, [data-hx-boost] a, a[hx-boost], a[data-hx-boost]",r=[];for(let o of Object.keys(extensions)){let s=extensions[o];if(s.getSelectors){var t=s.getSelectors();t&&r.push(t)}}return e.querySelectorAll(VERB_SELECTOR+n+", form, [type='submit'], [hx-ext], [data-hx-ext], [hx-trigger], [data-hx-trigger]"+r.flat().map(o=>", "+o).join(""))}else return[]}function maybeSetLastButtonClicked(e){let t=getTargetButton(e.target),n=getRelatedFormData(e);n&&(n.lastButtonClicked=t)}function maybeUnsetLastButtonClicked(e){let t=getRelatedFormData(e);t&&(t.lastButtonClicked=null)}function getTargetButton(e){return closest(asElement(e),"button, input[type='submit']")}function getRelatedForm(e){return e.form||closest(e,"form")}function getRelatedFormData(e){let t=getTargetButton(e.target);if(!t)return;let n=getRelatedForm(t);if(n)return getInternalData(n)}function initButtonTracking(e){e.addEventListener("click",maybeSetLastButtonClicked),e.addEventListener("focusin",maybeSetLastButtonClicked),e.addEventListener("focusout",maybeUnsetLastButtonClicked)}function addHxOnEventHandler(e,t,n){let r=getInternalData(e);Array.isArray(r.onHandlers)||(r.onHandlers=[]);let i,o=function(s){maybeEval(e,function(){eltIsDisabled(e)||(i||(i=new Function("event",n)),i.call(e,s))})};e.addEventListener(t,o),r.onHandlers.push({event:t,listener:o})}function processHxOnWildcard(e){deInitOnHandlers(e);for(let t=0;t<e.attributes.length;t++){let n=e.attributes[t].name,r=e.attributes[t].value;if(startsWith(n,"hx-on")||startsWith(n,"data-hx-on")){let i=n.indexOf("-on")+3,o=n.slice(i,i+1);if(o==="-"||o===":"){let s=n.slice(i+1);startsWith(s,":")?s="htmx"+s:startsWith(s,"-")?s="htmx:"+s.slice(1):startsWith(s,"htmx-")&&(s="htmx:"+s.slice(5)),addHxOnEventHandler(e,s,r)}}}}function initNode(e){triggerEvent(e,"htmx:beforeProcessNode");let t=getInternalData(e),n=getTriggerSpecs(e);processVerbs(e,t,n)||(getClosestAttributeValue(e,"hx-boost")==="true"?boostElement(e,t,n):hasAttribute(e,"hx-trigger")&&n.forEach(function(i){addTriggerHandler(e,i,t,function(){})})),(e.tagName==="FORM"||getRawAttribute(e,"type")==="submit"&&hasAttribute(e,"form"))&&initButtonTracking(e),t.firstInitCompleted=!0,triggerEvent(e,"htmx:afterProcessNode")}function maybeDeInitAndHash(e){if(!(e instanceof Element))return!1;let t=getInternalData(e),n=attributeHash(e);return t.initHash!==n?(deInitNode(e),t.initHash=n,!0):!1}function processNode(e){if(e=resolveTarget(e),eltIsDisabled(e)){cleanUpElement(e);return}let t=[];maybeDeInitAndHash(e)&&t.push(e),forEach(findElementsToProcess(e),function(n){if(eltIsDisabled(n)){cleanUpElement(n);return}maybeDeInitAndHash(n)&&t.push(n)}),forEach(findHxOnWildcardElements(e),processHxOnWildcard),forEach(t,initNode)}function kebabEventName(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function makeEvent(e,t){return new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t})}function triggerErrorEvent(e,t,n){triggerEvent(e,t,mergeObjects({error:t},n))}function ignoreEventForLogging(e){return e==="htmx:afterProcessNode"}function withExtensions(e,t,n){forEach(getExtensions(e,[],n),function(r){try{t(r)}catch(i){logError(i)}})}function logError(e){console.error(e)}function triggerEvent(e,t,n){e=resolveTarget(e),n==null&&(n={}),n.elt=e;let r=makeEvent(t,n);htmx.logger&&!ignoreEventForLogging(t)&&htmx.logger(e,t,n),n.error&&(logError(n.error+(n.target?", "+n.target:"")),triggerEvent(e,"htmx:error",{errorInfo:n}));let i=e.dispatchEvent(r),o=kebabEventName(t);if(i&&o!==t){let s=makeEvent(o,r.detail);i=i&&e.dispatchEvent(s)}return withExtensions(asElement(e),function(s){i=i&&s.onEvent(t,r)!==!1&&!r.defaultPrevented}),i}let currentPathForHistory;function setCurrentPathForHistory(e){currentPathForHistory=e,canAccessLocalStorage()&&sessionStorage.setItem("htmx-current-path-for-history",e)}setCurrentPathForHistory(location.pathname+location.search);function getHistoryElement(){return getDocument().querySelector("[hx-history-elt],[data-hx-history-elt]")||getDocument().body}function saveToHistoryCache(e,t){if(!canAccessLocalStorage())return;let n=cleanInnerHtmlForHistory(t),r=getDocument().title,i=window.scrollY;if(htmx.config.historyCacheSize<=0){sessionStorage.removeItem("htmx-history-cache");return}e=normalizePath(e);let o=parseJSON(sessionStorage.getItem("htmx-history-cache"))||[];for(let a=0;a<o.length;a++)if(o[a].url===e){o.splice(a,1);break}let s={url:e,content:n,title:r,scroll:i};for(triggerEvent(getDocument().body,"htmx:historyItemCreated",{item:s,cache:o}),o.push(s);o.length>htmx.config.historyCacheSize;)o.shift();for(;o.length>0;)try{sessionStorage.setItem("htmx-history-cache",JSON.stringify(o));break}catch(a){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:a,cache:o}),o.shift()}}function getCachedHistory(e){if(!canAccessLocalStorage())return null;e=normalizePath(e);let t=parseJSON(sessionStorage.getItem("htmx-history-cache"))||[];for(let n=0;n<t.length;n++)if(t[n].url===e)return t[n];return null}function cleanInnerHtmlForHistory(e){let t=htmx.config.requestClass,n=e.cloneNode(!0);return forEach(findAll(n,"."+t),function(r){removeClassFromElement(r,t)}),forEach(findAll(n,"[data-disabled-by-htmx]"),function(r){r.removeAttribute("disabled")}),n.innerHTML}function saveCurrentPageToHistory(){let e=getHistoryElement(),t=currentPathForHistory;canAccessLocalStorage()&&(t=sessionStorage.getItem("htmx-current-path-for-history")),t=t||location.pathname+location.search,getDocument().querySelector('[hx-history="false" i],[data-hx-history="false" i]')||(triggerEvent(getDocument().body,"htmx:beforeHistorySave",{path:t,historyElt:e}),saveToHistoryCache(t,e)),htmx.config.historyEnabled&&history.replaceState({htmx:!0},getDocument().title,location.href)}function pushUrlIntoHistory(e){htmx.config.getCacheBusterParam&&(e=e.replace(/org\.htmx\.cache-buster=[^&]*&?/,""),(endsWith(e,"&")||endsWith(e,"?"))&&(e=e.slice(0,-1))),htmx.config.historyEnabled&&history.pushState({htmx:!0},"",e),setCurrentPathForHistory(e)}function replaceUrlInHistory(e){htmx.config.historyEnabled&&history.replaceState({htmx:!0},"",e),setCurrentPathForHistory(e)}function settleImmediately(e){forEach(e,function(t){t.call(void 0)})}function loadHistoryFromServer(e){let t=new XMLHttpRequest,n={swapStyle:"innerHTML",swapDelay:0,settleDelay:0},r={path:e,xhr:t,historyElt:getHistoryElement(),swapSpec:n};t.open("GET",e,!0),htmx.config.historyRestoreAsHxRequest&&t.setRequestHeader("HX-Request","true"),t.setRequestHeader("HX-History-Restore-Request","true"),t.setRequestHeader("HX-Current-URL",location.href),t.onload=function(){this.status>=200&&this.status<400?(r.response=this.response,triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",r),swap(r.historyElt,r.response,n,{contextElement:r.historyElt,historyRequest:!0}),setCurrentPathForHistory(r.path),triggerEvent(getDocument().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:r.response})):triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",r)},triggerEvent(getDocument().body,"htmx:historyCacheMiss",r)&&t.send()}function restoreHistory(e){saveCurrentPageToHistory(),e=e||location.pathname+location.search;let t=getCachedHistory(e);if(t){let n={swapStyle:"innerHTML",swapDelay:0,settleDelay:0,scroll:t.scroll},r={path:e,item:t,historyElt:getHistoryElement(),swapSpec:n};triggerEvent(getDocument().body,"htmx:historyCacheHit",r)&&(swap(r.historyElt,t.content,n,{contextElement:r.historyElt,title:t.title}),setCurrentPathForHistory(r.path),triggerEvent(getDocument().body,"htmx:historyRestore",r))}else htmx.config.refreshOnHistoryMiss?htmx.location.reload(!0):loadHistoryFromServer(e)}function addRequestIndicatorClasses(e){let t=findAttributeTargets(e,"hx-indicator");return t==null&&(t=[e]),forEach(t,function(n){let r=getInternalData(n);r.requestCount=(r.requestCount||0)+1,addClassToElement(n,htmx.config.requestClass)}),t}function disableElements(e){let t=findAttributeTargets(e,"hx-disabled-elt");return t==null&&(t=[]),forEach(t,function(n){let r=getInternalData(n);r.requestCount=(r.requestCount||0)+1,n.hasAttribute("disabled")||(n.setAttribute("disabled",""),n.setAttribute("data-disabled-by-htmx",""))}),t}function removeRequestIndicators(e,t){forEach(e.concat(t),function(n){let r=getInternalData(n);r.requestCount=(r.requestCount||1)-1}),forEach(e,function(n){getInternalData(n).requestCount===0&&removeClassFromElement(n,htmx.config.requestClass)}),forEach(t,function(n){getInternalData(n).requestCount===0&&n.hasAttribute("data-disabled-by-htmx")&&(n.removeAttribute("disabled"),n.removeAttribute("data-disabled-by-htmx"))})}function haveSeenNode(e,t){for(let n=0;n<e.length;n++)if(e[n].isSameNode(t))return!0;return!1}function shouldInclude(e){let t=e;return t.name===""||t.name==null||t.disabled||closest(t,"fieldset[disabled]")||t.type==="button"||t.type==="submit"||t.tagName==="image"||t.tagName==="reset"||t.tagName==="file"?!1:t.type==="checkbox"||t.type==="radio"?t.checked:!0}function addValueToFormData(e,t,n){e!=null&&t!=null&&(Array.isArray(t)?t.forEach(function(r){n.append(e,r)}):n.append(e,t))}function removeValueFromFormData(e,t,n){if(e!=null&&t!=null){let r=n.getAll(e);Array.isArray(t)?r=r.filter(i=>t.indexOf(i)<0):r=r.filter(i=>i!==t),n.delete(e),forEach(r,i=>n.append(e,i))}}function getValueFromInput(e){return e instanceof HTMLSelectElement&&e.multiple?toArray(e.querySelectorAll("option:checked")).map(function(t){return t.value}):e instanceof HTMLInputElement&&e.files?toArray(e.files):e.value}function processInputValue(e,t,n,r,i){if(!(r==null||haveSeenNode(e,r))){if(e.push(r),shouldInclude(r)){let o=getRawAttribute(r,"name");addValueToFormData(o,getValueFromInput(r),t),i&&validateElement(r,n)}r instanceof HTMLFormElement&&(forEach(r.elements,function(o){e.indexOf(o)>=0?removeValueFromFormData(o.name,getValueFromInput(o),t):e.push(o),i&&validateElement(o,n)}),new FormData(r).forEach(function(o,s){o instanceof File&&o.name===""||addValueToFormData(s,o,t)}))}}function validateElement(e,t){let n=e;n.willValidate&&(triggerEvent(n,"htmx:validation:validate"),n.checkValidity()||(triggerEvent(n,"htmx:validation:failed",{message:n.validationMessage,validity:n.validity})&&!t.length&&htmx.config.reportValidityOfForms&&n.reportValidity(),t.push({elt:n,message:n.validationMessage,validity:n.validity})))}function overrideFormData(e,t){for(let n of t.keys())e.delete(n);return t.forEach(function(n,r){e.append(r,n)}),e}function getInputValues(e,t){let n=[],r=new FormData,i=new FormData,o=[],s=getInternalData(e);s.lastButtonClicked&&!bodyContains(s.lastButtonClicked)&&(s.lastButtonClicked=null);let a=e instanceof HTMLFormElement&&e.noValidate!==!0||getAttributeValue(e,"hx-validate")==="true";if(s.lastButtonClicked&&(a=a&&s.lastButtonClicked.formNoValidate!==!0),t!=="get"&&processInputValue(n,i,o,getRelatedForm(e),a),processInputValue(n,r,o,e,a),s.lastButtonClicked||e.tagName==="BUTTON"||e.tagName==="INPUT"&&getRawAttribute(e,"type")==="submit"){let u=s.lastButtonClicked||e,c=getRawAttribute(u,"name");addValueToFormData(c,u.value,i)}let l=findAttributeTargets(e,"hx-include");return forEach(l,function(u){processInputValue(n,r,o,asElement(u),a),matches(u,"form")||forEach(asParentNode(u).querySelectorAll(INPUT_SELECTOR),function(c){processInputValue(n,r,o,c,a)})}),overrideFormData(r,i),{errors:o,formData:r,values:formDataProxy(r)}}function appendParam(e,t,n){e!==""&&(e+="&"),String(n)==="[object Object]"&&(n=JSON.stringify(n));let r=encodeURIComponent(n);return e+=encodeURIComponent(t)+"="+r,e}function urlEncode(e){e=formDataFromObject(e);let t="";return e.forEach(function(n,r){t=appendParam(t,r,n)}),t}function getHeaders(e,t,n){let r={"HX-Request":"true","HX-Trigger":getRawAttribute(e,"id"),"HX-Trigger-Name":getRawAttribute(e,"name"),"HX-Target":getAttributeValue(t,"id"),"HX-Current-URL":location.href};return getValuesForElement(e,"hx-headers",!1,r),n!==void 0&&(r["HX-Prompt"]=n),getInternalData(e).boosted&&(r["HX-Boosted"]="true"),r}function filterValues(e,t){let n=getClosestAttributeValue(t,"hx-params");if(n){if(n==="none")return new FormData;if(n==="*")return e;if(n.indexOf("not ")===0)return forEach(n.slice(4).split(","),function(r){r=r.trim(),e.delete(r)}),e;{let r=new FormData;return forEach(n.split(","),function(i){i=i.trim(),e.has(i)&&e.getAll(i).forEach(function(o){r.append(i,o)})}),r}}else return e}function isAnchorLink(e){return!!getRawAttribute(e,"href")&&getRawAttribute(e,"href").indexOf("#")>=0}function getSwapSpecification(e,t){let n=t||getClosestAttributeValue(e,"hx-swap"),r={swapStyle:getInternalData(e).boosted?"innerHTML":htmx.config.defaultSwapStyle,swapDelay:htmx.config.defaultSwapDelay,settleDelay:htmx.config.defaultSettleDelay};if(htmx.config.scrollIntoViewOnBoost&&getInternalData(e).boosted&&!isAnchorLink(e)&&(r.show="top"),n){let s=splitOnWhitespace(n);if(s.length>0)for(let a=0;a<s.length;a++){let l=s[a];if(l.indexOf("swap:")===0)r.swapDelay=parseInterval(l.slice(5));else if(l.indexOf("settle:")===0)r.settleDelay=parseInterval(l.slice(7));else if(l.indexOf("transition:")===0)r.transition=l.slice(11)==="true";else if(l.indexOf("ignoreTitle:")===0)r.ignoreTitle=l.slice(12)==="true";else if(l.indexOf("scroll:")===0){var i=l.slice(7).split(":");let c=i.pop();var o=i.length>0?i.join(":"):null;r.scroll=c,r.scrollTarget=o}else if(l.indexOf("show:")===0){var i=l.slice(5).split(":");let f=i.pop();var o=i.length>0?i.join(":"):null;r.show=f,r.showTarget=o}else if(l.indexOf("focus-scroll:")===0){let u=l.slice(13);r.focusScroll=u=="true"}else a==0?r.swapStyle=l:logError("Unknown modifier in hx-swap: "+l)}}return r}function usesFormData(e){return getClosestAttributeValue(e,"hx-encoding")==="multipart/form-data"||matches(e,"form")&&getRawAttribute(e,"enctype")==="multipart/form-data"}function encodeParamsForBody(e,t,n){let r=null;return withExtensions(t,function(i){r==null&&(r=i.encodeParameters(e,n,t))}),r??(usesFormData(t)?overrideFormData(new FormData,formDataFromObject(n)):urlEncode(n))}function makeSettleInfo(e){return{tasks:[],elts:[e]}}function updateScrollState(e,t){let n=e[0],r=e[e.length-1];if(t.scroll){var i=null;t.scrollTarget&&(i=asElement(querySelectorExt(n,t.scrollTarget))),t.scroll==="top"&&(n||i)&&(i=i||n,i.scrollTop=0),t.scroll==="bottom"&&(r||i)&&(i=i||r,i.scrollTop=i.scrollHeight),typeof t.scroll=="number"&&getWindow().setTimeout(function(){window.scrollTo(0,t.scroll)},0)}if(t.show){var i=null;if(t.showTarget){let s=t.showTarget;t.showTarget==="window"&&(s="body"),i=asElement(querySelectorExt(n,s))}t.show==="top"&&(n||i)&&(i=i||n,i.scrollIntoView({block:"start",behavior:htmx.config.scrollBehavior})),t.show==="bottom"&&(r||i)&&(i=i||r,i.scrollIntoView({block:"end",behavior:htmx.config.scrollBehavior}))}}function getValuesForElement(e,t,n,r,i){if(r==null&&(r={}),e==null)return r;let o=getAttributeValue(e,t);if(o){let s=o.trim(),a=n;if(s==="unset")return null;s.indexOf("javascript:")===0?(s=s.slice(11),a=!0):s.indexOf("js:")===0&&(s=s.slice(3),a=!0),s.indexOf("{")!==0&&(s="{"+s+"}");let l;a?l=maybeEval(e,function(){return i?Function("event","return ("+s+")").call(e,i):Function("return ("+s+")").call(e)},{}):l=parseJSON(s);for(let u of Object.keys(l))r[u]==null&&(r[u]=l[u])}return getValuesForElement(asElement(parentElt(e)),t,n,r,i)}function maybeEval(e,t,n){return htmx.config.allowEval?t():(triggerErrorEvent(e,"htmx:evalDisallowedError"),n)}function getHXVarsForElement(e,t,n){return getValuesForElement(e,"hx-vars",!0,n,t)}function getHXValsForElement(e,t,n){return getValuesForElement(e,"hx-vals",!1,n,t)}function getExpressionVars(e,t){return mergeObjects(getHXVarsForElement(e,t),getHXValsForElement(e,t))}function safelySetHeaderValue(e,t,n){if(n!==null)try{e.setRequestHeader(t,n)}catch{e.setRequestHeader(t,encodeURIComponent(n)),e.setRequestHeader(t+"-URI-AutoEncoded","true")}}function getPathFromResponse(e){if(e.responseURL)try{let t=new URL(e.responseURL);return t.pathname+t.search}catch{triggerErrorEvent(getDocument().body,"htmx:badResponseUrl",{url:e.responseURL})}}function hasHeader(e,t){return e.getResponseHeader(t)!==null}function ajaxHelper(e,t,n){if(e=e.toLowerCase(),n){if(n instanceof Element||typeof n=="string")return issueAjaxRequest(e,t,null,null,{targetOverride:resolveTarget(n)||DUMMY_ELT,returnPromise:!0});{let r=resolveTarget(n.target);return(n.target&&!r||n.source&&!r&&!resolveTarget(n.source))&&(r=DUMMY_ELT),issueAjaxRequest(e,t,resolveTarget(n.source),n.event,{handler:n.handler,headers:n.headers,values:n.values,targetOverride:r,swapOverride:n.swap,select:n.select,returnPromise:!0,push:n.push,replace:n.replace,selectOOB:n.selectOOB})}}else return issueAjaxRequest(e,t,null,null,{returnPromise:!0})}function hierarchyForElt(e){let t=[];for(;e;)t.push(e),e=e.parentElement;return t}function verifyPath(e,t,n){let r=new URL(t,location.protocol!=="about:"?location.href:window.origin),o=(location.protocol!=="about:"?location.origin:window.origin)===r.origin;return htmx.config.selfRequestsOnly&&!o?!1:triggerEvent(e,"htmx:validateUrl",mergeObjects({url:r,sameHost:o},n))}function formDataFromObject(e){if(e instanceof FormData)return e;let t=new FormData;for(let n of Object.keys(e))e[n]&&typeof e[n].forEach=="function"?e[n].forEach(function(r){t.append(n,r)}):typeof e[n]=="object"&&!(e[n]instanceof Blob)?t.append(n,JSON.stringify(e[n])):t.append(n,e[n]);return t}function formDataArrayProxy(e,t,n){return new Proxy(n,{get:function(r,i){return typeof i=="number"?r[i]:i==="length"?r.length:i==="push"?function(o){r.push(o),e.append(t,o)}:typeof r[i]=="function"?function(){r[i].apply(r,arguments),e.delete(t),r.forEach(function(o){e.append(t,o)})}:r[i]&&r[i].length===1?r[i][0]:r[i]},set:function(r,i,o){return r[i]=o,e.delete(t),r.forEach(function(s){e.append(t,s)}),!0}})}function formDataProxy(e){return new Proxy(e,{get:function(t,n){if(typeof n=="symbol"){let i=Reflect.get(t,n);return typeof i=="function"?function(){return i.apply(e,arguments)}:i}if(n==="toJSON")return()=>Object.fromEntries(e);if(n in t&&typeof t[n]=="function")return function(){return e[n].apply(e,arguments)};let r=e.getAll(n);if(r.length!==0)return r.length===1?r[0]:formDataArrayProxy(t,n,r)},set:function(t,n,r){return typeof n!="string"?!1:(t.delete(n),r&&typeof r.forEach=="function"?r.forEach(function(i){t.append(n,i)}):typeof r=="object"&&!(r instanceof Blob)?t.append(n,JSON.stringify(r)):t.append(n,r),!0)},deleteProperty:function(t,n){return typeof n=="string"&&t.delete(n),!0},ownKeys:function(t){return Reflect.ownKeys(Object.fromEntries(t))},getOwnPropertyDescriptor:function(t,n){return Reflect.getOwnPropertyDescriptor(Object.fromEntries(t),n)}})}function issueAjaxRequest(e,t,n,r,i,o){let s=null,a=null;if(i=i??{},i.returnPromise&&typeof Promise<"u")var l=new Promise(function(v,C){s=v,a=C});n==null&&(n=getDocument().body);let u=i.handler||handleAjaxResponse,c=i.select||null;if(!bodyContains(n))return maybeCall(s),l;let f=i.targetOverride||asElement(getTarget(n));if(f==null||f==DUMMY_ELT)return triggerErrorEvent(n,"htmx:targetError",{target:getClosestAttributeValue(n,"hx-target")}),maybeCall(a),l;let h=getInternalData(n),p=h.lastButtonClicked;if(p){let v=getRawAttribute(p,"formaction");v!=null&&(t=v);let C=getRawAttribute(p,"formmethod");if(C!=null)if(VERBS.includes(C.toLowerCase()))e=C;else return maybeCall(s),l}let b=getClosestAttributeValue(n,"hx-confirm");if(o===void 0&&triggerEvent(n,"htmx:confirm",{target:f,elt:n,path:t,verb:e,triggeringEvent:r,etc:i,issueRequest:function(q){return issueAjaxRequest(e,t,n,r,i,!!q)},question:b})===!1)return maybeCall(s),l;let d=n,g=getClosestAttributeValue(n,"hx-sync"),m=null,A=!1;if(g){let v=g.split(":"),C=v[0].trim();if(C==="this"?d=findThisElement(n,"hx-sync"):d=asElement(querySelectorExt(n,C)),g=(v[1]||"drop").trim(),h=getInternalData(d),g==="drop"&&h.xhr&&h.abortable!==!0)return maybeCall(s),l;if(g==="abort"){if(h.xhr)return maybeCall(s),l;A=!0}else g==="replace"?triggerEvent(d,"htmx:abort"):g.indexOf("queue")===0&&(m=(g.split(" ")[1]||"last").trim())}if(h.xhr)if(h.abortable)triggerEvent(d,"htmx:abort");else{if(m==null){if(r){let v=getInternalData(r);v&&v.triggerSpec&&v.triggerSpec.queue&&(m=v.triggerSpec.queue)}m==null&&(m="last")}return h.queuedRequests==null&&(h.queuedRequests=[]),m==="first"&&h.queuedRequests.length===0?h.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,i)}):m==="all"?h.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,i)}):m==="last"&&(h.queuedRequests=[],h.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,i)})),maybeCall(s),l}let E=new XMLHttpRequest;h.xhr=E,h.abortable=A;let w=function(){h.xhr=null,h.abortable=!1,h.queuedRequests!=null&&h.queuedRequests.length>0&&h.queuedRequests.shift()()},me=getClosestAttributeValue(n,"hx-prompt");if(me){var rt=prompt(me);if(rt===null||!triggerEvent(n,"htmx:prompt",{prompt:rt,target:f}))return maybeCall(s),w(),l}if(b&&!o&&!confirm(b))return maybeCall(s),w(),l;let W=getHeaders(n,f,rt);e!=="get"&&!usesFormData(n)&&(W["Content-Type"]="application/x-www-form-urlencoded"),i.headers&&(W=mergeObjects(W,i.headers));let rn=getInputValues(n,e),Le=rn.errors,on=rn.formData;i.values&&overrideFormData(on,formDataFromObject(i.values));let Fr=formDataFromObject(getExpressionVars(n,r)),it=overrideFormData(on,Fr),X=filterValues(it,n);htmx.config.getCacheBusterParam&&e==="get"&&X.set("org.htmx.cache-buster",getRawAttribute(f,"id")||"true"),(t==null||t==="")&&(t=location.href);let ot=getValuesForElement(n,"hx-request"),sn=getInternalData(n).boosted,Ne=htmx.config.methodsThatUseUrlParams.indexOf(e)>=0,D={boosted:sn,useUrlParams:Ne,formData:X,parameters:formDataProxy(X),unfilteredFormData:it,unfilteredParameters:formDataProxy(it),headers:W,elt:n,target:f,verb:e,errors:Le,withCredentials:i.credentials||ot.credentials||htmx.config.withCredentials,timeout:i.timeout||ot.timeout||htmx.config.timeout,path:t,triggeringEvent:r};if(!triggerEvent(n,"htmx:configRequest",D))return maybeCall(s),w(),l;if(t=D.path,e=D.verb,W=D.headers,X=formDataFromObject(D.parameters),Le=D.errors,Ne=D.useUrlParams,Le&&Le.length>0)return triggerEvent(n,"htmx:validation:halted",D),maybeCall(s),w(),l;let an=t.split("#"),qr=an[0],st=an[1],F=t;if(Ne&&(F=qr,!X.keys().next().done&&(F.indexOf("?")<0?F+="?":F+="&",F+=urlEncode(X),st&&(F+="#"+st))),!verifyPath(n,F,D))return triggerErrorEvent(n,"htmx:invalidPath",D),maybeCall(a),w(),l;if(E.open(e.toUpperCase(),F,!0),E.overrideMimeType("text/html"),E.withCredentials=D.withCredentials,E.timeout=D.timeout,!ot.noHeaders)for(let v of Object.keys(W))safelySetHeaderValue(E,v,W[v]);let T={xhr:E,target:f,requestConfig:D,etc:i,boosted:sn,select:c,pathInfo:{requestPath:t,finalRequestPath:F,responsePath:null,anchor:st}};if(E.onload=function(){try{let v=hierarchyForElt(n);if(T.pathInfo.responsePath=getPathFromResponse(E),u(n,T),T.keepIndicators!==!0&&removeRequestIndicators(Fe,qe),triggerEvent(n,"htmx:afterRequest",T),triggerEvent(n,"htmx:afterOnLoad",T),!bodyContains(n)){let C=null;for(;v.length>0&&C==null;){let q=v.shift();bodyContains(q)&&(C=q)}C&&(triggerEvent(C,"htmx:afterRequest",T),triggerEvent(C,"htmx:afterOnLoad",T))}maybeCall(s)}catch(v){throw triggerErrorEvent(n,"htmx:onLoadError",mergeObjects({error:v},T)),v}finally{w()}},E.onerror=function(){removeRequestIndicators(Fe,qe),triggerErrorEvent(n,"htmx:afterRequest",T),triggerErrorEvent(n,"htmx:sendError",T),maybeCall(a),w()},E.onabort=function(){removeRequestIndicators(Fe,qe),triggerErrorEvent(n,"htmx:afterRequest",T),triggerErrorEvent(n,"htmx:sendAbort",T),maybeCall(a),w()},E.ontimeout=function(){removeRequestIndicators(Fe,qe),triggerErrorEvent(n,"htmx:afterRequest",T),triggerErrorEvent(n,"htmx:timeout",T),maybeCall(a),w()},!triggerEvent(n,"htmx:beforeRequest",T))return maybeCall(s),w(),l;var Fe=addRequestIndicatorClasses(n),qe=disableElements(n);forEach(["loadstart","loadend","progress","abort"],function(v){forEach([E,E.upload],function(C){C.addEventListener(v,function(q){triggerEvent(n,"htmx:xhr:"+v,{lengthComputable:q.lengthComputable,loaded:q.loaded,total:q.total})})})}),triggerEvent(n,"htmx:beforeSend",T);let jr=Ne?null:encodeParamsForBody(E,n,X);return E.send(jr),l}function determineHistoryUpdates(e,t){let n=t.xhr,r=null,i=null;if(hasHeader(n,"HX-Push")?(r=n.getResponseHeader("HX-Push"),i="push"):hasHeader(n,"HX-Push-Url")?(r=n.getResponseHeader("HX-Push-Url"),i="push"):hasHeader(n,"HX-Replace-Url")&&(r=n.getResponseHeader("HX-Replace-Url"),i="replace"),r)return r==="false"?{}:{type:i,path:r};let o=t.pathInfo.finalRequestPath,s=t.pathInfo.responsePath,a=t.etc.push||getClosestAttributeValue(e,"hx-push-url"),l=t.etc.replace||getClosestAttributeValue(e,"hx-replace-url");l==="false"&&(l=null);let u=getInternalData(e).boosted,c=null,f=null;return a?(c="push",f=a):l?(c="replace",f=l):u&&(c="push",f=s||o),f?f==="false"?{}:(f==="true"&&(f=s||o),t.pathInfo.anchor&&f.indexOf("#")===-1&&(f=f+"#"+t.pathInfo.anchor),{type:c,path:f}):{}}function codeMatches(e,t){var n=new RegExp(e.code);return n.test(t.toString(10))}function resolveResponseHandling(e){for(var t=0;t<htmx.config.responseHandling.length;t++){var n=htmx.config.responseHandling[t];if(codeMatches(n,e.status))return n}return{swap:!1}}function handleTitle(e){if(e){let t=find("title");t?t.textContent=e:window.document.title=e}}function resolveRetarget(e,t){if(t==="this")return e;let n=asElement(querySelectorExt(e,t));if(n==null)throw triggerErrorEvent(e,"htmx:targetError",{target:t}),new Error(`Invalid re-target ${t}`);return n}function handleAjaxResponse(e,t){let n=t.xhr,r=t.target,i=t.etc,o=t.select;if(!triggerEvent(e,"htmx:beforeOnLoad",t))return;if(hasHeader(n,"HX-Trigger")&&handleTriggerHeader(n,"HX-Trigger",e),hasHeader(n,"HX-Location")){let A=n.getResponseHeader("HX-Location");var s={};A.indexOf("{")===0&&(s=parseJSON(A),A=s.path,delete s.path),s.push=s.push??"true",ajaxHelper("get",A,s);return}let a=hasHeader(n,"HX-Refresh")&&n.getResponseHeader("HX-Refresh")==="true";if(hasHeader(n,"HX-Redirect")){t.keepIndicators=!0,htmx.location.href=n.getResponseHeader("HX-Redirect"),a&&htmx.location.reload();return}if(a){t.keepIndicators=!0,htmx.location.reload();return}let l=determineHistoryUpdates(e,t),u=resolveResponseHandling(n),c=u.swap,f=!!u.error,h=htmx.config.ignoreTitle||u.ignoreTitle,p=u.select;u.target&&(t.target=resolveRetarget(e,u.target));var b=i.swapOverride;b==null&&u.swapOverride&&(b=u.swapOverride),hasHeader(n,"HX-Retarget")&&(t.target=resolveRetarget(e,n.getResponseHeader("HX-Retarget"))),hasHeader(n,"HX-Reswap")&&(b=n.getResponseHeader("HX-Reswap"));var d=n.response,g=mergeObjects({shouldSwap:c,serverResponse:d,isError:f,ignoreTitle:h,selectOverride:p,swapOverride:b},t);if(!(u.event&&!triggerEvent(r,u.event,g))&&triggerEvent(r,"htmx:beforeSwap",g)){if(r=g.target,d=g.serverResponse,f=g.isError,h=g.ignoreTitle,p=g.selectOverride,b=g.swapOverride,t.target=r,t.failed=f,t.successful=!f,g.shouldSwap){n.status===286&&cancelPolling(e),withExtensions(e,function(w){d=w.transformResponse(d,n,e)}),l.type&&saveCurrentPageToHistory();var m=getSwapSpecification(e,b);m.hasOwnProperty("ignoreTitle")||(m.ignoreTitle=h),addClassToElement(r,htmx.config.swappingClass),o&&(p=o),hasHeader(n,"HX-Reselect")&&(p=n.getResponseHeader("HX-Reselect"));let A=i.selectOOB||getClosestAttributeValue(e,"hx-select-oob"),E=getClosestAttributeValue(e,"hx-select");swap(r,d,m,{select:p==="unset"?null:p||E,selectOOB:A,eventInfo:t,anchor:t.pathInfo.anchor,contextElement:e,afterSwapCallback:function(){if(hasHeader(n,"HX-Trigger-After-Swap")){let w=e;bodyContains(e)||(w=getDocument().body),handleTriggerHeader(n,"HX-Trigger-After-Swap",w)}},afterSettleCallback:function(){if(hasHeader(n,"HX-Trigger-After-Settle")){let w=e;bodyContains(e)||(w=getDocument().body),handleTriggerHeader(n,"HX-Trigger-After-Settle",w)}},beforeSwapCallback:function(){l.type&&(triggerEvent(getDocument().body,"htmx:beforeHistoryUpdate",mergeObjects({history:l},t)),l.type==="push"?(pushUrlIntoHistory(l.path),triggerEvent(getDocument().body,"htmx:pushedIntoHistory",{path:l.path})):(replaceUrlInHistory(l.path),triggerEvent(getDocument().body,"htmx:replacedInHistory",{path:l.path})))}})}f&&triggerErrorEvent(e,"htmx:responseError",mergeObjects({error:"Response Status Error Code "+n.status+" from "+t.pathInfo.requestPath},t))}}let extensions={};function extensionBase(){return{init:function(e){return null},getSelectors:function(){return null},onEvent:function(e,t){return!0},transformResponse:function(e,t,n){return e},isInlineSwap:function(e){return!1},handleSwap:function(e,t,n,r){return!1},encodeParameters:function(e,t,n){return null}}}function defineExtension(e,t){t.init&&t.init(internalAPI),extensions[e]=mergeObjects(extensionBase(),t)}function removeExtension(e){delete extensions[e]}function getExtensions(e,t,n){if(t==null&&(t=[]),e==null)return t;n==null&&(n=[]);let r=getAttributeValue(e,"hx-ext");return r&&forEach(r.split(","),function(i){if(i=i.replace(/ /g,""),i.slice(0,7)=="ignore:"){n.push(i.slice(7));return}if(n.indexOf(i)<0){let o=extensions[i];o&&t.indexOf(o)<0&&t.push(o)}}),getExtensions(asElement(parentElt(e)),t,n)}var isReady=!1;getDocument().addEventListener("DOMContentLoaded",function(){isReady=!0});function ready(e){isReady||getDocument().readyState==="complete"?e():getDocument().addEventListener("DOMContentLoaded",e)}function insertIndicatorStyles(){if(htmx.config.includeIndicatorStyles!==!1){let e=htmx.config.inlineStyleNonce?` nonce="${htmx.config.inlineStyleNonce}"`:"",t=htmx.config.indicatorClass,n=htmx.config.requestClass;getDocument().head.insertAdjacentHTML("beforeend",`<style${e}>.${t}{opacity:0;visibility: hidden} .${n} .${t}, .${n}.${t}{opacity:1;visibility: visible;transition: opacity 200ms ease-in}</style>`)}}function getMetaConfig(){let e=getDocument().querySelector('meta[name="htmx-config"]');return e?parseJSON(e.content):null}function mergeMetaConfig(){let e=getMetaConfig();e&&(htmx.config=mergeObjects(htmx.config,e))}return ready(function(){mergeMetaConfig(),insertIndicatorStyles();let e=getDocument().body;processNode(e);let t=getDocument().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");e.addEventListener("htmx:abort",function(r){let i=r.detail.elt||r.target,o=getInternalData(i);o&&o.xhr&&o.xhr.abort()});let n=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(r){r.state&&r.state.htmx?(restoreHistory(),forEach(t,function(i){triggerEvent(i,"htmx:restored",{document:getDocument(),triggerEvent})})):n&&n(r)},getWindow().setTimeout(function(){triggerEvent(e,"htmx:load",{}),e=null},0)}),htmx})(),ln=Br;var mt=!1,yt=!1,k=[],xt=-1,Ue=!1,Lt=!1;function kr(e){$r(e)}function Vr(){Lt=!0}function Ur(){Lt=!1,En()}function $r(e){k.includes(e)||(k.push(e),e._x_schedulerPriority!==void 0&&(Ue=!0)),En()}function Nt(e){let t=k.indexOf(e);t!==-1&&t>xt&&k.splice(t,1)}function En(){if(!yt&&!mt){if(Lt)return;mt=!0,queueMicrotask(Wr)}}function Wr(){mt=!1,yt=!0;for(let e=0;e<k.length;e++)Ue&&Xr(e),k[e](),xt=e;k.length=0,xt=-1,Ue=!1,yt=!1}function Xr(e){let t=new Map,n=k.slice(e).sort((r,i)=>zr(r,i,t));for(let r=0;r<n.length;r++)k[e+r]=n[r];Ue=!1}function zr(e,t,n){return at(e)?at(t)?un(e._x_schedulerPriority.el,n)-un(t._x_schedulerPriority.el,n)||e._x_schedulerPriority.order-t._x_schedulerPriority.order:-1:at(t)?1:0}function at(e){return e._x_schedulerPriority!==void 0}function un(e,t){if(t.has(e))return t.get(e);let n=0,r=e;for(;e;)n++,e._x_teleportBack?e=e._x_teleportBack:typeof ShadowRoot=="function"&&e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentElement;return t.set(r,n),n}var he,ae,ge,_n,Jr=0,vt=!0;function Kr(e){vt=!1,e(),vt=!0}function Yr(e){he=e.reactive,ge=e.release,ae=t=>e.effect(t,{scheduler:n=>{vt?kr(n):n()}}),_n=e.raw}function cn(e){ae=e}function Gr(e){let t=()=>{};return[(r,i)=>{let o=i?.priority==="structural"?Jr++:void 0,s=ae(r);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),ge(s))},s},()=>{t()}]}function wn(e,t){let n=!0,r,i,o=ae(()=>{let s=e(),a=JSON.stringify(s);if(!n&&(typeof s=="object"||s!==r)){let l=typeof r=="object"?JSON.parse(i):r;queueMicrotask(()=>{t(s,l)})}r=s,i=a,n=!1});return()=>{Nt(o),ge(o)}}async function Qr(e){Vr();try{await e(),await Promise.resolve()}finally{Ur()}}var Sn=[],An=[],Cn=[];function Zr(e){Cn.push(e)}function Ft(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,An.push(t))}function Tn(e){Sn.push(e)}function On(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function Rn(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}function ei(e){for(e._x_effects?.forEach(Nt);e._x_cleanups?.length;)e._x_cleanups.pop()()}var Ke=new MutationObserver(Ye),qt=!1;function jt(){Ke.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),qt=!0}function Dn(){ti(),Ke.disconnect(),qt=!1}var J=[];function ti(){let e=Ke.takeRecords();J.push(()=>e.length>0&&Ye(e));let t=J.length;queueMicrotask(()=>{if(J.length===t)for(;J.length>0;)J.shift()()})}function ni(){for(;J.length>0;)J.shift()();let e=Ke.takeRecords();e.length>0&&Ye(e)}function _(e){if(!qt)return e();Dn();try{return e()}finally{jt()}}var Bt=!1,$e=[];function ri(){Bt=!0}function ii(){Bt=!1,Ye($e),$e=[]}function Ye(e){if(Bt){$e=$e.concat(e);return}let t=[],n=new Set,r=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&&n.add(s)}),e[o].addedNodes.forEach(s=>{if(s.nodeType===1){if(n.has(s)){n.delete(s);return}s._x_marker||t.push(s)}})),e[o].type==="attributes")){let s=e[o].target,a=e[o].attributeName,l=e[o].oldValue,u=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:a,value:s.getAttribute(a)})},c=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&l===null?u():s.hasAttribute(a)?(c(),u()):c()}i.forEach((o,s)=>{Rn(s,o)}),r.forEach((o,s)=>{Sn.forEach(a=>a(s,o))});for(let o of n)t.some(s=>s.contains(o))||An.forEach(s=>s(o));for(let o of t)o.isConnected&&Cn.forEach(s=>s(o));t=null,n=null,r=null,i=null}function Hn(e){return ee(Z(e))}function Ie(e,t,n){return e._x_dataStack=[t,...Z(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function Z(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Z(e.host):e.parentNode?Z(e.parentNode):[]}function ee(e){return new Proxy({objects:e},oi)}function In(e,t){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,t)?e:In(Object.getPrototypeOf(e),t)}var oi={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(n=>Object.prototype.hasOwnProperty.call(n,t)||Reflect.has(n,t))},get({objects:e},t,n){return t=="toJSON"?si:Reflect.get(e.find(r=>Reflect.has(r,t))||{},t,n)},set({objects:e},t,n,r){let i;for(let s of e)if(i=In(s,t),i)break;i||(i=e[e.length-1]);let o=Object.getOwnPropertyDescriptor(i,t);return o?.set&&o?.get?o.set.call(r,n)||!0:Reflect.set(i,t,n)}};function si(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function kt(e,t=()=>{}){let n=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,r=(i,o="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([s,{value:a,enumerable:l}])=>{if(l===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let u=o===""?s:`${o}.${s}`;typeof a=="object"&&a!==null&&a._x_interceptor?i[s]=a.initialize(e,u,s,t):n(a)&&a!==i&&!(a instanceof Element)&&r(a,u)})};return r(e)}function Pn(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o,s){return e(this.initialValue,()=>ai(r,i),a=>bt(r,i,a),i,o,s)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,s,a,l)=>{let u=r.initialize(o,s,a,l);return n.initialValue=u,i(o,s,a,l)}}else n.initialValue=r;return n}}function ai(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function bt(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),bt(e[t[0]],t.slice(1),n)}}var Mn={};function P(e,t){Mn[e]=t}function Ae(e,t){let n=li(t);return Object.entries(Mn).forEach(([r,i])=>{Object.defineProperty(e,`$${r}`,{get(){return i(t,n)},enumerable:!1})}),e}function li(e){let[t,n]=kn(e),r={interceptor:Pn,...t};return Ft(e,n),r}function ui(e,t,n,...r){try{return n(...r)}catch(i){de(i,e,t)}}function de(...e){return Ln(...e)}var Ln=fi;function ci(e){Ln=e}function fi(e,t,n=void 0){e=Object.assign(e??{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
|
|
2
|
+
|
|
3
|
+
${n?'Expression: "'+n+`"
|
|
4
|
+
|
|
5
|
+
`:""}`,t),setTimeout(()=>{throw e},0)}var fe=!0;function Nn(e){let t=fe;fe=!1;let n=e();return fe=t,n}function G(e,t,n={}){let r;return O(e,t)(i=>r=i,n),r}function O(...e){return Fn(...e)}var Fn=()=>{};function di(e){Fn=e}var qn;function hi(e){qn=e}function gi(e,t){let n={};Ae(n,e);let r=[n,...Z(e)],i=typeof t=="function"?pi(r,t):yi(r,t,e);return ui.bind(null,e,t,i)}function pi(e,t){return(n=()=>{},{scope:r={},params:i=[],context:o}={})=>{if(!fe){Ce(n,t,ee([r,...e]),i);return}let s=t.apply(ee([r,...e]),i);Ce(n,s)}}var lt={};function mi(e,t){if(lt[e])return lt[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,o=(()=>{try{let s=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return de(s,t,e),Promise.resolve()}})();return lt[e]=o,o}function yi(e,t,n){let r=mi(t,n);return(i=()=>{},{scope:o={},params:s=[],context:a}={})=>{r.result=void 0,r.finished=!1;let l=ee([o,...e]);if(typeof r=="function"){let u=r.call(a,r,l).catch(c=>de(c,n,t));r.finished?(Ce(i,r.result,l,s,n),r.result=void 0):u.then(c=>{Ce(i,c,l,s,n)}).catch(c=>de(c,n,t)).finally(()=>r.result=void 0)}}}function Ce(e,t,n,r,i){if(fe&&typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(s=>Ce(e,s,n,r)).catch(s=>de(s,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}function xi(...e){return qn(...e)}function vi(e,t,n={}){let r={};Ae(r,e);let i=[r,...Z(e)],o=ee([n.scope??{},...i]),s=n.params??[];if(t.includes("await")){let a=Object.getPrototypeOf(async function(){}).constructor,l=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t;return new a(["scope"],`with (scope) { let __result = ${l}; return __result }`).call(n.context,o)}else{let a=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(()=>{ ${t} })()`:t,u=new Function(["scope"],`with (scope) { let __result = ${a}; return __result }`).call(n.context,o);return typeof u=="function"&&fe?u.apply(o,s):u}}var Vt="x-";function te(e=""){return Vt+e}function bi(e){Vt=e}var We={};function S(e,t){return We[e]=t,{before(n){if(!We[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}let r=Y.indexOf(n);Y.splice(r>=0?r:Y.indexOf("DEFAULT"),0,e)}}}function Ei(e){return Object.keys(We).includes(e)}function Ge(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),s=jn(o);o=o.map(a=>s.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:JSON.stringify(String(a.value))}:a),t=t.concat(o)}let r={};return t.map($n((o,s)=>r[o]=s)).filter(Xn).map(Si(r,n)).sort(Ai).map(o=>wi(e,o))}function jn(e){return Array.from(e).map($n()).filter(t=>!Xn(t))}var Et=!1,ve=new Map,Bn=Symbol();function _i(e){Et=!0;let t=Symbol();Bn=t,ve.set(t,[]);let n=()=>{for(;ve.get(t).length;)ve.get(t).shift()();ve.delete(t)},r=()=>{Et=!1,n()};e(n),r()}function kn(e){let t=[],n=a=>t.push(a),[r,i]=Gr(e);return t.push(i),[{Alpine:pe,effect:r,cleanup:n,evaluateLater:O.bind(O,e),evaluate:G.bind(G,e)},()=>t.forEach(a=>a())]}function wi(e,t){let n=()=>{},r=We[t.type]||n,[i,o]=kn(e);On(e,t.original,o);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),Et?ve.get(Bn).push(r):r())};return s.runCleanups=o,s}var Vn=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),Un=e=>e;function $n(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=Wn.reduce((o,s)=>s(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var Wn=[];function Ut(e){Wn.push(e)}function Xn({name:e}){return zn().test(e)}var zn=()=>new RegExp(`^${Vt}([^:^.]+)\\b`);function Si(e,t){return({name:n,value:r})=>{n===r&&(r="");let i=n.match(zn()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(l=>l.replace(".","")),expression:r,original:a}}}var _t="DEFAULT",Y=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",_t,"teleport"];function Ai(e,t){let n=Y.indexOf(e.type)===-1?_t:e.type,r=Y.indexOf(t.type)===-1?_t:t.type;return Y.indexOf(n)-Y.indexOf(r)}function ne(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>ne(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)ne(r,t,!1),r=r.nextElementSibling}var V=!1;function U(e,t=()=>{}){return(...n)=>V?t(...n):e(...n)}function Ci(e){return(...t)=>V&&e(...t)}var Jn=[];function Pe(e){Jn.push(e)}function Ti(e,t){Jn.forEach(n=>n(e,t)),V=!0,Kn(()=>{N(t,(n,r)=>{r(n,()=>{})})}),V=!1}var wt=!1;function Oi(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),V=!0,wt=!0,Kn(()=>{Ri(t)}),V=!1,wt=!1}function Ri(e){let t=!1;N(e,(r,i)=>{ne(r,(o,s)=>{if(t&&Li(o))return s();t=!0,i(o,s)})})}function Kn(e){let t=ae;cn((n,r)=>{let i=t(n);return ge(i),()=>{}}),e(),cn(t)}var Qe=0;function Di(e,t){let n=e._x_deferInit;n||(n=e._x_deferInit={pending:0,ownsIgnore:!e._x_ignore,queuedAttributes:new Map},n.ownsIgnore&&(e._x_ignore=!0),Qe++),n.pending++,Promise.resolve(t).catch(r=>{try{de(r,e)}catch(i){setTimeout(()=>{throw i},0)}}).then(()=>Hi(e,n))}function Hi(e,t){t.pending--,!(t.pending>0)&&(ni(),!(t.pending>0)&&e._x_deferInit===t&&(delete e._x_deferInit,t.ownsIgnore&&delete e._x_ignore,Qe--,e.isConnected&&(Pi(t),N(e))))}function Ii(e,t){if(Qe===0)return!1;let n=H(e,r=>r._x_deferInit);return n?(Yn(n._x_deferInit,e,t.map(({name:r})=>r)),!0):!1}function Yn(e,t,n){let r=e.queuedAttributes.get(t);(!r||r.marker!==t._x_marker)&&(r={marker:t._x_marker,names:new Set},e.queuedAttributes.set(t,r)),n.forEach(i=>r.names.add(i))}function Pi(e){e.queuedAttributes.forEach((t,n)=>{if(!n.isConnected||!n._x_marker||n._x_marker!==t.marker)return;let r=H(n,o=>o._x_deferInit);if(r){Yn(r._x_deferInit,n,Array.from(t.names));return}let i=Array.from(t.names).filter(o=>n.hasAttribute(o)).map(o=>({name:o,value:n.getAttribute(o)}));i.length!==0&&Ge(n,i).forEach(o=>o())})}Pe((e,t)=>{Qe!==0&&(!e||e.nodeType!==1||!t||t.nodeType!==1||H(e,n=>n._x_deferInit)&&(t._x_ignore=!0))});function be(e,t,n={},r={}){return e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0,...r}))}function L(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var fn=!1;function Mi(){fn&&L("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),fn=!0,document.body||L("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),be(document,"alpine:init"),be(document,"alpine:initializing"),jt(),Zr(t=>N(t,ne)),Ft(t=>le(t)),Tn((t,n)=>{Ii(t,n)||Ge(t,n).forEach(r=>r())});let e=t=>!Ze(t.parentElement,!0);Array.from(document.querySelectorAll(Zn().join(","))).filter(e).forEach(t=>{N(t)}),be(document,"alpine:initialized"),setTimeout(()=>{qi()})}var $t=[],Gn=[];function Qn(){return $t.map(e=>e())}function Zn(){return $t.concat(Gn).map(e=>e())}function er(e){$t.push(e)}function tr(e){Gn.push(e)}function Ze(e,t=!1){return H(e,n=>{if((t?Zn():Qn()).some(i=>n.matches(i)))return!0})}function H(e,t){if(e){if(t(e))return e;if(e._x_teleportBack)return H(e._x_teleportBack,t);if(e.parentNode instanceof ShadowRoot)return H(e.parentNode.host,t);if(e.parentElement)return H(e.parentElement,t)}}function Li(e){return Qn().some(t=>e.matches(t))}var nr=[];function Ni(e){nr.push(e)}var Fi=1;function N(e,t=ne,n=()=>{}){H(e,r=>r._x_ignore)||_i(()=>{t(e,(r,i)=>{r._x_marker||(n(r,i),nr.forEach(o=>o(r,i)),Ge(r,r.attributes).forEach(o=>o()),r._x_ignore||(r._x_marker=Fi++),r._x_ignore&&i())})})}function le(e,t=ne){t(e,n=>{ei(n),Rn(n),delete n._x_marker})}function qi(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,n,r])=>{Ei(n)||r.some(i=>{if(document.querySelector(i))return L(`found "${i}", but missing ${t} plugin`),!0})})}var St=[],Wt=!1;function Xt(e=()=>{}){return queueMicrotask(()=>{Wt||setTimeout(()=>{At()})}),new Promise(t=>{St.push(()=>{e(),t()})})}function At(){for(Wt=!1;St.length;)St.shift()()}function ji(){Wt=!0}function zt(e,t){return Array.isArray(t)?dn(e,t.join(" ")):typeof t=="object"&&t!==null?Bi(e,t):typeof t=="function"?zt(e,t()):dn(e,t)}function Ct(e){return e.split(/\s/).filter(Boolean)}function dn(e,t){let n=i=>Ct(i).filter(o=>!e.classList.contains(o)).filter(Boolean),r=i=>(e.classList.add(...i),()=>{e.classList.remove(...i)});return t=t===!0?t="":t||"",r(n(t))}function Bi(e,t){let n=Object.entries(t).flatMap(([s,a])=>a?Ct(s):!1).filter(Boolean),r=Object.entries(t).flatMap(([s,a])=>a?!1:Ct(s)).filter(Boolean),i=[],o=[];return r.forEach(s=>{e.classList.contains(s)&&(e.classList.remove(s),o.push(s))}),n.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 et(e,t){return typeof t=="object"&&t!==null?ki(e,t):Vi(e,t)}function ki(e,t){let n={};return Object.entries(t).forEach(([r,i])=>{n[r]=e.style[r],r.startsWith("--")||(r=Ui(r)),e.style.setProperty(r,i)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{et(e,n)}}function Vi(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function Ui(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Tt(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}S("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{typeof r=="function"&&(r=i(r)),r!==!1&&(!r||typeof r=="boolean"?Wi(e,n,t):$i(e,r,t))});function $i(e,t,n){rr(e,zt,""),{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}}[n](t)}function Wi(e,t,n){rr(e,et);let r=!t.includes("in")&&!t.includes("out")&&!n,i=r||t.includes("in")||["enter"].includes(n),o=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter((m,A)=>A<t.indexOf("out"))),t.includes("out")&&!r&&(t=t.filter((m,A)=>A>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),l=s||t.includes("scale"),u=a?0:1,c=l?ye(t,"scale",95)/100:1,f=ye(t,"delay",0)/1e3,h=ye(t,"origin","center"),p="opacity, transform",b=ye(t,"duration",150)/1e3,d=ye(t,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:h,transitionDelay:`${f}s`,transitionProperty:p,transitionDuration:`${b}s`,transitionTimingFunction:g},e._x_transition.enter.start={opacity:u,transform:`scale(${c})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:h,transitionDelay:`${f}s`,transitionProperty:p,transitionDuration:`${d}s`,transitionTimingFunction:g},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${c})`})}function rr(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(r=()=>{},i=()=>{}){Ot(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,i)},out(r=()=>{},i=()=>{}){Ot(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(n);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(n):o():e._x_transition?e._x_transition.in(n):o();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let s=ir(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):i(()=>{let a=l=>{let u=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([c])=>c?.());return delete l._x_hidePromise,delete l._x_hideChildren,u};a(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function ir(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:ir(t)}function Ot(e,t,{during:n,start:r,end:i}={},o=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(i).length===0){o(),s();return}let a,l,u;Xi(e,{start(){a=t(e,r)},during(){l=t(e,n)},before:o,end(){a(),u=t(e,i)},after:s,cleanup(){l(),u()}})}function Xi(e,t){let n,r,i,o=Tt(()=>{_(()=>{n=!0,r||t.before(),i||(t.end(),At()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:Tt(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},_(()=>{t.start(),t.during()}),ji(),requestAnimationFrame(()=>{if(n)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),_(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(_(()=>{t.end()}),At(),setTimeout(e._x_transitioning.finish,s+a),i=!0)})})}function ye(e,t,n){if(e.indexOf(t)===-1)return n;let r=e[e.indexOf(t)+1];if(!r||t==="scale"&&isNaN(r))return n;if(t==="duration"||t==="delay"){let i=r.match(/([0-9]+)ms/);if(i)return i[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}function or(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=he({})),e._x_bindings[t]=n,t=r.includes("camel")?eo(t):t,t){case"value":zi(e,n);break;case"style":Ki(e,n);break;case"class":Ji(e,n);break;case"selected":case"checked":Yi(e,t,n);break;default:Jt(e,t,n);break}}function zi(e,t){if(Kt(e))e.attributes.value===void 0&&(e.value=t);else if(Xe(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(n=>to(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Zi(e,t);else if(e.tagName==="OPTION")Jt(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=zt(e,t)}function Ki(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=et(e,t)}function Yi(e,t,n){Jt(e,t,n),Qi(e,t,n)}function Jt(e,t,n){[null,void 0,!1].includes(n)&&ro(t)?e.removeAttribute(t):(sr(t)&&(n=t),io(n)&&(n=JSON.stringify(n)),Gi(e,t,n))}function Gi(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function Qi(e,t,n){e[t]!==n&&(e[t]=n)}function Zi(e,t){let n=[].concat(t).map(r=>r+"");Array.from(e.options).forEach(r=>{r.selected=n.includes(r.value)})}function eo(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function to(e,t){return e==t}function Ve(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var no=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 sr(e){return no.has(e)}function ro(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function io(e){return typeof e=="object"&&e!==null}function oo(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:ar(e,t,n)}function so(e,t,n,r=!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=r,Nn(()=>G(e,i.expression))}return ar(e,t,n)}function ar(e,t,n){let r=e.getAttribute(t);return r===null?typeof n=="function"?n():n:r===""?!0:sr(t)?!![t,"true"].includes(r):r}function Xe(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function Kt(e){return e.type==="radio"||e.localName==="ui-radio"}function lr(e,t){let n;return function(){let r=this,i=arguments,o=function(){n=null,e.apply(r,i)};clearTimeout(n),n=setTimeout(o,t)}}function ur(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout(()=>n=!1,t))}}function cr({get:e,set:t},{get:n,set:r}){let i=!0,o,s,a=ae(()=>{let l=e(),u=n();if(i)r(ut(l)),i=!1;else{let c=JSON.stringify(l),f=JSON.stringify(u);c!==o?r(ut(l)):c!==f&&t(ut(u))}o=JSON.stringify(e()),s=JSON.stringify(n())});return()=>{Nt(a),ge(a)}}function ut(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function ao(e){(Array.isArray(e)?e:[e]).forEach(n=>n(pe))}var B={},hn=!1;function lo(e,t){if(hn||(B=he(B),hn=!0),t===void 0)return B[e];B[e]=t,typeof t=="object"&&t!==null&&t._x_interceptor?B[e]=t.initialize(B,e,e,()=>{}):kt(B[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&B[e].init()}function uo(){return B}var fr={};function co(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?dr(e,n()):(fr[e]=n,()=>{})}function fo(e){return Object.entries(fr).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...r)=>n(...r)}})}),e}function dr(e,t,n){let r=[];for(;r.length;)r.pop()();let i=Object.entries(t).map(([s,a])=>({name:s,value:a})),o=jn(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:JSON.stringify(String(s.value))}:s),Ge(e,i,n).map(s=>{r.push(s.runCleanups),s()}),()=>{for(;r.length;)r.pop()()}}var hr={};function ho(e,t){hr[e]=t}function go(e,t){return Object.entries(hr).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...i)=>r.bind(t)(...i)},enumerable:!1})}),e}var po={get reactive(){return he},get release(){return ge},get effect(){return ae},get raw(){return _n},get transaction(){return Qr},version:"3.17.6",flushAndStopDeferringMutations:ii,dontAutoEvaluateFunctions:Nn,disableEffectScheduling:Kr,startObservingMutations:jt,stopObservingMutations:Dn,setReactivityEngine:Yr,onAttributeRemoved:On,onAttributesAdded:Tn,closestDataStack:Z,skipDuringClone:U,onlyDuringClone:Ci,addRootSelector:er,addInitSelector:tr,setErrorHandler:ci,interceptClone:Pe,addScopeToNode:Ie,deferMutations:ri,mapAttributes:Ut,evaluateLater:O,interceptInit:Ni,initInterceptors:kt,injectMagics:Ae,setEvaluator:di,setRawEvaluator:hi,mergeProxies:ee,extractProp:so,findClosest:H,onElRemoved:Ft,closestRoot:Ze,destroyTree:le,interceptor:Pn,transition:Ot,setStyles:et,mutateDom:_,deferInit:Di,directive:S,entangle:cr,throttle:ur,debounce:lr,evaluate:G,evaluateRaw:xi,initTree:N,nextTick:Xt,prefixed:te,prefix:bi,plugin:ao,magic:P,store:lo,start:Mi,clone:Oi,cloneNode:Ti,bound:oo,$data:Hn,watch:wn,walk:ne,data:ho,bind:co},pe=po;function gr(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}var ys=Object.freeze({}),xs=Object.freeze([]),Te=Object.assign,mo=Object.prototype.hasOwnProperty,Rt=(e,t)=>mo.call(e,t),Oe=Array.isArray,Ee=e=>pr(e)==="[object Map]",yo=e=>typeof e=="string",Me=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",xo=Object.prototype.toString,pr=e=>xo.call(e),mr=e=>pr(e).slice(8,-1),Yt=e=>yo(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tt=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vo=/-\w/g,vs=tt(e=>e.replace(vo,t=>t.slice(1).toUpperCase())),bo=/\B([A-Z])/g,bs=tt(e=>e.replace(bo,"-$1").toLowerCase()),yr=tt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Es=tt(e=>e?`on${yr(e)}`:""),K=(e,t)=>!Object.is(e,t),Eo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_s=gr(Eo+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function re(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var ct,y,ft=new WeakSet,gn=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ct&&(ct.active?ct.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ft.has(this)&&(ft.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||_o(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,pn(this),vr(this);let e=y,t=I;y=this,I=!0;try{return this.fn()}finally{y!==this&&re("Active effect was not restored correctly - this is likely a Vue internal bug."),br(this),y=e,I=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Zt(e);this.deps=this.depsTail=void 0,pn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ft.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Dt(this)&&this.run()}get dirty(){return Dt(this)}},xr=0,_e,we;function _o(e,t=!1){if(e.flags|=8,t){e.next=we,we=e;return}e.next=_e,_e=e}function Gt(){xr++}function Qt(){if(--xr>0)return;if(we){let t=we;for(we=void 0;t;){let n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;_e;){let t=_e;for(_e=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function vr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function br(e){let t,n=e.depsTail,r=n;for(;r;){let i=r.prevDep;r.version===-1?(r===n&&(n=i),Zt(r),So(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Dt(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(wo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function wo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ze)||(e.globalVersion=ze,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Dt(e))))return;e.flags|=2;let t=e.dep,n=y,r=I;y=e,I=!0;try{vr(e);let i=e.fn(e._value);(t.version===0||K(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{y=n,I=r,br(e),e.flags&=-3}}function Zt(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Zt(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function So(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Ao(e,t){e.effect instanceof gn&&(e=e.effect.fn);let n=new gn(e);t&&Te(n,t);try{n.run()}catch(i){throw n.stop(),i}let r=n.run.bind(n);return r.effect=n,r}function Co(e){e.effect.stop()}var I=!0,Er=[];function To(){Er.push(I),I=!1}function Oo(){let e=Er.pop();I=e===void 0?!0:e}function pn(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let n=y;y=void 0;try{t()}finally{y=n}}}var ze=0,Ro=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Do=class{constructor(e){this.computed=e,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(e){if(!y||!I||y===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==y)t=this.activeLink=new Ro(y,this),y.deps?(t.prevDep=y.depsTail,y.depsTail.nextDep=t,y.depsTail=t):y.deps=y.depsTail=t,_r(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let n=t.nextDep;n.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=n),t.prevDep=y.depsTail,t.nextDep=void 0,y.depsTail.nextDep=t,y.depsTail=t,y.deps===t&&(y.deps=n)}return y.onTrack&&y.onTrack(Te({effect:y},e)),t}trigger(e){this.version++,ze++,this.notify(e)}notify(e){Gt();try{for(let t=this.subsHead;t;t=t.nextSub)t.sub.onTrigger&&!(t.sub.flags&8)&&t.sub.onTrigger(Te({effect:t.sub},e));for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{Qt()}}};function _r(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)_r(r)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}var Ht=new WeakMap,Q=Symbol("Object iterate"),It=Symbol("Map keys iterate"),De=Symbol("Array iterate");function R(e,t,n){if(I&&y){let r=Ht.get(e);r||Ht.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Do),i.map=r,i.key=n),i.track({target:e,type:t,key:n})}}function $(e,t,n,r,i,o){let s=Ht.get(e);if(!s){ze++;return}let a=l=>{l&&l.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:o})};if(Gt(),t==="clear")s.forEach(a);else{let l=Oe(e),u=l&&Yt(n);if(l&&n==="length"){let c=Number(r);s.forEach((f,h)=>{(h==="length"||h===De||!Me(h)&&h>=c)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),u&&a(s.get(De)),t){case"add":l?u&&a(s.get("length")):(a(s.get(Q)),Ee(e)&&a(s.get(It)));break;case"delete":l||(a(s.get(Q)),Ee(e)&&a(s.get(It)));break;case"set":Ee(e)&&a(s.get(Q));break}}Qt()}function ue(e){let t=x(e);return t===e?t:(R(t,"iterate",De),oe(e)?t:t.map(se))}function en(e){return R(e=x(e),"iterate",De),e}function M(e,t){return ie(e)?Rr(e)?He(se(t)):He(t):se(t)}var Ho={__proto__:null,[Symbol.iterator](){return dt(this,Symbol.iterator,e=>M(this,e))},concat(...e){return ue(this).concat(...e.map(t=>Oe(t)?ue(t):t))},entries(){return dt(this,"entries",e=>(e[1]=M(this,e[1]),e))},every(e,t){return j(this,"every",e,t,void 0,arguments)},filter(e,t){return j(this,"filter",e,t,n=>n.map(r=>M(this,r)),arguments)},find(e,t){return j(this,"find",e,t,n=>M(this,n),arguments)},findIndex(e,t){return j(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return j(this,"findLast",e,t,n=>M(this,n),arguments)},findLastIndex(e,t){return j(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return j(this,"forEach",e,t,void 0,arguments)},includes(...e){return ht(this,"includes",e)},indexOf(...e){return ht(this,"indexOf",e)},join(e){return ue(this).join(e)},lastIndexOf(...e){return ht(this,"lastIndexOf",e)},map(e,t){return j(this,"map",e,t,void 0,arguments)},pop(){return xe(this,"pop")},push(...e){return xe(this,"push",e)},reduce(e,...t){return mn(this,"reduce",e,t)},reduceRight(e,...t){return mn(this,"reduceRight",e,t)},shift(){return xe(this,"shift")},some(e,t){return j(this,"some",e,t,void 0,arguments)},splice(...e){return xe(this,"splice",e)},toReversed(){return ue(this).toReversed()},toSorted(e){return ue(this).toSorted(e)},toSpliced(...e){return ue(this).toSpliced(...e)},unshift(...e){return xe(this,"unshift",e)},values(){return dt(this,"values",e=>M(this,e))}};function dt(e,t,n){let r=en(e),i=r[t]();return r!==e&&!oe(e)&&(i._next=i.next,i.next=()=>{let o=i._next();return o.done||(o.value=n(o.value)),o}),i}var Io=Array.prototype;function j(e,t,n,r,i,o){let s=en(e),a=s!==e&&!oe(e),l=s[t];if(l!==Io[t]){let f=l.apply(e,o);return a?se(f):f}let u=n;s!==e&&(a?u=function(f,h){return n.call(this,M(e,f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));let c=l.call(s,u,r);return a&&i?i(c):c}function mn(e,t,n,r){let i=en(e),o=i!==e&&!oe(e),s=n,a=!1;i!==e&&(o?(a=r.length===0,s=function(u,c,f){return a&&(a=!1,u=M(e,u)),n.call(this,u,M(e,c),f,e)}):n.length>3&&(s=function(u,c,f){return n.call(this,u,c,f,e)}));let l=i[t](s,...r);return a?M(e,l):l}function ht(e,t,n){let r=x(e);R(r,"iterate",De);let i=r[t](...n);return(i===-1||i===!1)&&Xo(n[0])?(n[0]=x(n[0]),r[t](...n)):i}function xe(e,t,n=[]){To(),Gt();let r=x(e)[t].apply(e,n);return Qt(),Oo(),r}var Po=gr("__proto__,__v_isRef,__isVue"),wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Me));function Mo(e){Me(e)||(e=String(e));let t=x(this);return R(t,"has",e),t.hasOwnProperty(e)}var Sr=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t==="__v_skip")return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t==="__v_isReactive")return!r;if(t==="__v_isReadonly")return r;if(t==="__v_isShallow")return i;if(t==="__v_raw")return n===(r?i?$o:Tr:i?Uo:Cr).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let o=Oe(e);if(!r){let a;if(o&&(a=Ho[t]))return a;if(t==="hasOwnProperty")return Mo}let s=Reflect.get(e,t,Se(e)?e:n);if((Me(t)?wr.has(t):Po(t))||(r||R(e,"get",t),i))return s;if(Se(s)){let a=o&&Yt(t)?s:s.value;return r&&Re(a)?Mt(a):a}return Re(s)?r?Mt(s):tn(s):s}},Lo=class extends Sr{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],o=Oe(e)&&Yt(t);if(!this._isShallow){let l=ie(i);if(!oe(n)&&!ie(n)&&(i=x(i),n=x(n)),!o&&Se(i)&&!Se(n))return l?(re(`Set operation on key "${String(t)}" failed: target is readonly.`,e[t]),!0):(i.value=n,!0)}let s=o?Number(t)<e.length:Rt(e,t),a=Reflect.set(e,t,n,Se(e)?e:r);return e===x(r)&&a&&(s?K(n,i)&&$(e,"set",t,n,i):$(e,"add",t,n)),a}deleteProperty(e,t){let n=Rt(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&$(e,"delete",t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!Me(t)||!wr.has(t))&&R(e,"has",t),n}ownKeys(e){return R(e,"iterate",Oe(e)?"length":Q),Reflect.ownKeys(e)}},No=class extends Sr{constructor(e=!1){super(!0,e)}set(e,t){return re(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return re(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Fo=new Lo,qo=new No,Pt=e=>e,je=e=>Reflect.getPrototypeOf(e);function jo(e,t,n){return function(...r){let i=this.__v_raw,o=x(i),s=Ee(o),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...r),c=n?Pt:t?He:se;return!t&&R(o,"iterate",l?It:Q),Te(Object.create(u),{next(){let{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}}})}}function Be(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:"";re(`${yr(e)} operation ${n}failed: target is readonly.`,x(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Bo(e,t){let n={get(i){let o=this.__v_raw,s=x(o),a=x(i);e||(K(i,a)&&R(s,"get",i),R(s,"get",a));let{has:l}=je(s),u=t?Pt:e?He:se;if(l.call(s,i))return u(o.get(i));if(l.call(s,a))return u(o.get(a));o!==s&&o.get(i)},get size(){let i=this.__v_raw;return!e&&R(x(i),"iterate",Q),i.size},has(i){let o=this.__v_raw,s=x(o),a=x(i);return e||(K(i,a)&&R(s,"has",i),R(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){let s=this,a=s.__v_raw,l=x(a),u=t?Pt:e?He:se;return!e&&R(l,"iterate",Q),a.forEach((c,f)=>i.call(o,u(c),u(f),s))}};return Te(n,e?{add:Be("add"),set:Be("set"),delete:Be("delete"),clear:Be("clear")}:{add(i){let o=x(this),s=je(o),a=x(i),l=!t&&!oe(i)&&!ie(i)?a:i;return s.has.call(o,l)||K(i,l)&&s.has.call(o,i)||K(a,l)&&s.has.call(o,a)||(o.add(l),$(o,"add",l,l)),this},set(i,o){!t&&!oe(o)&&!ie(o)&&(o=x(o));let s=x(this),{has:a,get:l}=je(s),u=a.call(s,i);u?yn(s,a,i):(i=x(i),u=a.call(s,i));let c=l.call(s,i);return s.set(i,o),u?K(o,c)&&$(s,"set",i,o,c):$(s,"add",i,o),this},delete(i){let o=x(this),{has:s,get:a}=je(o),l=s.call(o,i);l?yn(o,s,i):(i=x(i),l=s.call(o,i));let u=a?a.call(o,i):void 0,c=o.delete(i);return l&&$(o,"delete",i,void 0,u),c},clear(){let i=x(this),o=i.size!==0,s=Ee(i)?new Map(i):new Set(i),a=i.clear();return o&&$(i,"clear",void 0,void 0,s),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=jo(i,e,t)}),n}function Ar(e,t){let n=Bo(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Rt(n,i)&&i in r?n:r,i,o)}var ko={get:Ar(!1,!1)},Vo={get:Ar(!0,!1)};function yn(e,t,n){let r=x(n);if(r!==n&&t.call(e,r)){let i=mr(e);re(`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 Cr=new WeakMap,Uo=new WeakMap,Tr=new WeakMap,$o=new WeakMap;function Wo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tn(e){return ie(e)?e:Or(e,!1,Fo,ko,Cr)}function Mt(e){return Or(e,!0,qo,Vo,Tr)}function Or(e,t,n,r,i){if(!Re(e))return re(`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=Wo(mr(e));if(s===0)return e;let a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function Rr(e){return ie(e)?Rr(e.__v_raw):!!(e&&e.__v_isReactive)}function ie(e){return!!(e&&e.__v_isReadonly)}function oe(e){return!!(e&&e.__v_isShallow)}function Xo(e){return e?!!e.__v_raw:!1}function x(e){let t=e&&e.__v_raw;return t?x(t):e}var se=e=>Re(e)?tn(e):e,He=e=>Re(e)?Mt(e):e;function Se(e){return e?e.__v_isRef===!0:!1}P("nextTick",()=>Xt);P("dispatch",e=>be.bind(be,e));P("watch",(e,{evaluateLater:t,cleanup:n})=>(r,i)=>{let o=t(r),a=wn(()=>{let l;return o(u=>l=u),l},i);n(a)});P("store",uo);P("data",e=>Hn(e));P("root",e=>Ze(e));P("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=ee(zo(e))),e._x_refs_proxy));function zo(e){let t=[];return H(e,n=>{n._x_refs&&t.push(n._x_refs)}),t}var gt={};function Dr(e){return gt[e]||(gt[e]=0),++gt[e]}function Jo(e,t){return H(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function Ko(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Dr(t))}P("id",(e,{cleanup:t})=>(n,r=null)=>{let i=`${n}${r?`-${r}`:""}`;return Yo(e,i,t,()=>{let o=Jo(e,n),s=o?o._x_ids[n]:Dr(n);return r?`${n}-${s}-${r}`:`${n}-${s}`})});Pe((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Yo(e,t,n,r){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let i=r();return e._x_id[t]=i,n(()=>{delete e._x_id[t]}),i}P("el",e=>e);Hr("Focus","focus","focus");Hr("Persist","persist","persist");function Hr(e,t,n){P(t,r=>L(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}S("modelable",(e,{expression:t},{effect:n,evaluateLater:r,cleanup:i})=>{let o=r(t),s=()=>{let c;return o(f=>c=f),c},a=r(`${t} = __placeholder`),l=c=>a(()=>{},{scope:{__placeholder:c}}),u=s();l(u),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let c=e._x_model.get,f=e._x_model.setWithModifiers,h=cr({get(){return c()},set(p){f(p)}},{get(){return s()},set(p){l(p)}});i(h)})});S("teleport",(e,{modifiers:t,expression:n},{cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&L("x-teleport can only be used on a <template> tag",e);let i=xn(n),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,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),Ie(o,{},e);let s=(a,l,u)=>{u.includes("prepend")?l.parentNode.insertBefore(a,l):u.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};_(()=>{U(()=>{s(o,i,t),N(o)})()}),e._x_teleportPutBack=()=>{let a=xn(n);_(()=>{s(e._x_teleport,a,t)})},r(()=>_(()=>{o.remove(),le(o)}))});var Go=document.createElement("div");function xn(e){let t=U(()=>document.querySelector(e),()=>Go)();return t||L(`Cannot find x-teleport element for selector: "${e}"`),t}var Ir=()=>{};Ir.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};S("ignore",Ir);S("effect",U((e,{expression:t},{effect:n})=>{n(O(e,t))}));function ce(e,t,n,r){let i=e,o=l=>r(l),s={},a=(l,u)=>c=>u(l,c);return n.includes("dot")&&(t=Qo(t)),n.includes("camel")&&(t=Zo(t)),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("passive")&&(s.passive=n[n.indexOf("passive")+1]!=="false"),o=Pr(n,o),n.includes("prevent")&&(o=a(o,(l,u)=>{u.preventDefault(),l(u)})),n.includes("stop")&&(o=a(o,(l,u)=>{u.stopPropagation(),l(u)})),n.includes("once")&&(o=a(o,(l,u)=>{l(u),i.removeEventListener(t,o,s)})),(n.includes("away")||n.includes("outside"))&&(i=document,o=a(o,(l,u)=>{e.contains(u.target)||u.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(u))})),n.includes("self")&&(o=a(o,(l,u)=>{u.target===e&&l(u)})),t==="submit"&&(o=a(o,(l,u)=>{u.target._x_pendingModelUpdates&&u.target._x_pendingModelUpdates.forEach(c=>c()),l(u)})),(ts(t)||Mr(t))&&(o=a(o,(l,u)=>{rs(u,n)||l(u)})),i.addEventListener(t,o,s),()=>{i.removeEventListener(t,o,s)}}function Pr(e,t){if(e.includes("debounce")){let n=e[e.indexOf("debounce")+1]||"invalid-wait",r=Je(n.split("ms")[0])?Number(n.split("ms")[0]):250;t=lr(t,r)}if(e.includes("throttle")){let n=e[e.indexOf("throttle")+1]||"invalid-wait",r=Je(n.split("ms")[0])?Number(n.split("ms")[0]):250;t=ur(t,r)}return t}function Qo(e){return e.replace(/-/g,".")}function Zo(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function Je(e){return!Array.isArray(e)&&!isNaN(e)}function es(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function ts(e){return["keydown","keyup"].includes(e)}function Mr(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}var ns=["window","document","prevent","stop","once","capture","self","away","outside","passive","dot","camel","preserve-scroll","blur","change","lazy","number","boolean","trim","fill","unintrusive","parent"];function rs(e,t){let n=t.filter((o,s)=>o==="false"&&t[s-1]==="passive"?!1:!ns.includes(o));if(n.includes("debounce")){let o=n.indexOf("debounce");n.splice(o,Je((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let o=n.indexOf("throttle");n.splice(o,Je((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&vn(e.key).includes(n[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>n.includes(o));return n=n.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===i.length&&(Mr(e.type)||vn(e.key).includes(n[0])))}function vn(e){if(!e)return[];e=es(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(n=>{if(t[n]===e)return n}).filter(n=>n)}S("model",(e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let o=e;t.includes("parent")&&(o=H(e,d=>d!==e));let s=O(o,n),a;typeof n=="string"?a=O(o,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?a=O(o,`${n()} = __placeholder`):a=()=>{};let l=()=>{let d;return s(g=>d=g),bn(d)?d.get():d},u=d=>{let g;s(m=>g=m),bn(g)?g.set(d):a(()=>{},{scope:{__placeholder:d}})};typeof n=="string"&&e.type==="radio"&&_(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});let c=t.includes("change")||t.includes("lazy"),f=t.includes("blur"),h=t.includes("enter"),p=c||f||h,b;if(V)b=()=>{};else if(p){let d=[],g=m=>u(ke(e,t,m,l()));if(c&&d.push(ce(e,"change",t,g)),f&&(d.push(ce(e,"blur",t,g)),e.form)){let m=e.form,A=()=>g({target:e});m._x_pendingModelUpdates||(m._x_pendingModelUpdates=[]),m._x_pendingModelUpdates.push(A),i(()=>{m._x_pendingModelUpdates&&m._x_pendingModelUpdates.splice(m._x_pendingModelUpdates.indexOf(A),1)})}h&&d.push(ce(e,"keydown",t,m=>{m.key==="Enter"&&g(m)})),b=()=>d.forEach(m=>m())}else{let d=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)?"change":"input";b=ce(e,d,t,g=>{u(ke(e,t,g,l()))})}if(t.includes("fill")&&([void 0,null,""].includes(l())||Xe(e)&&Array.isArray(l())||e.tagName.toLowerCase()==="select"&&e.multiple)&&u(ke(e,t,{target:e},l())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=b,i(()=>e._x_removeModelListeners.default()),e.form){let d=ce(e.form,"reset",[],g=>{Xt(()=>e._x_model&&e._x_model.set(ke(e,t,{target:e},l())))});i(()=>d())}if(e._x_model={get(){return l()},set(d){u(d)},setWithModifiers:Pr(t,u)},e._x_forceModelUpdate=d=>{d===void 0&&typeof n=="string"&&n.match(/\./)&&(d=""),_(()=>{Xe(e)?Array.isArray(d)?e.checked=d.some(g=>g==e.value):e.checked=!!d:Kt(e)?typeof d=="boolean"?e.checked=Ve(e.value)===d:e.checked=e.value==d:or(e,"value",d)})},e.tagName==="SELECT"){let d=new MutationObserver(()=>{e._x_forceModelUpdate(l())});d.observe(e,{childList:!0}),i(()=>d.disconnect())}r(()=>{let d=l();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(d)})});function ke(e,t,n,r){return _(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(Xe(e))if(Array.isArray(r)){let i=null;return t.includes("number")?i=pt(n.target.value):t.includes("boolean")?i=Ve(n.target.value):i=n.target.value,n.target.checked?r.includes(i)?r:r.concat([i]):r.filter(o=>!is(o,i))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return pt(o)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(i=>{let o=i.value||i.text;return Ve(o)}):Array.from(n.target.selectedOptions).map(i=>i.value||i.text);{let i;return Kt(e)?n.target.checked?i=n.target.value:i=r:i=n.target.value,t.includes("number")?pt(i):t.includes("boolean")?Ve(i):t.includes("trim")?i.trim():i}}})}function pt(e){let t=e?parseFloat(e):null;return os(t)?t:e}function is(e,t){return e==t}function os(e){return!Array.isArray(e)&&!isNaN(e)}function bn(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}S("cloak",e=>{if(V)return e.removeAttribute(te("cloak"));queueMicrotask(()=>_(()=>e.removeAttribute(te("cloak"))))});tr(()=>`[${te("init")}]`);S("init",U((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));S("text",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{_(()=>{e.textContent=o})})})});S("html",(e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n(()=>{i(o=>{_(()=>{Array.from(e.children).forEach(s=>le(s)),e.innerHTML=o??"",e._x_ignoreSelf=!0,N(e),delete e._x_ignoreSelf})})},{priority:"structural"})});Ut(Vn(":",Un(te("bind:"))));var Lr=(e,{value:t,modifiers:n,expression:r,original:i},{effect:o,cleanup:s})=>{if(!t){let l={};fo(l),O(e,r)(c=>{dr(e,c,i)},{scope:l});return}if(t==="key")return ss(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let a=O(e,r);o(()=>a(l=>{l===void 0&&typeof r=="string"&&r.match(/\./)&&(l=""),_(()=>or(e,t,l,n))})),s(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};Lr.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:r,extract:!1})};S("bind",Lr);function ss(e,t){e._x_keyExpression=t}er(()=>`[${te("data")}]`);var z=Symbol();S("data",(e,{expression:t},{cleanup:n})=>{if(ls(e))return;let r=e[z];if(r?.expression===t)return;t=t===""?"{}":t;let i={};Ae(i,e);let o={};go(o,i);let s=G(e,t,{scope:o});(s===void 0||s===!0)&&(s={}),Ae(s,e);let a;if(r?.reactiveData){a=r.reactiveData,as(a,s);let u={expression:t};e[z]=u,queueMicrotask(()=>{e[z]===u&&delete e[z]})}else a=he(s);kt(a,n);let l=Ie(e,a);U(()=>{a.init&&G(e,a.init)})(),n(()=>{a.destroy&&G(e,a.destroy),l();let u={reactiveData:a};e[z]=u,queueMicrotask(()=>{e[z]===u&&delete e[z]})})});function as(e,t){Object.keys(t).forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n),i=Object.getOwnPropertyDescriptor(e,n);r.get||r.set||i?.get||i?.set?(i&&delete e[n],i||(e[n]=void 0),r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]):e[n]=t[n]}),Object.keys(e).filter(n=>!Object.prototype.hasOwnProperty.call(t,n)).forEach(n=>delete e[n])}Pe((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function ls(e){return V?wt?!0:e.hasAttribute("data-has-alpine-state"):!1}S("show",(e,{modifiers:t,expression:n},{effect:r})=>{let i=O(e,n);e._x_doHide||(e._x_doHide=()=>{_(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{_(()=>{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),l=Tt(f=>f?s():o(),f=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,f,s,o):f?a():o()}),u,c=!0;r(()=>i(f=>{!c&&f===u||(t.includes("immediate")&&(f?a():o()),l(f),u=f,c=!1)}))});S("for",U((e,{expression:t},{effect:n,cleanup:r})=>{let i=fs(t),o=O(e,i.items),s=O(e,e._x_keyExpression||"index");e._x_lookup=new Map,n(()=>cs(e,i,o,s),{priority:"structural"}),r(()=>{e._x_lookup.forEach(a=>_(()=>{le(a),a.remove()})),delete e._x_lookup,delete e._x_lastRenderedEl})}));function us(e){return t=>{Object.entries(t).forEach(([n,r])=>{e[n]=r})}}function cs(e,t,n,r){n(i=>{hs(i)&&(i=Array.from({length:i},(u,c)=>c+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=gs(i),l=Object.entries(i).map(([u,c])=>{a||(u=parseInt(u));let f=ds(t,c,u,i),h;return r(p=>{typeof p=="object"&&L("x-for key cannot be an object, it must be a string or an integer",e),o.has(p)&&(s.set(p,o.get(p)),o.delete(p)),h=p},{scope:{index:u,...f}}),[h,f]});_(()=>{o.forEach(f=>{le(f),f.remove()});let u=new Set,c=e;l.forEach(([f,h])=>{if(s.has(f)){let d=s.get(f);d._x_refreshXForScope(h),c.nextElementSibling!==d&&(c.nextElementSibling&&d.replaceWith(c.nextElementSibling),c.after(d)),c=d,d._x_currentIfEl&&(d.nextElementSibling!==d._x_currentIfEl&&c.after(d._x_currentIfEl),c=d._x_currentIfEl);return}e.content.children.length>1&&L("x-for templates require a single root element, additional elements will be ignored.",e);let p=document.importNode(e.content,!0).firstElementChild,b=he(h);Ie(p,b,e),p._x_refreshXForScope=us(b),s.set(f,p),u.add(p),c.after(p),c=p}),u.forEach(f=>N(f)),c!==e?e._x_lastRenderedEl=c:delete e._x_lastRenderedEl})})}function fs(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\b(?:in|of)\b([\s\S]*)/,i=e.match(r);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(n,"").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 ds(e,t,n,r){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]=n),e.collection&&(i[e.collection]=r),i}function hs(e){return typeof e!="object"&&!isNaN(e)}function gs(e){return typeof e=="object"&&!Array.isArray(e)}function Nr(){}Nr.inline=(e,{expression:t},{cleanup:n})=>{let r=Ze(e);r&&(r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t]))};S("ref",Nr);S("if",U((e,{expression:t},{effect:n,cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&L("x-if can only be used on a <template> tag",e);let i=O(e,t),o=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return Ie(a,{},e),_(()=>{e.after(a),N(a)}),e._x_currentIfEl=a,e._x_lastRenderedEl=a,e._x_undoIf=()=>{_(()=>{le(a),a.remove()}),delete e._x_currentIfEl,delete e._x_lastRenderedEl},a},s=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>i(a=>{a?o():s()}),{priority:"structural"}),r(()=>e._x_undoIf&&e._x_undoIf())}));S("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(i=>Ko(e,i))});Pe((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});Ut(Vn("@",Un(te("on:"))));S("on",U((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?O(e,r):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=ce(e,t,n,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));nt("Collapse","collapse","collapse");nt("Intersect","intersect","intersect");nt("Focus","trap","focus");nt("Mask","mask","mask");function nt(e,t,n){S(t,r=>L(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}pe.setEvaluator(gi);pe.setRawEvaluator(vi);pe.setReactivityEngine({reactive:tn,effect:(e,t={})=>{let n;return n=Ao(e,{scheduler:()=>{n&&(t.scheduler?t.scheduler(n):n())}}),n},release:Co,raw:x});var ps=pe,nn=ps;window.htmx=ln;window.Alpine=nn;(function(){let t=localStorage.getItem("na-theme"),n=document.documentElement.dataset.defaultTheme||"system",r=t||n,i=window.matchMedia("(prefers-color-scheme: dark)").matches;r==="dark"||r==="system"&&i?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")})();window.naToggleTheme=function(){let e=document.documentElement.classList.toggle("dark");localStorage.setItem("na-theme",e?"dark":"light")};document.addEventListener("naToast",e=>{let t=e.detail||{},n=document.getElementById("na-toast-container");if(!n||!t.message)return;let r=t.variant||"success",i={success:"bg-emerald-600 text-white",warning:"bg-amber-600 text-white",danger:"bg-rose-600 text-white"},o=document.createElement("div");o.className=`px-4 py-2.5 rounded-lg shadow-lg text-sm font-medium transition-opacity duration-300 ${i[r]||i.success}`,o.textContent=String(t.message),n.appendChild(o),setTimeout(()=>{o.style.opacity="0",setTimeout(()=>o.remove(),300)},3500)});nn.start();})();
|
|
6
|
+
/*! Bundled license information:
|
|
7
|
+
|
|
8
|
+
alpinejs/dist/module.esm.js:
|
|
9
|
+
(*! Bundled license information:
|
|
10
|
+
|
|
11
|
+
@vue/shared/dist/shared.esm-bundler.js:
|
|
12
|
+
(**
|
|
13
|
+
* @vue/shared v3.5.41
|
|
14
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
15
|
+
* @license MIT
|
|
16
|
+
**)
|
|
17
|
+
|
|
18
|
+
@vue/reactivity/dist/reactivity.esm-bundler.js:
|
|
19
|
+
(**
|
|
20
|
+
* @vue/reactivity v3.5.41
|
|
21
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
22
|
+
* @license MIT
|
|
23
|
+
**)
|
|
24
|
+
*)
|
|
25
|
+
*/
|