@teselia/password 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # @teselia/password
2
+
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8cf389c: Fix missing colors in the published builds. The build lowered `light-dark()` to variables that only exist under a `color-scheme` declaration, so every default color was invalid: fields had no border or background, and the accent and error colors were lost. The npm and CDN builds now keep `light-dark()`, which every supported browser understands. The docs site was not affected, because it uses the source code.
8
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 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
- # Temporary Holding Version
1
+ # @teselia/password
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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.5 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,5 @@
1
+ import type { TesPasswordElement } from '../element';
2
+ export declare function usePublicEvents(host: TesPasswordElement): {
3
+ dispatchInput: () => void;
4
+ dispatchChange: () => void;
5
+ };
@@ -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 {};
@@ -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
+ }
@@ -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>;
@@ -0,0 +1,2 @@
1
+ export declare function stylesFor(tagName: string): string;
2
+ export declare function adoptStyles(tagName: string): void;
@@ -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]`,T=e=>_(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ee=t(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),E=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,D=E(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,O=E(e=>e.replace(ne,`-$1`).toLowerCase()),re=E(e=>e.charAt(0).toUpperCase()+e.slice(1)),ie=E(e=>e?`on${re(e)}`:``),k=(e,t)=>!Object.is(e,t),ae=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},oe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},se=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ce=e=>{let t=_(e)?Number(e):NaN;return isNaN(t)?e:t},le,ue=()=>le||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function de(e){if(f(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=_(r)?me(r):de(r);if(i)for(let e in i)t[e]=i[e]}return t}if(_(e)||y(e))return e}var fe=/;(?![^(]*\))/g,pe=/:([^]+)/,A=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function me(e){let t={};return e.replace(A,e=>e.startsWith(`/*`)?``:e).split(fe).forEach(e=>{if(e){let n=e.split(pe);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function he(e){let t=``;if(_(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){let r=he(e[n]);r&&(t+=r+` `)}else if(y(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var ge=t(`itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`);function _e(e){return!!e||e===``}function ve(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Se(e[i],t[i],n);return r}function ye(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]&&Se(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function be(e,t,n){let r=p(e),i=p(t);if(r||i||(r=m(e),i=m(t),r||i))return r&&i?ye(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||!Se(e[r],t[r],n))return!1}return String(e)===String(t)}function xe(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 Se(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?xe(e,t,n,ve):!1:(r=y(e),i=y(t),r||i?!r||!i?!1:xe(e,t,n,be):String(e)===String(t))))}var Ce=e=>!!(e&&e.__v_isRef===!0),j=e=>_(e)?e:e==null?``:f(e)||y(e)&&(e.toString===x||!g(e.toString))?Ce(e)?j(e.value):JSON.stringify(e,we,2):String(e),we=(e,t)=>Ce(t)?we(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Te(t,r)+` =>`]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Te(e))}:v(t)?Te(t):y(t)&&!f(t)&&!w(t)?String(t):t,Te=(e,t=``)=>v(e)?`Symbol(${e.description??t})`:e,M,Ee=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&&M&&(M.active?(this.parent=M,this.index=(M.scopes||(M.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=M;try{return M=this,e()}finally{M=t}}}on(){++this._on===1&&(this.prevScope=M,M=this)}off(){if(this._on>0&&--this._on===0){if(M===this)M=this.prevScope;else{let e=M;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 De(){return M}var N,Oe=new WeakSet,ke=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,M&&(M.active?M.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Oe.has(this)&&(Oe.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ne(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ge(this),Ie(this);let e=N,t=P;N=this,P=!0;try{return this.fn()}finally{Le(this),N=e,P=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Be(e);this.deps=this.depsTail=void 0,Ge(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Oe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Re(this)&&this.run()}get dirty(){return Re(this)}},Ae=0,je,Me;function Ne(e,t=!1){e.flags|=8,t?(e.next=Me,Me=e):(e.next=je,je=e)}function Pe(){Ae++}function Fe(){if(--Ae>0)return;if(Me){let e=Me;for(Me=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;je;){let t=je;for(je=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 Ie(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Le(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Be(r),Ve(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Re(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ze(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ze(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ke)||(e.globalVersion=Ke,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Re(e))))return;e.flags|=2;let t=e.dep,n=N,r=P;N=e,P=!0;try{Ie(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,P=r,Le(e),e.flags&=-3}}function Be(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)Be(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ve(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var P=!0,He=[];function Ue(){He.push(P),P=!1}function We(){let e=He.pop();P=e===void 0||e}function Ge(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var Ke=0,qe=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}},Je=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(!N||!P||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new qe(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Ye(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=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,Ke++,this.notify(e)}notify(e){Pe();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Fe()}}};function Ye(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)Ye(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Xe=new WeakMap,Ze=Symbol(``),Qe=Symbol(``),$e=Symbol(``);function F(e,t,n){if(P&&N){let t=Xe.get(e);t||Xe.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Je),r.map=t,r.key=n),r.track()}}function et(e,t,n,r,i,a){let o=Xe.get(e);if(!o){Ke++;return}let s=e=>{e&&e.trigger()};if(Pe(),t===`clear`)o.forEach(s);else{let i=f(e),a=i&&T(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===$e||!v(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get($e)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Ze)),p(e)&&s(o.get(Qe)));break;case`delete`:i||(s(o.get(Ze)),p(e)&&s(o.get(Qe)));break;case`set`:p(e)&&s(o.get(Ze))}}Fe()}function tt(e){let t=R(e);return t===e||(F(t,`iterate`,$e),L(e))?t:zt(e)?Rt(e)?t.map(e=>Ht(z(e))):t.map(Ht):t.map(z)}function nt(e){return F(e=R(e),`iterate`,$e),e}function I(e,t){return zt(e)?Ht(Rt(e)?z(t):t):z(t)}var rt={__proto__:null,[Symbol.iterator](){return it(this,Symbol.iterator,e=>I(this,e))},concat(...e){return tt(this).concat(...e.map(e=>f(e)?tt(e):e))},entries(){return it(this,`entries`,e=>(e[1]=I(this,e[1]),e))},every(e,t){return st(this,`every`,e,t,void 0,arguments)},filter(e,t){return st(this,`filter`,e,t,e=>e.map(e=>I(this,e)),arguments)},find(e,t){return st(this,`find`,e,t,e=>I(this,e),arguments)},findIndex(e,t){return st(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return st(this,`findLast`,e,t,e=>I(this,e),arguments)},findLastIndex(e,t){return st(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return st(this,`forEach`,e,t,void 0,arguments)},includes(...e){return lt(this,`includes`,e)},indexOf(...e){return lt(this,`indexOf`,e)},join(e){return tt(this).join(e)},lastIndexOf(...e){return lt(this,`lastIndexOf`,e)},map(e,t){return st(this,`map`,e,t,void 0,arguments)},pop(){return ut(this,`pop`)},push(...e){return ut(this,`push`,e)},reduce(e,...t){return ct(this,`reduce`,e,t)},reduceRight(e,...t){return ct(this,`reduceRight`,e,t)},shift(){return ut(this,`shift`)},some(e,t){return st(this,`some`,e,t,void 0,arguments)},splice(...e){return ut(this,`splice`,e)},toReversed(){return tt(this).toReversed()},toSorted(e){return tt(this).toSorted(e)},toSpliced(...e){return tt(this).toSpliced(...e)},unshift(...e){return ut(this,`unshift`,e)},values(){return it(this,`values`,e=>I(this,e))}};function it(e,t,n){let r=nt(e),i=r[t],a=i.call(r);if(r!==e&&!L(e)){if(a[Symbol.toStringTag]===`Array Iterator`){let e=Object.create(Object.getPrototypeOf(a));return e.next=()=>at(a.next(),n),i!==ot[t]&&Object.defineProperties(e,{return:{get(){let e=a.return;return typeof e==`function`?e.bind(a):e}},throw:{get(){let e=a.throw;return typeof e==`function`?e.bind(a):e}}}),e}a._next=a.next,a.next=()=>at(a._next(),n)}return a}function at(e,t){return e.done||(e.value=t(e.value)),e}var ot=Array.prototype;function st(e,t,n,r,i,a){let o=nt(e),s=o!==e&&!L(e),c=o[t];if(c!==ot[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,I(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 ct(e,t,n,r){let i=nt(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=I(e,t)),n.call(this,t,I(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?I(e,c):c}function lt(e,t,n){let r=R(e);F(r,`iterate`,$e);let i=r[t](...n);return(i===-1||i===!1)&&Bt(n[0])?(n[0]=R(n[0]),r[t](...n)):i}function ut(e,t,n=[]){Ue(),Pe();let r=R(e)[t].apply(e,n);return Fe(),We(),r}var dt=t(`__proto__,__v_isRef,__isVue`),ft=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(v));function pt(e){v(e)||(e=String(e));let t=R(this);return F(t,`has`,e),t.hasOwnProperty(e)}var mt=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?Mt:jt:i?At:kt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=f(e);if(!r){let e;if(a&&(e=rt[t]))return e;if(t===`hasOwnProperty`)return pt}let o=Reflect.get(e,t,B(e)?e:n);if((v(t)?ft.has(t):dt(t))||(r||F(e,`get`,t),i))return o;if(B(o)){let e=a&&T(t)?o:o.value;return r&&y(e)?It(e):e}return y(o)?r?It(o):Pt(o):o}},ht=class extends mt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=f(e)&&T(t);if(!this._isShallow){let e=zt(i);if(!L(n)&&!zt(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?k(n,i)&&et(e,`set`,t,n,i):et(e,`add`,t,n)),s}deleteProperty(e,t){let n=d(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&et(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return v(t)&&ft.has(t)||F(e,`has`,t),n}ownKeys(e){return F(e,`iterate`,f(e)?`length`:Ze),Reflect.ownKeys(e)}},gt=class extends mt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},_t=new ht,vt=new gt,yt=new ht(!0),bt=e=>e,xt=e=>Reflect.getPrototypeOf(e);function St(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?bt:t?Ht:z;return!t&&F(a,`iterate`,l?Qe:Ze),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 Ct(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function wt(e,t){let n={get(n){let r=this.__v_raw,i=R(r),a=R(n);e||(k(n,a)&&F(i,`get`,n),F(i,`get`,a));let{has:o}=xt(i),s=t?bt: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&&F(R(t),`iterate`,Ze),t.size},has(t){let n=this.__v_raw,r=R(n),i=R(t);return e||(k(t,i)&&F(r,`has`,t),F(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?bt:e?Ht:z;return!e&&F(o,`iterate`,Ze),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return c(n,e?{add:Ct(`add`),set:Ct(`set`),delete:Ct(`delete`),clear:Ct(`clear`)}:{add(e){let n=R(this),r=xt(n),i=R(e),a=!t&&!L(e)&&!zt(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),et(n,`add`,a,a)),this},set(e,n){t||L(n)||zt(n)||(n=R(n));let r=R(this),{has:i,get:a}=xt(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?k(n,s)&&et(r,`set`,e,n,s):et(r,`add`,e,n),this},delete(e){let t=R(this),{has:n,get:r}=xt(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&&et(t,`delete`,e,void 0,a),o},clear(){let e=R(this),t=e.size!==0,n=e.clear();return t&&et(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=St(r,e,t)}),n}function Tt(e,t){let n=wt(e,t);return(r,i,a)=>i===`__v_isReactive`?!e:i===`__v_isReadonly`?e:i===`__v_isShallow`?t:i===`__v_raw`?r:Reflect.get(d(n,i)&&i in r?n:r,i,a)}var Et={get:Tt(!1,!1)},Dt={get:Tt(!1,!0)},Ot={get:Tt(!0,!1)},kt=new WeakMap,At=new WeakMap,jt=new WeakMap,Mt=new WeakMap;function Nt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Pt(e){return zt(e)?e:Lt(e,!1,_t,Et,kt)}function Ft(e){return Lt(e,!1,yt,Dt,At)}function It(e){return Lt(e,!0,vt,Ot,jt)}function Lt(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=Nt(C(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Rt(e){return zt(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function zt(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)&&oe(e,`__v_skip`,!0),e}var z=e=>y(e)?Pt(e):e,Ht=e=>y(e)?It(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 Je,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)||zt(e);e=n?e:R(e),k(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 Rt(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 Je(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ke-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Ne(this,!0),!0}get value(){let e=this.dep.track();return ze(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)):Rt(e)?(h=()=>p(e),y=!0):f(e)?(b=!0,y=e.some(e=>Rt(e)||L(e)),h=()=>e.map(e=>{if(B(e))return e.value;if(Rt(e))return p(e);if(g(e))return d?d(e,2):e()})):h=g(e)?t?d?()=>d(e,2):e:()=>{if(_){Ue();try{_()}finally{We()}}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=De(),S=()=>{m.stop(),x&&x.active&&l(x.effects,m)};if(s&&t){let e=t;t=(...t)=>{try{return e(...t)}finally{S()}}}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)=>k(e,C[t])):k(n,C))){let e=$t;Ue();try{_&&_(),$t=m;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,We()}}}else m.run()}};return u&&u(w),m=new ke(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,void 0,!0)}),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,a=!1){let o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:c}=t&&t.appContext.config||n;if(t){let n=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${r}`;for(;n;){let t=n.ec;if(t&&!n.isUnmounted&&(!a||n.scope.active)){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}n=n.parent}if(s){Ue(),rn(s,null,10,[e,i,o]),We();return}}on(e,r,o,i,c)}function on(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var U=[],W=-1,G=[],sn=null,cn=0,ln=Promise.resolve(),un=null;function dn(e){let t=un||ln;return e?t.then(this?e.bind(this):e):t}function fn(e){let t=W+1,n=U.length;for(;t<n;){let r=t+n>>>1,i=U[r],a=bn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function pn(e){if(!(e.flags&1)){let t=bn(e),n=U[U.length-1];!n||!(e.flags&2)&&t>=bn(n)?U.push(e):U.splice(fn(t),0,e),e.flags|=1,mn()}}function mn(){un||=ln.then(xn)}function hn(e){if(!f(e))sn&&e.id===-1?sn.splice(cn+1,0,e):e.flags&1||(G.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)G.push(e[t]);mn()}function gn(e,t,n,r=W+1){for(;r<U.length;r++){let n=U[r];if(n&&n.flags&2){if(e&&n.id!==e.uid||t!==void 0&&!(n.id>=t))continue;U.splice(r,1),r=e?r-1:W,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function _n(e,t,n=0){if(G.length){let e=G,r=0;if(t){e=[];for(let i=0;i<G.length;i++){let a=G[i];(a.i===void 0?t.has(a):!a.i||a.i.uid<n)?G[r++]=a:e.push(a)}}let i=[...new Set(e)].sort((e,t)=>bn(e)-bn(t));if(G.length=r,sn){for(let e=0;e<i.length;e++)sn.push(i[e]);return}for(sn=i,cn=0;cn<sn.length;cn++){let e=sn[cn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}sn=null,cn=0}}var vn=!1;function yn(e,t){if(vn){e();return}let n=t===void 0?void 0:new Set(G);e(),vn=!0;try{gn(void 0,t),_n(void 0,n,t)}finally{vn=!1}}var bn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function xn(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,_n(e),un=null,(U.length||G.length)&&xn(e)}}var K=null,Sn=null;function Cn(e){let t=K;return K=e,Sn=e&&e.type.__scopeId||null,t}function wn(e,t=K,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&oi(-1);let i=Cn(t),a=ni.length,o;try{o=e(...n)}finally{for(let e=ni.length;e>a;e--)ii();Cn(i),r._d&&oi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Tn(e,t,n,r){let i=e;if(r===`beforeMount`)e._mount=e;else if(r===`beforeUpdate`){let n=t&&t._mount;n&&(n._latest=e,e._mount=n)}else if(r===`mounted`){let t=e._latest;e._mount=e._latest=void 0,t&&(i=t,t._mount=void 0)}let a=i.dirs,o=t&&t.dirs;for(let s=0;s<a.length;s++){let l=a[s];o?l.oldValue=o[s].value:r===`mounted`&&l.oldValue!==void 0&&(l=c({},l,{oldValue:void 0}));let u=l.dir[r];u&&(Ue(),H(u,n,8,[e.el,l,i,t]),We())}}function En(e,t,n=!1){let r=ki();if(r||dr){let i=dr?dr._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 Dn=Symbol.for(`v-scx`),On=()=>En(Dn);function kn(e,t){return jn(e,null,t)}function An(e,t,n){return jn(e,t,n)}function jn(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(Fi){if(s===`sync`){let e=On();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}}let p=Oi;u.call=(e,t,n)=>H(e,p,t,n);let m=!1;s===`post`?u.scheduler=e=>{e.i=p,q(e,p&&p.suspense)}:s!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():pn(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 Fi&&(f?f.push(h):d&&h()),h}var Mn=Symbol(`_vte`),Nn=e=>e.__isTeleport,Pn=Symbol(`_leaveCb`);function Fn(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Y){t=n;break}}return t}function In(e){if(!qn(e))return Nn(e.type)&&e.children?Fn(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 Ln(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Ln(Nn(n.type)&&In(n)||n,t)}else if(e.shapeFlag&128){let n=e.suspense;if(n){let e=n.isHydrating?n.pendingBranch:n.activeBranch;e&&Ln(e,t.clone(e))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===J&&f(e.children)){let n=_r(e.children,!1);n&&Ln(n,t)}}function Rn(e){if(e.component)return Rn(e.component.subTree);if(e.type===J){let t=f(e.children)&&_r(e.children,!1);return t?Rn(t):void 0}if(e.type!==Y)return e}function zn(e,t){return g(e)?c({name:e.name},t,{setup:e}):e}function Bn(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Vn(e){let t=ki(),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 Hn(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Un=new WeakMap;function Wn(e,t,r,i,o=!1){if(f(e)){e.forEach((e,n)=>Wn(e,t&&(f(t)?t[n]:t),r,i,o));return}if(Kn(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Wn(e,t,r,i.component.subTree);return}let s=i.shapeFlag&4?Gi(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=>!Hn(h,e)&&d(y,e),x=(e,t)=>!(t&&Hn(h,t));if(m!=null&&m!==p){if(Gn(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(),Un.delete(e)};t.id=-1,Un.set(e,t),q(t,r)}else Gn(e),i()}}}function Gn(e){let t=Un.get(e);t&&(t.flags|=8,Un.delete(e))}ue().requestIdleCallback,ue().cancelIdleCallback;var Kn=e=>!!e.type.__asyncLoader,qn=e=>e.type.__isKeepAlive;function Jn(e,t,n=Oi,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ue();let i=Mi(n),a=H(t,n,e,r);return i(),We(),a};return r?i.unshift(a):i.push(a),a}}var Yn=e=>(t,n=Oi)=>{Fi&&e!==`sp`||Jn(e,(...e)=>t(...e),n)},Xn=Yn(`m`),Zn=Yn(`bum`),Qn=Symbol.for(`v-ndc`);function $n(e,t,n,r){let i,a=n&&n[r],o=f(e);if(o||_(e)){let n=o&&Rt(e),r=!1,s=!1;n&&(r=!L(e),s=zt(e),e=nt(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`){if(!Number.isInteger(e)||e<0)i=[];else{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 er=e=>e?Pi(e)?Gi(e):er(e.parent):null,tr=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=>er(e.parent),$root:e=>er(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||=()=>{pn(e.update)},$nextTick:e=>e.n||=dn.bind(e.proxy),$watch:e=>i}),nr=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),rr={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(nr(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=tr[t],f,p;if(u)return t===`$attrs`&&F(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 nr(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]||nr(t,s)||d(a,s)||d(r,s)||d(tr,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 ir(){return ar(`useAttrs`).attrs}function ar(e){let t=ki();return t.setupContext||=Wi(t)}function or(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function sr(e,t){let n=or(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 cr(){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 lr=0;function ur(e,t){return function(n,r=null){g(n)||(n=c({},n)),r!=null&&!y(r)&&(r=null);let i=cr(),a=new WeakSet,o=[],s=!1,l=i.app={_uid:lr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:qi,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||Q(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,Gi(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=dr;dr=l;try{return e()}finally{dr=t}}};return l}}var dr=null,fr=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${O(t)}Modifiers`];function pr(e,t,...r){if(e.isUnmounted)return;let i=e.vnode.props||n,a=r,o=t.startsWith(`update:`),s=o&&fr(i,t.slice(7));s&&(s.trim&&(a=r.map(e=>_(e)?e.trim():e)),s.number&&(a=a.map(se)));let c,l=i[c=ie(t)]||i[c=ie(D(t))];!l&&o&&(l=i[c=ie(O(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 mr(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 hr(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,O(t))||d(e,t))}function gr(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,_=Cn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=yi(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=yi(e.length>1?e(f,{attrs:c,slots:o,emit:l}):e(f,null)),y=t.props?c:vr(c)}}catch(t){ni.length=0,an(t,e,1),v=Q(Y)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(s)&&(y=yr(y,a)),b=gi(b,y,!1,!0))}return n.dirs&&(b=gi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Ln(Nn(b.type)&&In(b)||b,n.transition),v=b,Cn(_),v}function _r(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(ui(r)){if(r.type!==Y||r.children===`v-if`){if(n)return;n=r}}else return}return n}var vr=e=>{let t;for(let n in e)(n===`class`||n===`style`||o(n))&&((t||={})[n]=e[n]);return t},yr=(e,t)=>{let n={};for(let r in e)s(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function br(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?xr(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Sr(o,r,n)&&!hr(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||xr(r,o,l):!!o;return!1}function xr(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(!d(e,a)||Sr(t,e,a)&&!hr(n,a))return!0}return!1}function Sr(e,t,n){let r=e[n],i=t[n];return n===`style`&&y(r)&&y(i)?!Se(r,i):r!==i}function Cr({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 wr={},Tr=()=>Object.create(wr),Er=e=>Object.getPrototypeOf(e)===wr;function Dr(e,t,n,r=!1){let i={},a=Tr();e.propsDefaults=Object.create(null),kr(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Ft(i):e.type.props?i:a,e.attrs=a}function Or(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(hr(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=D(o);i[t]=Ar(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{kr(e,t,i,a)&&(l=!0);let r;for(let a in s)t&&(d(t,a)||(r=O(a))!==a&&d(t,r))||(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Ar(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&&et(e.attrs,`set`,``)}function kr(e,t,r,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let n in t){if(ee(n))continue;let l=t[n],u;a&&d(a,u=D(n))?!o||!o.includes(u)?r[u]=l:(c||={})[u]=l:hr(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]=Ar(a,t,s,i[s],e,!d(i,s))}}return s}function Ar(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=Mi(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===O(n))&&(r=!0))}return r}function jr(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=D(s[e]);Mr(t)&&(l[t]=n)}else if(s)for(let e in s){let t=D(e);if(Mr(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 Mr(e){return e[0]!==`$`&&!ee(e)}var Nr=e=>e===`_`||e===`_ctx`||e===`$stable`,Pr=e=>f(e)?e.map(yi):[yi(e)],Fr=(e,t,n)=>{if(t._n)return t;let r=wn((...e)=>Pr(t(...e)),n);return r._c=!1,r},Ir=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Nr(n))continue;let i=e[n];if(g(i))t[n]=Fr(n,i,r);else if(i!=null){let e=Pr(i);t[n]=()=>e}}},Lr=(e,t)=>{let n=Pr(t);e.slots.default=()=>n},Rr=(e,t,n)=>{for(let r in t)(n||!Nr(r))&&(e[r]=t[r])},zr=(e,t,n)=>{let r=e.slots=Tr();if(e.vnode.shapeFlag&32){let e=t._;e?(Rr(r,t,n),n&&oe(r,`_`,e,!0)):Ir(t,r)}else t&&Lr(e,t)},Br=(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:Rr(a,t,r):(o=!t.$stable,Ir(t,a)),s=t}else t&&(Lr(e,t),s={default:1});if(o)for(let e in a)!Nr(e)&&s[e]==null&&delete a[e]},q=$r;function Vr(e){return Hr(e)}function Hr(e,t){let a=ue();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&&!di(e,t)&&(i=ve(e),A(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 ei:y(e,t,n,i);break;case Y:b(e,t,n,i);break;case ti:e??x(t,n,i,s);break;case J:re(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?ie(e,t,n,i,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,n,i,a,o,s,c,l,be)}d!=null&&a?Wn(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&Wn(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)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),D(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(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&&te(e.children,d,null,r,i,Ur(e,a),s,u),_&&Tn(e,null,r,`created`),E(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!ee(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Ci(f,r,e)}_&&Tn(e,null,r,`beforeMount`);let v=Gr(i,g);v?g.beforeEnter(d):g&&!g.persisted&&(d[Qr]=!0),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&q(()=>{try{f&&Ci(f,r,e),v&&g.enter(d),_&&Tn(e,null,r,`mounted`)}finally{}},i)},E=(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||Zr(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},te=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?bi(e[l]):yi(e[l]);v(null,c,t,n,r,i,a,o,s)}},D=(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&&Wr(r,!1),(g=h.onVnodeBeforeUpdate)&&Ci(g,r,t,e),f&&Tn(t,e,r,`beforeUpdate`),r&&Wr(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?ne(e.dynamicChildren,d,l,r,i,Ur(t,a),o):s||le(e,t,l,null,r,i,Ur(t,a),o,!1),u>0){if(u&16)O(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&&O(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&q(()=>{g&&Ci(g,r,t,e),f&&Tn(t,e,r,`updated`)},i)},ne=(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||Xr(c),d=u&&(c.type===J||!di(c,l)||c.shapeFlag&198)?m(u):n;v(c,l,d,null,r,i,a,o,!0)}},O=(e,t,r,i,a)=>{if(t!==r){if(t!==n)for(let n in t)!ee(n)&&!(n in r)&&c(e,n,t[n],null,a,i);for(let n in r){if(ee(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)}},re=(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),te(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ne(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Kr(e,t,!0)):le(e,t,n,f,i,a,s,c,l)},ie=(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):k(t,n,r,i,a,o,c):oe(e,t,c)},k=(e,t,n,r,i,a,o)=>{let s=e.component=Di(e,r,i);if(qn(e)&&(s.ctx.renderer=be),Ii(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,se,o,a),!e.el){let r=s.subTree=Q(Y);b(null,r,t,n),e.placeholder=r.el}}else se(s,e,t,n,i,a,o)},oe=(e,t,n)=>{let r=t.component=e.component;if(br(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,t.placeholder=e.placeholder,ce(r,t,n);return}r.next=t,r.update()}else t.el=e.el,t.placeholder=e.placeholder,r.vnode=t},se=(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=Jr(e);if(n){t&&(t.el=c.el,ce(e,t,o)),n.asyncDep.then(()=>{let t=()=>{e.job.flags&8||(i&&i.pendingBranch?q(t,i):l())};t.flags=48,q(t,i)});return}}let u=t,d;Wr(e,!1),t?(t.el=c.el,ce(e,t,o)):t=c,n&&ae(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Ci(d,s,t,c),Wr(e,!0);let f=gr(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el||Xr(p)),ve(p),e,i,a),t.el=f.el,u===null&&Cr(e,f.el),r&&q(r,i),(d=t.props&&t.props.onVnodeUpdated)&&q(()=>Ci(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=Kn(t);if(Wr(e,!1),l&&ae(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ci(o,d,t),Wr(e,!0),s&&Se){let t=()=>{e.subTree=gr(e),Se(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=gr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&q(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;q(()=>Ci(o,d,e),i)}(t.shapeFlag&256||d&&Kn(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&q(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new ke(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=()=>pn(u),Wr(e,!0),l()},ce=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Or(e,t.props,r,n),Br(e,t.children,n),Ue(),gn(e),We()},le=(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){fe(l,d,n,r,i,a,o,s,c);return}if(f&256){de(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&_e(l,i,a),d!==l&&p(n,d)):u&16?m&16?fe(l,d,n,r,i,a,o,s,c):_e(l,i,a,!0):(u&8&&p(n,``),m&16&&te(d,n,r,i,a,o,s,c))},de=(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?bi(t[p]):yi(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?_e(e,a,o,!0,!1,f):te(t,n,i,a,o,s,c,l,f)},fe=(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?bi(t[u]):yi(t[u]);if(di(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?bi(t[p]):yi(t[p]);if(di(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?bi(t[u]):yi(t[u]),n,r,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)A(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?bi(t[u]):yi(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){A(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&di(r,t[_])){i=_;break}i===void 0?A(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?qr(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||Xr(f):i;C[u]===0?v(null,r,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?pe(r,n,p,2):_--)}}},pe=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6)pe(e.component.subTree,t,n,r);else if(d&128)e.suspense.move(t,n,r);else if(d&64)c.move(e,t,n,be);else if(c===J){o(a,t,n);for(let e=0;e<u.length;e++)pe(u[e],t,n,r);o(e.anchor,t,n)}else if(c===ti)S(e,t,n);else if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Pn]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),q(()=>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[Pn];a._isLeaving&&a[Pn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},A=(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&&(Ue(),Wn(s,null,n,e,!0),We()),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=!Kn(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Ci(_,t,e),u&6)ge(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Tn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==J||d>0&&d&64)?_e(l,t,n,!1,!0):(a===J&&d&384||!i&&u&16)&&_e(c,t,n),r&&me(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&q(()=>{_&&Ci(_,t,e),h&&Tn(e,null,t,`unmounted`),v&&(e.el=null)},n)},me=e=>{let{type:t,el:n,anchor:r,transition:i}=e,a=t===J;if(a&&!i){he(n,r);return}if(t===ti){C(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let o=a?Rn(e):e,c=()=>{a?m(n)&&he(n,r):s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(o&&o.shapeFlag&1&&i&&!i.persisted){let{leave:e,delayLeave:t}=i,n=o.el,r=()=>e(n,c);t?t(n,c,r):r()}else c()},he=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},ge=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Yr(c),Yr(l),r&&ae(r),i.stop(),a?(a.flags|=8,A(o,e,t,n)):o&&(o.transition=e.vnode.transition,A(o,e,t,n)),s&&q(s,t);let u=()=>{e.isUnmounted=!0};u.flags=16,q(u,t)},_e=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)A(e[o],t,n,r,i)},ve=e=>{if(e.shapeFlag&6)return ve(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Mn];return n?h(n):t},ye=(e,t,n)=>{yn(()=>{e==null?t._vnode&&A(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e},e&&t._vnode?void 0:e&&e.component?e.component.uid:Ei())},be={p:v,um:A,m:pe,r:me,mt:k,mc:te,pc:le,pbc:ne,n:ve,o:e},xe,Se;return t&&([xe,Se]=t(be)),{render:ye,hydrate:xe,createApp:ur(ye,xe)}}function Ur({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 Wr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Gr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Kr(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]=bi(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Kr(t,a)),a.type===ei&&(a.patchFlag===-1&&(a=i[e]=bi(a)),a.el=t.el),a.type===Y&&!a.el&&(a.el=t.el)}}function qr(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 Jr(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jr(t)}function Yr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Xr(e){if(e.placeholder)return e.placeholder;let t=e.component;if(t)return Xr(t.subTree);let n=e.suspense;return n&&n.activeBranch?Xr(n.activeBranch):null}var Zr=e=>e.__isSuspense,Qr=Symbol(`_deferredEnter`);function $r(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):hn(e)}var J=Symbol.for(`v-fgt`),ei=Symbol.for(`v-txt`),Y=Symbol.for(`v-cmt`),ti=Symbol.for(`v-stc`),ni=[],X=null;function ri(e=!1){ni.push(X=e?null:[])}function ii(){ni.pop(),X=ni[ni.length-1]||null}var ai=1;function oi(e,t=!1){ai+=e,e<0&&X&&t&&(X.hasOnce=!0)}function si(e){return e.dynamicChildren=ai>0?X||r:null,ii(),ai>0&&X&&X.push(e),e}function ci(e,t,n,r,i,a){return si(Z(e,t,n,r,i,a,!0))}function li(e,t,n,r,i){return si(Q(e,t,n,r,i,!0))}function ui(e){return e?e.__v_isVNode===!0:!1}function di(e,t){return e.type===t.type&&e.key===t.key}var fi=({key:e})=>e??null,pi=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:_(e)||B(e)||g(e)?{i:K,r:e,k:t,f:!!n}:e);function Z(e,t=null,n=null,r=0,i=null,a=e===J?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fi(t),ref:t&&pi(t),scopeId:Sn,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:K};return s?(xi(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=_(n)?8:16),ai>0&&!o&&X&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&X.push(c),c}var Q=mi;function mi(e,t=null,n=null,r=0,i=null,a=!1){if(e&&e!==Qn||(e=Y),ui(e)){let r=gi(e,t,!0);return n&&xi(r,n),ai>0&&!a&&X&&(r.shapeFlag&6?X[X.indexOf(e)]=r:X.push(r)),r.patchFlag=-2,r}if(Ki(e)&&(e=e.__vccOpts),t){t=hi(t);let{class:e,style:n}=t;e&&!_(e)&&(t.class=he(e)),y(n)&&(Bt(n)&&!f(n)&&(n=c({},n)),t.style=de(n))}let o=_(e)?1:Zr(e)?128:Nn(e)?64:y(e)?4:g(e)?2:0;return Z(e,t,n,r,i,o,a,!0)}function hi(e){return e?Bt(e)?c({},e):Er(e)?c({},e[Hi]||e):e:null}function gi(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Si(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&fi(l),ref:t&&t.ref?n&&a?f(a)?a.concat(pi(t)):[a,pi(t)]:pi(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!==J?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&&gi(e.ssContent),ssFallback:e.ssFallback&&gi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&Ln(u,c.clone(u)),u}function _i(e=` `,t=0){return Q(ei,null,e,t)}function vi(e=``,t=!1){return t?(ri(),li(Y,null,e)):Q(Y,null,e)}function yi(e){return e==null||typeof e==`boolean`?Q(Y):f(e)?Q(J,null,e.slice()):ui(e)?bi(e):Q(ei,null,String(e))}function bi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gi(e)}function xi(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),xi(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Er(t)?t._ctx=K:r===3&&K&&(K.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(g(t)){if(r&65){xi(e,{default:t});return}t={default:t,_ctx:K},n=32}else t=String(t),r&64?(n=16,t=[_i(t)]):n=8;e.children=t,e.shapeFlag|=n}function Si(...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=he([t.class,r.class]));else if(e===`style`)t.style=de([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 Ci(e,t,n,r=null){H(e,t,7,[n,r])}var wi=cr(),Ti=0;function Ei(){return Ti}function Di(e,t,r){let i=e.type,a=(t?t.appContext:e.appContext)||wi,o={uid:Ti++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ee(!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:jr(i,a),emitsOptions:mr(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=pr.bind(null,o),e.ce&&e.ce(o),o}var Oi=null,ki=()=>Oi||K,Ai,ji;{let e=ue(),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)}};Ai=t(`__VUE_INSTANCE_SETTERS__`,e=>Oi=e),ji=t(`__VUE_SSR_SETTERS__`,e=>Fi=e)}var Mi=e=>{let t=Oi;return Ai(e),e.scope.on(),()=>{e.scope.off(),Ai(t)}},Ni=()=>{Oi&&Oi.scope.off(),Ai(null)};function Pi(e){return e.vnode.shapeFlag&4}var Fi=!1;function Ii(e,t=!1,n=!1){t&&ji(t);let{props:r,children:i}=e.vnode,a=Pi(e);Dr(e,r,a,t),zr(e,i,n||t);let o=a?Li(e,t):void 0;return t&&ji(!1),o}function Li(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,rr);let{setup:r}=n;if(r){Ue();let n=e.setupContext=r.length>1?Wi(e):null,i=Mi(e),a=rn(r,e,0,[e.props,n]),o=b(a);if(We(),i(),(o||e.sp)&&!Kn(e)&&Bn(e),o){if(a.then(Ni,Ni),t)return a.then(n=>{ji(!0);try{Ri(e,n,t)}finally{ji(!1)}}).catch(t=>{an(t,e,0,void 0,!0),e.ssrRender=(e,t)=>t(`<!---->`)});e.asyncDep=a}else Ri(e,a,t)}else Vi(e,t)}function Ri(e,t,n){g(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:y(t)&&(e.setupState=Jt(t)),Vi(e,n)}var zi,Bi;function Vi(e,t,n){let r=e.type;if(!e.render){if(!t&&zi&&!r.render){let t=r.template||!1;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=zi(t,c(c({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||i,Bi&&Bi(e)}}var Hi=Symbol(),Ui={get(e,t){return F(e,`get`,``),t===Hi?e:e[t]}};function Wi(e){return{attrs:new Proxy(e.attrs,Ui),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Gi(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 tr)return tr[n](e)},has(e,t){return t in e||t in tr}}):e.proxy}function Ki(e){return g(e)&&`__vccOpts`in e}var $=(e,t)=>Xt(e,t,Fi),qi=`3.5.45`,Ji=void 0,Yi=typeof window<`u`&&window.trustedTypes;if(Yi)try{Ji=Yi.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Xi=Ji?e=>Ji.createHTML(e):e=>e,Zi=`http://www.w3.org/2000/svg`,Qi=`http://www.w3.org/1998/Math/MathML`,$i=typeof document<`u`?document:null,ea=$i&&$i.createElement(`template`),ta={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`?$i.createElementNS(Zi,e):t===`mathml`?$i.createElementNS(Qi,e):n?$i.createElement(e,{is:n}):$i.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>$i.createTextNode(e),createComment:e=>$i.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$i.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{ea.innerHTML=Xi(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=ea.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]}},na=Symbol(`_vtc`);function ra(e,t,n){let r=e[na];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var ia=Symbol(`_vod`),aa=Symbol(`_vsh`),oa=Symbol(``),sa=/(?:^|;)\s*display\s*:/;function ca(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]??ua(r,t,``)}else for(let e in t)n[e]??ua(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?ua(r,i,``):ma(e,i,!_(t)&&t?t[i]:void 0,o)||ua(r,i,o)}}else if(i){if(t!==n){let e=r[oa];e&&(n+=`;`+e),r.cssText=n,a=sa.test(n)}}else t&&e.removeAttribute(`style`);ia in e&&(i&&t===n||(e[ia]=a?r.display:``),e[aa]&&(r.display=`none`))}var la=/\s*!important$/;function ua(e,t,n){if(f(n))n.forEach(n=>ua(e,t,n));else if(n??=``,t.startsWith(`--`))la.test(n)?e.setProperty(t,n.replace(la,``),`important`):e.setProperty(t,n);else{let r=pa(e,t);la.test(n)?e.setProperty(O(r),n.replace(la,``),`important`):e[r]=n}}var da=[`Webkit`,`Moz`,`ms`],fa={};function pa(e,t){let n=fa[t];if(n)return n;let r=D(t);if(r!==`filter`&&r in e)return fa[t]=r;r=re(r);for(let n=0;n<da.length;n++){let i=da[n]+r;if(i in e)return fa[t]=i}return t}function ma(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&_(r)&&n===r}var ha=`http://www.w3.org/1999/xlink`;function ga(e,t,n,r,i,a=ge(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(ha,t.slice(6,t.length)):e.setAttributeNS(ha,t,n):n==null||a&&!_e(n)?e.removeAttribute(t):e.setAttribute(t,a?``:v(n)?String(n):n)}function _a(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Xi(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=_e(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 va(e,t,n,r){e.addEventListener(t,n,r)}function ya(e,t,n,r){e.removeEventListener(t,n,r)}var ba=Symbol(`_vei`);function xa(e,t,n,r,i=null){let a=e[ba]||(e[ba]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=wa(t);r?va(e,n,a[t]=Oa(r,i),s):o&&(ya(e,n,o,s),a[t]=void 0)}}var Sa=/(Once|Passive|Capture)$/,Ca=/^on:?(?:Once|Passive|Capture)$/;function wa(e){let t,n;for(;(n=e.match(Sa))&&!Ca.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):O(e.slice(2)),t]}var Ta=0,Ea=Promise.resolve(),Da=()=>Ta||=(Ea.then(()=>Ta=0),Date.now());function Oa(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=Da(),n}var ka=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Aa=(e,t,n,r,i,a)=>{let c=i===`svg`;t===`class`?ra(e,r,c):t===`style`?ca(e,n,r):o(t)?s(t)||xa(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):ja(e,t,r,c))?(_a(e,t,r),e.tagName.includes(`-`)||t!==`value`&&t!==`checked`&&t!==`selected`||ga(e,t,r,c,a,t!==`value`)):e._isVueCE&&(Ma(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!_(r)))?_a(e,D(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ga(e,t,r,c))};function ja(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ka(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 ka(t)&&_(n)?!1:t in e}function Ma(e,t){let n=e._def.props;if(!n)return!1;let r=D(t);return Array.isArray(n)?n.some(e=>D(e)===r):Object.keys(n).some(e=>D(e)===r)}var Na={};function Pa(e,t,n){let r=zn(e,t);w(r)&&(r=c({},r,t));class i extends Ia{constructor(e){super(r,e,n)}}return i.def=r,i}var Fa=typeof HTMLElement<`u`?HTMLElement:class{},Ia=class e extends Fa{constructor(e,t={},n=Ga){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!==Ga?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,dn(()=>{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]=ce(this._props[e])),(i||=Object.create(null))[D(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._connected&&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(D))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):Na,r=D(e);t&&this._numberProps&&this._numberProps[r]&&(n=ce(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===Na?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(O(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(O(e),t+``):t||this.removeAttribute(O(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Wa(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=Q(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),O(e)!==e&&t(O(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 La(e){let t=ki();return t&&t.ce||null}var Ra=[`ctrl`,`shift`,`alt`,`meta`],za={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)=>Ra.some(n=>e[`${n}Key`]&&!t.includes(n))},Ba=(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=za[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Va=c({patchProp:Aa},ta),Ha;function Ua(){return Ha||=Vr(Va)}var Wa=((...e)=>{Ua().render(...e)}),Ga=((...e)=>{let t=Ua().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=qa(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,Ka(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Ka(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function qa(e){return _(e)?document.querySelector(e):e}var Ja=500,Ya=100;function Xa(){let e=Ut(``),t;function n(){clearTimeout(t),e.value=``}function r(r){n(),t=setTimeout(()=>{e.value=r},Ya)}function i(r){n(),t=setTimeout(()=>{e.value=r()},Ja)}return Zn(()=>clearTimeout(t)),{announcement:e,announceNow:r,announceOnceTypingPauses:i,clear:n}}function Za(e,t){kn(()=>{let n=e.states;if(n)for(let[e,r]of Object.entries(t()))r?n.add(e):n.delete(e)})}function Qa({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 $a={current:`current-password`,new:`new-password`};function eo(e){return e===`current`||e===`new`}function to(e){return eo(e)?e:`current`}function no(e,t){return t?.trim()?t:$a[e]}var ro=[`lowercase`,`uppercase`,`digit`,`symbol`],io={lowercase:/\p{Ll}/u,uppercase:/[\p{Lu}\p{Lt}]/u,digit:/\p{Nd}/u,symbol:/[^\p{L}\p{N}\s]/u},ao={lowercase:`lower`,uppercase:`upper`,digit:`digit`,symbol:`special`};function oo(e){if(e==null||e===``)return null;let t=Number(e);return Number.isInteger(t)&&t>0?t:null}function so(e){return ro.includes(e)}function co(e){let t=oo(e.minlength)??8,n=oo(e.maxlength),r=String(e.requirements??``).toLowerCase().split(/[\s,]+/).filter(Boolean);return{minLength:t,maxLength:n!==null&&n>=t?n:null,classes:ro.filter(e=>r.includes(e)),unknown:[...new Set(r.filter(e=>!so(e)))]}}function lo(e){return[...e].length}function uo(e,t){return[{requirement:`length`,met:lo(e)>=t.minLength},...t.classes.map(t=>({requirement:t,met:io[t].test(e)}))]}function fo(e,t){return uo(e,t).every(e=>e.met)}function po(e,t){return t.maxLength!==null&&lo(e)>t.maxLength}function mo(e){return[`minlength: ${e.minLength};`,e.maxLength!==null&&`maxlength: ${e.maxLength};`,...e.classes.map(e=>`required: ${ao[e]};`),`allowed: lower, upper, digit, special;`].filter(Boolean).join(` `)}function ho(e){let t=$(()=>to(e.purpose)),n=$(()=>t.value===`new`?co({minlength:e.minlength,maxlength:e.maxlength,requirements:e.requirements}):null);return{purpose:t,ruleOptions:n,autocomplete:$(()=>no(t.value,e.autocomplete)),rulesForPasswordManagers:$(()=>n.value?mo(n.value):void 0)}}function go(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 _o(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 vo({host:e,props:t,ruleOptions:n,announceOnceTypingPauses:r}){let i=$(()=>n.value?uo(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=_o(o,i.value);return o=i.value,e?l(e):``}))}return An(i,e=>{s||(o=e)}),{requirementItems:a,reportUserChange:u}}function yo({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 Xn(()=>{window.addEventListener(`submit`,l,!0),window.addEventListener(`reset`,l,!0),window.addEventListener(`pagehide`,c)}),Zn(()=>{window.removeEventListener(`submit`,l,!0),window.removeEventListener(`reset`,l,!0),window.removeEventListener(`pagehide`,c)}),{revealed:i,inputType:a,toggleLabel:o,toggleByUser:s}}function bo({value:e,required:t,ruleOptions:n,customError:r},i){return r?{flag:`customError`,message:r}:e===``?t?{flag:`valueMissing`,message:i.required}:null:n?po(e,n)?{flag:`tooLong`,message:i.tooLong.replaceAll(`{maxlength}`,String(n.maxLength))}:fo(e,n)?null:{flag:`unmet`,message:i.unmet}:null}function xo({host:e,props:t,input:n,ruleOptions:r}){let{state:i}=e,a=$(()=>bo({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 kn(()=>n.value?.setCustomValidity(a.value?.message??``),{flush:`sync`}),Xn(()=>window.addEventListener(`reset`,u,!0)),Zn(()=>window.removeEventListener(`reset`,u,!0)),{visibleError:o,markEdited:s,revealErrors:c,revealErrorsIfEdited:l}}function So({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 Xn(()=>{n(),window.addEventListener(`reset`,r,!0)}),Zn(()=>window.removeEventListener(`reset`,r,!0)),{syncFromInput:n}}var Co=0;function wo(e){return Co+=1,`${e}-${Co}`}var To={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`},Eo={class:`tes-password__field`},Do=[`for`],Oo=[`id`,`type`,`name`,`^value`,`autocomplete`,`passwordrules`,`aria-describedby`,`aria-invalid`,`required`,`disabled`,`readonly`],ko=[`aria-label`],Ao={class:`tes-password__requirements-title`},jo={class:`tes-password__requirements-list`},Mo={key:0,class:`tes-password__icon tes-password__icon--met`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`},No={key:1,class:`tes-password__icon tes-password__icon--unmet`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`},Po={class:`tes-password__visually-hidden`},Fo={role:`status`,class:`tes-password__visually-hidden`},Io=Pa(zn({inheritAttrs:!1,__name:`TesPassword`,props:sr({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:{}},To),setup(e){let t=e,n=ir(),r=La(),i=Vn(`input`),a=wo(`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}=Xa(),{ruleOptions:m,autocomplete:h,rulesForPasswordManagers:g}=ho(t),{revealed:_,inputType:v,toggleLabel:y,toggleByUser:b}=yo({host:r,props:t,input:i,announceNow:f}),{syncFromInput:x}=So({host:r,input:i}),{requirementItems:S,reportUserChange:C}=vo({host:r,props:t,ruleOptions:m,announceOnceTypingPauses:p}),{capsLockOn:w,readCapsLock:T,forgetCapsLock:ee}=Qa({props:t,announceNow:f}),{visibleError:E,markEdited:te,revealErrors:D,revealErrorsIfEdited:ne}=xo({host:r,props:t,input:i,ruleOptions:m}),O=$(()=>{let e=[t.hint&&c,S.value.length>0&&o,w.value&&s,E.value&&l].filter(Boolean);return e.length>0?e.join(` `):void 0}),{dispatchInput:re,dispatchChange:ie}=go(r);function k(){te(),x(),C(),re()}An(()=>t.disabled,e=>{e&&(r.revealed=!1)}),Za(r.internals,()=>({invalid:E.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 ae(){ee(),ne()}return(t,n)=>(ri(),ci(`div`,Eo,[Z(`label`,{for:V(a),class:`tes-password__label`},j(e.label),9,Do),Z(`div`,{class:he([`tes-password__control`,{"tes-password__control--invalid":V(E)}])},[Z(`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":O.value,"aria-invalid":V(E)?`true`:void 0,required:e.required,disabled:e.disabled,readonly:e.readonly,spellcheck:`false`,autocapitalize:`off`,autocorrect:`off`,onInput:Ba(k,[`stop`]),onChange:n[0]||=Ba((...e)=>V(ie)&&V(ie)(...e),[`stop`]),onKeydown:n[1]||=(...e)=>V(T)&&V(T)(...e),onKeyup:n[2]||=(...e)=>V(T)&&V(T)(...e),onPointerdown:n[3]||=(...e)=>V(T)&&V(T)(...e),onBlur:ae,onInvalid:n[4]||=(...e)=>V(D)&&V(D)(...e)},null,40,Oo),Z(`button`,{type:`button`,class:`tes-password__toggle`,"aria-label":V(y),onClick:n[5]||=(...e)=>V(b)&&V(b)(...e)},[Z(`span`,{class:he([`tes-password__toggle-text`,{"tes-password__toggle-text--inactive":V(_)}])},j(e.textShow),3),Z(`span`,{class:he([`tes-password__toggle-text`,{"tes-password__toggle-text--inactive":!V(_)}])},j(e.textHide),3)],8,ko)],2),e.hint?(ri(),ci(`p`,{key:0,id:c,class:`tes-password__hint`},j(e.hint),1)):vi(``,!0),V(w)?(ri(),ci(`p`,{key:1,id:s,class:`tes-password__caps-lock`},j(e.textCapsLock),1)):vi(``,!0),V(S).length?(ri(),ci(`div`,{key:2,id:o,class:`tes-password__requirements`},[Z(`p`,Ao,j(e.textRequirements),1),Z(`ul`,jo,[(ri(!0),ci(J,null,$n(V(S),t=>(ri(),ci(`li`,{key:t.requirement,class:he([`tes-password__requirement`,{"tes-password__requirement--met":t.met}])},[t.met?(ri(),ci(`svg`,Mo,[...n[6]||=[Z(`path`,{d:`M3.5 8.5l3 3 6-7`},null,-1)]])):(ri(),ci(`svg`,No,[...n[7]||=[Z(`circle`,{cx:`8`,cy:`8`,r:`5`},null,-1)]])),Z(`span`,null,j(t.text),1),Z(`span`,Po,`, `+j(t.met?e.textRuleMet:e.textRuleUnmet),1)],2))),128))])])):vi(``,!0),Z(`p`,{id:l,class:`tes-password__error`,"aria-live":`polite`},j(V(E)?.message),1),Z(`div`,Fo,j(V(d)),1)]))}}),{shadowRoot:!1}),Lo=class extends Io{state=Pt({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(to(this.getAttribute(`purpose`))!==`new`)return!0;let e=co({minlength:this.getAttribute(`minlength`),maxlength:this.getAttribute(`maxlength`),requirements:this.getAttribute(`requirements`)});return fo(this.state.value,e)}get defaultValue(){return this.getAttribute(`value`)??``}set defaultValue(e){this.setAttribute(`value`,e)}get minLength(){return co({minlength:this.getAttribute(`minlength`)}).minLength}set minLength(e){this.setAttribute(`minlength`,String(e))}get maxLength(){return co({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)}},Ro=`:where(tes-password){--_text:var(--tes-color-text,light-dark(#1f2328,#e8eaee));--_muted:var(--tes-color-muted,light-dark(#59636e,#a3adba));--_bg:var(--tes-color-bg,light-dark(#fff,#16181d));--_border:var(--tes-color-border,light-dark(#7d8590,#7f8a99));--_accent:var(--tes-color-accent,light-dark(#0b5fcc,#7aa7ff));--_on-accent:var(--tes-color-on-accent,light-dark(#fff,#0d1117));--_hover:var(--tes-color-hover,light-dark(#eef3fb,#232a36));--_focus:var(--tes-color-focus,light-dark(#0b5fcc,#7aa7ff));--_error:var(--tes-color-error,light-dark(#c4232b,#ff8a80));--_success:var(--tes-color-success,light-dark(#1f7a3a,#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}}`,zo=`:where(tes-password`;function Bo(e){return Ro.replaceAll(zo,`:where(${e}`)}function Vo(e){if(typeof document>`u`||typeof CSSStyleSheet>`u`)return;let t=new CSSStyleSheet;t.replaceSync(Bo(e)),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}var Ho=`tes-password`;function Uo(e=Ho){if(typeof customElements>`u`||customElements.get(e))return;let t=class extends Lo{};customElements.define(e,e===`tes-password`?Lo:t),Vo(e)}return Uo(),e.TAG_NAME=Ho,e.TesPasswordElement=Lo,e.define=Uo,e})({});
2
+ //# sourceMappingURL=tes-password.iife.js.map