@teselia/password 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +61 -2
- package/dist/TesPassword.vue.d.ts +27 -0
- package/dist/composables/use-caps-lock.d.ts +11 -0
- package/dist/composables/use-field-options.d.ts +7 -0
- package/dist/composables/use-public-events.d.ts +5 -0
- package/dist/composables/use-requirements.d.ts +20 -0
- package/dist/composables/use-reveal.d.ts +16 -0
- package/dist/composables/use-validation.d.ts +17 -0
- package/dist/composables/use-value-sync.d.ts +10 -0
- package/dist/core/changes.d.ts +7 -0
- package/dist/core/ids.d.ts +1 -0
- package/dist/core/purpose.d.ts +4 -0
- package/dist/core/rules.d.ts +23 -0
- package/dist/core/validation.d.ts +17 -0
- package/dist/element.d.ts +40 -0
- package/dist/index.d.ts +9 -0
- package/dist/props.d.ts +58 -0
- package/dist/styles.d.ts +2 -0
- package/dist/tes-password.iife.js +2 -0
- package/dist/tes-password.iife.js.map +1 -0
- package/dist/tes-password.js +622 -0
- package/dist/tes-password.js.map +1 -0
- package/package.json +60 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @teselia/password
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- First stable release of `<tes-password>`: an accessible password field that works with password managers. A native `<input>` in the light DOM keeps saving, filling and generating passwords working in Chrome, Firefox and Safari, and the form submits, resets and validates natively. It includes a show/hide button that hides the password again before the form is submitted, requirements with their state announced once typing pauses, a Caps Lock warning, `setCustomValidity()` for server errors, `purpose="new"` for sign-up forms with `passwordrules`, and theming through CSS custom properties and documented classes. It meets WCAG 2.2 AA and follows NIST SP 800-63B-4: a single length rule by default (at least 8 characters, no maximum), no composition rules unless you add them, and paste allowed.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Caio Gomes
|
|
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,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @teselia/password
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Accessible password input with a show/hide button and live requirements, shipped as a framework-agnostic Web Component. It renders a native password field, so browser and third-party password managers can fill, save and generate passwords. It meets WCAG 2.2 AA by default and submits the password to any native `<form>`.
|
|
4
|
+
|
|
5
|
+
**[Documentation and demo](https://teselia.caicesardev.com/password)**
|
|
6
|
+
|
|
7
|
+
- `purpose="current"` to sign in, `purpose="new"` to choose a new password: the right `autocomplete` for password managers, and `passwordrules` for Safari's generated passwords.
|
|
8
|
+
- A text "Show" / "Hide" button. The password is hidden again before the form is submitted, on reset and when the page is left.
|
|
9
|
+
- For new passwords, a list of requirements checked as you type: a minimum length by default, plus optional character classes. Screen readers hear only what changed, once typing pauses.
|
|
10
|
+
- A Caps Lock warning.
|
|
11
|
+
- Paste is never blocked and passwords are never cut. Length counts Unicode characters, as NIST asks.
|
|
12
|
+
- A real form control: `required`, validation messages, `setCustomValidity()` for server errors, reset, disabled fieldsets and `Enter` to submit.
|
|
13
|
+
- Themeable with CSS custom properties, documented classes and `:state()`.
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install @teselia/password vue
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Or load the self-contained build from a CDN, with nothing else to install:
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<script src="https://cdn.jsdelivr.net/npm/@teselia/password@1"></script>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
import '@teselia/password'
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<form>
|
|
35
|
+
<input name="email" type="email" autocomplete="username" aria-label="Email" required />
|
|
36
|
+
<tes-password name="password" label="New password" purpose="new" minlength="15" required></tes-password>
|
|
37
|
+
<button type="submit">Create account</button>
|
|
38
|
+
</form>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The form submits `password` exactly as typed. Listen to `input` or `change` for live updates, with `detail: { value, requirementsMet }`, and to `revealchange`, with `detail: { revealed }`.
|
|
42
|
+
|
|
43
|
+
Unlike the other Teselia components, this one has no shadow root: Firefox does not fill password fields inside one. Your page styles therefore reach the field, so prefer the documented classes over broad `input` or `button` rules.
|
|
44
|
+
|
|
45
|
+
Attributes, events, styling, and examples for Vue and React are in the [documentation](https://teselia.caicesardev.com/password).
|
|
46
|
+
|
|
47
|
+
## Size
|
|
48
|
+
|
|
49
|
+
| Build | gzip |
|
|
50
|
+
| --- | --- |
|
|
51
|
+
| npm (ESM), in an app that already has Vue | 6.6 KB |
|
|
52
|
+
| CDN (IIFE), everything including Vue | 30 KB |
|
|
53
|
+
|
|
54
|
+
No dependencies besides Vue.
|
|
55
|
+
|
|
56
|
+
## Browser support
|
|
57
|
+
|
|
58
|
+
Current and previous major versions of Chrome, Edge, Firefox and Safari.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
[MIT](./LICENSE) © Caio Gomes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type TesPasswordProps } from './props';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<TesPasswordProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TesPasswordProps> & Readonly<{}>, {
|
|
3
|
+
required: boolean;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
readonly: boolean;
|
|
6
|
+
textShow: string;
|
|
7
|
+
textHide: string;
|
|
8
|
+
textShowLabel: string;
|
|
9
|
+
textHideLabel: string;
|
|
10
|
+
textShown: string;
|
|
11
|
+
textHidden: string;
|
|
12
|
+
textRequirements: string;
|
|
13
|
+
textRuleLength: string;
|
|
14
|
+
textRuleLowercase: string;
|
|
15
|
+
textRuleUppercase: string;
|
|
16
|
+
textRuleDigit: string;
|
|
17
|
+
textRuleSymbol: string;
|
|
18
|
+
textRuleMet: string;
|
|
19
|
+
textRuleUnmet: string;
|
|
20
|
+
textAllMet: string;
|
|
21
|
+
textCapsLock: string;
|
|
22
|
+
textRequired: string;
|
|
23
|
+
textUnmet: string;
|
|
24
|
+
textTooLong: string;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResolvedTesPasswordProps } from '../props';
|
|
2
|
+
interface CapsLockOptions {
|
|
3
|
+
props: ResolvedTesPasswordProps;
|
|
4
|
+
announceNow: (message: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function useCapsLock({ props, announceNow }: CapsLockOptions): {
|
|
7
|
+
capsLockOn: import("vue").Ref<boolean, boolean>;
|
|
8
|
+
readCapsLock: (event: KeyboardEvent | PointerEvent) => void;
|
|
9
|
+
forgetCapsLock: () => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TesPasswordProps } from '../props';
|
|
2
|
+
export declare function useFieldOptions(props: Readonly<TesPasswordProps>): {
|
|
3
|
+
purpose: import("vue").ComputedRef<import("../core/purpose").Purpose>;
|
|
4
|
+
ruleOptions: import("vue").ComputedRef<import("../core/rules").RuleOptions | null>;
|
|
5
|
+
autocomplete: import("vue").ComputedRef<string>;
|
|
6
|
+
rulesForPasswordManagers: import("vue").ComputedRef<string | undefined>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import { type Requirement, type RuleOptions } from '../core/rules';
|
|
3
|
+
import type { TesPasswordElement } from '../element';
|
|
4
|
+
import type { ResolvedTesPasswordProps } from '../props';
|
|
5
|
+
interface RequirementsOptions {
|
|
6
|
+
host: TesPasswordElement;
|
|
7
|
+
props: ResolvedTesPasswordProps;
|
|
8
|
+
ruleOptions: ComputedRef<RuleOptions | null>;
|
|
9
|
+
announceOnceTypingPauses: (message: () => string) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface RequirementItem {
|
|
12
|
+
requirement: Requirement;
|
|
13
|
+
met: boolean;
|
|
14
|
+
text: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function useRequirements({ host, props, ruleOptions, announceOnceTypingPauses }: RequirementsOptions): {
|
|
17
|
+
requirementItems: ComputedRef<RequirementItem[]>;
|
|
18
|
+
reportUserChange: () => void;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { TesPasswordElement } from '../element';
|
|
3
|
+
import type { ResolvedTesPasswordProps } from '../props';
|
|
4
|
+
interface RevealOptions {
|
|
5
|
+
host: TesPasswordElement;
|
|
6
|
+
props: ResolvedTesPasswordProps;
|
|
7
|
+
input: Readonly<Ref<HTMLInputElement | null>>;
|
|
8
|
+
announceNow: (message: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useReveal({ host, props, input, announceNow }: RevealOptions): {
|
|
11
|
+
revealed: import("vue").ComputedRef<boolean>;
|
|
12
|
+
inputType: import("vue").ComputedRef<"text" | "password">;
|
|
13
|
+
toggleLabel: import("vue").ComputedRef<string>;
|
|
14
|
+
toggleByUser: () => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
+
import type { RuleOptions } from '../core/rules';
|
|
3
|
+
import type { TesPasswordElement } from '../element';
|
|
4
|
+
import type { ResolvedTesPasswordProps } from '../props';
|
|
5
|
+
interface ValidationOptions {
|
|
6
|
+
host: TesPasswordElement;
|
|
7
|
+
props: ResolvedTesPasswordProps;
|
|
8
|
+
input: Readonly<Ref<HTMLInputElement | null>>;
|
|
9
|
+
ruleOptions: ComputedRef<RuleOptions | null>;
|
|
10
|
+
}
|
|
11
|
+
export declare function useValidation({ host, props, input, ruleOptions }: ValidationOptions): {
|
|
12
|
+
visibleError: ComputedRef<import("../core/validation").PasswordValidationError | null>;
|
|
13
|
+
markEdited: () => void;
|
|
14
|
+
revealErrors: () => void;
|
|
15
|
+
revealErrorsIfEdited: () => void;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { TesPasswordElement } from '../element';
|
|
3
|
+
interface ValueSyncOptions {
|
|
4
|
+
host: TesPasswordElement;
|
|
5
|
+
input: Readonly<Ref<HTMLInputElement | null>>;
|
|
6
|
+
}
|
|
7
|
+
export declare function useValueSync({ host, input }: ValueSyncOptions): {
|
|
8
|
+
syncFromInput: () => void;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Requirement, RequirementCheck } from './rules';
|
|
2
|
+
export interface RequirementChanges {
|
|
3
|
+
met: Requirement[];
|
|
4
|
+
unmet: Requirement[];
|
|
5
|
+
allMet: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function requirementChanges(previous: RequirementCheck[], current: RequirementCheck[]): RequirementChanges | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function nextInstanceId(prefix: string): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type Purpose = 'current' | 'new';
|
|
2
|
+
export declare function isPurpose(value: unknown): value is Purpose;
|
|
3
|
+
export declare function resolvePurpose(value: unknown): Purpose;
|
|
4
|
+
export declare function autocompleteFor(purpose: Purpose, explicit: string | undefined): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type CharacterClass = 'lowercase' | 'uppercase' | 'digit' | 'symbol';
|
|
2
|
+
export type Requirement = 'length' | CharacterClass;
|
|
3
|
+
export interface RuleOptions {
|
|
4
|
+
minLength: number;
|
|
5
|
+
maxLength: number | null;
|
|
6
|
+
classes: CharacterClass[];
|
|
7
|
+
unknown: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface RequirementCheck {
|
|
10
|
+
requirement: Requirement;
|
|
11
|
+
met: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const DEFAULT_MIN_LENGTH = 8;
|
|
14
|
+
export declare function resolveRuleOptions(raw: {
|
|
15
|
+
minlength?: unknown;
|
|
16
|
+
maxlength?: unknown;
|
|
17
|
+
requirements?: unknown;
|
|
18
|
+
}): RuleOptions;
|
|
19
|
+
export declare function characterLength(value: string): number;
|
|
20
|
+
export declare function checkRequirements(value: string, options: RuleOptions): RequirementCheck[];
|
|
21
|
+
export declare function requirementsMet(value: string, options: RuleOptions): boolean;
|
|
22
|
+
export declare function isTooLong(value: string, options: RuleOptions): boolean;
|
|
23
|
+
export declare function passwordRules(options: RuleOptions): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type RuleOptions } from './rules';
|
|
2
|
+
export interface PasswordValidationInput {
|
|
3
|
+
value: string;
|
|
4
|
+
required: boolean;
|
|
5
|
+
ruleOptions: RuleOptions | null;
|
|
6
|
+
customError: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PasswordValidationTexts {
|
|
9
|
+
required: string;
|
|
10
|
+
unmet: string;
|
|
11
|
+
tooLong: string;
|
|
12
|
+
}
|
|
13
|
+
export interface PasswordValidationError {
|
|
14
|
+
flag: 'customError' | 'valueMissing' | 'tooLong' | 'unmet';
|
|
15
|
+
message: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function validatePassword({ value, required, ruleOptions, customError }: PasswordValidationInput, texts: PasswordValidationTexts): PasswordValidationError | null;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface TesPasswordState {
|
|
2
|
+
revealed: boolean;
|
|
3
|
+
value: string;
|
|
4
|
+
edited: boolean;
|
|
5
|
+
errorsVisible: boolean;
|
|
6
|
+
customError: string;
|
|
7
|
+
}
|
|
8
|
+
declare const VueTesPassword: import("vue").VueElementConstructor<import("./props.js").TesPasswordProps>;
|
|
9
|
+
export declare class TesPasswordElement extends VueTesPassword {
|
|
10
|
+
readonly state: TesPasswordState;
|
|
11
|
+
readonly internals: ElementInternals;
|
|
12
|
+
private pendingValue;
|
|
13
|
+
constructor(initialProps?: Record<string, unknown>);
|
|
14
|
+
get revealed(): boolean;
|
|
15
|
+
set revealed(revealed: boolean);
|
|
16
|
+
get value(): string;
|
|
17
|
+
set value(value: string);
|
|
18
|
+
get requirementsMet(): boolean;
|
|
19
|
+
get defaultValue(): string;
|
|
20
|
+
set defaultValue(value: string);
|
|
21
|
+
get minLength(): number;
|
|
22
|
+
set minLength(value: number);
|
|
23
|
+
get maxLength(): number;
|
|
24
|
+
set maxLength(value: number);
|
|
25
|
+
get readOnly(): boolean;
|
|
26
|
+
set readOnly(value: boolean);
|
|
27
|
+
get form(): HTMLFormElement | null;
|
|
28
|
+
get validity(): ValidityState;
|
|
29
|
+
get validationMessage(): string;
|
|
30
|
+
get willValidate(): boolean;
|
|
31
|
+
setCustomValidity(message: string): void;
|
|
32
|
+
checkValidity(): boolean;
|
|
33
|
+
reportValidity(): boolean;
|
|
34
|
+
connectedCallback(): void;
|
|
35
|
+
focus(options?: FocusOptions): void;
|
|
36
|
+
private get input();
|
|
37
|
+
private syncInputType;
|
|
38
|
+
private applyPendingValue;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TesPasswordElement } from './element';
|
|
2
|
+
export { TesPasswordElement };
|
|
3
|
+
export declare const TAG_NAME = "tes-password";
|
|
4
|
+
export declare function define(tagName?: string): void;
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
'tes-password': TesPasswordElement;
|
|
8
|
+
}
|
|
9
|
+
}
|
package/dist/props.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Purpose } from './core/purpose';
|
|
2
|
+
export interface TesPasswordProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
purpose?: Purpose;
|
|
10
|
+
minlength?: number;
|
|
11
|
+
maxlength?: number;
|
|
12
|
+
requirements?: string;
|
|
13
|
+
autocomplete?: string;
|
|
14
|
+
textShow?: string;
|
|
15
|
+
textHide?: string;
|
|
16
|
+
textShowLabel?: string;
|
|
17
|
+
textHideLabel?: string;
|
|
18
|
+
textShown?: string;
|
|
19
|
+
textHidden?: string;
|
|
20
|
+
textRequirements?: string;
|
|
21
|
+
textRuleLength?: string;
|
|
22
|
+
textRuleLowercase?: string;
|
|
23
|
+
textRuleUppercase?: string;
|
|
24
|
+
textRuleDigit?: string;
|
|
25
|
+
textRuleSymbol?: string;
|
|
26
|
+
textRuleMet?: string;
|
|
27
|
+
textRuleUnmet?: string;
|
|
28
|
+
textAllMet?: string;
|
|
29
|
+
textCapsLock?: string;
|
|
30
|
+
textRequired?: string;
|
|
31
|
+
textUnmet?: string;
|
|
32
|
+
textTooLong?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const TES_PASSWORD_DEFAULTS: {
|
|
35
|
+
required: boolean;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
readonly: boolean;
|
|
38
|
+
textShow: string;
|
|
39
|
+
textHide: string;
|
|
40
|
+
textShowLabel: string;
|
|
41
|
+
textHideLabel: string;
|
|
42
|
+
textShown: string;
|
|
43
|
+
textHidden: string;
|
|
44
|
+
textRequirements: string;
|
|
45
|
+
textRuleLength: string;
|
|
46
|
+
textRuleLowercase: string;
|
|
47
|
+
textRuleUppercase: string;
|
|
48
|
+
textRuleDigit: string;
|
|
49
|
+
textRuleSymbol: string;
|
|
50
|
+
textRuleMet: string;
|
|
51
|
+
textRuleUnmet: string;
|
|
52
|
+
textAllMet: string;
|
|
53
|
+
textCapsLock: string;
|
|
54
|
+
textRequired: string;
|
|
55
|
+
textUnmet: string;
|
|
56
|
+
textTooLong: string;
|
|
57
|
+
};
|
|
58
|
+
export type ResolvedTesPasswordProps = Readonly<TesPasswordProps & typeof TES_PASSWORD_DEFAULTS>;
|
package/dist/styles.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var TeseliaPassword=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var n={},r=[],i=()=>{},a=()=>!1,o=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),s=e=>e.startsWith(`onUpdate:`),c=Object.assign,l=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>S(e)===`[object Map]`,m=e=>S(e)===`[object Set]`,h=e=>S(e)===`[object Date]`,g=e=>typeof e==`function`,_=e=>typeof e==`string`,v=e=>typeof e==`symbol`,y=e=>typeof e==`object`&&!!e,b=e=>(y(e)||g(e))&&g(e.then)&&g(e.catch),x=Object.prototype.toString,S=e=>x.call(e),C=e=>S(e).slice(8,-1),w=e=>S(e)===`[object Object]`,ee=e=>_(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,te=t(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),T=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ne=/-\w/g,E=T(e=>e.replace(ne,e=>e.slice(1).toUpperCase())),re=/\B([A-Z])/g,D=T(e=>e.replace(re,`-$1`).toLowerCase()),ie=T(e=>e.charAt(0).toUpperCase()+e.slice(1)),ae=T(e=>e?`on${ie(e)}`:``),O=(e,t)=>!Object.is(e,t),oe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},se=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ce=e=>{let t=parseFloat(e);return isNaN(t)?e:t},le=e=>{let t=_(e)?Number(e):NaN;return isNaN(t)?e:t},ue,de=()=>ue||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function fe(e){if(f(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=_(r)?he(r):fe(r);if(i)for(let e in i)t[e]=i[e]}return t}if(_(e)||y(e))return e}var pe=/;(?![^(]*\))/g,me=/:([^]+)/,k=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function he(e){let t={};return e.replace(k,e=>e.startsWith(`/*`)?``:e).split(pe).forEach(e=>{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ge(e){let t=``;if(_(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){let r=ge(e[n]);r&&(t+=r+` `)}else if(y(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var _e=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ve=t(_e);_e+``;function ye(e){return!!e||e===``}function be(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=we(e[i],t[i],n);return r}function xe(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),i=new Uint8Array(r.length);for(let t of e){let e=-1;for(let a=0;a<r.length;a++)if(!i[a]&&we(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function Se(e,t,n){let r=p(e),i=p(t);if(r||i||(r=m(e),i=m(t),r||i))return r&&i?xe(e,t,n):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){let i=e.hasOwnProperty(r),a=t.hasOwnProperty(r);if(i&&!a||!i&&a||!we(e[r],t[r],n))return!1}return String(e)===String(t)}function Ce(e,t,n,r){n||=[new Map,new Map];let[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);let o=r(e,t,n);return i.delete(e),a.delete(t),o}function we(e,t,n){if(e===t)return!0;let r=h(e),i=h(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=v(e),i=v(t),r||i?e===t:(r=f(e),i=f(t),r||i?r&&i?Ce(e,t,n,be):!1:(r=y(e),i=y(t),r||i?!r||!i?!1:Ce(e,t,n,Se):String(e)===String(t))))}var Te=e=>!!(e&&e.__v_isRef===!0),A=e=>_(e)?e:e==null?``:f(e)||y(e)&&(e.toString===x||!g(e.toString))?Te(e)?A(e.value):JSON.stringify(e,Ee,2):String(e),Ee=(e,t)=>Te(t)?Ee(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[De(t,r)+` =>`]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>De(e))}:v(t)?De(t):y(t)&&!f(t)&&!w(t)?String(t):t,De=(e,t=``)=>v(e)?`Symbol(${e.description??t})`:e,j,Oe=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&j&&(j.active?(this.parent=j,this.index=(j.scopes||(j.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=j;try{return j=this,e()}finally{j=t}}}on(){++this._on===1&&(this.prevScope=j,j=this)}off(){if(this._on>0&&--this._on===0){if(j===this)j=this.prevScope;else{let e=j;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function ke(){return j}var M,Ae=new WeakSet,je=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,j&&(j.active?j.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ae.has(this)&&(Ae.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Fe(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,qe(this),Re(this);let e=M,t=N;M=this,N=!0;try{return this.fn()}finally{ze(this),M=e,N=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)He(e);this.deps=this.depsTail=void 0,qe(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ae.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Be(this)&&this.run()}get dirty(){return Be(this)}},Me=0,Ne,Pe;function Fe(e,t=!1){if(e.flags|=8,t){e.next=Pe,Pe=e;return}e.next=Ne,Ne=e}function Ie(){Me++}function Le(){if(--Me>0)return;if(Pe){let e=Pe;for(Pe=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ne;){let t=Ne;for(Ne=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Re(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),He(r),Ue(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Be(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ve(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ve(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Je)||(e.globalVersion=Je,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Be(e))))return;e.flags|=2;let t=e.dep,n=M,r=N;M=e,N=!0;try{Re(e);let n=e.fn(e._value);(t.version===0||O(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{M=n,N=r,ze(e),e.flags&=-3}}function He(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.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)He(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ue(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var N=!0,We=[];function Ge(){We.push(N),N=!1}function Ke(){let e=We.pop();N=e===void 0||e}function qe(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=M;M=void 0;try{t()}finally{M=e}}}var Je=0,Ye=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}},Xe=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}track(e){if(!M||!N||M===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==M)t=this.activeLink=new Ye(M,this),M.deps?(t.prevDep=M.depsTail,M.depsTail.nextDep=t,M.depsTail=t):M.deps=M.depsTail=t,Ze(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=M.depsTail,t.nextDep=void 0,M.depsTail.nextDep=t,M.depsTail=t,M.deps===t&&(M.deps=e)}return t}trigger(e){this.version++,Je++,this.notify(e)}notify(e){Ie();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Le()}}};function Ze(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ze(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Qe=new WeakMap,$e=Symbol(``),et=Symbol(``),tt=Symbol(``);function P(e,t,n){if(N&&M){let t=Qe.get(e);t||Qe.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Xe),r.map=t,r.key=n),r.track()}}function nt(e,t,n,r,i,a){let o=Qe.get(e);if(!o){Je++;return}let s=e=>{e&&e.trigger()};if(Ie(),t===`clear`)o.forEach(s);else{let i=f(e),a=i&&ee(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===tt||!v(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(tt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get($e)),p(e)&&s(o.get(et)));break;case`delete`:i||(s(o.get($e)),p(e)&&s(o.get(et)));break;case`set`:p(e)&&s(o.get($e))}}Le()}function rt(e){let t=R(e);return t===e||(P(t,`iterate`,tt),L(e))?t:I(e)?zt(e)?t.map(e=>Ht(z(e))):t.map(Ht):t.map(z)}function it(e){return P(e=R(e),`iterate`,tt),e}function F(e,t){return I(e)?Ht(zt(e)?z(t):t):z(t)}var at={__proto__:null,[Symbol.iterator](){return ot(this,Symbol.iterator,e=>F(this,e))},concat(...e){return rt(this).concat(...e.map(e=>f(e)?rt(e):e))},entries(){return ot(this,`entries`,e=>(e[1]=F(this,e[1]),e))},every(e,t){return ct(this,`every`,e,t,void 0,arguments)},filter(e,t){return ct(this,`filter`,e,t,e=>e.map(e=>F(this,e)),arguments)},find(e,t){return ct(this,`find`,e,t,e=>F(this,e),arguments)},findIndex(e,t){return ct(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ct(this,`findLast`,e,t,e=>F(this,e),arguments)},findLastIndex(e,t){return ct(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ct(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ut(this,`includes`,e)},indexOf(...e){return ut(this,`indexOf`,e)},join(e){return rt(this).join(e)},lastIndexOf(...e){return ut(this,`lastIndexOf`,e)},map(e,t){return ct(this,`map`,e,t,void 0,arguments)},pop(){return dt(this,`pop`)},push(...e){return dt(this,`push`,e)},reduce(e,...t){return lt(this,`reduce`,e,t)},reduceRight(e,...t){return lt(this,`reduceRight`,e,t)},shift(){return dt(this,`shift`)},some(e,t){return ct(this,`some`,e,t,void 0,arguments)},splice(...e){return dt(this,`splice`,e)},toReversed(){return rt(this).toReversed()},toSorted(e){return rt(this).toSorted(e)},toSpliced(...e){return rt(this).toSpliced(...e)},unshift(...e){return dt(this,`unshift`,e)},values(){return ot(this,`values`,e=>F(this,e))}};function ot(e,t,n){let r=it(e),i=r[t]();return r!==e&&!L(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var st=Array.prototype;function ct(e,t,n,r,i,a){let o=it(e),s=o!==e&&!L(e),c=o[t];if(c!==st[t]){let t=c.apply(e,a);return s?z(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,F(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function lt(e,t,n,r){let i=it(e),a=i!==e&&!L(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=F(e,t)),n.call(this,t,F(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?F(e,c):c}function ut(e,t,n){let r=R(e);P(r,`iterate`,tt);let i=r[t](...n);return(i===-1||i===!1)&&Bt(n[0])?(n[0]=R(n[0]),r[t](...n)):i}function dt(e,t,n=[]){Ge(),Ie();let r=R(e)[t].apply(e,n);return Le(),Ke(),r}var ft=t(`__proto__,__v_isRef,__isVue`),pt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(v));function mt(e){v(e)||(e=String(e));let t=R(this);return P(t,`has`,e),t.hasOwnProperty(e)}var ht=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?Nt:Mt:i?jt:At).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=f(e);if(!r){let e;if(a&&(e=at[t]))return e;if(t===`hasOwnProperty`)return mt}let o=Reflect.get(e,t,B(e)?e:n);if((v(t)?pt.has(t):ft(t))||(r||P(e,`get`,t),i))return o;if(B(o)){let e=a&&ee(t)?o:o.value;return r&&y(e)?Lt(e):e}return y(o)?r?Lt(o):Ft(o):o}},gt=class extends ht{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=f(e)&&ee(t);if(!this._isShallow){let e=I(i);if(!L(n)&&!I(n)&&(i=R(i),n=R(n)),!a&&B(i)&&!B(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:d(e,t),s=Reflect.set(e,t,n,B(e)?e:r);return e===R(r)&&s&&(o?O(n,i)&&nt(e,`set`,t,n,i):nt(e,`add`,t,n)),s}deleteProperty(e,t){let n=d(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&nt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!v(t)||!pt.has(t))&&P(e,`has`,t),n}ownKeys(e){return P(e,`iterate`,f(e)?`length`:$e),Reflect.ownKeys(e)}},_t=class extends ht{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},vt=new gt,yt=new _t,bt=new gt(!0),xt=e=>e,St=e=>Reflect.getPrototypeOf(e);function Ct(e,t,n){return function(...r){let i=this.__v_raw,a=R(i),o=p(a),s=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?xt:t?Ht:z;return!t&&P(a,`iterate`,l?et:$e),c(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function wt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Tt(e,t){let n={get(n){let r=this.__v_raw,i=R(r),a=R(n);e||(O(n,a)&&P(i,`get`,n),P(i,`get`,a));let{has:o}=St(i),s=t?xt:e?Ht:z;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&P(R(t),`iterate`,$e),t.size},has(t){let n=this.__v_raw,r=R(n),i=R(t);return e||(O(t,i)&&P(r,`has`,t),P(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=R(a),s=t?xt:e?Ht:z;return!e&&P(o,`iterate`,$e),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return c(n,e?{add:wt(`add`),set:wt(`set`),delete:wt(`delete`),clear:wt(`clear`)}:{add(e){let n=R(this),r=St(n),i=R(e),a=!t&&!L(e)&&!I(e)?i:e;return r.has.call(n,a)||O(e,a)&&r.has.call(n,e)||O(i,a)&&r.has.call(n,i)||(n.add(a),nt(n,`add`,a,a)),this},set(e,n){!t&&!L(n)&&!I(n)&&(n=R(n));let r=R(this),{has:i,get:a}=St(r),o=i.call(r,e);o||=(e=R(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?O(n,s)&&nt(r,`set`,e,n,s):nt(r,`add`,e,n),this},delete(e){let t=R(this),{has:n,get:r}=St(t),i=n.call(t,e);i||=(e=R(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&nt(t,`delete`,e,void 0,a),o},clear(){let e=R(this),t=e.size!==0,n=e.clear();return t&&nt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ct(r,e,t)}),n}function Et(e,t){let n=Tt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(d(n,r)&&r in t?n:t,r,i)}var Dt={get:Et(!1,!1)},Ot={get:Et(!1,!0)},kt={get:Et(!0,!1)},At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=new WeakMap;function Pt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Ft(e){return I(e)?e:Rt(e,!1,vt,Dt,At)}function It(e){return Rt(e,!1,bt,Ot,jt)}function Lt(e){return Rt(e,!0,yt,kt,Mt)}function Rt(e,t,n,r,i){if(!y(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Pt(C(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function zt(e){return I(e)?zt(e.__v_raw):!!(e&&e.__v_isReactive)}function I(e){return!!(e&&e.__v_isReadonly)}function L(e){return!!(e&&e.__v_isShallow)}function Bt(e){return e?!!e.__v_raw:!1}function R(e){let t=e&&e.__v_raw;return t?R(t):e}function Vt(e){return!d(e,`__v_skip`)&&Object.isExtensible(e)&&se(e,`__v_skip`,!0),e}var z=e=>y(e)?Ft(e):e,Ht=e=>y(e)?Lt(e):e;function B(e){return e?e.__v_isRef===!0:!1}function Ut(e){return Gt(e,!1)}function Wt(e){return Gt(e,!0)}function Gt(e,t){return B(e)?e:new Kt(e,t)}var Kt=class{constructor(e,t){this.dep=new Xe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:R(e),this._value=t?e:z(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||L(e)||I(e);e=n?e:R(e),O(e,t)&&(this._rawValue=e,this._value=n?e:z(e),this.dep.trigger())}};function V(e){return B(e)?e.value:e}var qt={get:(e,t,n)=>t===`__v_raw`?e:V(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return B(i)&&!B(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Jt(e){return zt(e)?e:new Proxy(e,qt)}var Yt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Xe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Je-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&M!==this)return Fe(this,!0),!0}get value(){let e=this.dep.track();return Ve(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Xt(e,t,n=!1){let r,i;return g(e)?r=e:(r=e.get,i=e.set),new Yt(r,i,n)}var Zt={},Qt=new WeakMap,$t=void 0;function en(e,t=!1,n=$t){if(n){let t=Qt.get(n);t||Qt.set(n,t=[]),t.push(e)}}function tn(e,t,r=n){let{immediate:a,deep:o,once:s,scheduler:c,augmentJob:u,call:d}=r,p=e=>o?e:L(e)||o===!1||o===0?nn(e,1):nn(e),m,h,_,v,y=!1,b=!1;if(B(e)?(h=()=>e.value,y=L(e)):zt(e)?(h=()=>p(e),y=!0):f(e)?(b=!0,y=e.some(e=>zt(e)||L(e)),h=()=>e.map(e=>{if(B(e))return e.value;if(zt(e))return p(e);if(g(e))return d?d(e,2):e()})):h=g(e)?t?d?()=>d(e,2):e:()=>{if(_){Ge();try{_()}finally{Ke()}}let t=$t;$t=m;try{return d?d(e,3,[v]):e(v)}finally{$t=t}}:i,t&&o){let e=h,t=o===!0?1/0:o;h=()=>nn(e(),t)}let x=ke(),S=()=>{m.stop(),x&&x.active&&l(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(Zt):Zt,w=e=>{if(m.flags&1&&(m.dirty||e)){if(t){let n=m.run();if(e||o||y||(b?n.some((e,t)=>O(e,C[t])):O(n,C))){_&&_();let e=$t;$t=m;try{let e=[n,C===Zt?void 0:b&&C[0]===Zt?[]:C,v];C=n,d?d(t,3,e):t(...e)}finally{$t=e}}}else m.run()}};return u&&u(w),m=new je(h),m.scheduler=c?()=>c(w,!1):w,v=e=>en(e,!1,m),_=m.onStop=()=>{let e=Qt.get(m);if(e){if(d)d(e,4);else for(let t of e)t();Qt.delete(m)}},t?a?w(!0):C=m.run():c?c(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function nn(e,t=1/0,n){if(t<=0||!y(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,B(e))nn(e.value,t,n);else if(f(e))for(let r=0;r<e.length;r++)nn(e[r],t,n);else if(m(e)||p(e))e.forEach(e=>{nn(e,t,n)});else if(w(e)){for(let r in e)nn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&nn(e[r],t,n)}return e}function rn(e,t,n,r){try{return r?e(...r):e()}catch(e){an(e,t,n)}}function H(e,t,n,r){if(g(e)){let i=rn(e,t,n,r);return i&&b(i)&&i.catch(e=>{an(e,t,n)}),i}if(f(e)){let i=[];for(let a=0;a<e.length;a++)i.push(H(e[a],t,n,r));return i}}function an(e,t,r,i=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||n;if(t){let n=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;n;){let t=n.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}n=n.parent}if(o){Ge(),rn(o,null,10,[e,i,a]),Ke();return}}on(e,r,a,i,s)}function on(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var U=[],W=-1,sn=[],cn=null,ln=0,un=Promise.resolve(),dn=null;function fn(e){let t=dn||un;return e?t.then(this?e.bind(this):e):t}function pn(e){let t=W+1,n=U.length;for(;t<n;){let r=t+n>>>1,i=U[r],a=yn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function mn(e){if(!(e.flags&1)){let t=yn(e),n=U[U.length-1];!n||!(e.flags&2)&&t>=yn(n)?U.push(e):U.splice(pn(t),0,e),e.flags|=1,hn()}}function hn(){dn||=un.then(bn)}function gn(e){if(!f(e))cn&&e.id===-1?cn.splice(ln+1,0,e):e.flags&1||(sn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)sn.push(e[t]);hn()}function _n(e,t,n=W+1){for(;n<U.length;n++){let t=U[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;U.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function vn(e){if(sn.length){let e=[...new Set(sn)].sort((e,t)=>yn(e)-yn(t));if(sn.length=0,cn){for(let t=0;t<e.length;t++)cn.push(e[t]);return}for(cn=e,ln=0;ln<cn.length;ln++){let e=cn[ln];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}cn=null,ln=0}}var yn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function bn(e){try{for(W=0;W<U.length;W++){let e=U[W];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),rn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;W<U.length;W++){let e=U[W];e&&(e.flags&=-2)}W=-1,U.length=0,vn(e),dn=null,(U.length||sn.length)&&bn(e)}}var G=null,xn=null;function Sn(e){let t=G;return G=e,xn=e&&e.type.__scopeId||null,t}function Cn(e,t=G,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&ri(-1);let i=Sn(t),a=$r.length,o;try{o=e(...n)}finally{for(let e=$r.length;e>a;e--)ti();Sn(i),r._d&&ri(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function wn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Ge(),H(c,n,8,[e.el,s,e,t]),Ke())}}function Tn(e,t,n=!1){let r=Ci();if(r||lr){let i=lr?lr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&g(t)?t.call(r&&r.proxy):t}}var En=Symbol.for(`v-scx`),Dn=()=>Tn(En);function On(e,t){return An(e,null,t)}function kn(e,t,n){return An(e,t,n)}function An(e,t,r=n){let{immediate:a,deep:o,flush:s,once:l}=r,u=c({},r),d=t&&a||!t&&s!==`post`,f;if(ki){if(s===`sync`){let e=Dn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}}let p=Si;u.call=(e,t,n)=>H(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{K(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():mn(e)}),u.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=tn(e,t,u);return ki&&(f?f.push(h):d&&h()),h}var jn=Symbol(`_vte`),Mn=e=>e.__isTeleport,Nn=Symbol(`_leaveCb`);function Pn(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Zr){t=n;break}}return t}function Fn(e){if(!Gn(e))return Mn(e.type)&&e.children?Pn(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&g(n.default))return n.default()}}function In(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;In(Mn(n.type)&&Fn(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ln(e,t){return g(e)?c({name:e.name},t,{setup:e}):e}function Rn(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function zn(e){let t=Ci(),r=Wt(null);if(t){let i=t.refs===n?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>r.value,set:e=>r.value=e})}return r}function Bn(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Vn=new WeakMap;function Hn(e,t,r,i,o=!1){if(f(e)){e.forEach((e,n)=>Hn(e,t&&(f(t)?t[n]:t),r,i,o));return}if(Wn(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Hn(e,t,r,i.component.subTree);return}let s=i.shapeFlag&4?Ri(i.component):i.el,c=o?null:s,{i:u,r:p}=e,m=t&&t.r,h=u.refs===n?u.refs={}:u.refs,v=u.setupState,y=R(v),b=v===n?a:e=>!Bn(h,e)&&d(y,e),x=(e,t)=>!(t&&Bn(h,t));if(m!=null&&m!==p){if(Un(t),_(m))h[m]=null,b(m)&&(v[m]=null);else if(B(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(g(p))rn(p,u,12,[c,h]);else{let t=_(p),n=B(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:h[p]:x(p)||!e.k?p.value:h[e.k];if(o)f(n)&&l(n,s);else if(f(n))n.includes(s)||n.push(s);else if(t)h[p]=[s],b(p)&&(v[p]=h[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(h[e.k]=t)}}else t?(h[p]=c,b(p)&&(v[p]=c)):n&&(x(p,e.k)&&(p.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),Vn.delete(e)};t.id=-1,Vn.set(e,t),K(t,r)}else Un(e),i()}}}function Un(e){let t=Vn.get(e);t&&(t.flags|=8,Vn.delete(e))}de().requestIdleCallback,de().cancelIdleCallback;var Wn=e=>!!e.type.__asyncLoader,Gn=e=>e.type.__isKeepAlive;function Kn(e,t,n=Si,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ge();let i=Ei(n),a=H(t,n,e,r);return i(),Ke(),a};return r?i.unshift(a):i.push(a),a}}var qn=e=>(t,n=Si)=>{(!ki||e===`sp`)&&Kn(e,(...e)=>t(...e),n)},Jn=qn(`m`),Yn=qn(`bum`),Xn=Symbol.for(`v-ndc`);function Zn(e,t,n,r){let i,a=n&&n[r],o=f(e);if(o||_(e)){let n=o&&zt(e),r=!1,s=!1;n&&(r=!L(e),s=I(e),e=it(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Ht(z(e[n])):z(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(y(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}var Qn=e=>e?Oi(e)?Ri(e):Qn(e.parent):null,$n=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qn(e.parent),$root:e=>Qn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||=()=>{mn(e.update)},$nextTick:e=>e.n||=fn.bind(e.proxy),$watch:e=>i}),er=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),tr={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return r[t];case 3:return o[t]}else if(er(i,t))return s[t]=1,i[t];else if(d(o,t))return s[t]=3,o[t];else if(r!==n&&d(r,t))return s[t]=4,r[t];else s[t]=0}let u=$n[t],f,p;if(u)return t===`$attrs`&&P(e.attrs,`get`,``),u(e);if((f=c.__cssModules)&&(f=f[t]))return f;if(r!==n&&d(r,t))return s[t]=4,r[t];if(p=l.config.globalProperties,d(p,t))return p[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return er(i,t)?(i[t]=n,!0):d(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||er(t,s)||d(a,s)||d(r,s)||d($n,s)||d(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?d(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function nr(){return rr(`useAttrs`).attrs}function rr(e){let t=Ci();return t.setupContext||=Li(t)}function ir(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function ar(e,t){let n=ir(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?f(r)||g(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function or(){return{app:null,config:{isNativeTag:a,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var sr=0;function cr(e,t){return function(n,r=null){g(n)||(n=c({},n)),r!=null&&!y(r)&&(r=null);let i=or(),a=new WeakSet,o=[],s=!1,l=i.app={_uid:sr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Bi,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&g(e.install)?(a.add(e),e.install(l,...t)):g(e)&&(a.add(e),e(l,...t))),l},mixin(e){return l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,c){if(!s){let u=l._ceVNode||X(n,r);return u.appContext=i,c===!0?c=`svg`:c===!1&&(c=void 0),o&&t?t(u,a):e(u,a,c),s=!0,l._container=a,a.__vue_app__=l,Ri(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(H(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=lr;lr=l;try{return e()}finally{lr=t}}};return l}}var lr=null,ur=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${D(t)}Modifiers`];function dr(e,t,...r){if(e.isUnmounted)return;let i=e.vnode.props||n,a=r,o=t.startsWith(`update:`),s=o&&ur(i,t.slice(7));s&&(s.trim&&(a=r.map(e=>_(e)?e.trim():e)),s.number&&(a=a.map(ce)));let c,l=i[c=ae(t)]||i[c=ae(E(t))];!l&&o&&(l=i[c=ae(D(t))]),l&&H(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,H(u,e,6,a)}}function fr(e,t,n=!1){let r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={};return a?(f(a)?a.forEach(e=>o[e]=null):c(o,a),y(e)&&r.set(e,o),o):(y(e)&&r.set(e,null),null)}function pr(e,t){return!e||!o(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),d(e,t[0].toLowerCase()+t.slice(1))||d(e,D(t))||d(e,t))}function mr(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Sn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Z(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Z(e.length>1?e(f,{attrs:c,slots:o,emit:l}):e(f,null)),y=t.props?c:hr(c)}}catch(t){$r.length=0,an(t,e,1),v=X(Zr)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(s)&&(y=gr(y,a)),b=pi(b,y,!1,!0))}return n.dirs&&(b=pi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&In(Mn(b.type)&&Fn(b)||b,n.transition),v=b,Sn(_),v}var hr=e=>{let t;for(let n in e)(n===`class`||n===`style`||o(n))&&((t||={})[n]=e[n]);return t},gr=(e,t)=>{let n={};for(let r in e)(!s(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _r(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?vr(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(yr(o,r,n)&&!pr(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||vr(r,o,l):!!o;return!1}function vr(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(yr(t,e,a)&&!pr(n,a))return!0}return!1}function yr(e,t,n){let r=e[n],i=t[n];return n===`style`&&y(r)&&y(i)?!we(r,i):r!==i}function br({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var xr={},Sr=()=>Object.create(xr),Cr=e=>Object.getPrototypeOf(e)===xr;function wr(e,t,n,r=!1){let i={},a=Sr();e.propsDefaults=Object.create(null),Er(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:It(i):e.type.props?i:a,e.attrs=a}function Tr(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=R(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(pr(e.emitsOptions,o))continue;let u=t[o];if(c){if(d(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=E(o);i[t]=Dr(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Er(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!d(t,a)&&((r=D(a))===a||!d(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Dr(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!d(t,e))&&(delete a[e],l=!0)}l&&nt(e.attrs,`set`,``)}function Er(e,t,r,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let n in t){if(te(n))continue;let l=t[n],u;a&&d(a,u=E(n))?!o||!o.includes(u)?r[u]=l:(c||={})[u]=l:pr(e.emitsOptions,n)||(!(n in i)||l!==i[n])&&(i[n]=l,s=!0)}if(o){let t=R(r),i=c||n;for(let n=0;n<o.length;n++){let s=o[n];r[s]=Dr(a,t,s,i[s],e,!d(i,s))}}return s}function Dr(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=d(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&g(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Ei(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===D(n))&&(r=!0))}return r}function Or(e,t,i=!1){let a=t.propsCache,o=a.get(e);if(o)return o;let s=e.props,l={},u=[];if(!s)return y(e)&&a.set(e,r),r;if(f(s))for(let e=0;e<s.length;e++){let t=E(s[e]);kr(t)&&(l[t]=n)}else if(s)for(let e in s){let t=E(e);if(kr(t)){let n=s[e],r=l[t]=f(n)||g(n)?{type:n}:c({},n),i=r.type,a=!1,o=!0;if(f(i))for(let e=0;e<i.length;++e){let t=i[e],n=g(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=g(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||d(r,`default`))&&u.push(t)}}let p=[l,u];return y(e)&&a.set(e,p),p}function kr(e){return e[0]!==`$`&&!te(e)}var Ar=e=>e===`_`||e===`_ctx`||e===`$stable`,jr=e=>f(e)?e.map(Z):[Z(e)],Mr=(e,t,n)=>{if(t._n)return t;let r=Cn((...e)=>jr(t(...e)),n);return r._c=!1,r},Nr=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Ar(n))continue;let i=e[n];if(g(i))t[n]=Mr(n,i,r);else if(i!=null){let e=jr(i);t[n]=()=>e}}},Pr=(e,t)=>{let n=jr(t);e.slots.default=()=>n},Fr=(e,t,n)=>{for(let r in t)(n||!Ar(r))&&(e[r]=t[r])},Ir=(e,t,n)=>{let r=e.slots=Sr();if(e.vnode.shapeFlag&32){let e=t._;e?(Fr(r,t,n),n&&se(r,`_`,e,!0)):Nr(t,r)}else t&&Pr(e,t)},Lr=(e,t,r)=>{let{vnode:i,slots:a}=e,o=!0,s=n;if(i.shapeFlag&32){let e=t._;e?r&&e===1?o=!1:Fr(a,t,r):(o=!t.$stable,Nr(t,a)),s=t}else t&&(Pr(e,t),s={default:1});if(o)for(let e in a)!Ar(e)&&s[e]==null&&delete a[e]},K=Yr;function Rr(e){return zr(e)}function zr(e,t){let a=de();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=i,insertStaticContent:_}=e,v=(e,t,n,i=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ci(e,t)&&(i=ye(e),k(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===r&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case Xr:y(e,t,n,i);break;case Zr:b(e,t,n,i);break;case Qr:e??x(t,n,i,s);break;case q:ie(e,t,n,i,a,o,s,c,l);break;default:f&1?w(e,t,n,i,a,o,s,c,l):f&6?ae(e,t,n,i,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,n,i,a,o,s,c,l,Se)}d!=null&&a?Hn(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&Hn(e.ref,null,o,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),E(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&ne(e.children,d,null,r,i,Br(e,a),s,u),_&&wn(e,null,r,`created`),T(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!te(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Q(f,r,e)}_&&wn(e,null,r,`beforeMount`);let v=Hr(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&K(()=>{try{f&&Q(f,r,e),v&&g.enter(d),_&&wn(e,null,r,`mounted`)}finally{}},i)},T=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Jr(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;T(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},ne=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?gi(e[l]):Z(e[l]);v(null,c,t,n,r,i,a,o,s)}},E=(e,t,r,i,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||n,h=t.props||n,g;if(r&&Vr(r,!1),(g=h.onVnodeBeforeUpdate)&&Q(g,r,t,e),f&&wn(t,e,r,`beforeUpdate`),r&&Vr(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?re(e.dynamicChildren,d,l,r,i,Br(t,a),o):s||ue(e,t,l,null,r,i,Br(t,a),o,!1),u>0){if(u&16)D(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==t.children&&p(l,t.children)}else!s&&d==null&&D(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&K(()=>{g&&Q(g,r,t,e),f&&wn(t,e,r,`updated`)},i)},re=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===q||!ci(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},D=(e,t,r,i,a)=>{if(t!==r){if(t!==n)for(let n in t)!te(n)&&!(n in r)&&c(e,n,t[n],null,a,i);for(let n in r){if(te(n))continue;let o=r[n],s=t[n];o!==s&&n!==`value`&&c(e,n,s,o,a,i)}`value`in r&&c(e,`value`,t.value,r.value,a)}},ie=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),ne(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(re(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Ur(e,t,!0)):ue(e,t,n,f,i,a,s,c,l)},ae=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):O(t,n,r,i,a,o,c):se(e,t,c)},O=(e,t,n,r,i,a,o)=>{let s=e.component=xi(e,r,i);if(Gn(e)&&(s.ctx.renderer=Se),Ai(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ce,o),!e.el){let r=s.subTree=X(Zr);b(null,r,t,n),e.placeholder=r.el}}else ce(s,e,t,n,i,a,o)},se=(e,t,n)=>{let r=t.component=e.component;if(_r(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,le(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},ce=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Gr(e);if(n){t&&(t.el=c.el,le(e,t,o)),n.asyncDep.then(()=>{K(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Vr(e,!1),t?(t.el=c.el,le(e,t,o)):t=c,n&&oe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Q(d,s,t,c),Vr(e,!0);let f=mr(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ye(p),e,i,a),t.el=f.el,u===null&&br(e,f.el),r&&K(r,i),(d=t.props&&t.props.onVnodeUpdated)&&K(()=>Q(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Wn(t);if(Vr(e,!1),l&&oe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Q(o,d,t),Vr(e,!0),s&&we){let t=()=>{e.subTree=mr(e),we(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=mr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&K(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;K(()=>Q(o,d,e),i)}(t.shapeFlag&256||d&&Wn(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&K(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new je(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>mn(u),Vr(e,!0),l()},le=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Tr(e,t.props,r,n),Lr(e,t.children,n),Ge(),_n(e),Ke()},ue=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){pe(l,d,n,r,i,a,o,s,c);return}if(f&256){fe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ve(l,i,a),d!==l&&p(n,d)):u&16?m&16?pe(l,d,n,r,i,a,o,s,c):ve(l,i,a,!0):(u&8&&p(n,``),m&16&&ne(d,n,r,i,a,o,s,c))},fe=(e,t,n,i,a,o,s,c,l)=>{e||=r,t||=r;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let r=t[p]=l?gi(t[p]):Z(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?ve(e,a,o,!0,!1,f):ne(t,n,i,a,o,s,c,l,f)},pe=(e,t,n,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?gi(t[u]):Z(t[u]);if(ci(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?gi(t[p]):Z(t[p]);if(ci(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,r=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?gi(t[u]):Z(t[u]),n,r,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)k(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?gi(t[u]):Z(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){k(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&ci(r,t[_])){i=_;break}i===void 0?k(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?Wr(C):r;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,r=t[e],f=t[e+1],p=e+1<d?f.el||qr(f):i;C[u]===0?v(null,r,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?me(r,n,p,2):_--)}}},me=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){me(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,Se);return}if(c===q){o(a,t,n);for(let e=0;e<u.length;e++)me(u[e],t,n,r);o(e.anchor,t,n);return}if(c===Qr){S(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Nn]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),K(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Nn];a._isLeaving&&a[Nn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},k=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(Ge(),Hn(s,null,n,e,!0),Ke()),p!=null&&(!e.ctx||e.ctx===t)&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Wn(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Q(_,t,e),u&6)_e(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&wn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Se,r):l&&!l.hasOnce&&(a!==q||d>0&&d&64)?ve(l,t,n,!1,!0):(a===q&&d&384||!i&&u&16)&&ve(c,t,n),r&&he(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&K(()=>{_&&Q(_,t,e),h&&wn(e,null,t,`unmounted`),v&&(e.el=null)},n)},he=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===q){ge(n,r);return}if(t===Qr){C(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},ge=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},_e=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Kr(c),Kr(l),r&&oe(r),i.stop(),a?(a.flags|=8,k(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,k(o,e,t,n)),s&&K(s,t),K(()=>{e.isUnmounted=!0},t)},ve=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)k(e[o],t,n,r,i)},ye=e=>{if(e.shapeFlag&6)return ye(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[jn];return n?h(n):t},be=!1,xe=(e,t,n)=>{let r;e==null?t._vnode&&(k(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,be||=(be=!0,_n(r),vn(),!1)},Se={p:v,um:k,m:me,r:he,mt:O,mc:ne,pc:ue,pbc:re,n:ye,o:e},Ce,we;return t&&([Ce,we]=t(Se)),{render:xe,hydrate:Ce,createApp:cr(xe,Ce)}}function Br({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Vr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ur(e,t,n=!1){let r=e.children,i=t.children;if(f(r)&&f(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=gi(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Ur(t,a)),a.type===Xr&&(a.patchFlag===-1&&(a=i[e]=gi(a)),a.el=t.el),a.type===Zr&&!a.el&&(a.el=t.el)}}function Wr(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Gr(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gr(t)}function Kr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function qr(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?qr(t.subTree):null}var Jr=e=>e.__isSuspense;function Yr(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):gn(e)}var q=Symbol.for(`v-fgt`),Xr=Symbol.for(`v-txt`),Zr=Symbol.for(`v-cmt`),Qr=Symbol.for(`v-stc`),$r=[],J=null;function ei(e=!1){$r.push(J=e?null:[])}function ti(){$r.pop(),J=$r[$r.length-1]||null}var ni=1;function ri(e,t=!1){ni+=e,e<0&&J&&t&&(J.hasOnce=!0)}function ii(e){return e.dynamicChildren=ni>0?J||r:null,ti(),ni>0&&J&&J.push(e),e}function ai(e,t,n,r,i,a){return ii(Y(e,t,n,r,i,a,!0))}function oi(e,t,n,r,i){return ii(X(e,t,n,r,i,!0))}function si(e){return e?e.__v_isVNode===!0:!1}function ci(e,t){return e.type===t.type&&e.key===t.key}var li=({key:e})=>e??null,ui=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:_(e)||B(e)||g(e)?{i:G,r:e,k:t,f:!!n}:e);function Y(e,t=null,n=null,r=0,i=null,a=e===q?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&li(t),ref:t&&ui(t),scopeId:xn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:G};return s?(_i(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=_(n)?8:16),ni>0&&!o&&J&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&J.push(c),c}var X=di;function di(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Xn)&&(e=Zr),si(e)){let r=pi(e,t,!0);return n&&_i(r,n),ni>0&&!a&&J&&(r.shapeFlag&6?J[J.indexOf(e)]=r:J.push(r)),r.patchFlag=-2,r}if(zi(e)&&(e=e.__vccOpts),t){t=fi(t);let{class:e,style:n}=t;e&&!_(e)&&(t.class=ge(e)),y(n)&&(Bt(n)&&!f(n)&&(n=c({},n)),t.style=fe(n))}let o=_(e)?1:Jr(e)?128:Mn(e)?64:y(e)?4:g(e)?2:0;return Y(e,t,n,r,i,o,a,!0)}function fi(e){return e?Bt(e)||Cr(e)?c({},e):e:null}function pi(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?vi(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&li(l),ref:t&&t.ref?n&&a?f(a)?a.concat(ui(t)):[a,ui(t)]:ui(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pi(e.ssContent),ssFallback:e.ssFallback&&pi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&In(u,c.clone(u)),u}function mi(e=` `,t=0){return X(Xr,null,e,t)}function hi(e=``,t=!1){return t?(ei(),oi(Zr,null,e)):X(Zr,null,e)}function Z(e){return e==null||typeof e==`boolean`?X(Zr):f(e)?X(q,null,e.slice()):si(e)?gi(e):X(Xr,null,String(e))}function gi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pi(e)}function _i(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(f(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),_i(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Cr(t)?t._ctx=G:r===3&&G&&(G.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(g(t)){if(r&65){_i(e,{default:t});return}t={default:t,_ctx:G},n=32}else t=String(t),r&64?(n=16,t=[mi(t)]):n=8;e.children=t,e.shapeFlag|=n}function vi(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=ge([t.class,r.class]));else if(e===`style`)t.style=fe([t.style,r.style]);else if(o(e)){let n=t[e],i=r[e];i&&n!==i&&!(f(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!s(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Q(e,t,n,r=null){H(e,t,7,[n,r])}var yi=or(),bi=0;function xi(e,t,r){let i=e.type,a=(t?t.appContext:e.appContext)||yi,o={uid:bi++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Oe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Or(i,a),emitsOptions:fr(i,a),emit:null,emitted:null,propsDefaults:n,inheritAttrs:i.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=dr.bind(null,o),e.ce&&e.ce(o),o}var Si=null,Ci=()=>Si||G,wi,Ti;{let e=de(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};wi=t(`__VUE_INSTANCE_SETTERS__`,e=>Si=e),Ti=t(`__VUE_SSR_SETTERS__`,e=>ki=e)}var Ei=e=>{let t=Si;return wi(e),e.scope.on(),()=>{e.scope.off(),wi(t)}},Di=()=>{Si&&Si.scope.off(),wi(null)};function Oi(e){return e.vnode.shapeFlag&4}var ki=!1;function Ai(e,t=!1,n=!1){t&&Ti(t);let{props:r,children:i}=e.vnode,a=Oi(e);wr(e,r,a,t),Ir(e,i,n||t);let o=a?ji(e,t):void 0;return t&&Ti(!1),o}function ji(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,tr);let{setup:r}=n;if(r){Ge();let n=e.setupContext=r.length>1?Li(e):null,i=Ei(e),a=rn(r,e,0,[e.props,n]),o=b(a);if(Ke(),i(),(o||e.sp)&&!Wn(e)&&Rn(e),o){if(a.then(Di,Di),t)return a.then(n=>{Ti(!0);try{Mi(e,n,t)}finally{Ti(!1)}}).catch(t=>{an(t,e,0)});e.asyncDep=a}else Mi(e,a,t)}else Fi(e,t)}function Mi(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:y(t)&&(e.setupState=Jt(t)),Fi(e,n)}var Ni,Pi;function Fi(e,t,n){let r=e.type;if(!e.render){if(!t&&Ni&&!r.render){let t=r.template||!1;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=Ni(t,c(c({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||i,Pi&&Pi(e)}}var Ii={get(e,t){return P(e,`get`,``),e[t]}};function Li(e){return{attrs:new Proxy(e.attrs,Ii),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ri(e){return e.exposed?e.exposeProxy||=new Proxy(Jt(Vt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in $n)return $n[n](e)},has(e,t){return t in e||t in $n}}):e.proxy}function zi(e){return g(e)&&`__vccOpts`in e}var $=(e,t)=>Xt(e,t,ki),Bi=`3.5.43`,Vi=void 0,Hi=typeof window<`u`&&window.trustedTypes;if(Hi)try{Vi=Hi.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ui=Vi?e=>Vi.createHTML(e):e=>e,Wi=`http://www.w3.org/2000/svg`,Gi=`http://www.w3.org/1998/Math/MathML`,Ki=typeof document<`u`?document:null,qi=Ki&&Ki.createElement(`template`),Ji={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Ki.createElementNS(Wi,e):t===`mathml`?Ki.createElementNS(Gi,e):n?Ki.createElement(e,{is:n}):Ki.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Ki.createTextNode(e),createComment:e=>Ki.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ki.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{qi.innerHTML=Ui(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=qi.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Yi=Symbol(`_vtc`);function Xi(e,t,n){let r=e[Yi];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Zi=Symbol(`_vod`),Qi=Symbol(`_vsh`),$i=Symbol(``),ea=/(?:^|;)\s*display\s*:/;function ta(e,t,n){let r=e.style,i=_(n),a=!1;if(n&&!i){if(t){if(_(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??ra(r,t,``)}else for(let e in t)n[e]??ra(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?ra(r,i,``):sa(e,i,!_(t)&&t?t[i]:void 0,o)||ra(r,i,o)}}else if(i){if(t!==n){let e=r[$i];e&&(n+=`;`+e),r.cssText=n,a=ea.test(n)}}else t&&e.removeAttribute(`style`);Zi in e&&(e[Zi]=a?r.display:``,e[Qi]&&(r.display=`none`))}var na=/\s*!important$/;function ra(e,t,n){if(f(n))n.forEach(n=>ra(e,t,n));else if(n??=``,t.startsWith(`--`))na.test(n)?e.setProperty(t,n.replace(na,``),`important`):e.setProperty(t,n);else{let r=oa(e,t);na.test(n)?e.setProperty(D(r),n.replace(na,``),`important`):e[r]=n}}var ia=[`Webkit`,`Moz`,`ms`],aa={};function oa(e,t){let n=aa[t];if(n)return n;let r=E(t);if(r!==`filter`&&r in e)return aa[t]=r;r=ie(r);for(let n=0;n<ia.length;n++){let i=ia[n]+r;if(i in e)return aa[t]=i}return t}function sa(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&_(r)&&n===r}var ca=`http://www.w3.org/1999/xlink`;function la(e,t,n,r,i,a=ve(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(ca,t.slice(6,t.length)):e.setAttributeNS(ca,t,n):n==null||a&&!ye(n)?e.removeAttribute(t):e.setAttribute(t,a?``:v(n)?String(n):n)}function ua(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ui(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=ye(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function da(e,t,n,r){e.addEventListener(t,n,r)}function fa(e,t,n,r){e.removeEventListener(t,n,r)}var pa=Symbol(`_vei`);function ma(e,t,n,r,i=null){let a=e[pa]||(e[pa]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=_a(t);r?da(e,n,a[t]=xa(r,i),s):o&&(fa(e,n,o,s),a[t]=void 0)}}var ha=/(Once|Passive|Capture)$/,ga=/^on:?(?:Once|Passive|Capture)$/;function _a(e){let t,n;for(;(n=e.match(ha))&&!ga.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):D(e.slice(2)),t]}var va=0,ya=Promise.resolve(),ba=()=>va||=(ya.then(()=>va=0),Date.now());function xa(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(f(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&H(e,t,5,a)}}else H(r,t,5,[e])};return n.value=e,n.attached=ba(),n}var Sa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ca=(e,t,n,r,i,a)=>{let c=i===`svg`;t===`class`?Xi(e,r,c):t===`style`?ta(e,n,r):o(t)?s(t)||ma(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):wa(e,t,r,c))?(ua(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&la(e,t,r,c,a,t!==`value`)):e._isVueCE&&(Ta(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!_(r)))?ua(e,E(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),la(e,t,r,c))};function wa(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Sa(t)&&g(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Sa(t)&&_(n)?!1:t in e}function Ta(e,t){let n=e._def.props;if(!n)return!1;let r=E(t);return Array.isArray(n)?n.some(e=>E(e)===r):Object.keys(n).some(e=>E(e)===r)}var Ea={};function Da(e,t,n){let r=Ln(e,t);w(r)&&(r=c({},r,t));class i extends ka{constructor(e){super(r,e,n)}}return i.def=r,i}var Oa=typeof HTMLElement<`u`?HTMLElement:class{},ka=class e extends Oa{constructor(e,t={},n=Ra){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Ra?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(c({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,fn(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!f(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=le(this._props[e])),(i||=Object.create(null))[E(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>V(t[e])})}_resolveProps(e){let{props:t}=e,n=f(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(E))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Ea,r=E(e);t&&this._numberProps&&this._numberProps[r]&&(n=le(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Ea?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(D(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(D(e),t+``):t||this.removeAttribute(D(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),La(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=X(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,w(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),D(e)!==e&&t(D(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function Aa(e){let t=Ci();return t&&t.ce||null}var ja=[`ctrl`,`shift`,`alt`,`meta`],Ma={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>ja.some(n=>e[`${n}Key`]&&!t.includes(n))},Na=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ma[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Pa=c({patchProp:Ca},Ji),Fa;function Ia(){return Fa||=Rr(Pa)}var La=((...e)=>{Ia().render(...e)}),Ra=((...e)=>{let t=Ia().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Ba(e);if(!r)return;let i=t._component;!g(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,za(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function za(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Ba(e){return _(e)?document.querySelector(e):e}var Va=500,Ha=100;function Ua(){let e=Ut(``),t;function n(){clearTimeout(t),e.value=``}function r(r){n(),t=setTimeout(()=>{e.value=r},Ha)}function i(r){n(),t=setTimeout(()=>{e.value=r()},Va)}return Yn(()=>clearTimeout(t)),{announcement:e,announceNow:r,announceOnceTypingPauses:i,clear:n}}function Wa(e,t){On(()=>{let n=e.states;if(n)for(let[e,r]of Object.entries(t()))r?n.add(e):n.delete(e)})}function Ga({props:e,announceNow:t}){let n=Ut(!1);function r(r){let i=r.getModifierState(`CapsLock`);i&&!n.value&&t(e.textCapsLock),n.value=i}function i(){n.value=!1}return{capsLockOn:n,readCapsLock:r,forgetCapsLock:i}}var Ka={current:`current-password`,new:`new-password`};function qa(e){return e===`current`||e===`new`}function Ja(e){return qa(e)?e:`current`}function Ya(e,t){return t?.trim()?t:Ka[e]}var Xa=[`lowercase`,`uppercase`,`digit`,`symbol`],Za={lowercase:/\p{Ll}/u,uppercase:/[\p{Lu}\p{Lt}]/u,digit:/\p{Nd}/u,symbol:/[^\p{L}\p{N}\s]/u},Qa={lowercase:`lower`,uppercase:`upper`,digit:`digit`,symbol:`special`};function $a(e){if(e==null||e===``)return null;let t=Number(e);return Number.isInteger(t)&&t>0?t:null}function eo(e){return Xa.includes(e)}function to(e){let t=$a(e.minlength)??8,n=$a(e.maxlength),r=String(e.requirements??``).toLowerCase().split(/[\s,]+/).filter(Boolean);return{minLength:t,maxLength:n!==null&&n>=t?n:null,classes:Xa.filter(e=>r.includes(e)),unknown:[...new Set(r.filter(e=>!eo(e)))]}}function no(e){return[...e].length}function ro(e,t){return[{requirement:`length`,met:no(e)>=t.minLength},...t.classes.map(t=>({requirement:t,met:Za[t].test(e)}))]}function io(e,t){return ro(e,t).every(e=>e.met)}function ao(e,t){return t.maxLength!==null&&no(e)>t.maxLength}function oo(e){return[`minlength: ${e.minLength};`,e.maxLength!==null&&`maxlength: ${e.maxLength};`,...e.classes.map(e=>`required: ${Qa[e]};`),`allowed: lower, upper, digit, special;`].filter(Boolean).join(` `)}function so(e){let t=$(()=>Ja(e.purpose)),n=$(()=>t.value===`new`?to({minlength:e.minlength,maxlength:e.maxlength,requirements:e.requirements}):null);return{purpose:t,ruleOptions:n,autocomplete:$(()=>Ya(t.value,e.autocomplete)),rulesForPasswordManagers:$(()=>n.value?oo(n.value):void 0)}}function co(e){function t(t){let n={value:e.value,requirementsMet:e.requirementsMet};e.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:n}))}return{dispatchInput:()=>t(`input`),dispatchChange:()=>t(`change`)}}function lo(e,t){let n=new Map(e.map(e=>[e.requirement,e.met])),r=t.filter(e=>n.get(e.requirement)!==e.met);return r.length===0?null:{met:r.filter(e=>e.met).map(e=>e.requirement),unmet:r.filter(e=>!e.met).map(e=>e.requirement),allMet:t.every(e=>e.met)}}function uo({host:e,props:t,ruleOptions:n,announceOnceTypingPauses:r}){let i=$(()=>n.value?ro(e.state.value,n.value):[]),a=$(()=>i.value.map(e=>({...e,text:c(e.requirement)}))),o=i.value,s=!1;function c(e){return{length:t.textRuleLength.replaceAll(`{minlength}`,String(n.value?.minLength??``)),lowercase:t.textRuleLowercase,uppercase:t.textRuleUppercase,digit:t.textRuleDigit,symbol:t.textRuleSymbol}[e]}function l(e){return e.allMet?t.textAllMet:i.value.filter(t=>e.met.includes(t.requirement)||e.unmet.includes(t.requirement)).map(e=>`${c(e.requirement)}, ${e.met?t.textRuleMet:t.textRuleUnmet}`).join(`. `)}function u(){n.value&&(s=!0,r(()=>{s=!1;let e=lo(o,i.value);return o=i.value,e?l(e):``}))}return kn(i,e=>{s||(o=e)}),{requirementItems:a,reportUserChange:u}}function fo({host:e,props:t,input:n,announceNow:r}){let i=$(()=>e.state.revealed),a=$(()=>i.value?`text`:`password`),o=$(()=>i.value?t.textHideLabel:t.textShowLabel);function s(){e.revealed=!e.revealed,r(e.revealed?t.textShown:t.textHidden)}function c(){e.revealed=!1}function l(e){e.target===n.value?.form&&c()}return Jn(()=>{window.addEventListener(`submit`,l,!0),window.addEventListener(`reset`,l,!0),window.addEventListener(`pagehide`,c)}),Yn(()=>{window.removeEventListener(`submit`,l,!0),window.removeEventListener(`reset`,l,!0),window.removeEventListener(`pagehide`,c)}),{revealed:i,inputType:a,toggleLabel:o,toggleByUser:s}}function po({value:e,required:t,ruleOptions:n,customError:r},i){return r?{flag:`customError`,message:r}:e===``?t?{flag:`valueMissing`,message:i.required}:null:n?ao(e,n)?{flag:`tooLong`,message:i.tooLong.replaceAll(`{maxlength}`,String(n.maxLength))}:io(e,n)?null:{flag:`unmet`,message:i.unmet}:null}function mo({host:e,props:t,input:n,ruleOptions:r}){let{state:i}=e,a=$(()=>po({value:i.value,required:t.required,ruleOptions:r.value,customError:i.customError},{required:t.textRequired,unmet:t.textUnmet,tooLong:t.textTooLong})),o=$(()=>i.errorsVisible?a.value:null);function s(){i.edited=!0,i.customError=``}function c(){i.errorsVisible=!0}function l(){i.edited&&c()}function u(e){e.target===n.value?.form&&(i.edited=!1,i.errorsVisible=!1,i.customError=``)}return On(()=>n.value?.setCustomValidity(a.value?.message??``),{flush:`sync`}),Jn(()=>window.addEventListener(`reset`,u,!0)),Yn(()=>window.removeEventListener(`reset`,u,!0)),{visibleError:o,markEdited:s,revealErrors:c,revealErrorsIfEdited:l}}function ho({host:e,input:t}){function n(){t.value&&(e.state.value=t.value.value)}function r(e){e.target===t.value?.form&&setTimeout(n)}return Jn(()=>{n(),window.addEventListener(`reset`,r,!0)}),Yn(()=>window.removeEventListener(`reset`,r,!0)),{syncFromInput:n}}var go=0;function _o(e){return go+=1,`${e}-${go}`}var vo={required:!1,disabled:!1,readonly:!1,textShow:`Show`,textHide:`Hide`,textShowLabel:`Show password`,textHideLabel:`Hide password`,textShown:`Your password is shown`,textHidden:`Your password is hidden`,textRequirements:`Your password must have:`,textRuleLength:`At least {minlength} characters`,textRuleLowercase:`A lowercase letter`,textRuleUppercase:`An uppercase letter`,textRuleDigit:`A number`,textRuleSymbol:`A symbol, like ! or #`,textRuleMet:`done`,textRuleUnmet:`not yet`,textAllMet:`All requirements met`,textCapsLock:`Caps Lock is on`,textRequired:`Enter a password`,textUnmet:`Your password does not meet all the requirements`,textTooLong:`Use {maxlength} characters or fewer`},yo={class:`tes-password__field`},bo=[`for`],xo=[`id`,`type`,`name`,`^value`,`autocomplete`,`passwordrules`,`aria-describedby`,`aria-invalid`,`required`,`disabled`,`readonly`],So=[`aria-label`],Co={class:`tes-password__requirements-title`},wo={class:`tes-password__requirements-list`},To={key:0,class:`tes-password__icon tes-password__icon--met`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`},Eo={key:1,class:`tes-password__icon tes-password__icon--unmet`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`},Do={class:`tes-password__visually-hidden`},Oo={role:`status`,class:`tes-password__visually-hidden`},ko=Da(Ln({inheritAttrs:!1,__name:`TesPassword`,props:ar({label:{},name:{},hint:{},required:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},purpose:{},minlength:{},maxlength:{},requirements:{},autocomplete:{},textShow:{},textHide:{},textShowLabel:{},textHideLabel:{},textShown:{},textHidden:{},textRequirements:{},textRuleLength:{},textRuleLowercase:{},textRuleUppercase:{},textRuleDigit:{},textRuleSymbol:{},textRuleMet:{},textRuleUnmet:{},textAllMet:{},textCapsLock:{},textRequired:{},textUnmet:{},textTooLong:{}},vo),setup(e){let t=e,n=nr(),r=Aa(),i=zn(`input`),a=_o(`tes-password`),o=`${a}-requirements`,s=`${a}-caps-lock`,c=`${a}-hint`,l=`${a}-error`,u=$(()=>typeof n.value==`string`?n.value:void 0),{announcement:d,announceNow:f,announceOnceTypingPauses:p}=Ua(),{ruleOptions:m,autocomplete:h,rulesForPasswordManagers:g}=so(t),{revealed:_,inputType:v,toggleLabel:y,toggleByUser:b}=fo({host:r,props:t,input:i,announceNow:f}),{syncFromInput:x}=ho({host:r,input:i}),{requirementItems:S,reportUserChange:C}=uo({host:r,props:t,ruleOptions:m,announceOnceTypingPauses:p}),{capsLockOn:w,readCapsLock:ee,forgetCapsLock:te}=Ga({props:t,announceNow:f}),{visibleError:T,markEdited:ne,revealErrors:E,revealErrorsIfEdited:re}=mo({host:r,props:t,input:i,ruleOptions:m}),D=$(()=>{let e=[t.hint&&c,S.value.length>0&&o,w.value&&s,T.value&&l].filter(Boolean);return e.length>0?e.join(` `):void 0}),{dispatchInput:ie,dispatchChange:ae}=co(r);function O(){ne(),x(),C(),ie()}kn(()=>t.disabled,e=>{e&&(r.revealed=!1)}),Wa(r.internals,()=>({invalid:T.value!==null,empty:r.state.value===``,revealed:_.value,"requirements-met":S.value.length>0&&S.value.every(e=>e.met),"caps-lock":w.value}));function oe(){te(),re()}return(t,n)=>(ei(),ai(`div`,yo,[Y(`label`,{for:V(a),class:`tes-password__label`},A(e.label),9,bo),Y(`div`,{class:ge([`tes-password__control`,{"tes-password__control--invalid":V(T)}])},[Y(`input`,{id:V(a),ref_key:`input`,ref:i,class:`tes-password__input`,type:V(v),name:e.name,"^value":u.value,autocomplete:V(h),passwordrules:V(g),"aria-describedby":D.value,"aria-invalid":V(T)?`true`:void 0,required:e.required,disabled:e.disabled,readonly:e.readonly,spellcheck:`false`,autocapitalize:`off`,autocorrect:`off`,onInput:Na(O,[`stop`]),onChange:n[0]||=Na((...e)=>V(ae)&&V(ae)(...e),[`stop`]),onKeydown:n[1]||=(...e)=>V(ee)&&V(ee)(...e),onKeyup:n[2]||=(...e)=>V(ee)&&V(ee)(...e),onPointerdown:n[3]||=(...e)=>V(ee)&&V(ee)(...e),onBlur:oe,onInvalid:n[4]||=(...e)=>V(E)&&V(E)(...e)},null,40,xo),Y(`button`,{type:`button`,class:`tes-password__toggle`,"aria-label":V(y),onClick:n[5]||=(...e)=>V(b)&&V(b)(...e)},[Y(`span`,{class:ge([`tes-password__toggle-text`,{"tes-password__toggle-text--inactive":V(_)}])},A(e.textShow),3),Y(`span`,{class:ge([`tes-password__toggle-text`,{"tes-password__toggle-text--inactive":!V(_)}])},A(e.textHide),3)],8,So)],2),e.hint?(ei(),ai(`p`,{key:0,id:c,class:`tes-password__hint`},A(e.hint),1)):hi(``,!0),V(w)?(ei(),ai(`p`,{key:1,id:s,class:`tes-password__caps-lock`},A(e.textCapsLock),1)):hi(``,!0),V(S).length?(ei(),ai(`div`,{key:2,id:o,class:`tes-password__requirements`},[Y(`p`,Co,A(e.textRequirements),1),Y(`ul`,wo,[(ei(!0),ai(q,null,Zn(V(S),t=>(ei(),ai(`li`,{key:t.requirement,class:ge([`tes-password__requirement`,{"tes-password__requirement--met":t.met}])},[t.met?(ei(),ai(`svg`,To,[...n[6]||=[Y(`path`,{d:`M3.5 8.5l3 3 6-7`},null,-1)]])):(ei(),ai(`svg`,Eo,[...n[7]||=[Y(`circle`,{cx:`8`,cy:`8`,r:`5`},null,-1)]])),Y(`span`,null,A(t.text),1),Y(`span`,Do,`, `+A(t.met?e.textRuleMet:e.textRuleUnmet),1)],2))),128))])])):hi(``,!0),Y(`p`,{id:l,class:`tes-password__error`,"aria-live":`polite`},A(V(T)?.message),1),Y(`div`,Oo,A(V(d)),1)]))}}),{shadowRoot:!1}),Ao=class extends ko{state=Ft({revealed:!1,value:``,edited:!1,errorsVisible:!1,customError:``});internals;pendingValue=null;constructor(e){super(e),this.internals=this.attachInternals()}get revealed(){return this.state.revealed}set revealed(e){e!==this.state.revealed&&(this.state.revealed=e,this.syncInputType(),this.dispatchEvent(new CustomEvent(`revealchange`,{bubbles:!0,composed:!0,detail:{revealed:e}})))}get value(){return this.input?.value??this.pendingValue??this.defaultValue}set value(e){let t=this.input;t?t.value=e:this.pendingValue=e,this.state.value=e}get requirementsMet(){if(Ja(this.getAttribute(`purpose`))!==`new`)return!0;let e=to({minlength:this.getAttribute(`minlength`),maxlength:this.getAttribute(`maxlength`),requirements:this.getAttribute(`requirements`)});return io(this.state.value,e)}get defaultValue(){return this.getAttribute(`value`)??``}set defaultValue(e){this.setAttribute(`value`,e)}get minLength(){return to({minlength:this.getAttribute(`minlength`)}).minLength}set minLength(e){this.setAttribute(`minlength`,String(e))}get maxLength(){return to({minlength:1,maxlength:this.getAttribute(`maxlength`)}).maxLength??-1}set maxLength(e){this.setAttribute(`maxlength`,String(e))}get readOnly(){return this.hasAttribute(`readonly`)}set readOnly(e){this.toggleAttribute(`readonly`,e)}get form(){return this.input?.form??null}get validity(){return(this.input??document.createElement(`input`)).validity}get validationMessage(){return this.input?.validationMessage??``}get willValidate(){return this.input?.willValidate??!1}setCustomValidity(e){this.state.customError=e,e&&(this.state.errorsVisible=!0)}checkValidity(){return this.input?.checkValidity()??!0}reportValidity(){return this.input?.reportValidity()??!0}connectedCallback(){super.connectedCallback(),this.applyPendingValue()}focus(e){this.input?.focus(e)}get input(){return this.querySelector(`.tes-password__input`)}syncInputType(){let e=this.input;e&&(e.type=this.state.revealed?`text`:`password`)}applyPendingValue(){let e=this.input;e&&this.pendingValue!==null&&(e.value=this.pendingValue,this.state.value=this.pendingValue,this.pendingValue=null)}},jo=`:where(tes-password){--_text:var(--tes-color-text,var(--lightningcss-light,#1f2328)var(--lightningcss-dark,#e8eaee));--_muted:var(--tes-color-muted,var(--lightningcss-light,#59636e)var(--lightningcss-dark,#a3adba));--_bg:var(--tes-color-bg,var(--lightningcss-light,#fff)var(--lightningcss-dark,#16181d));--_border:var(--tes-color-border,var(--lightningcss-light,#7d8590)var(--lightningcss-dark,#7f8a99));--_accent:var(--tes-color-accent,var(--lightningcss-light,#0b5fcc)var(--lightningcss-dark,#7aa7ff));--_on-accent:var(--tes-color-on-accent,var(--lightningcss-light,#fff)var(--lightningcss-dark,#0d1117));--_hover:var(--tes-color-hover,var(--lightningcss-light,#eef3fb)var(--lightningcss-dark,#232a36));--_focus:var(--tes-color-focus,var(--lightningcss-light,#0b5fcc)var(--lightningcss-dark,#7aa7ff));--_error:var(--tes-color-error,var(--lightningcss-light,#c4232b)var(--lightningcss-dark,#ff8a80));--_success:var(--tes-color-success,var(--lightningcss-light,#1f7a3a)var(--lightningcss-dark,#4cc26a));--_radius:var(--tes-radius,.375rem);--_space:var(--tes-space,.5rem);--_control-height:2.75rem;color:var(--_text);font-family:var(--tes-font-family);font-size:var(--tes-font-size);display:inline-block}:where(tes-password[hidden]){display:none}:where(.tes-password__field){gap:calc(var(--_space) / 2);grid-template-columns:minmax(0,1fr);display:grid}:where(.tes-password__label){font-weight:500}:where(.tes-password__control){box-sizing:border-box;block-size:var(--_control-height);border:1px solid var(--_border);border-radius:var(--_radius);background:var(--_bg);display:flex}:where(.tes-password__control--invalid){border:2px solid var(--_error)}:where(.tes-password__control:has(.tes-password__input:focus-visible)){outline:2px solid var(--_focus);outline-offset:2px}:where(.tes-password__input){box-sizing:border-box;border-radius:var(--_radius);min-inline-size:0;color:var(--_text);font:inherit;background:0 0;border:0;outline:none;flex:1;margin:0;padding-inline:.75rem;font-size:max(1em,16px)}:where(.tes-password__toggle){border-radius:var(--_radius);min-inline-size:2.75rem;color:var(--_accent);font:inherit;cursor:pointer;background:0 0;border:0;flex:none;place-items:center;margin:0;padding-inline:.75rem;font-weight:500;display:grid}:where(.tes-password__control:has(.tes-password__input:disabled)){background:color-mix(in srgb, var(--_muted) 12%, var(--_bg))}:where(.tes-password__input:disabled){color:var(--_muted);cursor:not-allowed}:where(.tes-password__input:disabled~.tes-password__toggle){display:none}:where(.tes-password__toggle-text){grid-area:1/1}:where(.tes-password__toggle-text--inactive){visibility:hidden}:where(.tes-password__toggle:hover){background:var(--_hover)}:where(.tes-password__toggle:focus-visible){outline:2px solid var(--_focus);outline-offset:-2px}:where(.tes-password__hint){color:var(--_muted);margin:0;padding-block-start:.25rem;font-size:.875em}:where(.tes-password__caps-lock){margin:0;padding-block-start:.25rem;font-size:.875em;font-weight:500}:where(.tes-password__requirements){color:var(--_muted);padding-block-start:.25rem;font-size:.875em}:where(.tes-password__requirements-title){margin:0}:where(.tes-password__requirements-list){gap:.125rem;margin:.25rem 0 0;padding:0;list-style:none;display:grid}:where(.tes-password__requirement){align-items:center;gap:.375rem;margin:0;display:flex}:where(.tes-password__requirement--met){color:var(--_text)}:where(.tes-password__icon){fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;flex:none;block-size:1em;inline-size:1em}:where(.tes-password__icon--met){stroke:var(--_success);stroke-width:2px}:where(.tes-password__error){color:var(--_error);margin:0;font-size:.875em;font-weight:500}:where(.tes-password__error:empty){display:none}:where(.tes-password__visually-hidden){clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (forced-colors:active){:where(.tes-password__control:has(.tes-password__input:focus-visible)),:where(.tes-password__toggle:focus-visible){outline-color:highlight}:where(.tes-password__input:disabled){color:graytext}}`,Mo=`:where(tes-password`;function No(e){return jo.replaceAll(Mo,`:where(${e}`)}function Po(e){if(typeof document>`u`||typeof CSSStyleSheet>`u`)return;let t=new CSSStyleSheet;t.replaceSync(No(e)),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}var Fo=`tes-password`;function Io(e=Fo){if(typeof customElements>`u`||customElements.get(e))return;let t=class extends Ao{};customElements.define(e,e===`tes-password`?Ao:t),Po(e)}return Io(),e.TAG_NAME=Fo,e.TesPasswordElement=Ao,e.define=Io,e})({});
|
|
2
|
+
//# sourceMappingURL=tes-password.iife.js.map
|