@fluentui/web-components 3.0.0 → 3.0.2
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 +20 -2
- package/custom-elements.json +16 -16
- package/dist/esm/tablist/tablist.styles.js +9 -7
- package/dist/esm/tablist/tablist.styles.js.map +1 -1
- package/dist/esm/tree/tree.template.html +0 -1
- package/dist/esm/tree/tree.template.js +1 -2
- package/dist/esm/tree/tree.template.js.map +1 -1
- package/dist/web-components-all.js +2 -2
- package/dist/web-components-all.min.js +2 -2
- package/dist/web-components.js +2 -2
- package/dist/web-components.min.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
# Change Log - @fluentui/web-components
|
|
2
2
|
|
|
3
|
-
This log was last generated on Mon,
|
|
3
|
+
This log was last generated on Mon, 13 Jul 2026 04:09:41 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [3.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.2)
|
|
8
|
+
|
|
9
|
+
Mon, 13 Jul 2026 04:09:41 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.1..@fluentui/web-components_v3.0.2)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- fix focusgroup in tree when focusgroup is natively supported ([PR #36379](https://github.com/microsoft/fluentui/pull/36379) by machi@microsoft.com)
|
|
15
|
+
|
|
16
|
+
## [3.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.1)
|
|
17
|
+
|
|
18
|
+
Tue, 07 Jul 2026 04:09:49 GMT
|
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0..@fluentui/web-components_v3.0.1)
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- fix: selected indocator position in vertical tablist ([PR #36371](https://github.com/microsoft/fluentui/pull/36371) by machi@microsoft.com)
|
|
24
|
+
|
|
7
25
|
## [3.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0)
|
|
8
26
|
|
|
9
|
-
Mon, 29 Jun 2026 22:
|
|
27
|
+
Mon, 29 Jun 2026 22:18:05 GMT
|
|
10
28
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-rc.31..@fluentui/web-components_v3.0.0)
|
|
11
29
|
|
|
12
30
|
### Patches
|
package/custom-elements.json
CHANGED
|
@@ -28501,7 +28501,7 @@
|
|
|
28501
28501
|
},
|
|
28502
28502
|
{
|
|
28503
28503
|
"kind": "javascript-module",
|
|
28504
|
-
"path": "src/
|
|
28504
|
+
"path": "src/anchor-button/anchor-button.definition-async.ts",
|
|
28505
28505
|
"declarations": [
|
|
28506
28506
|
{
|
|
28507
28507
|
"kind": "variable",
|
|
@@ -28510,7 +28510,7 @@
|
|
|
28510
28510
|
"text": "PartialFASTElementDefinition"
|
|
28511
28511
|
},
|
|
28512
28512
|
"default": "{ name: tagName, registry: FluentDesignSystem.registry, template: declarativeTemplate(), }",
|
|
28513
|
-
"description": "The async definition configuration for the `<fluent-
|
|
28513
|
+
"description": "The async definition configuration for the `<fluent-anchor-button>` element.",
|
|
28514
28514
|
"privacy": "public"
|
|
28515
28515
|
}
|
|
28516
28516
|
],
|
|
@@ -28520,20 +28520,20 @@
|
|
|
28520
28520
|
"name": "declarativeDefinition",
|
|
28521
28521
|
"declaration": {
|
|
28522
28522
|
"name": "declarativeDefinition",
|
|
28523
|
-
"module": "src/
|
|
28523
|
+
"module": "src/anchor-button/anchor-button.definition-async.ts"
|
|
28524
28524
|
}
|
|
28525
28525
|
}
|
|
28526
28526
|
]
|
|
28527
28527
|
},
|
|
28528
28528
|
{
|
|
28529
28529
|
"kind": "javascript-module",
|
|
28530
|
-
"path": "src/
|
|
28530
|
+
"path": "src/anchor-button/define-async.ts",
|
|
28531
28531
|
"declarations": [],
|
|
28532
28532
|
"exports": []
|
|
28533
28533
|
},
|
|
28534
28534
|
{
|
|
28535
28535
|
"kind": "javascript-module",
|
|
28536
|
-
"path": "src/
|
|
28536
|
+
"path": "src/accordion-item/accordion-item.definition-async.ts",
|
|
28537
28537
|
"declarations": [
|
|
28538
28538
|
{
|
|
28539
28539
|
"kind": "variable",
|
|
@@ -28542,7 +28542,7 @@
|
|
|
28542
28542
|
"text": "PartialFASTElementDefinition"
|
|
28543
28543
|
},
|
|
28544
28544
|
"default": "{ name: tagName, registry: FluentDesignSystem.registry, template: declarativeTemplate(), }",
|
|
28545
|
-
"description": "The async definition configuration for the `<fluent-
|
|
28545
|
+
"description": "The async definition configuration for the `<fluent-accordion-item>` element.",
|
|
28546
28546
|
"privacy": "public"
|
|
28547
28547
|
}
|
|
28548
28548
|
],
|
|
@@ -28552,14 +28552,14 @@
|
|
|
28552
28552
|
"name": "declarativeDefinition",
|
|
28553
28553
|
"declaration": {
|
|
28554
28554
|
"name": "declarativeDefinition",
|
|
28555
|
-
"module": "src/
|
|
28555
|
+
"module": "src/accordion-item/accordion-item.definition-async.ts"
|
|
28556
28556
|
}
|
|
28557
28557
|
}
|
|
28558
28558
|
]
|
|
28559
28559
|
},
|
|
28560
28560
|
{
|
|
28561
28561
|
"kind": "javascript-module",
|
|
28562
|
-
"path": "src/
|
|
28562
|
+
"path": "src/accordion-item/define-async.ts",
|
|
28563
28563
|
"declarations": [],
|
|
28564
28564
|
"exports": []
|
|
28565
28565
|
},
|
|
@@ -28597,7 +28597,7 @@
|
|
|
28597
28597
|
},
|
|
28598
28598
|
{
|
|
28599
28599
|
"kind": "javascript-module",
|
|
28600
|
-
"path": "src/
|
|
28600
|
+
"path": "src/avatar/avatar.definition-async.ts",
|
|
28601
28601
|
"declarations": [
|
|
28602
28602
|
{
|
|
28603
28603
|
"kind": "variable",
|
|
@@ -28606,7 +28606,7 @@
|
|
|
28606
28606
|
"text": "PartialFASTElementDefinition"
|
|
28607
28607
|
},
|
|
28608
28608
|
"default": "{ name: tagName, registry: FluentDesignSystem.registry, template: declarativeTemplate(), }",
|
|
28609
|
-
"description": "The async definition configuration for the `<fluent-
|
|
28609
|
+
"description": "The async definition configuration for the `<fluent-avatar>` element.",
|
|
28610
28610
|
"privacy": "public"
|
|
28611
28611
|
}
|
|
28612
28612
|
],
|
|
@@ -28616,20 +28616,20 @@
|
|
|
28616
28616
|
"name": "declarativeDefinition",
|
|
28617
28617
|
"declaration": {
|
|
28618
28618
|
"name": "declarativeDefinition",
|
|
28619
|
-
"module": "src/
|
|
28619
|
+
"module": "src/avatar/avatar.definition-async.ts"
|
|
28620
28620
|
}
|
|
28621
28621
|
}
|
|
28622
28622
|
]
|
|
28623
28623
|
},
|
|
28624
28624
|
{
|
|
28625
28625
|
"kind": "javascript-module",
|
|
28626
|
-
"path": "src/
|
|
28626
|
+
"path": "src/avatar/define-async.ts",
|
|
28627
28627
|
"declarations": [],
|
|
28628
28628
|
"exports": []
|
|
28629
28629
|
},
|
|
28630
28630
|
{
|
|
28631
28631
|
"kind": "javascript-module",
|
|
28632
|
-
"path": "src/
|
|
28632
|
+
"path": "src/button/button.definition-async.ts",
|
|
28633
28633
|
"declarations": [
|
|
28634
28634
|
{
|
|
28635
28635
|
"kind": "variable",
|
|
@@ -28638,7 +28638,7 @@
|
|
|
28638
28638
|
"text": "PartialFASTElementDefinition"
|
|
28639
28639
|
},
|
|
28640
28640
|
"default": "{ name: tagName, registry: FluentDesignSystem.registry, template: declarativeTemplate(), }",
|
|
28641
|
-
"description": "The async definition configuration for the `<fluent-
|
|
28641
|
+
"description": "The async definition configuration for the `<fluent-button>` element.",
|
|
28642
28642
|
"privacy": "public"
|
|
28643
28643
|
}
|
|
28644
28644
|
],
|
|
@@ -28648,14 +28648,14 @@
|
|
|
28648
28648
|
"name": "declarativeDefinition",
|
|
28649
28649
|
"declaration": {
|
|
28650
28650
|
"name": "declarativeDefinition",
|
|
28651
|
-
"module": "src/
|
|
28651
|
+
"module": "src/button/button.definition-async.ts"
|
|
28652
28652
|
}
|
|
28653
28653
|
}
|
|
28654
28654
|
]
|
|
28655
28655
|
},
|
|
28656
28656
|
{
|
|
28657
28657
|
"kind": "javascript-module",
|
|
28658
|
-
"path": "src/
|
|
28658
|
+
"path": "src/button/define-async.ts",
|
|
28659
28659
|
"declarations": [],
|
|
28660
28660
|
"exports": []
|
|
28661
28661
|
},
|
|
@@ -162,7 +162,7 @@ export const styles = css `
|
|
|
162
162
|
* TODO: Remove '(text-size-adjust: auto)' after this bug is fixed:
|
|
163
163
|
* https://bugs.webkit.org/show_bug.cgi?id=298646
|
|
164
164
|
* Also remove the same trick from tab.styles.ts.
|
|
165
|
-
* Using '@supports (text-size-adjust: auto)' here to exclude Safari 26 from
|
|
165
|
+
* Using '@supports (text-size-adjust: auto)' here to exclude Safari 26.0 from
|
|
166
166
|
* using CSS Anchor Positioning here because it crashes.
|
|
167
167
|
*/
|
|
168
168
|
@supports (anchor-name: --a) and (text-size-adjust: auto) {
|
|
@@ -174,7 +174,8 @@ export const styles = css `
|
|
|
174
174
|
background-color: ${colorCompoundBrandStroke};
|
|
175
175
|
content: '';
|
|
176
176
|
inline-size: 100%;
|
|
177
|
-
inset: auto
|
|
177
|
+
inset-block: auto anchor(end);
|
|
178
|
+
inset-inline: anchor(center) auto;
|
|
178
179
|
position: fixed;
|
|
179
180
|
position-anchor: --tab;
|
|
180
181
|
transform: translateX(-50%);
|
|
@@ -189,8 +190,13 @@ export const styles = css `
|
|
|
189
190
|
height: ${strokeWidthThicker};
|
|
190
191
|
}
|
|
191
192
|
|
|
193
|
+
:host(:dir(rtl))::after {
|
|
194
|
+
transform: translateX(50%);
|
|
195
|
+
}
|
|
196
|
+
|
|
192
197
|
:host([orientation='vertical'])::after {
|
|
193
|
-
inset: anchor(center)
|
|
198
|
+
inset-block: anchor(center) auto;
|
|
199
|
+
inset-inline: anchor(start) auto;
|
|
194
200
|
transform: translateY(-50%);
|
|
195
201
|
transition-property: inset-block, height;
|
|
196
202
|
|
|
@@ -199,10 +205,6 @@ export const styles = css `
|
|
|
199
205
|
height: calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2);
|
|
200
206
|
}
|
|
201
207
|
|
|
202
|
-
:host(:dir(rtl)[orientation='vertical'])::after {
|
|
203
|
-
inset: anchor(center) anchor(start) auto 0;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
208
|
:host([disabled])::after {
|
|
207
209
|
background-color: ${colorNeutralForegroundDisabled};
|
|
208
210
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tablist.styles.js","sourceRoot":"","sources":["../../../src/tablist/tablist.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,kCAAkC,EAClC,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,MAAM,CAAC;;;0BAGO,uBAAuB;yBACxB,kBAAkB;;;;aAI9B,uBAAuB;;;;;;yBAMX,qBAAqB;0BACpB,uBAAuB;;;;yBAIxB,gBAAgB;0BACf,uBAAuB;;;;yBAIxB,gBAAgB;gCACT,gBAAgB;;;;;yBAKvB,kBAAkB;gCACX,qBAAqB;;;;yBAI5B,gBAAgB;gCACT,qBAAqB;;;;;;;;;;;;;cAavC,kBAAkB;;;;;aAKnB,kBAAkB;;;;;;;cAOjB,kBAAkB;qBACX,oBAAoB;;;;;;;;;;;;;;wBAcjB,8BAA8B;;;;cAIxC,kBAAkB;;;;;;;;aAQnB,kBAAkB;;;;;;iBAMd,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;;;;;;;;;;;;;;;;;aAoBvB,8BAA8B;;;;;;aAM9B,8BAA8B;;;;wBAInB,8BAA8B;;;;wBAI9B,8BAA8B;;;;;;;;wBAQ9B,0BAA0B;aACrC,4BAA4B;YAC7B,kCAAkC;;;;wBAItB,4BAA4B;YACxC,4BAA4B;aAC3B,uBAAuB;;;;;;;;;;;;;;;;0BAgBV,wBAAwB
|
|
1
|
+
{"version":3,"file":"tablist.styles.js","sourceRoot":"","sources":["../../../src/tablist/tablist.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,kCAAkC,EAClC,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,MAAM,CAAC;;;0BAGO,uBAAuB;yBACxB,kBAAkB;;;;aAI9B,uBAAuB;;;;;;yBAMX,qBAAqB;0BACpB,uBAAuB;;;;yBAIxB,gBAAgB;0BACf,uBAAuB;;;;yBAIxB,gBAAgB;gCACT,gBAAgB;;;;;yBAKvB,kBAAkB;gCACX,qBAAqB;;;;yBAI5B,gBAAgB;gCACT,qBAAqB;;;;;;;;;;;;;cAavC,kBAAkB;;;;;aAKnB,kBAAkB;;;;;;;cAOjB,kBAAkB;qBACX,oBAAoB;;;;;;;;;;;;;;wBAcjB,8BAA8B;;;;cAIxC,kBAAkB;;;;;;;;aAQnB,kBAAkB;;;;;;iBAMd,eAAe;mBACb,iBAAiB;;;;iBAInB,eAAe;mBACb,iBAAiB;;;;;;;;;;;;;;;;;;;;aAoBvB,8BAA8B;;;;;;aAM9B,8BAA8B;;;;wBAInB,8BAA8B;;;;wBAI9B,8BAA8B;;;;;;;;wBAQ9B,0BAA0B;aACrC,4BAA4B;YAC7B,kCAAkC;;;;wBAItB,4BAA4B;YACxC,4BAA4B;aAC3B,uBAAuB;;;;;;;;;;;;;;;;0BAgBV,wBAAwB;;;;;;;;;6BASrB,YAAY;oCACL,kBAAkB;;;;uBAI/B,oBAAoB;;gBAE3B,kBAAkB;;;;;;;;;;;;;;eAcnB,kBAAkB;;;;;0BAKP,8BAA8B;;;CAGvD,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { html, ref } from '@microsoft/fast-element';
|
|
2
2
|
export const template = html `
|
|
3
3
|
<template
|
|
4
|
-
tabindex="0"
|
|
5
4
|
focusgroup="menu inline block nowrap nomemory"
|
|
6
5
|
@click="${(x, c) => x.clickHandler(c.event)}"
|
|
7
6
|
@keydown="${(x, c) => x.keydownHandler(c.event)}"
|
|
8
7
|
@change="${(x, c) => x.changeHandler(c.event)}"
|
|
9
|
-
@toggle="${
|
|
8
|
+
@toggle="${x => x.itemToggleHandler()}"
|
|
10
9
|
>
|
|
11
10
|
<slot ${ref('defaultSlot')} @slotchange="${x => x.handleDefaultSlotChange()}"></slot>
|
|
12
11
|
</template>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.template.js","sourceRoot":"","sources":["../../../src/tree/tree.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAGpD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAM
|
|
1
|
+
{"version":3,"file":"tree.template.js","sourceRoot":"","sources":["../../../src/tree/tree.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAGpD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAM;;;cAGpB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC;gBAC/B,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,KAAsB,CAAC;eACrD,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC;eAClC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAiB,EAAE;;YAE7B,GAAG,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,uBAAuB,EAAE;;CAE9E,CAAC"}
|
|
@@ -12709,7 +12709,7 @@ const TablistSize = {
|
|
|
12709
12709
|
const TablistOrientation = Orientation;
|
|
12710
12710
|
const tagName$7 = `${FluentDesignSystem.prefix}-tablist`;
|
|
12711
12711
|
|
|
12712
|
-
const styles$7 = css`${display("flex")} :host{--tabPaddingInline:${spacingHorizontalMNudge};--tabPaddingBlock:${spacingHorizontalM};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge}}:host([size='large']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge}}:host([orientation='vertical']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalS};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${spacingVerticalXXS};--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalMNudge}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='large']) ::slotted([slot='tab']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${colorCompoundBrandStroke};content:'';inline-size:100%;inset:auto
|
|
12712
|
+
const styles$7 = css`${display("flex")} :host{--tabPaddingInline:${spacingHorizontalMNudge};--tabPaddingBlock:${spacingHorizontalM};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge}}:host([size='large']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge}}:host([orientation='vertical']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalS};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${spacingVerticalXXS};--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalMNudge}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='large']) ::slotted([slot='tab']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${colorCompoundBrandStroke};content:'';inline-size:100%;inset-block:auto anchor(end);inset-inline:anchor(center) auto;position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax};z-index:3;border-radius:${borderRadiusCircular};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${strokeWidthThicker}}:host(:dir(rtl))::after{transform:translateX(50%)}:host([orientation='vertical'])::after{inset-block:anchor(center) auto;inset-inline:anchor(start) auto;transform:translateY(-50%);transition-property:inset-block,height;width:${strokeWidthThicker};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host([disabled])::after{background-color:${colorNeutralForegroundDisabled}}}`;
|
|
12713
12713
|
|
|
12714
12714
|
const template$7 = html`<template role=tablist focusgroup="tablist inline block" @focusin=${(x, c) => x.handleFocusIn(c.event)}><slot name=tab ${slotted("slottedTabs")}></slot></template>`;
|
|
12715
12715
|
|
|
@@ -14381,7 +14381,7 @@ const tagName$1 = `${FluentDesignSystem.prefix}-tree`;
|
|
|
14381
14381
|
|
|
14382
14382
|
const styles$1 = css`${display("block")} :host{outline:none}`;
|
|
14383
14383
|
|
|
14384
|
-
const template$1 = html`<template
|
|
14384
|
+
const template$1 = html`<template focusgroup="menu inline block nowrap nomemory" @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @toggle=${(x) => x.itemToggleHandler()}><slot ${ref("defaultSlot")} @slotchange=${(x) => x.handleDefaultSlotChange()}></slot></template>`;
|
|
14385
14385
|
|
|
14386
14386
|
const definition$1 = {
|
|
14387
14387
|
name: tagName$1,
|
|
@@ -15,7 +15,7 @@ const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
|
|
|
15
15
|
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
|
|
16
16
|
fill="none" stroke="black" stroke-width="2"
|
|
17
17
|
>${Th}</svg>
|
|
18
|
-
`;function dk(){return b`<div ${A("display")} class=display aria-hidden=true></div><slot name=icon ${A("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${o=>o.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${o=>o.formattedCount}</span></slot>`}const zh=dk(),_h=p`${x("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${Ka};--_icon-color-empty:${$i};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${gn(lk)});--_mask-image-outlined:url(${gn(ck)});--_mask-position-x:left;align-items:center;color:${I};font-family:${v};font-size:${E};line-height:${R};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${z};line-height:${D}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${I};--_icon-color-empty:${oo}}:host([color='brand']){--_icon-color-value:${Fo};--_icon-color-empty:${si}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${H});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${H}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Q};font-weight:${M}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${H}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ve}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Q}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${H}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ve}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,Oh={name:nk,registry:h.registry,styles:_h,template:zh};var hk=Object.defineProperty,uk=Object.getOwnPropertyDescriptor,rs=(o,e,t,r)=>{for(var n=r>1?void 0:r?uk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&hk(e,t,n),n};class fr extends Yt{constructor(){super(...arguments),this.compact=!1}}rs([a],fr.prototype,"color",2),rs([a],fr.prototype,"size",2),rs([a({mode:"boolean"})],fr.prototype,"compact",2),fr.define(Oh);const pk={small:"small",medium:"medium"},Fh=ke,Eh={singleValue:"single-value"},gk=`${h.prefix}-slider`,Dh=p`${x("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${ut};--track-color:${Me};--slider-direction:90deg;--border-radius:${S};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Ft}}:host(:active){--rail-color:${Et}}:host(:disabled){--rail-color:${T};--track-color:${rt}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Ne}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${se};outline:1px solid ${Ho}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${C} calc(var(--step-rate) - 1px),${C} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${de};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${C} inset;border:calc(var(--thumb-size) * 0.05) solid ${He};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;function fk(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${A("track")} part=track-container class=track style=${e=>e.position}></div><div ${A("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${ye(o.thumb)}</slot></div></template>`}const Lh=fk({thumb:'<div class="thumb"></div>'}),Mh={name:gk,registry:h.registry,styles:Dh,template:Lh};function Hh(o,e,t){return Math.min(Math.max(t,o),e)}const ns={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function Vh(o,e,t,r){let n=Hh(0,1,(o-e)/(t-e));return r===lt.rtl&&(n=1-n),n}var bk=Object.defineProperty,mk=Object.getOwnPropertyDescriptor,re=(o,e,t,r)=>{for(var n=r>1?void 0:r?mk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&bk(e,t,n),n};class q extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=lt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=Eh.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,n=this.orientation===ke.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(n)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const n=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const i=this.orientation===ke.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-n/2;this.value=`${this.calculateNewValue(i)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Fh.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=Hh(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??ke.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=Ki(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")}),at(this)}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==lt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==lt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==lt.rtl&&this.orientation!==ke.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==lt.rtl&&this.orientation!==ke.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=Vh(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===ke.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=Vh(e,this.orientation===ke.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===ke.vertical?this.trackHeight:this.trackWidth,this.orientation===ke.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),n=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=n>=Number(this.stepAsNumber)/2?t-n+Number(this.stepAsNumber):t-n,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){N.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}q.formAssociated=!0,re([a],q.prototype,"size",2),re([a({attribute:"value",mode:"fromView"})],q.prototype,"initialValue",2),re([g],q.prototype,"direction",2),re([g],q.prototype,"isDragging",2),re([g],q.prototype,"position",2),re([g],q.prototype,"trackWidth",2),re([g],q.prototype,"trackMinWidth",2),re([g],q.prototype,"trackHeight",2),re([g],q.prototype,"trackLeft",2),re([g],q.prototype,"trackMinHeight",2),re([g],q.prototype,"valueTextFormatter",2),re([a({mode:"boolean"})],q.prototype,"disabled",2),re([a({converter:ns})],q.prototype,"min",2),re([a({converter:ns})],q.prototype,"max",2),re([a({converter:ns})],q.prototype,"step",2),re([a],q.prototype,"orientation",2),re([a],q.prototype,"mode",2),q.define(Mh);const vk={primary:"primary",inverted:"inverted"},yk={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"},$k=`${h.prefix}-spinner`,Rh=p`${x("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Be};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ue};--size:20px}:host([size='extra-small']){--indicatorSize:${ue};--size:24px}:host([size='small']){--indicatorSize:${ue};--size:28px}:host([size='large']){--indicatorSize:${Be};--size:36px}:host([size='extra-large']){--indicatorSize:${Be};--size:40px}:host([size='huge']){--indicatorSize:${jr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Qo}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${li};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${ai};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Oa}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,jh=b`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`,qh={name:$k,registry:h.registry,styles:Rh,template:jh};class Wh extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var kk=Object.defineProperty,xk=Object.getOwnPropertyDescriptor,Gh=(o,e,t,r)=>{for(var n=r>1?void 0:r?xk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&kk(e,t,n),n};class fn extends Wh{}Gh([a],fn.prototype,"size",2),Gh([a],fn.prototype,"appearance",2),fn.define(qh);const wk={above:"above",after:"after",before:"before"},Sk=`${h.prefix}-switch`,Xh=p`${x("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${H};width:40px;height:20px;background-color:${ce};border:1px solid ${Me};border-radius:${de}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${pt}}:host(:active){border-color:${gt}}:host(:disabled),:host([readonly]){border:1px solid ${be};background-color:none;pointer:default}:host(${$}){background:${ut};border-color:${ut}}:host(${$}:hover){background:${Ft};border-color:${Ft}}:host(${$}:active){background:${Et};border-color:${Et}}:host(${$}:disabled){background:${rt};border-color:${be}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${Jo};transition-timing-function:${Qo};transition-property:margin-inline-start}:host(${$}) .checked-indicator{background-color:${ht};margin-inline-start:calc(100% - 14px)}:host(${$}:hover) .checked-indicator{background:${wa}}:host(${$}:active) .checked-indicator{background:${Sa}}:host(:hover) .checked-indicator{background-color:${ua}}:host(:active) .checked-indicator{background-color:${pa}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${T}}:host(${$}:disabled) .checked-indicator{background:${T}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${U};outline:${ue} solid ${U};outline-offset:1px;box-shadow:${Go},0 0 0 2px ${se}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${$}),:host(${$}:active),:host(${$}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${$}) .checked-indicator,:host(${$}:hover) .checked-indicator,:host(${$}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${$}:disabled) .checked-indicator{background-color:GrayText}}`;function Ck(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=switch>${ye(o.switch)}</slot></template>`}const Uh=Ck({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Kh={name:Sk,registry:h.registry,styles:Xh,template:Uh};class Yh extends _e{constructor(){super(),this.elementInternals.role="switch"}}Yh.define(Kh);function bn(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Bk=`${h.prefix}-tab`,Jh=p`${x("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${D};font-family:${v};font-size:${z};color:${Ae};fill:currentcolor;grid-row:1;padding:${ee} ${Ke};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${I};font-weight:${M}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${D};font-weight:${M}}:host([aria-selected='true'])::after{background-color:${nt};border-radius:${de};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${ft};border-radius:${de};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${ft}}}:host([aria-selected='true'][disabled])::after{background-color:${T}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${T};color:${T};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ne};box-shadow:0 0 0 3px ${se};outline:1px solid ${Ho}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;function Pk(o={}){return b`<template slot=tab role=tab>${Ve(o)} <span class=tab-content><slot></slot></span>${st(o)}</template>`}const Zh=Pk({}),Qh={name:Bk,registry:h.registry,styles:Jh,template:Zh};var Ik=Object.defineProperty,Ak=Object.getOwnPropertyDescriptor,Nk=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ak(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ik(e,t,n),n};class mn extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),at(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}Nk([a({mode:"boolean"})],mn.prototype,"disabled",2),yt(mn,it),mn.define(Qh);const eu={subtle:"subtle",transparent:"transparent"},Tk={small:"small",medium:"medium",large:"large"},$o=ke,zk=`${h.prefix}-tablist`,tu=p`${x("flex")} :host{--tabPaddingInline:${Ke};--tabPaddingBlock:${ee};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ae};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${ao};--tabPaddingInline:${ve}}:host([size='large']){--tabPaddingBlock:${Wr};--tabPaddingInline:${Ke}}:host([orientation='vertical']){--tabPaddingBlock:${te};--tabIndicatorInsetBlock:${te};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${Uo};--tabIndicatorInsetBlock:${ao}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${te};--tabIndicatorInsetBlock:${Ko}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${Be};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Be};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Be};border-radius:${de};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${T}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Be};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Be};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${z};line-height:${D}}:host([size='large']) ::slotted([slot='tab']){font-size:${he};line-height:${me}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${T}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${T}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${Do};color:${Kn};fill:${ka}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${ro};fill:${ro};color:${I}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${nt};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${lc};transition-timing-function:${Oi};z-index:3;border-radius:${de};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Be}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${Be};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${T}}}`,ou=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${K("slottedTabs")}></slot></template>`,ru={name:zk,registry:h.registry,styles:tu,template:ou};var _k=Object.defineProperty,Ok=Object.getOwnPropertyDescriptor,br=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ok(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&_k(e,t,n),n};class Jt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=$o.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??$o.horizontal}disabledChanged(e,t){this.elementInternals&&y(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??$o.horizontal,Mt(this.elementInternals,e,t,$o)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>bn(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.tabs.some(s=>!!s.querySelector("[slot='start']")),n=this.getRootNode();let i="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Ze("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!i&&!s.disabled&&(i=s.id);const l=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",l),s.setAttribute("aria-selected",l.toString()),s.toggleAttribute("data-hasIndent",r&&this.orientation===$o.vertical),e){const u=s.getAttribute("aria-controls")??"",d=n.getElementById(u);u&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==s.id,this.tabPanelMap.set(s,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):i&&(this.activeid=i))}handleFocusIn(e){const t=e.target;!bn(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),n=e?r.getElementById(e):null,i=r.getElementById(t);if(!bn(i)||!this.contains(i))return;if(n){n.setAttribute("aria-selected","false");const l=this.tabPanelMap.get(n);l&&(l.hidden=!0)}i.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(i);s&&(s.hidden=!1),this.activetab=i,this.change()}connectedCallback(){super.connectedCallback(),er(this,()=>{this.setTabs()},{shallow:!0})}}br([a({mode:"boolean"})],Jt.prototype,"disabled",2),br([a],Jt.prototype,"orientation",2),br([a],Jt.prototype,"activeid",2),br([g],Jt.prototype,"slottedTabs",2),br([g],Jt.prototype,"tabs",2);var Fk=Object.defineProperty,Ek=Object.getOwnPropertyDescriptor,nu=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ek(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Fk(e,t,n),n};class vn extends Jt{constructor(){super(...arguments),this.appearance=eu.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new un(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new hn(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}nu([a],vn.prototype,"appearance",2),nu([a],vn.prototype,"size",2),vn.define(ru);const Dk={small:"small",medium:"medium",large:"large"},yn={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Lk=[yn.filledLighter,yn.filledDarker],Mk={on:"on",off:"off"},mr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},Hk=`${h.prefix}-textarea`,iu=p`${x("inline-block")} :host{--font-size:${z};--line-height:${D};--padding-inline:${Ke};--padding-block:${ao};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${B};--control-padding-inline:${H};--color:${I};--background-color:${C};--border-color:${He};--border-block-end-color:${Me};--placeholder-color:${Or};--focus-indicator-color:${nt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${_};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${ft};--border-block-end-color:${pt}}:host(:active){--border-color:${no};--border-block-end-color:${gt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${E};--line-height:${R};--min-block-size:40px;--padding-block:${Lt};--padding-inline:${ve};--control-padding-inline:${H}}:host([size='large']){--font-size:${he};--line-height:${me};--min-block-size:64px;--padding-block:${te};--padding-inline:${ee};--control-padding-inline:${ve}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${to};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${Vr}}:host(${vy}){--border-color:${Lr};--border-block-end-color:${Lr}}:host(:disabled){--color:${T};--background-color:${ce};--border-color:${be};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${T};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${S};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${mt};transition-duration:${Gr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Jo};transition-delay:${vt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Lt};padding-inline-end:${Q}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${ht};background-color:${Zn}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;function Vk(){return b`<template><label ${A("labelEl")} for=control part=label><slot name=label ${K("labelSlottedNodes")}></slot></label><div class=root part=root ${A("rootEl")}><textarea ${A("controlEl")} id=control class=control part=control ?required=${o=>o.required} ?disabled=${o=>o.disabled} ?readonly=${o=>o.readOnly} ?spellcheck=${o=>o.spellcheck} autocomplete=${o=>o.autocomplete} maxlength=${o=>o.maxLength} minlength=${o=>o.minLength} placeholder=${o=>o.placeholder} @change=${o=>o.handleControlChange()} @select=${o=>o.handleControlSelect()} @input=${o=>o.handleControlInput()}></textarea></div><div hidden><slot ${K("defaultSlottedNodes")}></slot></div></template>`}const su=Vk(),au={name:Hk,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:iu,template:su},Rk=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var jk=Object.defineProperty,qk=Object.getOwnPropertyDescriptor,ne=(o,e,t,r)=>{for(var n=r>1?void 0:r?qk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&jk(e,t,n),n};class W extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=mr.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){N.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(Rk),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){Mt(this.elementInternals,e,t,mr,"resize-"),y(this.elementInternals,"resize",Ac(mr,t)&&t!==mr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl(),at(this)})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals?.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.elementInternals&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl?.validity,t??this.controlEl?.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes?.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}W.formAssociated=!0,ne([g],W.prototype,"controlEl",2),ne([g],W.prototype,"defaultSlottedNodes",2),ne([g],W.prototype,"labelSlottedNodes",2),ne([a],W.prototype,"autocomplete",2),ne([a({attribute:"auto-resize",mode:"boolean"})],W.prototype,"autoResize",2),ne([a({attribute:"dirname"})],W.prototype,"dirName",2),ne([a({mode:"boolean"})],W.prototype,"disabled",2),ne([a({attribute:"display-shadow",mode:"boolean"})],W.prototype,"displayShadow",2),ne([a({attribute:"form"})],W.prototype,"initialForm",2),ne([a({attribute:"maxlength",converter:ie})],W.prototype,"maxLength",2),ne([a({attribute:"minlength",converter:ie})],W.prototype,"minLength",2),ne([a],W.prototype,"name",2),ne([a],W.prototype,"placeholder",2),ne([a({attribute:"readonly",mode:"boolean"})],W.prototype,"readOnly",2),ne([a({mode:"boolean"})],W.prototype,"required",2),ne([a({mode:"fromView"})],W.prototype,"resize",2),ne([a({mode:"boolean"})],W.prototype,"spellcheck",2);var Wk=Object.defineProperty,Gk=Object.getOwnPropertyDescriptor,is=(o,e,t,r)=>{for(var n=r>1?void 0:r?Gk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Wk(e,t,n),n};class vr extends W{constructor(){super(...arguments),this.appearance=yn.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}is([a({mode:"fromView"})],vr.prototype,"appearance",2),is([a({mode:"boolean"})],vr.prototype,"block",2),is([a],vr.prototype,"size",2),vr.define(au);const Xk={small:"small",medium:"medium",large:"large"},Uk={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},lu={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Kk=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],Yk=`${h.prefix}-text-input`,cu=p`${x("block")} :host{font-family:${v};font-size:${z};font-weight:${_};line-height:${D};max-width:400px}.label{display:flex;color:${I};padding-bottom:${Lt};flex-shrink:0;padding-inline-end:${Q}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${C};border:${B} solid ${He};border-bottom-color:${Me};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${H};padding:0 ${Ke};position:relative;width:100%}:has(.control:user-invalid){border-color:${Lr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${nt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Gr};transition-delay:${mt}}.control{width:100%;height:100%;box-sizing:border-box;color:${I};border-radius:${S};background:${ce};font-family:${v};font-weight:${_};font-size:${z};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Or}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${Dt}}:host ::slotted([slot='start']){padding-right:${H}}:host ::slotted([slot='end']){padding-left:${H};gap:${Q}}:host(:hover) .root{border-color:${ft};border-bottom-color:${pt}}:host(:active) .root{border-color:${no}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Jo};transition-delay:${vt}}:host(:focus-within:active) .root:after{border-bottom-color:${ci}}:host([appearance='outline']:focus-within) .root{border:${B} solid ${He}}:host(:focus-within) .control{color:${I}}:host([disabled]) .root{background:${ce};border:${B} solid ${be}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${T}}::selection{color:${ht};background-color:${Zn}}:host([control-size='small']) .control{font-size:${E};font-weight:${_};line-height:${R}}:host([control-size='small']) .root{height:24px;gap:${H};padding:0 ${ve}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${he}}:host([control-size='large']) .control{font-size:${he};font-weight:${_};line-height:${me}}:host([control-size='large']) .root{height:40px;gap:${Te};padding:0 ${ee}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${Ro}}:host([appearance='underline']) .root{background:${ce};border:0;border-radius:0;border-bottom:${B} solid ${Me}}:host([appearance='underline']:hover) .root{border-bottom-color:${pt}}:host([appearance='underline']:active) .root{border-bottom-color:${gt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${gt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${be}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${B} solid ${U};box-shadow:${Vr}}:host([appearance='filled-lighter']) .root{background:${C}}:host([appearance='filled-darker']) .root{background:${to}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${Dr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${Dr};background:${to}}`;function Jk(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${A("controlLabel")}><slot ${K("defaultSlottedNodes")}></slot></label><div class=root part=root>${Ve(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} autocomplete=${e=>e.autocomplete} ?disabled=${e=>e.disabled} list=${e=>e.list} maxlength=${e=>e.maxlength} minlength=${e=>e.minlength} ?multiple=${e=>e.multiple} name=${e=>e.name} pattern=${e=>e.pattern} placeholder=${e=>e.placeholder} ?readonly=${e=>e.readOnly} ?required=${e=>e.required} size=${e=>e.size} spellcheck=${e=>e.spellcheck} type=${e=>e.type} value=${e=>e.value} ${A("control")}> ${st(o)}</div></template>`}const du=Jk(),hu={name:Yk,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:cu,template:du};var Zk=Object.defineProperty,Qk=Object.getOwnPropertyDescriptor,V=(o,e,t,r)=>{for(var n=r>1?void 0:r?Qk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Zk(e,t,n),n};class O extends k{constructor(){super(...arguments),this.type=lu.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){N.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){N.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.elementInternals&&this.control&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity(),at(this)}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(n=>n.getAttribute("type")==="submit");if(t){t.click();return}e.filter(n=>Kk.includes(n.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setValidity(e,t,r){if(this.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}O.formAssociated=!0,V([a],O.prototype,"autocomplete",2),V([a({attribute:"current-value"})],O.prototype,"currentValue",2),V([g],O.prototype,"defaultSlottedNodes",2),V([a],O.prototype,"dirname",2),V([a({mode:"boolean"})],O.prototype,"disabled",2),V([a({attribute:"form"})],O.prototype,"formAttribute",2),V([a({attribute:"value",mode:"fromView"})],O.prototype,"initialValue",2),V([a],O.prototype,"list",2),V([a({converter:ie})],O.prototype,"maxlength",2),V([a({converter:ie})],O.prototype,"minlength",2),V([a({mode:"boolean"})],O.prototype,"multiple",2),V([a],O.prototype,"name",2),V([a],O.prototype,"pattern",2),V([a],O.prototype,"placeholder",2),V([a({attribute:"readonly",mode:"boolean"})],O.prototype,"readOnly",2),V([a({mode:"boolean"})],O.prototype,"required",2),V([a({converter:ie})],O.prototype,"size",2),V([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],O.prototype,"spellcheck",2),V([a],O.prototype,"type",2),V([g],O.prototype,"control",2),V([g],O.prototype,"controlLabel",2);var ex=Object.defineProperty,tx=Object.getOwnPropertyDescriptor,uu=(o,e,t,r)=>{for(var n=r>1?void 0:r?tx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ex(e,t,n),n};class yr extends O{}uu([a],yr.prototype,"appearance",2),uu([a({attribute:"control-size"})],yr.prototype,"controlSize",2),yt(yr,it),yr.define(hu);const ox={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},rx={base:"base",numeric:"numeric",monospace:"monospace"},nx={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},ix={start:"start",end:"end",center:"center",justify:"justify"},sx=`${h.prefix}-text`,pu=p`${x("inline")} :host{font-family:${v};font-size:${z};line-height:${D};font-weight:${_};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${so};line-height:${qo}}:host([size='200']){font-size:${E};line-height:${R}}:host([size='400']){font-size:${he};line-height:${me}}:host([size='500']){font-size:${Dt};line-height:${Wo}}:host([size='600']){font-size:${Ro};line-height:${Pi}}:host([size='700']){font-size:${wi};line-height:${Ii}}:host([size='800']){font-size:${Si};line-height:${Ai}}:host([size='900']){font-size:${Ci};line-height:${Ni}}:host([size='1000']){font-size:${Bi};line-height:${Ti}}:host([font='monospace']){font-family:${Ql}}:host([font='numeric']){font-family:${ec}}:host([weight='medium']){font-weight:${tc}}:host([weight='semibold']){font-weight:${M}}:host([weight='bold']){font-weight:${jo}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,gu=b`<slot></slot>`,fu={name:sx,registry:h.registry,styles:pu,template:gu};var ax=Object.defineProperty,lx=Object.getOwnPropertyDescriptor,tt=(o,e,t,r)=>{for(var n=r>1?void 0:r?lx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ax(e,t,n),n};class Ee extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}tt([a({mode:"boolean"})],Ee.prototype,"nowrap",2),tt([a({mode:"boolean"})],Ee.prototype,"truncate",2),tt([a({mode:"boolean"})],Ee.prototype,"italic",2),tt([a({mode:"boolean"})],Ee.prototype,"underline",2),tt([a({mode:"boolean"})],Ee.prototype,"strikethrough",2),tt([a({mode:"boolean"})],Ee.prototype,"block",2),tt([a],Ee.prototype,"size",2),tt([a],Ee.prototype,"font",2),tt([a],Ee.prototype,"weight",2),tt([a],Ee.prototype,"align",2),Ee.define(fu);const cx=tr,dx=or,hx=rr,ux=`${h.prefix}-toggle-button`,bu=p`${ho} :host(${L}){border-color:${He};background-color:${Jn};color:${I};border-width:${B}}:host(${L}:hover){border-color:${ft};background-color:${Eo}}:host(${L}:active){border-color:${no};background-color:${Fr}}:host(${L}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${L}[appearance='primary']){background-color:${za};color:${Ue}}:host(${L}[appearance='primary']:hover){background-color:${ri}}:host(${L}[appearance='primary']:active){background-color:${ni}}:host(${L}[appearance='subtle']){border-color:transparent;background-color:${ei};color:${zo}}:host(${L}[appearance='subtle']:hover){background-color:${Do};color:${_t}}:host(${L}[appearance='subtle']:active){background-color:${ro};color:${Ot}}:host(${L}[appearance='outline']),:host(${L}[appearance='transparent']){background-color:${ti}}:host(${L}[appearance='outline']:hover),:host(${L}[appearance='transparent']:hover){background-color:${Lo}}:host(${L}[appearance='outline']:active),:host(${L}[appearance='transparent']:active){background-color:${Mo}}:host(${L}[appearance='transparent']){border-color:transparent;color:${ha}}:host(${L}[appearance='transparent']:hover){color:${_o}}:host(${L}[appearance='transparent']:active){color:${Oo}}@media (forced-colors:active){:host(${L}),:host( ${L}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${L}[appearance='primary']){color:SelectedItemText}}`,mu=Hi(),vu={name:ux,registry:h.registry,styles:bu,template:mu};var px=Object.defineProperty,gx=Object.getOwnPropertyDescriptor,yu=(o,e,t,r)=>{for(var n=r>1?void 0:r?gx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&px(e,t,n),n};class $n extends Ye{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}yu([a({mode:"boolean"})],$n.prototype,"pressed",2),yu([a({mode:"boolean"})],$n.prototype,"mixed",2),$n.define(vu);const Ie={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},fx=`${h.prefix}-tooltip`,$u=p`${x("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Lt};--inline-offset:${Q};background:${C};border-radius:${S};border:1px solid ${U};box-sizing:border-box;color:${I};display:inline-flex;filter:drop-shadow(0 0 2px ${Ea}) drop-shadow(0 4px 8px ${Da});font-family:${v};font-size:${E};inset:unset;line-height:${R};margin:unset;max-width:240px;overflow:visible;padding:4px ${Ke} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Ie["above-start"]}}:host([positioning='above']){--position-area:${Ie.above}}:host([positioning='above-end']){--position-area:${Ie["above-end"]}}:host([positioning='below-start']){--position-area:${Ie["below-start"]}}:host([positioning='below']){--position-area:${Ie.below}}:host([positioning='below-end']){--position-area:${Ie["below-end"]}}:host([positioning='before-top']){--position-area:${Ie["before-top"]}}:host([positioning='before']){--position-area:${Ie.before}}:host([positioning='before-bottom']){--position-area:${Ie["before-bottom"]}}:host([positioning='after-top']){--position-area:${Ie["after-top"]}}:host([positioning='after']){--position-area:${Ie.after}}:host([positioning='after-bottom']){--position-area:${Ie["after-bottom"]}}`,ku=b`<template popover aria-hidden=true><slot></slot></template>`,xu={name:fx,registry:h.registry,styles:$u,template:ku};var bx=Object.defineProperty,mx=Object.getOwnPropertyDescriptor,kn=(o,e,t,r)=>{for(var n=r>1?void 0:r?mx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&bx(e,t,n),n};class ko extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ze("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),Zr){mv||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}N.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(r=>r!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}async setFallbackStyles(){if(Zr){this.anchorPositioningReady=!0;return}if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const n={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},i=n[t]??n.above,s={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},l=s[r]??s.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
18
|
+
`;function dk(){return b`<div ${A("display")} class=display aria-hidden=true></div><slot name=icon ${A("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${o=>o.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${o=>o.formattedCount}</span></slot>`}const zh=dk(),_h=p`${x("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${Ka};--_icon-color-empty:${$i};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${gn(lk)});--_mask-image-outlined:url(${gn(ck)});--_mask-position-x:left;align-items:center;color:${I};font-family:${v};font-size:${E};line-height:${R};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${z};line-height:${D}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${I};--_icon-color-empty:${oo}}:host([color='brand']){--_icon-color-value:${Fo};--_icon-color-empty:${si}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${H});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${H}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Q};font-weight:${M}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${H}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ve}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Q}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${H}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ve}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,Oh={name:nk,registry:h.registry,styles:_h,template:zh};var hk=Object.defineProperty,uk=Object.getOwnPropertyDescriptor,rs=(o,e,t,r)=>{for(var n=r>1?void 0:r?uk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&hk(e,t,n),n};class fr extends Yt{constructor(){super(...arguments),this.compact=!1}}rs([a],fr.prototype,"color",2),rs([a],fr.prototype,"size",2),rs([a({mode:"boolean"})],fr.prototype,"compact",2),fr.define(Oh);const pk={small:"small",medium:"medium"},Fh=ke,Eh={singleValue:"single-value"},gk=`${h.prefix}-slider`,Dh=p`${x("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${ut};--track-color:${Me};--slider-direction:90deg;--border-radius:${S};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Ft}}:host(:active){--rail-color:${Et}}:host(:disabled){--rail-color:${T};--track-color:${rt}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Ne}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${se};outline:1px solid ${Ho}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${C} calc(var(--step-rate) - 1px),${C} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${de};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${C} inset;border:calc(var(--thumb-size) * 0.05) solid ${He};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;function fk(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${A("track")} part=track-container class=track style=${e=>e.position}></div><div ${A("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${ye(o.thumb)}</slot></div></template>`}const Lh=fk({thumb:'<div class="thumb"></div>'}),Mh={name:gk,registry:h.registry,styles:Dh,template:Lh};function Hh(o,e,t){return Math.min(Math.max(t,o),e)}const ns={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function Vh(o,e,t,r){let n=Hh(0,1,(o-e)/(t-e));return r===lt.rtl&&(n=1-n),n}var bk=Object.defineProperty,mk=Object.getOwnPropertyDescriptor,re=(o,e,t,r)=>{for(var n=r>1?void 0:r?mk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&bk(e,t,n),n};class q extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=lt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=Eh.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,n=this.orientation===ke.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(n)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const n=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const i=this.orientation===ke.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-n/2;this.value=`${this.calculateNewValue(i)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Fh.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=Hh(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??ke.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=Ki(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")}),at(this)}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==lt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==lt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==lt.rtl&&this.orientation!==ke.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==lt.rtl&&this.orientation!==ke.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=Vh(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===ke.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=Vh(e,this.orientation===ke.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===ke.vertical?this.trackHeight:this.trackWidth,this.orientation===ke.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),n=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=n>=Number(this.stepAsNumber)/2?t-n+Number(this.stepAsNumber):t-n,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){N.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}q.formAssociated=!0,re([a],q.prototype,"size",2),re([a({attribute:"value",mode:"fromView"})],q.prototype,"initialValue",2),re([g],q.prototype,"direction",2),re([g],q.prototype,"isDragging",2),re([g],q.prototype,"position",2),re([g],q.prototype,"trackWidth",2),re([g],q.prototype,"trackMinWidth",2),re([g],q.prototype,"trackHeight",2),re([g],q.prototype,"trackLeft",2),re([g],q.prototype,"trackMinHeight",2),re([g],q.prototype,"valueTextFormatter",2),re([a({mode:"boolean"})],q.prototype,"disabled",2),re([a({converter:ns})],q.prototype,"min",2),re([a({converter:ns})],q.prototype,"max",2),re([a({converter:ns})],q.prototype,"step",2),re([a],q.prototype,"orientation",2),re([a],q.prototype,"mode",2),q.define(Mh);const vk={primary:"primary",inverted:"inverted"},yk={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"},$k=`${h.prefix}-spinner`,Rh=p`${x("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Be};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ue};--size:20px}:host([size='extra-small']){--indicatorSize:${ue};--size:24px}:host([size='small']){--indicatorSize:${ue};--size:28px}:host([size='large']){--indicatorSize:${Be};--size:36px}:host([size='extra-large']){--indicatorSize:${Be};--size:40px}:host([size='huge']){--indicatorSize:${jr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Qo}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${li};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${ai};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Oa}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,jh=b`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`,qh={name:$k,registry:h.registry,styles:Rh,template:jh};class Wh extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var kk=Object.defineProperty,xk=Object.getOwnPropertyDescriptor,Gh=(o,e,t,r)=>{for(var n=r>1?void 0:r?xk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&kk(e,t,n),n};class fn extends Wh{}Gh([a],fn.prototype,"size",2),Gh([a],fn.prototype,"appearance",2),fn.define(qh);const wk={above:"above",after:"after",before:"before"},Sk=`${h.prefix}-switch`,Xh=p`${x("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${H};width:40px;height:20px;background-color:${ce};border:1px solid ${Me};border-radius:${de}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${pt}}:host(:active){border-color:${gt}}:host(:disabled),:host([readonly]){border:1px solid ${be};background-color:none;pointer:default}:host(${$}){background:${ut};border-color:${ut}}:host(${$}:hover){background:${Ft};border-color:${Ft}}:host(${$}:active){background:${Et};border-color:${Et}}:host(${$}:disabled){background:${rt};border-color:${be}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${Jo};transition-timing-function:${Qo};transition-property:margin-inline-start}:host(${$}) .checked-indicator{background-color:${ht};margin-inline-start:calc(100% - 14px)}:host(${$}:hover) .checked-indicator{background:${wa}}:host(${$}:active) .checked-indicator{background:${Sa}}:host(:hover) .checked-indicator{background-color:${ua}}:host(:active) .checked-indicator{background-color:${pa}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${T}}:host(${$}:disabled) .checked-indicator{background:${T}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${U};outline:${ue} solid ${U};outline-offset:1px;box-shadow:${Go},0 0 0 2px ${se}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${$}),:host(${$}:active),:host(${$}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${$}) .checked-indicator,:host(${$}:hover) .checked-indicator,:host(${$}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${$}:disabled) .checked-indicator{background-color:GrayText}}`;function Ck(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=switch>${ye(o.switch)}</slot></template>`}const Uh=Ck({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Kh={name:Sk,registry:h.registry,styles:Xh,template:Uh};class Yh extends _e{constructor(){super(),this.elementInternals.role="switch"}}Yh.define(Kh);function bn(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Bk=`${h.prefix}-tab`,Jh=p`${x("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${D};font-family:${v};font-size:${z};color:${Ae};fill:currentcolor;grid-row:1;padding:${ee} ${Ke};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${I};font-weight:${M}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${D};font-weight:${M}}:host([aria-selected='true'])::after{background-color:${nt};border-radius:${de};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${ft};border-radius:${de};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${ft}}}:host([aria-selected='true'][disabled])::after{background-color:${T}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${T};color:${T};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ne};box-shadow:0 0 0 3px ${se};outline:1px solid ${Ho}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;function Pk(o={}){return b`<template slot=tab role=tab>${Ve(o)} <span class=tab-content><slot></slot></span>${st(o)}</template>`}const Zh=Pk({}),Qh={name:Bk,registry:h.registry,styles:Jh,template:Zh};var Ik=Object.defineProperty,Ak=Object.getOwnPropertyDescriptor,Nk=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ak(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ik(e,t,n),n};class mn extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),at(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}Nk([a({mode:"boolean"})],mn.prototype,"disabled",2),yt(mn,it),mn.define(Qh);const eu={subtle:"subtle",transparent:"transparent"},Tk={small:"small",medium:"medium",large:"large"},$o=ke,zk=`${h.prefix}-tablist`,tu=p`${x("flex")} :host{--tabPaddingInline:${Ke};--tabPaddingBlock:${ee};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ae};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${ao};--tabPaddingInline:${ve}}:host([size='large']){--tabPaddingBlock:${Wr};--tabPaddingInline:${Ke}}:host([orientation='vertical']){--tabPaddingBlock:${te};--tabIndicatorInsetBlock:${te};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${Uo};--tabIndicatorInsetBlock:${ao}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${te};--tabIndicatorInsetBlock:${Ko}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${Be};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Be};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Be};border-radius:${de};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${T}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Be};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Be};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${z};line-height:${D}}:host([size='large']) ::slotted([slot='tab']){font-size:${he};line-height:${me}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${T}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${T}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${Do};color:${Kn};fill:${ka}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${ro};fill:${ro};color:${I}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${nt};content:'';inline-size:100%;inset-block:auto anchor(end);inset-inline:anchor(center) auto;position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${lc};transition-timing-function:${Oi};z-index:3;border-radius:${de};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Be}}:host(:dir(rtl))::after{transform:translateX(50%)}:host([orientation='vertical'])::after{inset-block:anchor(center) auto;inset-inline:anchor(start) auto;transform:translateY(-50%);transition-property:inset-block,height;width:${Be};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host([disabled])::after{background-color:${T}}}`,ou=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${K("slottedTabs")}></slot></template>`,ru={name:zk,registry:h.registry,styles:tu,template:ou};var _k=Object.defineProperty,Ok=Object.getOwnPropertyDescriptor,br=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ok(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&_k(e,t,n),n};class Jt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=$o.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??$o.horizontal}disabledChanged(e,t){this.elementInternals&&y(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??$o.horizontal,Mt(this.elementInternals,e,t,$o)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>bn(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.tabs.some(s=>!!s.querySelector("[slot='start']")),n=this.getRootNode();let i="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Ze("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!i&&!s.disabled&&(i=s.id);const l=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",l),s.setAttribute("aria-selected",l.toString()),s.toggleAttribute("data-hasIndent",r&&this.orientation===$o.vertical),e){const u=s.getAttribute("aria-controls")??"",d=n.getElementById(u);u&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==s.id,this.tabPanelMap.set(s,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):i&&(this.activeid=i))}handleFocusIn(e){const t=e.target;!bn(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),n=e?r.getElementById(e):null,i=r.getElementById(t);if(!bn(i)||!this.contains(i))return;if(n){n.setAttribute("aria-selected","false");const l=this.tabPanelMap.get(n);l&&(l.hidden=!0)}i.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(i);s&&(s.hidden=!1),this.activetab=i,this.change()}connectedCallback(){super.connectedCallback(),er(this,()=>{this.setTabs()},{shallow:!0})}}br([a({mode:"boolean"})],Jt.prototype,"disabled",2),br([a],Jt.prototype,"orientation",2),br([a],Jt.prototype,"activeid",2),br([g],Jt.prototype,"slottedTabs",2),br([g],Jt.prototype,"tabs",2);var Fk=Object.defineProperty,Ek=Object.getOwnPropertyDescriptor,nu=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ek(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Fk(e,t,n),n};class vn extends Jt{constructor(){super(...arguments),this.appearance=eu.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new un(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new hn(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}nu([a],vn.prototype,"appearance",2),nu([a],vn.prototype,"size",2),vn.define(ru);const Dk={small:"small",medium:"medium",large:"large"},yn={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Lk=[yn.filledLighter,yn.filledDarker],Mk={on:"on",off:"off"},mr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},Hk=`${h.prefix}-textarea`,iu=p`${x("inline-block")} :host{--font-size:${z};--line-height:${D};--padding-inline:${Ke};--padding-block:${ao};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${B};--control-padding-inline:${H};--color:${I};--background-color:${C};--border-color:${He};--border-block-end-color:${Me};--placeholder-color:${Or};--focus-indicator-color:${nt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${_};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${ft};--border-block-end-color:${pt}}:host(:active){--border-color:${no};--border-block-end-color:${gt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${E};--line-height:${R};--min-block-size:40px;--padding-block:${Lt};--padding-inline:${ve};--control-padding-inline:${H}}:host([size='large']){--font-size:${he};--line-height:${me};--min-block-size:64px;--padding-block:${te};--padding-inline:${ee};--control-padding-inline:${ve}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${to};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${Vr}}:host(${vy}){--border-color:${Lr};--border-block-end-color:${Lr}}:host(:disabled){--color:${T};--background-color:${ce};--border-color:${be};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${T};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${S};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${mt};transition-duration:${Gr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Jo};transition-delay:${vt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Lt};padding-inline-end:${Q}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${ht};background-color:${Zn}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;function Vk(){return b`<template><label ${A("labelEl")} for=control part=label><slot name=label ${K("labelSlottedNodes")}></slot></label><div class=root part=root ${A("rootEl")}><textarea ${A("controlEl")} id=control class=control part=control ?required=${o=>o.required} ?disabled=${o=>o.disabled} ?readonly=${o=>o.readOnly} ?spellcheck=${o=>o.spellcheck} autocomplete=${o=>o.autocomplete} maxlength=${o=>o.maxLength} minlength=${o=>o.minLength} placeholder=${o=>o.placeholder} @change=${o=>o.handleControlChange()} @select=${o=>o.handleControlSelect()} @input=${o=>o.handleControlInput()}></textarea></div><div hidden><slot ${K("defaultSlottedNodes")}></slot></div></template>`}const su=Vk(),au={name:Hk,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:iu,template:su},Rk=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var jk=Object.defineProperty,qk=Object.getOwnPropertyDescriptor,ne=(o,e,t,r)=>{for(var n=r>1?void 0:r?qk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&jk(e,t,n),n};class W extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=mr.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){N.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(Rk),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){Mt(this.elementInternals,e,t,mr,"resize-"),y(this.elementInternals,"resize",Ac(mr,t)&&t!==mr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl(),at(this)})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals?.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.elementInternals&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl?.validity,t??this.controlEl?.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes?.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}W.formAssociated=!0,ne([g],W.prototype,"controlEl",2),ne([g],W.prototype,"defaultSlottedNodes",2),ne([g],W.prototype,"labelSlottedNodes",2),ne([a],W.prototype,"autocomplete",2),ne([a({attribute:"auto-resize",mode:"boolean"})],W.prototype,"autoResize",2),ne([a({attribute:"dirname"})],W.prototype,"dirName",2),ne([a({mode:"boolean"})],W.prototype,"disabled",2),ne([a({attribute:"display-shadow",mode:"boolean"})],W.prototype,"displayShadow",2),ne([a({attribute:"form"})],W.prototype,"initialForm",2),ne([a({attribute:"maxlength",converter:ie})],W.prototype,"maxLength",2),ne([a({attribute:"minlength",converter:ie})],W.prototype,"minLength",2),ne([a],W.prototype,"name",2),ne([a],W.prototype,"placeholder",2),ne([a({attribute:"readonly",mode:"boolean"})],W.prototype,"readOnly",2),ne([a({mode:"boolean"})],W.prototype,"required",2),ne([a({mode:"fromView"})],W.prototype,"resize",2),ne([a({mode:"boolean"})],W.prototype,"spellcheck",2);var Wk=Object.defineProperty,Gk=Object.getOwnPropertyDescriptor,is=(o,e,t,r)=>{for(var n=r>1?void 0:r?Gk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Wk(e,t,n),n};class vr extends W{constructor(){super(...arguments),this.appearance=yn.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}is([a({mode:"fromView"})],vr.prototype,"appearance",2),is([a({mode:"boolean"})],vr.prototype,"block",2),is([a],vr.prototype,"size",2),vr.define(au);const Xk={small:"small",medium:"medium",large:"large"},Uk={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},lu={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Kk=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],Yk=`${h.prefix}-text-input`,cu=p`${x("block")} :host{font-family:${v};font-size:${z};font-weight:${_};line-height:${D};max-width:400px}.label{display:flex;color:${I};padding-bottom:${Lt};flex-shrink:0;padding-inline-end:${Q}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${C};border:${B} solid ${He};border-bottom-color:${Me};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${H};padding:0 ${Ke};position:relative;width:100%}:has(.control:user-invalid){border-color:${Lr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${nt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Gr};transition-delay:${mt}}.control{width:100%;height:100%;box-sizing:border-box;color:${I};border-radius:${S};background:${ce};font-family:${v};font-weight:${_};font-size:${z};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Or}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${Dt}}:host ::slotted([slot='start']){padding-right:${H}}:host ::slotted([slot='end']){padding-left:${H};gap:${Q}}:host(:hover) .root{border-color:${ft};border-bottom-color:${pt}}:host(:active) .root{border-color:${no}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Jo};transition-delay:${vt}}:host(:focus-within:active) .root:after{border-bottom-color:${ci}}:host([appearance='outline']:focus-within) .root{border:${B} solid ${He}}:host(:focus-within) .control{color:${I}}:host([disabled]) .root{background:${ce};border:${B} solid ${be}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${T}}::selection{color:${ht};background-color:${Zn}}:host([control-size='small']) .control{font-size:${E};font-weight:${_};line-height:${R}}:host([control-size='small']) .root{height:24px;gap:${H};padding:0 ${ve}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${he}}:host([control-size='large']) .control{font-size:${he};font-weight:${_};line-height:${me}}:host([control-size='large']) .root{height:40px;gap:${Te};padding:0 ${ee}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${Ro}}:host([appearance='underline']) .root{background:${ce};border:0;border-radius:0;border-bottom:${B} solid ${Me}}:host([appearance='underline']:hover) .root{border-bottom-color:${pt}}:host([appearance='underline']:active) .root{border-bottom-color:${gt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${gt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${be}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${B} solid ${U};box-shadow:${Vr}}:host([appearance='filled-lighter']) .root{background:${C}}:host([appearance='filled-darker']) .root{background:${to}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${Dr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${Dr};background:${to}}`;function Jk(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${A("controlLabel")}><slot ${K("defaultSlottedNodes")}></slot></label><div class=root part=root>${Ve(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} autocomplete=${e=>e.autocomplete} ?disabled=${e=>e.disabled} list=${e=>e.list} maxlength=${e=>e.maxlength} minlength=${e=>e.minlength} ?multiple=${e=>e.multiple} name=${e=>e.name} pattern=${e=>e.pattern} placeholder=${e=>e.placeholder} ?readonly=${e=>e.readOnly} ?required=${e=>e.required} size=${e=>e.size} spellcheck=${e=>e.spellcheck} type=${e=>e.type} value=${e=>e.value} ${A("control")}> ${st(o)}</div></template>`}const du=Jk(),hu={name:Yk,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:cu,template:du};var Zk=Object.defineProperty,Qk=Object.getOwnPropertyDescriptor,V=(o,e,t,r)=>{for(var n=r>1?void 0:r?Qk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Zk(e,t,n),n};class O extends k{constructor(){super(...arguments),this.type=lu.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){N.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){N.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.elementInternals&&this.control&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity(),at(this)}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(n=>n.getAttribute("type")==="submit");if(t){t.click();return}e.filter(n=>Kk.includes(n.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setValidity(e,t,r){if(this.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}O.formAssociated=!0,V([a],O.prototype,"autocomplete",2),V([a({attribute:"current-value"})],O.prototype,"currentValue",2),V([g],O.prototype,"defaultSlottedNodes",2),V([a],O.prototype,"dirname",2),V([a({mode:"boolean"})],O.prototype,"disabled",2),V([a({attribute:"form"})],O.prototype,"formAttribute",2),V([a({attribute:"value",mode:"fromView"})],O.prototype,"initialValue",2),V([a],O.prototype,"list",2),V([a({converter:ie})],O.prototype,"maxlength",2),V([a({converter:ie})],O.prototype,"minlength",2),V([a({mode:"boolean"})],O.prototype,"multiple",2),V([a],O.prototype,"name",2),V([a],O.prototype,"pattern",2),V([a],O.prototype,"placeholder",2),V([a({attribute:"readonly",mode:"boolean"})],O.prototype,"readOnly",2),V([a({mode:"boolean"})],O.prototype,"required",2),V([a({converter:ie})],O.prototype,"size",2),V([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],O.prototype,"spellcheck",2),V([a],O.prototype,"type",2),V([g],O.prototype,"control",2),V([g],O.prototype,"controlLabel",2);var ex=Object.defineProperty,tx=Object.getOwnPropertyDescriptor,uu=(o,e,t,r)=>{for(var n=r>1?void 0:r?tx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ex(e,t,n),n};class yr extends O{}uu([a],yr.prototype,"appearance",2),uu([a({attribute:"control-size"})],yr.prototype,"controlSize",2),yt(yr,it),yr.define(hu);const ox={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},rx={base:"base",numeric:"numeric",monospace:"monospace"},nx={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},ix={start:"start",end:"end",center:"center",justify:"justify"},sx=`${h.prefix}-text`,pu=p`${x("inline")} :host{font-family:${v};font-size:${z};line-height:${D};font-weight:${_};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${so};line-height:${qo}}:host([size='200']){font-size:${E};line-height:${R}}:host([size='400']){font-size:${he};line-height:${me}}:host([size='500']){font-size:${Dt};line-height:${Wo}}:host([size='600']){font-size:${Ro};line-height:${Pi}}:host([size='700']){font-size:${wi};line-height:${Ii}}:host([size='800']){font-size:${Si};line-height:${Ai}}:host([size='900']){font-size:${Ci};line-height:${Ni}}:host([size='1000']){font-size:${Bi};line-height:${Ti}}:host([font='monospace']){font-family:${Ql}}:host([font='numeric']){font-family:${ec}}:host([weight='medium']){font-weight:${tc}}:host([weight='semibold']){font-weight:${M}}:host([weight='bold']){font-weight:${jo}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,gu=b`<slot></slot>`,fu={name:sx,registry:h.registry,styles:pu,template:gu};var ax=Object.defineProperty,lx=Object.getOwnPropertyDescriptor,tt=(o,e,t,r)=>{for(var n=r>1?void 0:r?lx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ax(e,t,n),n};class Ee extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}tt([a({mode:"boolean"})],Ee.prototype,"nowrap",2),tt([a({mode:"boolean"})],Ee.prototype,"truncate",2),tt([a({mode:"boolean"})],Ee.prototype,"italic",2),tt([a({mode:"boolean"})],Ee.prototype,"underline",2),tt([a({mode:"boolean"})],Ee.prototype,"strikethrough",2),tt([a({mode:"boolean"})],Ee.prototype,"block",2),tt([a],Ee.prototype,"size",2),tt([a],Ee.prototype,"font",2),tt([a],Ee.prototype,"weight",2),tt([a],Ee.prototype,"align",2),Ee.define(fu);const cx=tr,dx=or,hx=rr,ux=`${h.prefix}-toggle-button`,bu=p`${ho} :host(${L}){border-color:${He};background-color:${Jn};color:${I};border-width:${B}}:host(${L}:hover){border-color:${ft};background-color:${Eo}}:host(${L}:active){border-color:${no};background-color:${Fr}}:host(${L}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${L}[appearance='primary']){background-color:${za};color:${Ue}}:host(${L}[appearance='primary']:hover){background-color:${ri}}:host(${L}[appearance='primary']:active){background-color:${ni}}:host(${L}[appearance='subtle']){border-color:transparent;background-color:${ei};color:${zo}}:host(${L}[appearance='subtle']:hover){background-color:${Do};color:${_t}}:host(${L}[appearance='subtle']:active){background-color:${ro};color:${Ot}}:host(${L}[appearance='outline']),:host(${L}[appearance='transparent']){background-color:${ti}}:host(${L}[appearance='outline']:hover),:host(${L}[appearance='transparent']:hover){background-color:${Lo}}:host(${L}[appearance='outline']:active),:host(${L}[appearance='transparent']:active){background-color:${Mo}}:host(${L}[appearance='transparent']){border-color:transparent;color:${ha}}:host(${L}[appearance='transparent']:hover){color:${_o}}:host(${L}[appearance='transparent']:active){color:${Oo}}@media (forced-colors:active){:host(${L}),:host( ${L}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${L}[appearance='primary']){color:SelectedItemText}}`,mu=Hi(),vu={name:ux,registry:h.registry,styles:bu,template:mu};var px=Object.defineProperty,gx=Object.getOwnPropertyDescriptor,yu=(o,e,t,r)=>{for(var n=r>1?void 0:r?gx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&px(e,t,n),n};class $n extends Ye{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}yu([a({mode:"boolean"})],$n.prototype,"pressed",2),yu([a({mode:"boolean"})],$n.prototype,"mixed",2),$n.define(vu);const Ie={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},fx=`${h.prefix}-tooltip`,$u=p`${x("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Lt};--inline-offset:${Q};background:${C};border-radius:${S};border:1px solid ${U};box-sizing:border-box;color:${I};display:inline-flex;filter:drop-shadow(0 0 2px ${Ea}) drop-shadow(0 4px 8px ${Da});font-family:${v};font-size:${E};inset:unset;line-height:${R};margin:unset;max-width:240px;overflow:visible;padding:4px ${Ke} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Ie["above-start"]}}:host([positioning='above']){--position-area:${Ie.above}}:host([positioning='above-end']){--position-area:${Ie["above-end"]}}:host([positioning='below-start']){--position-area:${Ie["below-start"]}}:host([positioning='below']){--position-area:${Ie.below}}:host([positioning='below-end']){--position-area:${Ie["below-end"]}}:host([positioning='before-top']){--position-area:${Ie["before-top"]}}:host([positioning='before']){--position-area:${Ie.before}}:host([positioning='before-bottom']){--position-area:${Ie["before-bottom"]}}:host([positioning='after-top']){--position-area:${Ie["after-top"]}}:host([positioning='after']){--position-area:${Ie.after}}:host([positioning='after-bottom']){--position-area:${Ie["after-bottom"]}}`,ku=b`<template popover aria-hidden=true><slot></slot></template>`,xu={name:fx,registry:h.registry,styles:$u,template:ku};var bx=Object.defineProperty,mx=Object.getOwnPropertyDescriptor,kn=(o,e,t,r)=>{for(var n=r>1?void 0:r?mx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&bx(e,t,n),n};class ko extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ze("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),Zr){mv||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}N.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(r=>r!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}async setFallbackStyles(){if(Zr){this.anchorPositioningReady=!0;return}if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const n={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},i=n[t]??n.above,s={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},l=s[r]??s.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
19
19
|
#${this.anchor} {
|
|
20
20
|
anchor-name: ${e};
|
|
21
21
|
}
|
|
@@ -26,7 +26,7 @@ const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
|
|
|
26
26
|
${i}
|
|
27
27
|
${l}
|
|
28
28
|
}
|
|
29
|
-
`,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}kn([a],ko.prototype,"id",2),kn([a({converter:ie})],ko.prototype,"delay",2),kn([a],ko.prototype,"positioning",2),kn([a],ko.prototype,"anchor",2),ko.define(xu);const vx=`${h.prefix}-tree`,wu=p`${x("block")} :host{outline:none}`,Su=b`<template tabindex=0 focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${(o,e)=>o.itemToggleHandler()}><slot ${A("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Cu={name:vx,registry:h.registry,styles:wu,template:Su},Bu={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Pu={small:"small",medium:"medium"};function De(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const yx=`${h.prefix}-tree-item`;var $x=Object.defineProperty,kx=Object.getOwnPropertyDescriptor,ss=(o,e,t,r)=>{for(var n=r>1?void 0:r?kx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&$x(e,t,n),n};class $r extends k{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!De(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:De(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!De(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!De(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&De(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>De(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const n of r)e.push(n),t(n.childTreeItems)};return t(this.childTreeItems),e}}ss([g],$r.prototype,"currentSelected",2),ss([g],$r.prototype,"defaultSlot",2),ss([g],$r.prototype,"childTreeItems",2);var xx=Object.defineProperty,wx=Object.getOwnPropertyDescriptor,Iu=(o,e,t,r)=>{for(var n=r>1?void 0:r?wx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&xx(e,t,n),n};class xn extends $r{constructor(){super(...arguments),this.size=Pu.small,this.appearance=Bu.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new un(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new hn(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Iu([a],xn.prototype,"size",2),Iu([a],xn.prototype,"appearance",2),xn.define(Cu);const Au=p`${x("block")} :host{outline:none;font-size:${z};line-height:${D}}:host(:focus-visible) .positioning-region{box-shadow:${qr} ${qr} ${qr} ${Uo} ${se} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${ac};padding-inline-start:calc(var(--indent) * ${Xo});padding-inline-end:${te};border-radius:${S};background-color:${Qn};color:${Ae};gap:${Q}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${se}}}.content{display:flex;align-items:center;gap:${Q}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${Xo};height:${bt};transition:transform ${Yo} ${Fi};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${Do};color:${_t}}.positioning-region:active{background-color:${ro};color:${Ot}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${H}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${ei};color:${zo}}:host([selected]) .content,:host([selected]) .chevron{color:${ga}}:host([size='small']) .positioning-region{height:${bt};padding-inline-start:calc(var(--indent) * ${ee})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Aa}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Na}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Ta};color:${zo}}:host([appearance='transparent']) .positioning-region{background-color:${ce}}:host([appearance='transparent']) .positioning-region:hover{background-color:${Lo}}:host([appearance='transparent']) .positioning-region:active{background-color:${Mo}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${ti};color:${zo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Sx=b`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Nu=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${Sx}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${A("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,Tu={name:yx,registry:h.registry,styles:Au,template:Nu};var Cx=Object.defineProperty,Bx=Object.getOwnPropertyDescriptor,xo=(o,e,t,r)=>{for(var n=r>1?void 0:r?Bx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Cx(e,t,n),n};class Zt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),De(this.parentElement)&&(this.slot||(this.slot="item")),at(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),y(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,n=>De(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const n=r.currentNode;t?n.removeAttribute("focusgroup"):(n.selected&&(n.selected=!1),n.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&(y(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>De(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return De(this.parentElement)}get isHidden(){let e=this.parentElement;for(;De(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>De(e))}}xo([g],Zt.prototype,"itemSlot",2),xo([a({mode:"boolean"})],Zt.prototype,"expanded",2),xo([a({mode:"boolean"})],Zt.prototype,"selected",2),xo([a({mode:"boolean"})],Zt.prototype,"empty",2),xo([a({attribute:"data-indent"})],Zt.prototype,"dataIndent",2),xo([g],Zt.prototype,"childTreeItems",2);var Px=Object.defineProperty,Ix=Object.getOwnPropertyDescriptor,zu=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ix(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Px(e,t,n),n};class wn extends Zt{constructor(){super(...arguments),this.size=Pu.small,this.appearance=Bu.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}zu([a],wn.prototype,"size",2),zu([a],wn.prototype,"appearance",2),wn.define(Tu);const Ax="adoptedStyleSheets"in document,Nx="CSSScopeRule"in window,as=new Map,ls=new Map,kr=new Map,cs=new Map,xr=new CSSStyleSheet;function _u(o,e=document){if(!(!e||!Tx(e))){if(!Ax||e instanceof HTMLElement&&!e.shadowRoot&&!Nx){const t=e===document?document.documentElement:e;Ex(o,t);return}[document,document.documentElement,document.body].includes(e)?zx(o):_x(o,e)}}function ds(o){if(!as.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);as.set(o,e.join(""))}return as.get(o)}function Tx(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function zx(o){if(o===null){document.adoptedStyleSheets.includes(xr)&&xr.replaceSync("");return}xr.replaceSync(`
|
|
29
|
+
`,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}kn([a],ko.prototype,"id",2),kn([a({converter:ie})],ko.prototype,"delay",2),kn([a],ko.prototype,"positioning",2),kn([a],ko.prototype,"anchor",2),ko.define(xu);const vx=`${h.prefix}-tree`,wu=p`${x("block")} :host{outline:none}`,Su=b`<template focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${o=>o.itemToggleHandler()}><slot ${A("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Cu={name:vx,registry:h.registry,styles:wu,template:Su},Bu={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Pu={small:"small",medium:"medium"};function De(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const yx=`${h.prefix}-tree-item`;var $x=Object.defineProperty,kx=Object.getOwnPropertyDescriptor,ss=(o,e,t,r)=>{for(var n=r>1?void 0:r?kx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&$x(e,t,n),n};class $r extends k{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!De(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:De(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!De(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!De(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&De(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>De(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const n of r)e.push(n),t(n.childTreeItems)};return t(this.childTreeItems),e}}ss([g],$r.prototype,"currentSelected",2),ss([g],$r.prototype,"defaultSlot",2),ss([g],$r.prototype,"childTreeItems",2);var xx=Object.defineProperty,wx=Object.getOwnPropertyDescriptor,Iu=(o,e,t,r)=>{for(var n=r>1?void 0:r?wx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&xx(e,t,n),n};class xn extends $r{constructor(){super(...arguments),this.size=Pu.small,this.appearance=Bu.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new un(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new hn(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Iu([a],xn.prototype,"size",2),Iu([a],xn.prototype,"appearance",2),xn.define(Cu);const Au=p`${x("block")} :host{outline:none;font-size:${z};line-height:${D}}:host(:focus-visible) .positioning-region{box-shadow:${qr} ${qr} ${qr} ${Uo} ${se} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${ac};padding-inline-start:calc(var(--indent) * ${Xo});padding-inline-end:${te};border-radius:${S};background-color:${Qn};color:${Ae};gap:${Q}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${se}}}.content{display:flex;align-items:center;gap:${Q}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${Xo};height:${bt};transition:transform ${Yo} ${Fi};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${Do};color:${_t}}.positioning-region:active{background-color:${ro};color:${Ot}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${H}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${ei};color:${zo}}:host([selected]) .content,:host([selected]) .chevron{color:${ga}}:host([size='small']) .positioning-region{height:${bt};padding-inline-start:calc(var(--indent) * ${ee})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Aa}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Na}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Ta};color:${zo}}:host([appearance='transparent']) .positioning-region{background-color:${ce}}:host([appearance='transparent']) .positioning-region:hover{background-color:${Lo}}:host([appearance='transparent']) .positioning-region:active{background-color:${Mo}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${ti};color:${zo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Sx=b`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Nu=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${Sx}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${A("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,Tu={name:yx,registry:h.registry,styles:Au,template:Nu};var Cx=Object.defineProperty,Bx=Object.getOwnPropertyDescriptor,xo=(o,e,t,r)=>{for(var n=r>1?void 0:r?Bx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Cx(e,t,n),n};class Zt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),De(this.parentElement)&&(this.slot||(this.slot="item")),at(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),y(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,n=>De(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const n=r.currentNode;t?n.removeAttribute("focusgroup"):(n.selected&&(n.selected=!1),n.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&(y(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>De(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return De(this.parentElement)}get isHidden(){let e=this.parentElement;for(;De(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>De(e))}}xo([g],Zt.prototype,"itemSlot",2),xo([a({mode:"boolean"})],Zt.prototype,"expanded",2),xo([a({mode:"boolean"})],Zt.prototype,"selected",2),xo([a({mode:"boolean"})],Zt.prototype,"empty",2),xo([a({attribute:"data-indent"})],Zt.prototype,"dataIndent",2),xo([g],Zt.prototype,"childTreeItems",2);var Px=Object.defineProperty,Ix=Object.getOwnPropertyDescriptor,zu=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ix(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Px(e,t,n),n};class wn extends Zt{constructor(){super(...arguments),this.size=Pu.small,this.appearance=Bu.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}zu([a],wn.prototype,"size",2),zu([a],wn.prototype,"appearance",2),wn.define(Tu);const Ax="adoptedStyleSheets"in document,Nx="CSSScopeRule"in window,as=new Map,ls=new Map,kr=new Map,cs=new Map,xr=new CSSStyleSheet;function _u(o,e=document){if(!(!e||!Tx(e))){if(!Ax||e instanceof HTMLElement&&!e.shadowRoot&&!Nx){const t=e===document?document.documentElement:e;Ex(o,t);return}[document,document.documentElement,document.body].includes(e)?zx(o):_x(o,e)}}function ds(o){if(!as.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);as.set(o,e.join(""))}return as.get(o)}function Tx(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function zx(o){if(o===null){document.adoptedStyleSheets.includes(xr)&&xr.replaceSync("");return}xr.replaceSync(`
|
|
30
30
|
html {
|
|
31
31
|
${ds(o)}
|
|
32
32
|
}
|
package/dist/web-components.js
CHANGED
|
@@ -12279,7 +12279,7 @@ const TablistAppearance = {
|
|
|
12279
12279
|
const TablistOrientation = Orientation;
|
|
12280
12280
|
const tagName$7 = `${FluentDesignSystem.prefix}-tablist`;
|
|
12281
12281
|
|
|
12282
|
-
const styles$7 = css`${display("flex")} :host{--tabPaddingInline:${spacingHorizontalMNudge};--tabPaddingBlock:${spacingHorizontalM};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge}}:host([size='large']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge}}:host([orientation='vertical']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalS};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${spacingVerticalXXS};--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalMNudge}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='large']) ::slotted([slot='tab']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${colorCompoundBrandStroke};content:'';inline-size:100%;inset:auto
|
|
12282
|
+
const styles$7 = css`${display("flex")} :host{--tabPaddingInline:${spacingHorizontalMNudge};--tabPaddingBlock:${spacingHorizontalM};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${colorNeutralForeground2};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${spacingVerticalSNudge};--tabPaddingInline:${spacingHorizontalSNudge}}:host([size='large']){--tabPaddingBlock:${spacingVerticalL};--tabPaddingInline:${spacingHorizontalMNudge}}:host([orientation='vertical']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalS};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${spacingVerticalXXS};--tabIndicatorInsetBlock:${spacingVerticalSNudge}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${spacingVerticalS};--tabIndicatorInsetBlock:${spacingVerticalMNudge}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${strokeWidthThicker};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${strokeWidthThicker};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${strokeWidthThicker};border-radius:${borderRadiusCircular};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${colorNeutralForegroundDisabled}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${strokeWidthThicker};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${strokeWidthThicker};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${fontSizeBase300};line-height:${lineHeightBase300}}:host([size='large']) ::slotted([slot='tab']){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${colorNeutralForegroundDisabled}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground1Hover};fill:${colorCompoundBrandForeground1Hover}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${colorSubtleBackgroundPressed};fill:${colorSubtleBackgroundPressed};color:${colorNeutralForeground1}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${colorCompoundBrandStroke};content:'';inline-size:100%;inset-block:auto anchor(end);inset-inline:anchor(center) auto;position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${durationSlow};transition-timing-function:${curveDecelerateMax};z-index:3;border-radius:${borderRadiusCircular};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${strokeWidthThicker}}:host(:dir(rtl))::after{transform:translateX(50%)}:host([orientation='vertical'])::after{inset-block:anchor(center) auto;inset-inline:anchor(start) auto;transform:translateY(-50%);transition-property:inset-block,height;width:${strokeWidthThicker};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host([disabled])::after{background-color:${colorNeutralForegroundDisabled}}}`;
|
|
12283
12283
|
|
|
12284
12284
|
const template$7 = html`<template role=tablist focusgroup="tablist inline block" @focusin=${(x, c) => x.handleFocusIn(c.event)}><slot name=tab ${slotted("slottedTabs")}></slot></template>`;
|
|
12285
12285
|
|
|
@@ -13895,7 +13895,7 @@ const tagName$1 = `${FluentDesignSystem.prefix}-tree`;
|
|
|
13895
13895
|
|
|
13896
13896
|
const styles$1 = css`${display("block")} :host{outline:none}`;
|
|
13897
13897
|
|
|
13898
|
-
const template$1 = html`<template
|
|
13898
|
+
const template$1 = html`<template focusgroup="menu inline block nowrap nomemory" @click=${(x, c) => x.clickHandler(c.event)} @keydown=${(x, c) => x.keydownHandler(c.event)} @change=${(x, c) => x.changeHandler(c.event)} @toggle=${(x) => x.itemToggleHandler()}><slot ${ref("defaultSlot")} @slotchange=${(x) => x.handleDefaultSlotChange()}></slot></template>`;
|
|
13899
13899
|
|
|
13900
13900
|
const definition$1 = {
|
|
13901
13901
|
name: tagName$1,
|
|
@@ -15,7 +15,7 @@ const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
|
|
|
15
15
|
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
|
|
16
16
|
fill="none" stroke="black" stroke-width="2"
|
|
17
17
|
>${ka}</svg>
|
|
18
|
-
`;function ub(){return b`<div ${z("display")} class=display aria-hidden=true></div><slot name=icon ${z("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${o=>o.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${o=>o.formattedCount}</span></slot>`}const pb=ub(),gb=p`${w("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${_c};--_icon-color-empty:${Es};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Mr(db)});--_mask-image-outlined:url(${Mr(hb)});--_mask-position-x:left;align-items:center;color:${_};font-family:${v};font-size:${M};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${B};line-height:${L}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${_};--_icon-color-empty:${mo}}:host([color='brand']){--_icon-color-value:${or};--_icon-color-empty:${ys}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${V});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${V}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${oe};font-weight:${H}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${V}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${we}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${oe}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${V}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${we}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,fb={name:sb,registry:h.registry,styles:gb,template:pb};var bb=Object.defineProperty,mb=Object.getOwnPropertyDescriptor,Xi=(o,e,t,r)=>{for(var i=r>1?void 0:r?mb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&bb(e,t,i),i};class Lr extends ro{constructor(){super(...arguments),this.compact=!1}}Xi([a],Lr.prototype,"color",2),Xi([a],Lr.prototype,"size",2),Xi([a({mode:"boolean"})],Lr.prototype,"compact",2),Lr.define(fb);const vb=Se,$b={singleValue:"single-value"},yb=`${h.prefix}-slider`,xb=p`${w("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${St};--track-color:${je};--slider-direction:90deg;--border-radius:${S};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Vt}}:host(:active){--rail-color:${Rt}}:host(:disabled){--rail-color:${T};--track-color:${st}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Ee}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${le};outline:1px solid ${ar}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${C} calc(var(--step-rate) - 1px),${C} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${ue};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${C} inset;border:calc(var(--thumb-size) * 0.05) solid ${qe};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;function kb(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${z("track")} part=track-container class=track style=${e=>e.position}></div><div ${z("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${fe(o.thumb)}</slot></div></template>`}const wb=kb({thumb:'<div class="thumb"></div>'}),Sb={name:yb,registry:h.registry,styles:xb,template:wb};function wa(o,e,t){return Math.min(Math.max(t,o),e)}const Ki={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function Sa(o,e,t,r){let i=wa(0,1,(o-e)/(t-e));return r===gt.rtl&&(i=1-i),i}var Cb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Q=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ib(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Cb(e,t,i),i};class W extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=gt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=$b.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===Se.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const n=this.orientation===Se.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(n)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??vb.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=wa(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Se.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=fa(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")}),et(this)}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==gt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==gt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==gt.rtl&&this.orientation!==Se.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==gt.rtl&&this.orientation!==Se.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=Sa(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===Se.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=Sa(e,this.orientation===Se.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Se.vertical?this.trackHeight:this.trackWidth,this.orientation===Se.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){O.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}W.formAssociated=!0,Q([a],W.prototype,"size",2),Q([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),Q([g],W.prototype,"direction",2),Q([g],W.prototype,"isDragging",2),Q([g],W.prototype,"position",2),Q([g],W.prototype,"trackWidth",2),Q([g],W.prototype,"trackMinWidth",2),Q([g],W.prototype,"trackHeight",2),Q([g],W.prototype,"trackLeft",2),Q([g],W.prototype,"trackMinHeight",2),Q([g],W.prototype,"valueTextFormatter",2),Q([a({mode:"boolean"})],W.prototype,"disabled",2),Q([a({converter:Ki})],W.prototype,"min",2),Q([a({converter:Ki})],W.prototype,"max",2),Q([a({converter:Ki})],W.prototype,"step",2),Q([a],W.prototype,"orientation",2),Q([a],W.prototype,"mode",2),W.define(Sb);const Pb=`${h.prefix}-spinner`,zb=p`${w("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Ie};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ge};--size:20px}:host([size='extra-small']){--indicatorSize:${ge};--size:24px}:host([size='small']){--indicatorSize:${ge};--size:28px}:host([size='large']){--indicatorSize:${Ie};--size:36px}:host([size='extra-large']){--indicatorSize:${Ie};--size:40px}:host([size='huge']){--indicatorSize:${Si};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${yr}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${ks};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${xs};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${gc}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,_b=b`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`,Ob={name:Pb,registry:h.registry,styles:zb,template:_b};class Tb extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var Ab=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,Ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ab(e,t,i),i};class Yi extends Tb{}Ca([a],Yi.prototype,"size",2),Ca([a],Yi.prototype,"appearance",2),Yi.define(Ob);const Eb=`${h.prefix}-switch`,Nb=p`${w("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${V};width:40px;height:20px;background-color:${he};border:1px solid ${je};border-radius:${ue}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${Ct}}:host(:active){border-color:${It}}:host(:disabled),:host([readonly]){border:1px solid ${xe};background-color:none;pointer:default}:host(${y}){background:${St};border-color:${St}}:host(${y}:hover){background:${Vt};border-color:${Vt}}:host(${y}:active){background:${Rt};border-color:${Rt}}:host(${y}:disabled){background:${st};border-color:${xe}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${vr};transition-timing-function:${yr};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${wt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${rc}}:host(${y}:active) .checked-indicator{background:${ic}}:host(:hover) .checked-indicator{background-color:${Ul}}:host(:active) .checked-indicator{background-color:${Gl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${T}}:host(${y}:disabled) .checked-indicator{background:${T}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${K};outline:${ge} solid ${K};outline-offset:1px;box-shadow:${pr},0 0 0 2px ${le}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${y}:disabled) .checked-indicator{background-color:GrayText}}`;function Fb(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=switch>${fe(o.switch)}</slot></template>`}const Mb=Fb({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Lb={name:Eb,registry:h.registry,styles:Nb,template:Mb};class Db extends Fe{constructor(){super(),this.elementInternals.role="switch"}}Db.define(Lb);function Ji(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Hb=`${h.prefix}-tab`,Vb=p`${w("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${L};font-family:${v};font-size:${B};color:${Be};fill:currentcolor;grid-row:1;padding:${re} ${Qe};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${H}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${L};font-weight:${H}}:host([aria-selected='true'])::after{background-color:${at};border-radius:${ue};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Pt};border-radius:${ue};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${Pt}}}:host([aria-selected='true'][disabled])::after{background-color:${T}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${T};color:${T};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ee};box-shadow:0 0 0 3px ${le};outline:1px solid ${ar}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;function Rb(o={}){return b`<template slot=tab role=tab>${We(o)} <span class=tab-content><slot></slot></span>${ct(o)}</template>`}const jb=Rb({}),qb={name:Hb,registry:h.registry,styles:Vb,template:jb};var Wb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Gb=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ub(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Wb(e,t,i),i};class Zi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),et(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}Gb([a({mode:"boolean"})],Zi.prototype,"disabled",2),dt(Zi,lt),Zi.define(qb);const Xb={subtle:"subtle",transparent:"transparent"},Mo=Se,Kb=`${h.prefix}-tablist`,Yb=p`${w("flex")} :host{--tabPaddingInline:${Qe};--tabPaddingBlock:${re};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Be};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${ko};--tabPaddingInline:${we}}:host([size='large']){--tabPaddingBlock:${Ii};--tabPaddingInline:${Qe}}:host([orientation='vertical']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${ie};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${fr};--tabIndicatorInsetBlock:${ko}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${br}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${Ie};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Ie};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Ie};border-radius:${ue};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${T}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Ie};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Ie};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${B};line-height:${L}}:host([size='large']) ::slotted([slot='tab']){font-size:${pe};line-height:${ke}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${T}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${T}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${ir};color:${cs};fill:${tc}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${vo};fill:${vo};color:${_}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${at};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${Rd};transition-timing-function:${Xs};z-index:3;border-radius:${ue};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Ie}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${Ie};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${T}}}`,Jb=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${G("slottedTabs")}></slot></template>`,Zb={name:Kb,registry:h.registry,styles:Yb,template:Jb};var Qb=Object.defineProperty,em=Object.getOwnPropertyDescriptor,Lo=(o,e,t,r)=>{for(var i=r>1?void 0:r?em(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Qb(e,t,i),i};class io extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Mo.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??Mo.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??Mo.horizontal,Tt(this.elementInternals,e,t,Mo)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>Ji(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.tabs.some(s=>!!s.querySelector("[slot='start']")),i=this.getRootNode();let n="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Xe("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!n&&!s.disabled&&(n=s.id);const l=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",l),s.setAttribute("aria-selected",l.toString()),s.toggleAttribute("data-hasIndent",r&&this.orientation===Mo.vertical),e){const u=s.getAttribute("aria-controls")??"",d=i.getElementById(u);u&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==s.id,this.tabPanelMap.set(s,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):n&&(this.activeid=n))}handleFocusIn(e){const t=e.target;!Ji(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),i=e?r.getElementById(e):null,n=r.getElementById(t);if(!Ji(n)||!this.contains(n))return;if(i){i.setAttribute("aria-selected","false");const l=this.tabPanelMap.get(i);l&&(l.hidden=!0)}n.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(n);s&&(s.hidden=!1),this.activetab=n,this.change()}connectedCallback(){super.connectedCallback(),Co(this,()=>{this.setTabs()},{shallow:!0})}}Lo([a({mode:"boolean"})],io.prototype,"disabled",2),Lo([a],io.prototype,"orientation",2),Lo([a],io.prototype,"activeid",2),Lo([g],io.prototype,"slottedTabs",2),Lo([g],io.prototype,"tabs",2);var tm=Object.defineProperty,om=Object.getOwnPropertyDescriptor,Ia=(o,e,t,r)=>{for(var i=r>1?void 0:r?om(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&tm(e,t,i),i};class Qi extends io{constructor(){super(...arguments),this.appearance=Xb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Nr(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}Ia([a],Qi.prototype,"appearance",2),Ia([a],Qi.prototype,"size",2),Qi.define(Zb);const rm={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Dr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},im=`${h.prefix}-textarea`,nm=p`${w("inline-block")} :host{--font-size:${B};--line-height:${L};--padding-inline:${Qe};--padding-block:${ko};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${I};--control-padding-inline:${V};--color:${_};--background-color:${C};--border-color:${qe};--border-block-end-color:${je};--placeholder-color:${fi};--focus-indicator-color:${at};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Pt};--border-block-end-color:${Ct}}:host(:active){--border-color:${$o};--border-block-end-color:${It}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${M};--line-height:${q};--min-block-size:40px;--padding-block:${qt};--padding-inline:${we};--control-padding-inline:${V}}:host([size='large']){--font-size:${pe};--line-height:${ke};--min-block-size:64px;--padding-block:${ie};--padding-inline:${re};--control-padding-inline:${we}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${bo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${ki}}:host(${Iu}){--border-color:${$i};--border-block-end-color:${$i}}:host(:disabled){--color:${T};--background-color:${he};--border-color:${xe};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${T};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${S};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${_t};transition-duration:${Pi};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vr};transition-delay:${Ot}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${qt};padding-inline-end:${oe}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${wt};background-color:${us}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;function sm(){return b`<template><label ${z("labelEl")} for=control part=label><slot name=label ${G("labelSlottedNodes")}></slot></label><div class=root part=root ${z("rootEl")}><textarea ${z("controlEl")} id=control class=control part=control ?required=${o=>o.required} ?disabled=${o=>o.disabled} ?readonly=${o=>o.readOnly} ?spellcheck=${o=>o.spellcheck} autocomplete=${o=>o.autocomplete} maxlength=${o=>o.maxLength} minlength=${o=>o.minLength} placeholder=${o=>o.placeholder} @change=${o=>o.handleControlChange()} @select=${o=>o.handleControlSelect()} @input=${o=>o.handleControlInput()}></textarea></div><div hidden><slot ${G("defaultSlottedNodes")}></slot></div></template>`}const am=sm(),lm={name:im,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:nm,template:am},cm=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var dm=Object.defineProperty,hm=Object.getOwnPropertyDescriptor,ee=(o,e,t,r)=>{for(var i=r>1?void 0:r?hm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&dm(e,t,i),i};class U extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Dr.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){O.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(cm),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){Tt(this.elementInternals,e,t,Dr,"resize-"),$(this.elementInternals,"resize",ta(Dr,t)&&t!==Dr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl(),et(this)})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals?.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.elementInternals&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl?.validity,t??this.controlEl?.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes?.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}U.formAssociated=!0,ee([g],U.prototype,"controlEl",2),ee([g],U.prototype,"defaultSlottedNodes",2),ee([g],U.prototype,"labelSlottedNodes",2),ee([a],U.prototype,"autocomplete",2),ee([a({attribute:"auto-resize",mode:"boolean"})],U.prototype,"autoResize",2),ee([a({attribute:"dirname"})],U.prototype,"dirName",2),ee([a({mode:"boolean"})],U.prototype,"disabled",2),ee([a({attribute:"display-shadow",mode:"boolean"})],U.prototype,"displayShadow",2),ee([a({attribute:"form"})],U.prototype,"initialForm",2),ee([a({attribute:"maxlength",converter:te})],U.prototype,"maxLength",2),ee([a({attribute:"minlength",converter:te})],U.prototype,"minLength",2),ee([a],U.prototype,"name",2),ee([a],U.prototype,"placeholder",2),ee([a({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",2),ee([a({mode:"boolean"})],U.prototype,"required",2),ee([a({mode:"fromView"})],U.prototype,"resize",2),ee([a({mode:"boolean"})],U.prototype,"spellcheck",2);var um=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,en=(o,e,t,r)=>{for(var i=r>1?void 0:r?pm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&um(e,t,i),i};class Hr extends U{constructor(){super(...arguments),this.appearance=rm.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}en([a({mode:"fromView"})],Hr.prototype,"appearance",2),en([a({mode:"boolean"})],Hr.prototype,"block",2),en([a],Hr.prototype,"size",2),Hr.define(lm);const gm={email:"email",password:"password",tel:"tel",text:"text",url:"url"},fm=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],bm=`${h.prefix}-text-input`,mm=p`${w("block")} :host{font-family:${v};font-size:${B};font-weight:${E};line-height:${L};max-width:400px}.label{display:flex;color:${_};padding-bottom:${qt};flex-shrink:0;padding-inline-end:${oe}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${C};border:${I} solid ${qe};border-bottom-color:${je};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${V};padding:0 ${Qe};position:relative;width:100%}:has(.control:user-invalid){border-color:${$i}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${at};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Pi};transition-delay:${_t}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${S};background:${he};font-family:${v};font-weight:${E};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${fi}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${jt}}:host ::slotted([slot='start']){padding-right:${V}}:host ::slotted([slot='end']){padding-left:${V};gap:${oe}}:host(:hover) .root{border-color:${Pt};border-bottom-color:${Ct}}:host(:active) .root{border-color:${$o}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vr};transition-delay:${Ot}}:host(:focus-within:active) .root:after{border-bottom-color:${ws}}:host([appearance='outline']:focus-within) .root{border:${I} solid ${qe}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${he};border:${I} solid ${xe}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${T}}::selection{color:${wt};background-color:${us}}:host([control-size='small']) .control{font-size:${M};font-weight:${E};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${V};padding:0 ${we}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${pe}}:host([control-size='large']) .control{font-size:${pe};font-weight:${E};line-height:${ke}}:host([control-size='large']) .root{height:40px;gap:${Ne};padding:0 ${re}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${cr}}:host([appearance='underline']) .root{background:${he};border:0;border-radius:0;border-bottom:${I} solid ${je}}:host([appearance='underline']:hover) .root{border-bottom-color:${Ct}}:host([appearance='underline']:active) .root{border-bottom-color:${It}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${It}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${xe}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${I} solid ${K};box-shadow:${ki}}:host([appearance='filled-lighter']) .root{background:${C}}:host([appearance='filled-darker']) .root{background:${bo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${vi}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${vi};background:${bo}}`;function vm(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${z("controlLabel")}><slot ${G("defaultSlottedNodes")}></slot></label><div class=root part=root>${We(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} autocomplete=${e=>e.autocomplete} ?disabled=${e=>e.disabled} list=${e=>e.list} maxlength=${e=>e.maxlength} minlength=${e=>e.minlength} ?multiple=${e=>e.multiple} name=${e=>e.name} pattern=${e=>e.pattern} placeholder=${e=>e.placeholder} ?readonly=${e=>e.readOnly} ?required=${e=>e.required} size=${e=>e.size} spellcheck=${e=>e.spellcheck} type=${e=>e.type} value=${e=>e.value} ${z("control")}> ${ct(o)}</div></template>`}const $m=vm(),ym={name:bm,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:mm,template:$m};var xm=Object.defineProperty,km=Object.getOwnPropertyDescriptor,D=(o,e,t,r)=>{for(var i=r>1?void 0:r?km(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&xm(e,t,i),i};class N extends x{constructor(){super(...arguments),this.type=gm.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){O.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){O.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.elementInternals&&this.control&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity(),et(this)}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>fm.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setValidity(e,t,r){if(this.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}N.formAssociated=!0,D([a],N.prototype,"autocomplete",2),D([a({attribute:"current-value"})],N.prototype,"currentValue",2),D([g],N.prototype,"defaultSlottedNodes",2),D([a],N.prototype,"dirname",2),D([a({mode:"boolean"})],N.prototype,"disabled",2),D([a({attribute:"form"})],N.prototype,"formAttribute",2),D([a({attribute:"value",mode:"fromView"})],N.prototype,"initialValue",2),D([a],N.prototype,"list",2),D([a({converter:te})],N.prototype,"maxlength",2),D([a({converter:te})],N.prototype,"minlength",2),D([a({mode:"boolean"})],N.prototype,"multiple",2),D([a],N.prototype,"name",2),D([a],N.prototype,"pattern",2),D([a],N.prototype,"placeholder",2),D([a({attribute:"readonly",mode:"boolean"})],N.prototype,"readOnly",2),D([a({mode:"boolean"})],N.prototype,"required",2),D([a({converter:te})],N.prototype,"size",2),D([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],N.prototype,"spellcheck",2),D([a],N.prototype,"type",2),D([g],N.prototype,"control",2),D([g],N.prototype,"controlLabel",2);var wm=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Pa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&wm(e,t,i),i};class Vr extends N{}Pa([a],Vr.prototype,"appearance",2),Pa([a({attribute:"control-size"})],Vr.prototype,"controlSize",2),dt(Vr,lt),Vr.define(ym);const Cm=`${h.prefix}-text`,Im=p`${w("inline")} :host{font-family:${v};font-size:${B};line-height:${L};font-weight:${E};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${xo};line-height:${hr}}:host([size='200']){font-size:${M};line-height:${q}}:host([size='400']){font-size:${pe};line-height:${ke}}:host([size='500']){font-size:${jt};line-height:${ur}}:host([size='600']){font-size:${cr};line-height:${Vs}}:host([size='700']){font-size:${Ms};line-height:${Rs}}:host([size='800']){font-size:${Ls};line-height:${js}}:host([size='900']){font-size:${Ds};line-height:${qs}}:host([size='1000']){font-size:${Hs};line-height:${Ws}}:host([font='monospace']){font-family:${Bd}}:host([font='numeric']){font-family:${Ed}}:host([weight='medium']){font-weight:${Nd}}:host([weight='semibold']){font-weight:${H}}:host([weight='bold']){font-weight:${dr}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Pm=b`<slot></slot>`,zm={name:Cm,registry:h.registry,styles:Im,template:Pm};var _m=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,Ye=(o,e,t,r)=>{for(var i=r>1?void 0:r?Om(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&_m(e,t,i),i};class Le extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Ye([a({mode:"boolean"})],Le.prototype,"nowrap",2),Ye([a({mode:"boolean"})],Le.prototype,"truncate",2),Ye([a({mode:"boolean"})],Le.prototype,"italic",2),Ye([a({mode:"boolean"})],Le.prototype,"underline",2),Ye([a({mode:"boolean"})],Le.prototype,"strikethrough",2),Ye([a({mode:"boolean"})],Le.prototype,"block",2),Ye([a],Le.prototype,"size",2),Ye([a],Le.prototype,"font",2),Ye([a],Le.prototype,"weight",2),Ye([a],Le.prototype,"align",2),Le.define(zm);const Tm=`${h.prefix}-toggle-button`,Am=p`${wr} :host(${F}){border-color:${qe};background-color:${hs};color:${_};border-width:${I}}:host(${F}:hover){border-color:${Pt};background-color:${rr}}:host(${F}:active){border-color:${$o};background-color:${bi}}:host(${F}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${F}[appearance='primary']){background-color:${uc};color:${Ze}}:host(${F}[appearance='primary']:hover){background-color:${ms}}:host(${F}[appearance='primary']:active){background-color:${vs}}:host(${F}[appearance='subtle']){border-color:transparent;background-color:${gs};color:${Qo}}:host(${F}[appearance='subtle']:hover){background-color:${ir};color:${Dt}}:host(${F}[appearance='subtle']:active){background-color:${vo};color:${Ht}}:host(${F}[appearance='outline']),:host(${F}[appearance='transparent']){background-color:${fs}}:host(${F}[appearance='outline']:hover),:host(${F}[appearance='transparent']:hover){background-color:${nr}}:host(${F}[appearance='outline']:active),:host(${F}[appearance='transparent']:active){background-color:${sr}}:host(${F}[appearance='transparent']){border-color:transparent;color:${Wl}}:host(${F}[appearance='transparent']:hover){color:${er}}:host(${F}[appearance='transparent']:active){color:${tr}}@media (forced-colors:active){:host(${F}),:host( ${F}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${F}[appearance='primary']){color:SelectedItemText}}`,Bm=Ei(),Em={name:Tm,registry:h.registry,styles:Am,template:Bm};var Nm=Object.defineProperty,Fm=Object.getOwnPropertyDescriptor,za=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Nm(e,t,i),i};class tn extends tt{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}za([a({mode:"boolean"})],tn.prototype,"pressed",2),za([a({mode:"boolean"})],tn.prototype,"mixed",2),tn.define(Em);const Oe={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},Mm=`${h.prefix}-tooltip`,Lm=p`${w("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${qt};--inline-offset:${oe};background:${C};border-radius:${S};border:1px solid ${K};box-sizing:border-box;color:${_};display:inline-flex;filter:drop-shadow(0 0 2px ${bc}) drop-shadow(0 4px 8px ${mc});font-family:${v};font-size:${M};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${Qe} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Oe["above-start"]}}:host([positioning='above']){--position-area:${Oe.above}}:host([positioning='above-end']){--position-area:${Oe["above-end"]}}:host([positioning='below-start']){--position-area:${Oe["below-start"]}}:host([positioning='below']){--position-area:${Oe.below}}:host([positioning='below-end']){--position-area:${Oe["below-end"]}}:host([positioning='before-top']){--position-area:${Oe["before-top"]}}:host([positioning='before']){--position-area:${Oe.before}}:host([positioning='before-bottom']){--position-area:${Oe["before-bottom"]}}:host([positioning='after-top']){--position-area:${Oe["after-top"]}}:host([positioning='after']){--position-area:${Oe.after}}:host([positioning='after-bottom']){--position-area:${Oe["after-bottom"]}}`,Dm=b`<template popover aria-hidden=true><slot></slot></template>`,Hm={name:Mm,registry:h.registry,styles:Lm,template:Dm};var Vm=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,Rr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Vm(e,t,i),i};class Do extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Xe("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),Sr){kh||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}O.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(r=>r!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}async setFallbackStyles(){if(Sr){this.anchorPositioningReady=!0;return}if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},n=i[t]??i.above,s={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},l=s[r]??s.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
18
|
+
`;function ub(){return b`<div ${z("display")} class=display aria-hidden=true></div><slot name=icon ${z("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${o=>o.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${o=>o.formattedCount}</span></slot>`}const pb=ub(),gb=p`${w("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${_c};--_icon-color-empty:${Es};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Mr(db)});--_mask-image-outlined:url(${Mr(hb)});--_mask-position-x:left;align-items:center;color:${_};font-family:${v};font-size:${M};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${B};line-height:${L}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${_};--_icon-color-empty:${mo}}:host([color='brand']){--_icon-color-value:${or};--_icon-color-empty:${ys}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${V});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${V}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${oe};font-weight:${H}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${V}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${we}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${oe}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${V}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${we}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,fb={name:sb,registry:h.registry,styles:gb,template:pb};var bb=Object.defineProperty,mb=Object.getOwnPropertyDescriptor,Xi=(o,e,t,r)=>{for(var i=r>1?void 0:r?mb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&bb(e,t,i),i};class Lr extends ro{constructor(){super(...arguments),this.compact=!1}}Xi([a],Lr.prototype,"color",2),Xi([a],Lr.prototype,"size",2),Xi([a({mode:"boolean"})],Lr.prototype,"compact",2),Lr.define(fb);const vb=Se,$b={singleValue:"single-value"},yb=`${h.prefix}-slider`,xb=p`${w("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${St};--track-color:${je};--slider-direction:90deg;--border-radius:${S};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Vt}}:host(:active){--rail-color:${Rt}}:host(:disabled){--rail-color:${T};--track-color:${st}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Ee}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${le};outline:1px solid ${ar}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${C} calc(var(--step-rate) - 1px),${C} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${ue};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${C} inset;border:calc(var(--thumb-size) * 0.05) solid ${qe};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;function kb(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${z("track")} part=track-container class=track style=${e=>e.position}></div><div ${z("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${fe(o.thumb)}</slot></div></template>`}const wb=kb({thumb:'<div class="thumb"></div>'}),Sb={name:yb,registry:h.registry,styles:xb,template:wb};function wa(o,e,t){return Math.min(Math.max(t,o),e)}const Ki={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function Sa(o,e,t,r){let i=wa(0,1,(o-e)/(t-e));return r===gt.rtl&&(i=1-i),i}var Cb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Q=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ib(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Cb(e,t,i),i};class W extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=gt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=$b.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===Se.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const n=this.orientation===Se.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(n)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??vb.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=wa(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Se.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=fa(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")}),et(this)}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==gt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==gt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==gt.rtl&&this.orientation!==Se.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==gt.rtl&&this.orientation!==Se.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=Sa(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===Se.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=Sa(e,this.orientation===Se.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Se.vertical?this.trackHeight:this.trackWidth,this.orientation===Se.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){O.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}W.formAssociated=!0,Q([a],W.prototype,"size",2),Q([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),Q([g],W.prototype,"direction",2),Q([g],W.prototype,"isDragging",2),Q([g],W.prototype,"position",2),Q([g],W.prototype,"trackWidth",2),Q([g],W.prototype,"trackMinWidth",2),Q([g],W.prototype,"trackHeight",2),Q([g],W.prototype,"trackLeft",2),Q([g],W.prototype,"trackMinHeight",2),Q([g],W.prototype,"valueTextFormatter",2),Q([a({mode:"boolean"})],W.prototype,"disabled",2),Q([a({converter:Ki})],W.prototype,"min",2),Q([a({converter:Ki})],W.prototype,"max",2),Q([a({converter:Ki})],W.prototype,"step",2),Q([a],W.prototype,"orientation",2),Q([a],W.prototype,"mode",2),W.define(Sb);const Pb=`${h.prefix}-spinner`,zb=p`${w("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Ie};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ge};--size:20px}:host([size='extra-small']){--indicatorSize:${ge};--size:24px}:host([size='small']){--indicatorSize:${ge};--size:28px}:host([size='large']){--indicatorSize:${Ie};--size:36px}:host([size='extra-large']){--indicatorSize:${Ie};--size:40px}:host([size='huge']){--indicatorSize:${Si};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${yr}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${ks};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${xs};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${gc}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,_b=b`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`,Ob={name:Pb,registry:h.registry,styles:zb,template:_b};class Tb extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var Ab=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,Ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ab(e,t,i),i};class Yi extends Tb{}Ca([a],Yi.prototype,"size",2),Ca([a],Yi.prototype,"appearance",2),Yi.define(Ob);const Eb=`${h.prefix}-switch`,Nb=p`${w("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${V};width:40px;height:20px;background-color:${he};border:1px solid ${je};border-radius:${ue}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${Ct}}:host(:active){border-color:${It}}:host(:disabled),:host([readonly]){border:1px solid ${xe};background-color:none;pointer:default}:host(${y}){background:${St};border-color:${St}}:host(${y}:hover){background:${Vt};border-color:${Vt}}:host(${y}:active){background:${Rt};border-color:${Rt}}:host(${y}:disabled){background:${st};border-color:${xe}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${vr};transition-timing-function:${yr};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${wt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${rc}}:host(${y}:active) .checked-indicator{background:${ic}}:host(:hover) .checked-indicator{background-color:${Ul}}:host(:active) .checked-indicator{background-color:${Gl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${T}}:host(${y}:disabled) .checked-indicator{background:${T}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${K};outline:${ge} solid ${K};outline-offset:1px;box-shadow:${pr},0 0 0 2px ${le}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${y}:disabled) .checked-indicator{background-color:GrayText}}`;function Fb(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=switch>${fe(o.switch)}</slot></template>`}const Mb=Fb({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Lb={name:Eb,registry:h.registry,styles:Nb,template:Mb};class Db extends Fe{constructor(){super(),this.elementInternals.role="switch"}}Db.define(Lb);function Ji(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Hb=`${h.prefix}-tab`,Vb=p`${w("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${L};font-family:${v};font-size:${B};color:${Be};fill:currentcolor;grid-row:1;padding:${re} ${Qe};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${H}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${L};font-weight:${H}}:host([aria-selected='true'])::after{background-color:${at};border-radius:${ue};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Pt};border-radius:${ue};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${Pt}}}:host([aria-selected='true'][disabled])::after{background-color:${T}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${T};color:${T};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ee};box-shadow:0 0 0 3px ${le};outline:1px solid ${ar}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;function Rb(o={}){return b`<template slot=tab role=tab>${We(o)} <span class=tab-content><slot></slot></span>${ct(o)}</template>`}const jb=Rb({}),qb={name:Hb,registry:h.registry,styles:Vb,template:jb};var Wb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Gb=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ub(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Wb(e,t,i),i};class Zi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),et(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}Gb([a({mode:"boolean"})],Zi.prototype,"disabled",2),dt(Zi,lt),Zi.define(qb);const Xb={subtle:"subtle",transparent:"transparent"},Mo=Se,Kb=`${h.prefix}-tablist`,Yb=p`${w("flex")} :host{--tabPaddingInline:${Qe};--tabPaddingBlock:${re};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Be};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${ko};--tabPaddingInline:${we}}:host([size='large']){--tabPaddingBlock:${Ii};--tabPaddingInline:${Qe}}:host([orientation='vertical']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${ie};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${fr};--tabIndicatorInsetBlock:${ko}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${br}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${Ie};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Ie};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Ie};border-radius:${ue};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${T}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Ie};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Ie};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${B};line-height:${L}}:host([size='large']) ::slotted([slot='tab']){font-size:${pe};line-height:${ke}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${T}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${T}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${ir};color:${cs};fill:${tc}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${vo};fill:${vo};color:${_}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${at};content:'';inline-size:100%;inset-block:auto anchor(end);inset-inline:anchor(center) auto;position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${Rd};transition-timing-function:${Xs};z-index:3;border-radius:${ue};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Ie}}:host(:dir(rtl))::after{transform:translateX(50%)}:host([orientation='vertical'])::after{inset-block:anchor(center) auto;inset-inline:anchor(start) auto;transform:translateY(-50%);transition-property:inset-block,height;width:${Ie};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host([disabled])::after{background-color:${T}}}`,Jb=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${G("slottedTabs")}></slot></template>`,Zb={name:Kb,registry:h.registry,styles:Yb,template:Jb};var Qb=Object.defineProperty,em=Object.getOwnPropertyDescriptor,Lo=(o,e,t,r)=>{for(var i=r>1?void 0:r?em(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Qb(e,t,i),i};class io extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Mo.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??Mo.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??Mo.horizontal,Tt(this.elementInternals,e,t,Mo)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>Ji(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.tabs.some(s=>!!s.querySelector("[slot='start']")),i=this.getRootNode();let n="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Xe("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!n&&!s.disabled&&(n=s.id);const l=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",l),s.setAttribute("aria-selected",l.toString()),s.toggleAttribute("data-hasIndent",r&&this.orientation===Mo.vertical),e){const u=s.getAttribute("aria-controls")??"",d=i.getElementById(u);u&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==s.id,this.tabPanelMap.set(s,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):n&&(this.activeid=n))}handleFocusIn(e){const t=e.target;!Ji(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),i=e?r.getElementById(e):null,n=r.getElementById(t);if(!Ji(n)||!this.contains(n))return;if(i){i.setAttribute("aria-selected","false");const l=this.tabPanelMap.get(i);l&&(l.hidden=!0)}n.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(n);s&&(s.hidden=!1),this.activetab=n,this.change()}connectedCallback(){super.connectedCallback(),Co(this,()=>{this.setTabs()},{shallow:!0})}}Lo([a({mode:"boolean"})],io.prototype,"disabled",2),Lo([a],io.prototype,"orientation",2),Lo([a],io.prototype,"activeid",2),Lo([g],io.prototype,"slottedTabs",2),Lo([g],io.prototype,"tabs",2);var tm=Object.defineProperty,om=Object.getOwnPropertyDescriptor,Ia=(o,e,t,r)=>{for(var i=r>1?void 0:r?om(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&tm(e,t,i),i};class Qi extends io{constructor(){super(...arguments),this.appearance=Xb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Nr(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}Ia([a],Qi.prototype,"appearance",2),Ia([a],Qi.prototype,"size",2),Qi.define(Zb);const rm={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Dr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},im=`${h.prefix}-textarea`,nm=p`${w("inline-block")} :host{--font-size:${B};--line-height:${L};--padding-inline:${Qe};--padding-block:${ko};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${I};--control-padding-inline:${V};--color:${_};--background-color:${C};--border-color:${qe};--border-block-end-color:${je};--placeholder-color:${fi};--focus-indicator-color:${at};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Pt};--border-block-end-color:${Ct}}:host(:active){--border-color:${$o};--border-block-end-color:${It}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${M};--line-height:${q};--min-block-size:40px;--padding-block:${qt};--padding-inline:${we};--control-padding-inline:${V}}:host([size='large']){--font-size:${pe};--line-height:${ke};--min-block-size:64px;--padding-block:${ie};--padding-inline:${re};--control-padding-inline:${we}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${bo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${ki}}:host(${Iu}){--border-color:${$i};--border-block-end-color:${$i}}:host(:disabled){--color:${T};--background-color:${he};--border-color:${xe};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${T};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${S};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${_t};transition-duration:${Pi};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vr};transition-delay:${Ot}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${qt};padding-inline-end:${oe}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${wt};background-color:${us}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;function sm(){return b`<template><label ${z("labelEl")} for=control part=label><slot name=label ${G("labelSlottedNodes")}></slot></label><div class=root part=root ${z("rootEl")}><textarea ${z("controlEl")} id=control class=control part=control ?required=${o=>o.required} ?disabled=${o=>o.disabled} ?readonly=${o=>o.readOnly} ?spellcheck=${o=>o.spellcheck} autocomplete=${o=>o.autocomplete} maxlength=${o=>o.maxLength} minlength=${o=>o.minLength} placeholder=${o=>o.placeholder} @change=${o=>o.handleControlChange()} @select=${o=>o.handleControlSelect()} @input=${o=>o.handleControlInput()}></textarea></div><div hidden><slot ${G("defaultSlottedNodes")}></slot></div></template>`}const am=sm(),lm={name:im,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:nm,template:am},cm=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var dm=Object.defineProperty,hm=Object.getOwnPropertyDescriptor,ee=(o,e,t,r)=>{for(var i=r>1?void 0:r?hm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&dm(e,t,i),i};class U extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Dr.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){O.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(cm),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){Tt(this.elementInternals,e,t,Dr,"resize-"),$(this.elementInternals,"resize",ta(Dr,t)&&t!==Dr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl(),et(this)})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals?.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.elementInternals&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl?.validity,t??this.controlEl?.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes?.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}U.formAssociated=!0,ee([g],U.prototype,"controlEl",2),ee([g],U.prototype,"defaultSlottedNodes",2),ee([g],U.prototype,"labelSlottedNodes",2),ee([a],U.prototype,"autocomplete",2),ee([a({attribute:"auto-resize",mode:"boolean"})],U.prototype,"autoResize",2),ee([a({attribute:"dirname"})],U.prototype,"dirName",2),ee([a({mode:"boolean"})],U.prototype,"disabled",2),ee([a({attribute:"display-shadow",mode:"boolean"})],U.prototype,"displayShadow",2),ee([a({attribute:"form"})],U.prototype,"initialForm",2),ee([a({attribute:"maxlength",converter:te})],U.prototype,"maxLength",2),ee([a({attribute:"minlength",converter:te})],U.prototype,"minLength",2),ee([a],U.prototype,"name",2),ee([a],U.prototype,"placeholder",2),ee([a({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",2),ee([a({mode:"boolean"})],U.prototype,"required",2),ee([a({mode:"fromView"})],U.prototype,"resize",2),ee([a({mode:"boolean"})],U.prototype,"spellcheck",2);var um=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,en=(o,e,t,r)=>{for(var i=r>1?void 0:r?pm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&um(e,t,i),i};class Hr extends U{constructor(){super(...arguments),this.appearance=rm.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}en([a({mode:"fromView"})],Hr.prototype,"appearance",2),en([a({mode:"boolean"})],Hr.prototype,"block",2),en([a],Hr.prototype,"size",2),Hr.define(lm);const gm={email:"email",password:"password",tel:"tel",text:"text",url:"url"},fm=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],bm=`${h.prefix}-text-input`,mm=p`${w("block")} :host{font-family:${v};font-size:${B};font-weight:${E};line-height:${L};max-width:400px}.label{display:flex;color:${_};padding-bottom:${qt};flex-shrink:0;padding-inline-end:${oe}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${C};border:${I} solid ${qe};border-bottom-color:${je};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${V};padding:0 ${Qe};position:relative;width:100%}:has(.control:user-invalid){border-color:${$i}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${at};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Pi};transition-delay:${_t}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${S};background:${he};font-family:${v};font-weight:${E};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${fi}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${jt}}:host ::slotted([slot='start']){padding-right:${V}}:host ::slotted([slot='end']){padding-left:${V};gap:${oe}}:host(:hover) .root{border-color:${Pt};border-bottom-color:${Ct}}:host(:active) .root{border-color:${$o}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vr};transition-delay:${Ot}}:host(:focus-within:active) .root:after{border-bottom-color:${ws}}:host([appearance='outline']:focus-within) .root{border:${I} solid ${qe}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${he};border:${I} solid ${xe}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${T}}::selection{color:${wt};background-color:${us}}:host([control-size='small']) .control{font-size:${M};font-weight:${E};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${V};padding:0 ${we}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${pe}}:host([control-size='large']) .control{font-size:${pe};font-weight:${E};line-height:${ke}}:host([control-size='large']) .root{height:40px;gap:${Ne};padding:0 ${re}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${cr}}:host([appearance='underline']) .root{background:${he};border:0;border-radius:0;border-bottom:${I} solid ${je}}:host([appearance='underline']:hover) .root{border-bottom-color:${Ct}}:host([appearance='underline']:active) .root{border-bottom-color:${It}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${It}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${xe}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${I} solid ${K};box-shadow:${ki}}:host([appearance='filled-lighter']) .root{background:${C}}:host([appearance='filled-darker']) .root{background:${bo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${vi}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${vi};background:${bo}}`;function vm(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${z("controlLabel")}><slot ${G("defaultSlottedNodes")}></slot></label><div class=root part=root>${We(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} autocomplete=${e=>e.autocomplete} ?disabled=${e=>e.disabled} list=${e=>e.list} maxlength=${e=>e.maxlength} minlength=${e=>e.minlength} ?multiple=${e=>e.multiple} name=${e=>e.name} pattern=${e=>e.pattern} placeholder=${e=>e.placeholder} ?readonly=${e=>e.readOnly} ?required=${e=>e.required} size=${e=>e.size} spellcheck=${e=>e.spellcheck} type=${e=>e.type} value=${e=>e.value} ${z("control")}> ${ct(o)}</div></template>`}const $m=vm(),ym={name:bm,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:mm,template:$m};var xm=Object.defineProperty,km=Object.getOwnPropertyDescriptor,D=(o,e,t,r)=>{for(var i=r>1?void 0:r?km(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&xm(e,t,i),i};class N extends x{constructor(){super(...arguments),this.type=gm.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){O.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){O.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.elementInternals&&this.control&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity(),et(this)}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>fm.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setValidity(e,t,r){if(this.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}N.formAssociated=!0,D([a],N.prototype,"autocomplete",2),D([a({attribute:"current-value"})],N.prototype,"currentValue",2),D([g],N.prototype,"defaultSlottedNodes",2),D([a],N.prototype,"dirname",2),D([a({mode:"boolean"})],N.prototype,"disabled",2),D([a({attribute:"form"})],N.prototype,"formAttribute",2),D([a({attribute:"value",mode:"fromView"})],N.prototype,"initialValue",2),D([a],N.prototype,"list",2),D([a({converter:te})],N.prototype,"maxlength",2),D([a({converter:te})],N.prototype,"minlength",2),D([a({mode:"boolean"})],N.prototype,"multiple",2),D([a],N.prototype,"name",2),D([a],N.prototype,"pattern",2),D([a],N.prototype,"placeholder",2),D([a({attribute:"readonly",mode:"boolean"})],N.prototype,"readOnly",2),D([a({mode:"boolean"})],N.prototype,"required",2),D([a({converter:te})],N.prototype,"size",2),D([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],N.prototype,"spellcheck",2),D([a],N.prototype,"type",2),D([g],N.prototype,"control",2),D([g],N.prototype,"controlLabel",2);var wm=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Pa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&wm(e,t,i),i};class Vr extends N{}Pa([a],Vr.prototype,"appearance",2),Pa([a({attribute:"control-size"})],Vr.prototype,"controlSize",2),dt(Vr,lt),Vr.define(ym);const Cm=`${h.prefix}-text`,Im=p`${w("inline")} :host{font-family:${v};font-size:${B};line-height:${L};font-weight:${E};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${xo};line-height:${hr}}:host([size='200']){font-size:${M};line-height:${q}}:host([size='400']){font-size:${pe};line-height:${ke}}:host([size='500']){font-size:${jt};line-height:${ur}}:host([size='600']){font-size:${cr};line-height:${Vs}}:host([size='700']){font-size:${Ms};line-height:${Rs}}:host([size='800']){font-size:${Ls};line-height:${js}}:host([size='900']){font-size:${Ds};line-height:${qs}}:host([size='1000']){font-size:${Hs};line-height:${Ws}}:host([font='monospace']){font-family:${Bd}}:host([font='numeric']){font-family:${Ed}}:host([weight='medium']){font-weight:${Nd}}:host([weight='semibold']){font-weight:${H}}:host([weight='bold']){font-weight:${dr}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Pm=b`<slot></slot>`,zm={name:Cm,registry:h.registry,styles:Im,template:Pm};var _m=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,Ye=(o,e,t,r)=>{for(var i=r>1?void 0:r?Om(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&_m(e,t,i),i};class Le extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Ye([a({mode:"boolean"})],Le.prototype,"nowrap",2),Ye([a({mode:"boolean"})],Le.prototype,"truncate",2),Ye([a({mode:"boolean"})],Le.prototype,"italic",2),Ye([a({mode:"boolean"})],Le.prototype,"underline",2),Ye([a({mode:"boolean"})],Le.prototype,"strikethrough",2),Ye([a({mode:"boolean"})],Le.prototype,"block",2),Ye([a],Le.prototype,"size",2),Ye([a],Le.prototype,"font",2),Ye([a],Le.prototype,"weight",2),Ye([a],Le.prototype,"align",2),Le.define(zm);const Tm=`${h.prefix}-toggle-button`,Am=p`${wr} :host(${F}){border-color:${qe};background-color:${hs};color:${_};border-width:${I}}:host(${F}:hover){border-color:${Pt};background-color:${rr}}:host(${F}:active){border-color:${$o};background-color:${bi}}:host(${F}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${F}[appearance='primary']){background-color:${uc};color:${Ze}}:host(${F}[appearance='primary']:hover){background-color:${ms}}:host(${F}[appearance='primary']:active){background-color:${vs}}:host(${F}[appearance='subtle']){border-color:transparent;background-color:${gs};color:${Qo}}:host(${F}[appearance='subtle']:hover){background-color:${ir};color:${Dt}}:host(${F}[appearance='subtle']:active){background-color:${vo};color:${Ht}}:host(${F}[appearance='outline']),:host(${F}[appearance='transparent']){background-color:${fs}}:host(${F}[appearance='outline']:hover),:host(${F}[appearance='transparent']:hover){background-color:${nr}}:host(${F}[appearance='outline']:active),:host(${F}[appearance='transparent']:active){background-color:${sr}}:host(${F}[appearance='transparent']){border-color:transparent;color:${Wl}}:host(${F}[appearance='transparent']:hover){color:${er}}:host(${F}[appearance='transparent']:active){color:${tr}}@media (forced-colors:active){:host(${F}),:host( ${F}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${F}[appearance='primary']){color:SelectedItemText}}`,Bm=Ei(),Em={name:Tm,registry:h.registry,styles:Am,template:Bm};var Nm=Object.defineProperty,Fm=Object.getOwnPropertyDescriptor,za=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Nm(e,t,i),i};class tn extends tt{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}za([a({mode:"boolean"})],tn.prototype,"pressed",2),za([a({mode:"boolean"})],tn.prototype,"mixed",2),tn.define(Em);const Oe={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},Mm=`${h.prefix}-tooltip`,Lm=p`${w("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${qt};--inline-offset:${oe};background:${C};border-radius:${S};border:1px solid ${K};box-sizing:border-box;color:${_};display:inline-flex;filter:drop-shadow(0 0 2px ${bc}) drop-shadow(0 4px 8px ${mc});font-family:${v};font-size:${M};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${Qe} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Oe["above-start"]}}:host([positioning='above']){--position-area:${Oe.above}}:host([positioning='above-end']){--position-area:${Oe["above-end"]}}:host([positioning='below-start']){--position-area:${Oe["below-start"]}}:host([positioning='below']){--position-area:${Oe.below}}:host([positioning='below-end']){--position-area:${Oe["below-end"]}}:host([positioning='before-top']){--position-area:${Oe["before-top"]}}:host([positioning='before']){--position-area:${Oe.before}}:host([positioning='before-bottom']){--position-area:${Oe["before-bottom"]}}:host([positioning='after-top']){--position-area:${Oe["after-top"]}}:host([positioning='after']){--position-area:${Oe.after}}:host([positioning='after-bottom']){--position-area:${Oe["after-bottom"]}}`,Dm=b`<template popover aria-hidden=true><slot></slot></template>`,Hm={name:Mm,registry:h.registry,styles:Lm,template:Dm};var Vm=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,Rr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Vm(e,t,i),i};class Do extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Xe("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),Sr){kh||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}O.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(r=>r!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}async setFallbackStyles(){if(Sr){this.anchorPositioningReady=!0;return}if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},n=i[t]??i.above,s={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},l=s[r]??s.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
19
19
|
#${this.anchor} {
|
|
20
20
|
anchor-name: ${e};
|
|
21
21
|
}
|
|
@@ -26,7 +26,7 @@ const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis
|
|
|
26
26
|
${n}
|
|
27
27
|
${l}
|
|
28
28
|
}
|
|
29
|
-
`,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}Rr([a],Do.prototype,"id",2),Rr([a({converter:te})],Do.prototype,"delay",2),Rr([a],Do.prototype,"positioning",2),Rr([a],Do.prototype,"anchor",2),Do.define(Hm);const jm=`${h.prefix}-tree`,qm=p`${w("block")} :host{outline:none}`,Wm=b`<template tabindex=0 focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${(o,e)=>o.itemToggleHandler()}><slot ${z("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Um={name:jm,registry:h.registry,styles:qm,template:Wm},_a={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Oa={small:"small",medium:"medium"};function Te(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Gm=`${h.prefix}-tree-item`;var Xm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,on=(o,e,t,r)=>{for(var i=r>1?void 0:r?Km(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Xm(e,t,i),i};class jr extends x{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Te(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Te(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Te(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Te(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Te(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Te(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const i of r)e.push(i),t(i.childTreeItems)};return t(this.childTreeItems),e}}on([g],jr.prototype,"currentSelected",2),on([g],jr.prototype,"defaultSlot",2),on([g],jr.prototype,"childTreeItems",2);var Ym=Object.defineProperty,Jm=Object.getOwnPropertyDescriptor,Ta=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ym(e,t,i),i};class rn extends jr{constructor(){super(...arguments),this.size=Oa.small,this.appearance=_a.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Nr(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Ta([a],rn.prototype,"size",2),Ta([a],rn.prototype,"appearance",2),rn.define(Um);const Zm=p`${w("block")} :host{outline:none;font-size:${B};line-height:${L}}:host(:focus-visible) .positioning-region{box-shadow:${Ci} ${Ci} ${Ci} ${fr} ${le} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${Vd};padding-inline-start:calc(var(--indent) * ${gr});padding-inline-end:${ie};border-radius:${S};background-color:${ps};color:${Be};gap:${oe}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${le}}}.content{display:flex;align-items:center;gap:${oe}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${gr};height:${zt};transition:transform ${mr} ${Ks};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${ir};color:${Dt}}.positioning-region:active{background-color:${vo};color:${Ht}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${V}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${gs};color:${Qo}}:host([selected]) .content,:host([selected]) .chevron{color:${Xl}}:host([size='small']) .positioning-region{height:${zt};padding-inline-start:calc(var(--indent) * ${re})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${cc}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${dc}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${hc};color:${Qo}}:host([appearance='transparent']) .positioning-region{background-color:${he}}:host([appearance='transparent']) .positioning-region:hover{background-color:${nr}}:host([appearance='transparent']) .positioning-region:active{background-color:${sr}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${fs};color:${Qo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Qm=b`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,ev=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${Qm}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${z("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,tv={name:Gm,registry:h.registry,styles:Zm,template:ev};var ov=Object.defineProperty,rv=Object.getOwnPropertyDescriptor,no=(o,e,t,r)=>{for(var i=r>1?void 0:r?rv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ov(e,t,i),i};class Ft extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),Te(this.parentElement)&&(this.slot||(this.slot="item")),et(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,i=>Te(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const i=r.currentNode;t?i.removeAttribute("focusgroup"):(i.selected&&(i.selected=!1),i.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&($(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Te(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Te(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Te(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Te(e))}}no([g],Ft.prototype,"itemSlot",2),no([a({mode:"boolean"})],Ft.prototype,"expanded",2),no([a({mode:"boolean"})],Ft.prototype,"selected",2),no([a({mode:"boolean"})],Ft.prototype,"empty",2),no([a({attribute:"data-indent"})],Ft.prototype,"dataIndent",2),no([g],Ft.prototype,"childTreeItems",2);var iv=Object.defineProperty,nv=Object.getOwnPropertyDescriptor,Aa=(o,e,t,r)=>{for(var i=r>1?void 0:r?nv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&iv(e,t,i),i};class nn extends Ft{constructor(){super(...arguments),this.size=Oa.small,this.appearance=_a.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Aa([a],nn.prototype,"size",2),Aa([a],nn.prototype,"appearance",2),nn.define(tv);const sv="adoptedStyleSheets"in document,av="CSSScopeRule"in window,sn=new Map,an=new Map,Ho=new Map,ln=new Map,Vo=new CSSStyleSheet;function lv(o,e=document){if(!(!e||!cv(e))){if(!sv||e instanceof HTMLElement&&!e.shadowRoot&&!av){const t=e===document?document.documentElement:e;gv(o,t);return}[document,document.documentElement,document.body].includes(e)?dv(o):hv(o,e)}}function cn(o){if(!sn.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);sn.set(o,e.join(""))}return sn.get(o)}function cv(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function dv(o){if(o===null){document.adoptedStyleSheets.includes(Vo)&&Vo.replaceSync("");return}Vo.replaceSync(`
|
|
29
|
+
`,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}Rr([a],Do.prototype,"id",2),Rr([a({converter:te})],Do.prototype,"delay",2),Rr([a],Do.prototype,"positioning",2),Rr([a],Do.prototype,"anchor",2),Do.define(Hm);const jm=`${h.prefix}-tree`,qm=p`${w("block")} :host{outline:none}`,Wm=b`<template focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${o=>o.itemToggleHandler()}><slot ${z("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Um={name:jm,registry:h.registry,styles:qm,template:Wm},_a={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Oa={small:"small",medium:"medium"};function Te(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Gm=`${h.prefix}-tree-item`;var Xm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,on=(o,e,t,r)=>{for(var i=r>1?void 0:r?Km(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Xm(e,t,i),i};class jr extends x{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Te(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Te(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Te(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Te(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Te(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Te(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const i of r)e.push(i),t(i.childTreeItems)};return t(this.childTreeItems),e}}on([g],jr.prototype,"currentSelected",2),on([g],jr.prototype,"defaultSlot",2),on([g],jr.prototype,"childTreeItems",2);var Ym=Object.defineProperty,Jm=Object.getOwnPropertyDescriptor,Ta=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ym(e,t,i),i};class rn extends jr{constructor(){super(...arguments),this.size=Oa.small,this.appearance=_a.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Nr(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Ta([a],rn.prototype,"size",2),Ta([a],rn.prototype,"appearance",2),rn.define(Um);const Zm=p`${w("block")} :host{outline:none;font-size:${B};line-height:${L}}:host(:focus-visible) .positioning-region{box-shadow:${Ci} ${Ci} ${Ci} ${fr} ${le} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${Vd};padding-inline-start:calc(var(--indent) * ${gr});padding-inline-end:${ie};border-radius:${S};background-color:${ps};color:${Be};gap:${oe}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${le}}}.content{display:flex;align-items:center;gap:${oe}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${gr};height:${zt};transition:transform ${mr} ${Ks};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${ir};color:${Dt}}.positioning-region:active{background-color:${vo};color:${Ht}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${V}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${gs};color:${Qo}}:host([selected]) .content,:host([selected]) .chevron{color:${Xl}}:host([size='small']) .positioning-region{height:${zt};padding-inline-start:calc(var(--indent) * ${re})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${cc}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${dc}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${hc};color:${Qo}}:host([appearance='transparent']) .positioning-region{background-color:${he}}:host([appearance='transparent']) .positioning-region:hover{background-color:${nr}}:host([appearance='transparent']) .positioning-region:active{background-color:${sr}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${fs};color:${Qo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Qm=b`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,ev=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${Qm}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${z("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,tv={name:Gm,registry:h.registry,styles:Zm,template:ev};var ov=Object.defineProperty,rv=Object.getOwnPropertyDescriptor,no=(o,e,t,r)=>{for(var i=r>1?void 0:r?rv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ov(e,t,i),i};class Ft extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),Te(this.parentElement)&&(this.slot||(this.slot="item")),et(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,i=>Te(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const i=r.currentNode;t?i.removeAttribute("focusgroup"):(i.selected&&(i.selected=!1),i.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&($(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Te(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Te(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Te(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Te(e))}}no([g],Ft.prototype,"itemSlot",2),no([a({mode:"boolean"})],Ft.prototype,"expanded",2),no([a({mode:"boolean"})],Ft.prototype,"selected",2),no([a({mode:"boolean"})],Ft.prototype,"empty",2),no([a({attribute:"data-indent"})],Ft.prototype,"dataIndent",2),no([g],Ft.prototype,"childTreeItems",2);var iv=Object.defineProperty,nv=Object.getOwnPropertyDescriptor,Aa=(o,e,t,r)=>{for(var i=r>1?void 0:r?nv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&iv(e,t,i),i};class nn extends Ft{constructor(){super(...arguments),this.size=Oa.small,this.appearance=_a.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Aa([a],nn.prototype,"size",2),Aa([a],nn.prototype,"appearance",2),nn.define(tv);const sv="adoptedStyleSheets"in document,av="CSSScopeRule"in window,sn=new Map,an=new Map,Ho=new Map,ln=new Map,Vo=new CSSStyleSheet;function lv(o,e=document){if(!(!e||!cv(e))){if(!sv||e instanceof HTMLElement&&!e.shadowRoot&&!av){const t=e===document?document.documentElement:e;gv(o,t);return}[document,document.documentElement,document.body].includes(e)?dv(o):hv(o,e)}}function cn(o){if(!sn.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);sn.set(o,e.join(""))}return sn.get(o)}function cv(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function dv(o){if(o===null){document.adoptedStyleSheets.includes(Vo)&&Vo.replaceSync("");return}Vo.replaceSync(`
|
|
30
30
|
html {
|
|
31
31
|
${cn(o)}
|
|
32
32
|
}
|