@fluentui/web-components 3.0.0-beta.116 → 3.0.0-beta.117

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 CHANGED
@@ -1,12 +1,21 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Wed, 13 Aug 2025 04:08:06 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 25 Aug 2025 04:07:37 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.0.0-beta.117](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.117)
8
+
9
+ Mon, 25 Aug 2025 04:07:37 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.116..@fluentui/web-components_v3.0.0-beta.117)
11
+
12
+ ### Changes
13
+
14
+ - fix: remove unnecessary type check for better ssr compatibility ([PR #35073](https://github.com/microsoft/fluentui/pull/35073) by machi@microsoft.com)
15
+
7
16
  ## [3.0.0-beta.116](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.116)
8
17
 
9
- Wed, 13 Aug 2025 04:08:06 GMT
18
+ Wed, 13 Aug 2025 04:08:18 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.115..@fluentui/web-components_v3.0.0-beta.116)
11
20
 
12
21
  ### Changes
@@ -44,11 +44,9 @@ export class Accordion extends FASTElement {
44
44
  // Add event listeners to each non-disabled AccordionItem
45
45
  this.accordionItems = children.filter(child => !child.hasAttribute('disabled'));
46
46
  this.accordionItems.forEach((item, index) => {
47
- if (item instanceof BaseAccordionItem) {
48
- item.addEventListener('click', this.expandedChangedHandler);
49
- // Subscribe to the expanded attribute of the item
50
- Observable.getNotifier(item).subscribe(this, 'expanded');
51
- }
47
+ item.addEventListener('click', this.expandedChangedHandler);
48
+ // Subscribe to the expanded attribute of the item
49
+ Observable.getNotifier(item).subscribe(this, 'expanded');
52
50
  });
53
51
  if (this.isSingleExpandMode()) {
54
52
  const expandedItem = this.findExpandedItem();
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/accordion/accordion.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;;;;;;;GAUG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE;;;;;;;WAOG;QAEI,eAAU,GAAwB,mBAAmB,CAAC,KAAK,CAAC;QAyD3D,oBAAe,GAAW,CAAC,CAAC;QAkBpC;;;;WAIG;QACK,aAAQ,GAAG,GAAS,EAAE;YAC5B,IAAI,IAAI,CAAC,qBAAqB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC5C,OAAO;YACT,CAAC;YAED,uDAAuD;YACvD,MAAM,QAAQ,GAAc,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACtD,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YAEnC,0DAA0D;YAC1D,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;YAEhG,yDAAyD;YACzD,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;YAChF,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,IAAa,EAAE,KAAa,EAAE,EAAE;gBAC3D,IAAI,IAAI,YAAY,iBAAiB,EAAE,CAAC;oBACtC,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;oBAC5D,kDAAkD;oBAClD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBAC3D,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC;gBAC9B,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAuB,CAAC;gBAClE,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;YACzC,CAAC;QACH,CAAC,CAAC;QAsCF;;;WAGG;QACK,wBAAmB,GAAG,CAAC,QAAa,EAAQ,EAAE;YACpD,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAiB,EAAE,KAAa,EAAE,EAAE;gBACpD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBAC3D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBAC3D,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;YACjE,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QAEF;;;;WAIG;QACK,2BAAsB,GAAkB,CAAC,GAAU,EAAQ,EAAE;YACnE,MAAM,IAAI,GAAG,GAAG,CAAC,MAAqB,CAAC;YAEvC,IAAI,IAAI,YAAY,iBAAiB,EAAE,CAAC;gBACtC,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC;oBAC/B,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;oBAC/B,sDAAsD;oBACtD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBAC3D,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;gBACjC,CAAC;gBAED,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACvB,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;IA/KQ,iBAAiB,CAAC,IAAyB,EAAE,IAAyB;QAC3E,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC;YACtC,OAAO;QACT,CAAC;QAED,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAE7C,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,OAAO;QACT,CAAC;QAED,IAAI,IAAI,KAAK,mBAAmB,CAAC,MAAM,EAAE,CAAC;YACxC,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;YACvC,OAAO;QACT,CAAC;QAED,uCAAuC;QACtC,YAAkC,EAAE,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;IACrF,CAAC;IAaD;;OAEG;IACI,4BAA4B,CAAC,QAAuB,EAAE,QAAuB;QAClF,IAAI,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC;YACrC,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClB,CAAC;IACH,CAAC;IAED;;;OAGG;IACI,YAAY,CAAC,MAAW,EAAE,YAAoB;QACnD,IAAI,YAAY,KAAK,UAAU,EAAE,CAAC;YAChC,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClB,CAAC;aAAM,IAAI,YAAY,KAAK,UAAU,EAAE,CAAC;YACvC,mDAAmD;YACnD,8DAA8D;YAC9D,IAAI,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC;gBACjD,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;YACnC,CAAC;QACH,CAAC;IACH,CAAC;IAID;;;OAGG;IACK,gBAAgB;QACtB,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrC,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,CACL,IAAI,CAAC,cAAc,CAAC,IAAI,CACtB,CAAC,IAAiC,EAAE,EAAE,CAAC,IAAI,YAAY,iBAAiB,IAAI,IAAI,CAAC,QAAQ,CAC1F,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAC5B,CAAC;IACJ,CAAC;IAmCD;;;OAGG;IACK,kBAAkB;QACxB,OAAO,IAAI,CAAC,UAAU,KAAK,mBAAmB,CAAC,MAAM,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACK,mBAAmB,CAAC,YAAqB;QAC/C,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrC,OAAO;QACT,CAAC;QACD,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACrD,IAAI,CAAC,eAAe,GAAG,YAAY,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAE1D,YAAY,CAAC,OAAO,CAAC,CAAC,IAAa,EAAE,KAAa,EAAE,EAAE;YACpD,IAAI,IAAI,YAAY,iBAAiB,EAAE,CAAC;gBACtC,IAAI,IAAI,CAAC,eAAe,KAAK,KAAK,EAAE,CAAC;oBACnC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;oBACrB,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;gBAC1D,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;oBAEtB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;wBACnC,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;oBACrD,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CAkCF;AAhLQ;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;6CACgC;AAyB5D;IADN,UAAU;wDACkC"}
1
+ {"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/accordion/accordion.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;;;;;;;GAUG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE;;;;;;;WAOG;QAEI,eAAU,GAAwB,mBAAmB,CAAC,KAAK,CAAC;QAyD3D,oBAAe,GAAW,CAAC,CAAC;QAkBpC;;;;WAIG;QACK,aAAQ,GAAG,GAAS,EAAE;YAC5B,IAAI,IAAI,CAAC,qBAAqB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC5C,OAAO;YACT,CAAC;YAED,uDAAuD;YACvD,MAAM,QAAQ,GAAc,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACtD,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YAEnC,0DAA0D;YAC1D,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;YAEhG,yDAAyD;YACzD,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;YAChF,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,IAAa,EAAE,KAAa,EAAE,EAAE;gBAC3D,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;gBAC5D,kDAAkD;gBAClD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;YAC3D,CAAC,CAAC,CAAC;YAEH,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC;gBAC9B,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAuB,CAAC;gBAClE,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;YACzC,CAAC;QACH,CAAC,CAAC;QAsCF;;;WAGG;QACK,wBAAmB,GAAG,CAAC,QAAa,EAAQ,EAAE;YACpD,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAiB,EAAE,KAAa,EAAE,EAAE;gBACpD,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBAC3D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBAC3D,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;YACjE,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QAEF;;;;WAIG;QACK,2BAAsB,GAAkB,CAAC,GAAU,EAAQ,EAAE;YACnE,MAAM,IAAI,GAAG,GAAG,CAAC,MAAqB,CAAC;YAEvC,IAAI,IAAI,YAAY,iBAAiB,EAAE,CAAC;gBACtC,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC;oBAC/B,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;oBAC/B,sDAAsD;oBACtD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBAC3D,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;gBACjC,CAAC;gBAED,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACvB,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;IA7KQ,iBAAiB,CAAC,IAAyB,EAAE,IAAyB;QAC3E,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC;YACtC,OAAO;QACT,CAAC;QAED,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAE7C,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,OAAO;QACT,CAAC;QAED,IAAI,IAAI,KAAK,mBAAmB,CAAC,MAAM,EAAE,CAAC;YACxC,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;YACvC,OAAO;QACT,CAAC;QAED,uCAAuC;QACtC,YAAkC,EAAE,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;IACrF,CAAC;IAaD;;OAEG;IACI,4BAA4B,CAAC,QAAuB,EAAE,QAAuB;QAClF,IAAI,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC;YACrC,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClB,CAAC;IACH,CAAC;IAED;;;OAGG;IACI,YAAY,CAAC,MAAW,EAAE,YAAoB;QACnD,IAAI,YAAY,KAAK,UAAU,EAAE,CAAC;YAChC,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClB,CAAC;aAAM,IAAI,YAAY,KAAK,UAAU,EAAE,CAAC;YACvC,mDAAmD;YACnD,8DAA8D;YAC9D,IAAI,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC;gBACjD,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;YACnC,CAAC;QACH,CAAC;IACH,CAAC;IAID;;;OAGG;IACK,gBAAgB;QACtB,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrC,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,CACL,IAAI,CAAC,cAAc,CAAC,IAAI,CACtB,CAAC,IAAiC,EAAE,EAAE,CAAC,IAAI,YAAY,iBAAiB,IAAI,IAAI,CAAC,QAAQ,CAC1F,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAC5B,CAAC;IACJ,CAAC;IAiCD;;;OAGG;IACK,kBAAkB;QACxB,OAAO,IAAI,CAAC,UAAU,KAAK,mBAAmB,CAAC,MAAM,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACK,mBAAmB,CAAC,YAAqB;QAC/C,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrC,OAAO;QACT,CAAC;QACD,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACrD,IAAI,CAAC,eAAe,GAAG,YAAY,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAE1D,YAAY,CAAC,OAAO,CAAC,CAAC,IAAa,EAAE,KAAa,EAAE,EAAE;YACpD,IAAI,IAAI,YAAY,iBAAiB,EAAE,CAAC;gBACtC,IAAI,IAAI,CAAC,eAAe,KAAK,KAAK,EAAE,CAAC;oBACnC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;oBACrB,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;gBAC1D,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;oBAEtB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;wBACnC,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;oBACrD,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CAkCF;AA9KQ;IADN,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;6CACgC;AAyB5D;IADN,UAAU;wDACkC"}
@@ -23,10 +23,7 @@ export type DividerRole = ValuesOf<typeof DividerRole>;
23
23
  * @public
24
24
  */
25
25
  export declare const DividerOrientation: {
26
- readonly horizontal: "horizontal"; /**
27
- * Divider roles
28
- * @public
29
- */
26
+ readonly horizontal: "horizontal";
30
27
  readonly vertical: "vertical";
31
28
  };
32
29
  /**
@@ -4,10 +4,7 @@ import type { ValuesOf } from '../utils/index.js';
4
4
  * @public
5
5
  */
6
6
  export declare const RadioGroupOrientation: {
7
- readonly horizontal: "horizontal"; /**
8
- * Radio Group orientation
9
- * @public
10
- */
7
+ readonly horizontal: "horizontal";
11
8
  readonly vertical: "vertical";
12
9
  };
13
10
  /**
@@ -31,10 +31,7 @@ export type TablistSize = ValuesOf<typeof TablistSize>;
31
31
  * @public
32
32
  */
33
33
  export declare const TablistOrientation: {
34
- readonly horizontal: "horizontal"; /**
35
- * The appearance of the component
36
- * @public
37
- */
34
+ readonly horizontal: "horizontal";
38
35
  readonly vertical: "vertical";
39
36
  };
40
37
  /**
@@ -42,13 +42,10 @@ export function toggleState(elementInternals, state, force) {
42
42
  elementInternals.shadowRoot.host.toggleAttribute(`state--${state}`, force);
43
43
  return;
44
44
  }
45
- // @ts-expect-error - Baseline 2024
46
45
  if (force ?? !elementInternals.states.has(state)) {
47
- // @ts-expect-error - Baseline 2024
48
46
  elementInternals.states.add(state);
49
47
  return;
50
48
  }
51
- // @ts-expect-error - Baseline 2024
52
49
  elementInternals.states.delete(state);
53
50
  }
54
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"element-internals.js","sourceRoot":"","sources":["../../../src/utils/element-internals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAQxD,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAEpC;;;GAGG;AACH,MAAM,SAAS,GAAG,IAAI,GAAG,EAAiC,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,UAAU,aAAa,CAAmB,KAAQ;IACtD,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;QAC1B,SAAS;aACN,GAAG,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAC,CAAC,UAAU,KAAK,GAAG,CAAC,CAAC,CAAC,WAAW,KAAK,GAAG,CAAC;aAC/E,GAAG,CAAC,KAAK,CAAC,CAAqB,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,WAAW,CACzB,gBAA8C,EAC9C,KAAyB,EACzB,KAAe;IAEf,IAAI,CAAC,KAAK,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAChC,OAAO;IACT,CAAC;IAED,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAC9B,gBAAgB,CAAC,UAAW,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,KAAK,EAAE,EAAE,KAAK,CAAC,CAAC;QAC5E,OAAO;IACT,CAAC;IACD,mCAAmC;IACnC,IAAI,KAAK,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,mCAAmC;QACnC,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO;IACT,CAAC;IACD,mCAAmC;IACnC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC;AAED;;;GAGG;AACH,MAAM,gBAAgB,GAAG,IAAI,OAAO,EAAuC,CAAC;AAE5E;;;;;;;;GAQG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAA0C,EAAE,KAAyB;IACpG,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;QACjC,OAAO,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAChD,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACvC,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,UAAU,CACxB,gBAAkC,EAClC,OAA2B,EAAE,EAC7B,OAA2B,EAAE,EAC7B,MAA+B,EAC/B,SAAiB,EAAE;IAEnB,WAAW,CAAC,gBAAgB,EAAE,GAAG,MAAM,GAAG,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC;IAEzD,IAAI,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;QAC9C,WAAW,CAAC,gBAAgB,EAAE,GAAG,MAAM,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"element-internals.js","sourceRoot":"","sources":["../../../src/utils/element-internals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAQxD,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAEpC;;;GAGG;AACH,MAAM,SAAS,GAAG,IAAI,GAAG,EAAiC,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,UAAU,aAAa,CAAmB,KAAQ;IACtD,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;QAC1B,SAAS;aACN,GAAG,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAC,CAAC,UAAU,KAAK,GAAG,CAAC,CAAC,CAAC,WAAW,KAAK,GAAG,CAAC;aAC/E,GAAG,CAAC,KAAK,CAAC,CAAqB,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,WAAW,CACzB,gBAA8C,EAC9C,KAAyB,EACzB,KAAe;IAEf,IAAI,CAAC,KAAK,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAChC,OAAO;IACT,CAAC;IAED,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAC9B,gBAAgB,CAAC,UAAW,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,KAAK,EAAE,EAAE,KAAK,CAAC,CAAC;QAC5E,OAAO;IACT,CAAC;IACD,IAAI,KAAK,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO;IACT,CAAC;IACD,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC;AAED;;;GAGG;AACH,MAAM,gBAAgB,GAAG,IAAI,OAAO,EAAuC,CAAC;AAE5E;;;;;;;;GAQG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAA0C,EAAE,KAAyB;IACpG,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;QACjC,OAAO,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAChD,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACvC,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,UAAU,CACxB,gBAAkC,EAClC,OAA2B,EAAE,EAC7B,OAA2B,EAAE,EAC7B,MAA+B,EAC/B,SAAiB,EAAE;IAEnB,WAAW,CAAC,gBAAgB,EAAE,GAAG,MAAM,GAAG,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC;IAEzD,IAAI,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;QAC9C,WAAW,CAAC,gBAAgB,EAAE,GAAG,MAAM,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC"}
@@ -6,4 +6,4 @@
6
6
  *
7
7
  * @public
8
8
  */
9
- export declare function getLanguage(rootNode: HTMLElement): Intl.BCP47LanguageTag;
9
+ export declare function getLanguage(rootNode: HTMLElement): Intl.UnicodeBCP47LocaleIdentifier;
@@ -6403,10 +6403,7 @@ export declare const DividerDefinition: FASTElementDefinition<typeof Divider>;
6403
6403
  * @public
6404
6404
  */
6405
6405
  export declare const DividerOrientation: {
6406
- readonly horizontal: "horizontal"; /**
6407
- * Divider roles
6408
- * @public
6409
- */
6406
+ readonly horizontal: "horizontal";
6410
6407
  readonly vertical: "vertical";
6411
6408
  };
6412
6409
 
@@ -9124,10 +9121,7 @@ export declare const RadioGroupDefinition: FASTElementDefinition<typeof RadioGro
9124
9121
  * @public
9125
9122
  */
9126
9123
  export declare const RadioGroupOrientation: {
9127
- readonly horizontal: "horizontal"; /**
9128
- * Radio Group orientation
9129
- * @public
9130
- */
9124
+ readonly horizontal: "horizontal";
9131
9125
  readonly vertical: "vertical";
9132
9126
  };
9133
9127
 
@@ -10294,10 +10288,7 @@ export declare const TablistDefinition: FASTElementDefinition<typeof Tablist>;
10294
10288
  * @public
10295
10289
  */
10296
10290
  export declare const TablistOrientation: {
10297
- readonly horizontal: "horizontal"; /**
10298
- * The appearance of the component
10299
- * @public
10300
- */
10291
+ readonly horizontal: "horizontal";
10301
10292
  readonly vertical: "vertical";
10302
10293
  };
10303
10294
 
@@ -4727,10 +4727,8 @@ class Accordion extends FASTElement {
4727
4727
  children.forEach(child => Observable.getNotifier(child).subscribe(this, "disabled"));
4728
4728
  this.accordionItems = children.filter(child => !child.hasAttribute("disabled"));
4729
4729
  this.accordionItems.forEach((item, index) => {
4730
- if (item instanceof BaseAccordionItem) {
4731
- item.addEventListener("click", this.expandedChangedHandler);
4732
- Observable.getNotifier(item).subscribe(this, "expanded");
4733
- }
4730
+ item.addEventListener("click", this.expandedChangedHandler);
4731
+ Observable.getNotifier(item).subscribe(this, "expanded");
4734
4732
  });
4735
4733
  if (this.isSingleExpandMode()) {
4736
4734
  const expandedItem = this.findExpandedItem();
@@ -1,4 +1,4 @@
1
- const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Ho;const ts="fast-kernel";try{if(document.currentScript)Ho=document.currentScript.getAttribute(ts);else{const o=document.getElementsByTagName("script");Ho=o[o.length-1].getAttribute(ts)}}catch{Ho="isolate"}let dt;switch(Ho){case"share":dt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":dt=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;dt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ot=o=>typeof o=="function",Me=o=>typeof o=="string",os=()=>{};var Wi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Wi<"u")Wi.globalThis=Wi;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const is={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},is));const ie=globalThis.FAST;if(ie.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ie,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},is))}ie.error===void 0&&Object.assign(ie,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ba=Object.freeze([]);function Gi(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function rs(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=o.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function ht(o){o.prototype.toJSON=os}const Y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ss=o=>o,Oa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ss}):{createHTML:ss};let Lo=Object.freeze({createHTML(o){return Oa.createHTML(o)},protect(o,e,t,i){return i}});const Aa=Lo,ut=Object.freeze({get policy(){return Lo},setPolicy(o){if(Lo!==Aa)throw ie.error(1201);Lo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),Q=ie.getById(dt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class Xi{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(i,e),s!==void 0&&s.handleChange(i,e)}else for(let r=0,s=t.length;r<s;++r)t[r].handleChange(i,e)}}class ns{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,r;let s;t?s=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Xi(this.subject):s=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Xi(this.subject),s.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const Vo=Object.freeze({unknown:void 0,coupled:1}),m=ie.getById(dt.observable,()=>{const o=Q.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw ie.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=r(d):t.set(d,f=new ns(d))),f}const n=rs();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,be=l[w];if(be!==f){l[w]=f;const tt=l[this.callback];Ot(tt)&&tt.call(l,be,f),s(l).notify(this.name)}}}class h extends Xi{constructor(l,f,w=!1){super(l,f),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Vo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let be;try{be=this.expression(l,f)}finally{i=w}return be}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const w=this.last,be=s(l),tt=w===null?this.first:{};if(tt.propertySource=l,tt.propertyName=f,tt.notifier=be,be.subscribe(this,f),w!==null){if(!this.needsRefresh){let es;i=void 0,es=w.propertySource[w.propertyName],i=this,l===es&&(this.needsRefresh=!0)}w.next=tt}this.last=tt}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ht(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:s,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Me(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function as(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ls=ie.getById(dt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),At=Object.freeze({default:{index:0,length:0,get event(){return At.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ls.get()},setEvent(o){ls.set(o)}});class jo{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class _a extends jo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Ui(o,e,t=m.isVolatileBinding(o)){return new _a(o,e,t)}class cs extends jo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ht(cs);function ds(o,e){return new cs(o,e)}let hs;function us(o){return o.map(e=>e instanceof ke?us(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ke{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ke?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(hs),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(us(this.styles)),this}static setDefaultStrategy(e){hs=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ke(e):e instanceof ke?e:new ke([e])}}ke.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Ki=Gi(),Yi=Object.freeze({getForInstance:Ki.getForInstance,getByType:Ki.getByType,define(o){return Ki.register({type:o}),o}});function Qi(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Zi{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const s=i.setAttribute;i.setAttribute=(n,c)=>{s.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>Qi(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){Qi(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Qi(this,t.controller,t)}}Yi.define(Zi);const Ea=`${Math.random().toString(36).substring(2,8)}`;let Na=0;const ps=()=>`--v${Ea}${++Na}`;function bs(o,e){const t=[];let i="";const r=[],s=n=>{r.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=e[n];Ot(h)?h=new Zi(Ui(h),ps()).createCSS(s):h instanceof jo?h=new Zi(h,ps()).createCSS(s):Yi.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof ke||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const u=(o,...e)=>{const{styles:t,behaviors:i}=bs(o,e),r=new ke(t);return i.length?r.withBehaviors(...i):r};class gs{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,s)=>(Me(s)?this.css+=s:r.push(s),r),[]);i.length&&(this.styles=new ke(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Yi.define(gs),u.partial=(o,...e)=>{const{styles:t,behaviors:i}=bs(o,e);return new gs(t,i)};const fs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,ms=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,vs=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,$s=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,ys=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,xs=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function ks(o){return o&&o.nodeType===Node.COMMENT_NODE}const De=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return fs.test(o)},isContentBindingEndMarker(o){return ms.test(o)},isRepeatViewStartMarker(o){return vs.test(o)},isRepeatViewEndMarker(o){return $s.test(o)},isElementBoundaryStartMarker(o){return ks(o)&&ys.test(o.data.trim())},isElementBoundaryEndMarker(o){return ks(o)&&xs.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Ss(fs,o)},parseContentBindingEndMarker(o){return Ss(ms,o)},parseRepeatStartMarker(o){return ws(vs,o)},parseRepeatEndMarker(o){return ws($s,o)},parseElementBoundaryStartMarker(o){return Cs(ys,o.trim())},parseElementBoundaryEndMarker(o){return Cs(xs,o)}});function ws(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Cs(o,e){const t=o.exec(e);return t===null?t:t[1]}function Ss(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Ro=Symbol.for("fe-hydration");function qo(o){return o[Ro]===Ro}const Ji=`fast-${Math.random().toString(36).substring(2,8)}`,Wo=`${Ji}{`,ao=`}${Ji}`,Fa=ao.length;let Ma=0;const lo=()=>`${Ji}-${++Ma}`,Is=Object.freeze({interpolation:o=>`${Wo}${o}${ao}`,attribute:o=>`${lo()}="${Wo}${o}${ao}"`,comment:o=>`<!--${Wo}${o}${ao}-->`}),Go=Object.freeze({parse(o,e){const t=o.split(Wo);if(t.length===1)return null;const i=[];for(let r=0,s=t.length;r<s;++r){const n=t[r],c=n.indexOf(ao);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(e[d]),h=n.substring(c+Fa)}h!==""&&i.push(h)}return i}}),er=Gi(),Be=Object.freeze({getForInstance:er.getForInstance,getByType:er.getByType,define(o,e){return e=e||{},e.type=o,er.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Y.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Y.tokenList:Y.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Y.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Y.event;break;default:o.targetAspect=e,o.aspectType=Y.attribute;break}}});class tr{constructor(e){this.options=e}createHTML(e){return Is.attribute(e(this))}createBehavior(){return this}}ht(tr);class Ps extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function or(o){return o.nodeType===Node.COMMENT_NODE}function zs(o){return o.nodeType===Node.TEXT_NODE}function Ts(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,or(e)||zs(e)?e.data.length:e.childNodes.length),t}function Da(o){return o instanceof DocumentFragment&&"mode"in o}function Ha(o,e,t){const i=Ts(o,e),r=i.commonAncestorContainer,s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return i.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{La(h,t,n);break}case Node.COMMENT_NODE:{Va(h,s,t,n,c);break}}h=s.nextNode()}return i.detach(),{targets:n,boundaries:c}}function La(o,e,t){const i=De.parseAttributeBinding(o);if(i!==null){for(const r of i){if(!e[r])throw new Ps(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,e,o);Xo(e[r],o,t)}o.removeAttribute(De.attributeMarkerName)}}function Va(o,e,t,i,r){if(De.isElementBoundaryStartMarker(o)){ja(o,e);return}if(De.isContentBindingStartMarker(o.data)){const s=De.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(or(l)){const w=De.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Da(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&zs(d[0]))Xo(h,d[0],i);else{l!==f&&l.previousSibling!==null&&(r[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Xo(h,w,i)}}}function ja(o,e){const t=De.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(or(i)){const r=De.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Xo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Bs;function ir(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=r}t.removeChild(e)}class Os{constructor(){this.index=0,this.length=0}get event(){return At.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Uo extends Os{constructor(e,t,i){super(),this.fragment=e,this.factories=t,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){ir(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const r=this.factories;for(let s=0,n=r.length;s<n;++s){const c=r[s].createBehavior();c.bind(this),i[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,s=i.length;r<s;++r)i[r].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){ir(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}ht(Uo),m.defineProperty(Uo.prototype,"index"),m.defineProperty(Uo.prototype,"length");const _t={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ra extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class qa extends Os{constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[Bs]=Ro,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=_t.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let i=this.firstChild,r;for(;i!==t;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=r}e.appendChild(t)}bind(e,t=this){var i,r;if(this.hydrationStage!==_t.hydrated&&(this._hydrationStage=_t.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Ha(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Ps){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&Xo(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Ra(`HydrationView was unable to successfully target bindings inside "${(r=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||r===void 0?void 0:r.nodeName}".`,d,Ts(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=_t.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){ir(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}Bs=Ro,ht(qa);function Wa(o){return o.create!==void 0}function Ga(o,e,t,i){if(t==null&&(t=""),Wa(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(qo(i)&&qo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==_t.hydrated){const s=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(s.first,s.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Xa(o,e,t){var i;const r=`${this.id}-t`,s=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Ua={[Y.attribute]:ut.setAttribute,[Y.booleanAttribute]:ut.setBooleanAttribute,[Y.property]:(o,e,t)=>o[e]=t,[Y.content]:Ga,[Y.tokenList]:Xa,[Y.event]:()=>{}};class Et{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Y.content}createHTML(e){return Is.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Ua[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ie.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],r=qo(e)&&e.hydrationStage&&e.hydrationStage!==_t.hydrated;switch(this.aspectType){case Y.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Y.content:e.onUnbind(this);default:const s=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(s.target=i,s.controller=e,r&&(this.aspectType===Y.attribute||this.aspectType===Y.booleanAttribute)){s.bind(e);break}this.updateTarget(i,this.targetAspect,s.bind(e),e);break}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){At.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);At.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,r=t.controller;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Be.define(Et,{aspected:!0});const As=(o,e)=>`${o}.${e}`,_s={},He={index:0,node:null};function Es(o){o.startsWith("fast-")||ie.warn(1204,{name:o})}const Ka=new Proxy(document.createElement("div"),{get(o,e){Es(e);const t=Reflect.get(o,e);return Ot(t)?t.bind(o):t},set(o,e,t){return Es(e),Reflect.set(o,e,t)}});class Ya{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,s){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(n=e.id)!==null&&n!==void 0?n:lo(),e.targetNodeId=i,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=_s[t];if(!s){const n=`_${t}`;_s[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[i]}}}r[t]=s}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Ka;for(const r of this.nodeIds)i[r];return new Uo(t,this.factories,i)}}function Ns(o,e,t,i,r,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Go.parse(f,c);let be=null;w===null?s&&(be=new Et(ds(()=>f,o.policy)),Be.assignAspect(be,l.name)):be=rr.aggregate(w,o.policy),be!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(be,e,i,r,t.tagName))}}function Qa(o,e,t,i,r){const s=Go.parse(e.textContent,o.directives);if(s===null)return He.node=e.nextSibling,He.index=r+1,He;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(r++,i=As(t,r),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Me(l)?n.textContent=l:(n.textContent=" ",Be.assignAspect(l),o.addFactory(l,t,i,r,null)),c=n}return He.index=r+1,He.node=c.nextSibling,He}function Fs(o,e,t){let i=0,r=e.firstChild;for(;r;){const s=Za(o,t,r,i);r=s.node,i=s.index}}function Za(o,e,t,i){const r=As(e,i);switch(t.nodeType){case 1:Ns(o,e,t,r,i),Fs(o,t,r);break;case 3:return Qa(o,t,e,r,i);case 8:const s=Go.parse(t.data,o.directives);s!==null&&o.addFactory(rr.aggregate(s),e,r,i,null);break}return He.index=i+1,He.node=t.nextSibling,He}function Ja(o,e){return o&&o.nodeType==8&&Go.parse(o.data,e)!==null}const Ms="TEMPLATE",rr={compile(o,e,t=ut.policy){let i;if(Me(o)){i=document.createElement(Ms),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Ms&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),s=new Ya(r,e,t);return Ns(s,"",i,"h",0,!0),(Ja(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Fs(s,r,"r"),He.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=ut.policy){if(o.length===1)return o[0];let t,i=!1,r;const s=o.length,n=o.map(d=>Me(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Et(Ui(c,r??e,i));return Be.assignAspect(h,t),h}},el=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,tl=Object.create(null);class pt{constructor(e,t=tl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}pt.empty=new pt(""),Be.define(pt);function ol(o,e,t,i=Be.getForInstance(o)){if(i.aspected){const r=el.exec(e);r!==null&&Be.assignAspect(o,r[2])}return o.createHTML(t)}class ji{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=rr.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new pt(Me(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ie.error(1208);if(this.policy)throw ie.error(1207);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=lo();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(r+=d,Ot(l))l=new Et(Ui(l));else if(l instanceof jo)l=new Et(l);else if(!(f=Be.getForInstance(l))){const w=l;l=new Et(ds(()=>w))}r+=ol(l,d,n,f)}return new ji(r+e[e.length-1],s,i)}}ht(ji);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ji.create(o,e);throw ie.error(1206)};b.partial=o=>new pt(o);class Ds extends tr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Be.define(Ds);const V=o=>new Ds(o),il=o=>o.nodeType===1,Nt=o=>o?e=>e.nodeType===1&&e.matches(o):il;class Hs extends tr{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Ba),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const Ls="slotchange";class Vs extends Hs{observe(e){e.addEventListener(Ls,this)}disconnect(e){e.removeEventListener(Ls,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Be.define(Vs);function D(o){return Me(o)&&(o={property:o}),new Vs(o)}class js extends Hs{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,i)=>{const r=i.target;this.updateTarget(this.getSource(r),this.computeNodes(r))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=os,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}Be.define(js);function Rs(o){return Me(o)&&(o={property:o}),new js(o)}const qs="boolean",Ws="reflect",Ko=Object.freeze({locate:rs()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Gs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const re={toView(o){const e=Gs(o);return e&&e.toString()},fromView:Gs};class Ri{constructor(e,t,i=t.toLowerCase(),r=Ws,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===qs&&s===void 0&&(this.converter=rl)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||Q.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Ws:const s=this.converter;ut.setAttribute(e,this.attribute,s!==void 0?s.toView(r):r);break;case qs:ut.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Ko.locate(e));for(let r=0,s=t.length;r<s;++r){const n=t[r];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Me(d)?i.push(new Ri(e,d)):i.push(new Ri(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,s){arguments.length>1&&(t.property=s),Ko.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const Xs={mode:"open"},Us={},Ks=new Set,Yo=ie.getById(dt.elementRegistry,()=>Gi());class Fe{constructor(e,t=e.definition){var i;this.platformDefined=!1,Me(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,s=Ri.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(r,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Xs:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Xs),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Us:Object.assign(Object.assign({},Us),t.elementOptions),this.styles=ke.normalize(t.styles),Yo.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return Ks.has(e)||Yo.getByType(e)?new Fe(class extends e{},t):new Fe(e,t)}static registerBaseType(e){Ks.add(e)}}Fe.getByType=Yo.getByType,Fe.getForInstance=Yo.getForInstance;class sl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,r=!1;return{source:o,context:At.default,targets:t,get isBound(){return r},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:lo(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:lo(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:ut.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),r&&s.bind(this)},onUnbind(s){i===null&&(i=[]),i.push(s)},connectedCallback(s){r||(r=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){r&&(r=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const nl={bubbles:!0,composed:!0,cancelable:!0},Qo="isConnected",Ys=new WeakMap;function co(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Ys.get(o))!==null&&t!==void 0?t:null}let Qs;class Ft extends ns{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const i=t.shadowOptions;if(i!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(i),i.mode==="closed"&&Ys.set(e,s))}const r=m.getAccessors(e);if(r.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=r.length;n<c;++n){const h=r[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Qo),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:At.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(i=r.get(e))!==null&&i!==void 0?i:0;s===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):r.set(e,s+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.addBehavior(r[s])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.removeBehavior(r[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Qo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,s=i.length;r<s;++r){const n=i[r];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Qo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},nl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=co(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=r.firstChild;s!==null;s=r.firstChild)r.removeChild(s)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Vo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=Fe.getForInstance(e);if(i===void 0)throw ie.error(1401);return e.$fastController=new Qs(e,i)}static setStrategy(e){Qs=e}}ht(Ft),Ft.setStrategy(Ft);function Zo(o){var e;return"adoptedStyleSheets"in o?o:(e=co(o))!==null&&e!==void 0?e:o.getRootNode()}class qi{constructor(e){const t=qi.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){Js(Zo(e),this.sheets)}removeStylesFrom(e){en(Zo(e),this.sheets)}}qi.styleSheetCache=new Map;let al=0;const ll=()=>`fast-${++al}`;function Zs(o){return o===document?document.body:o}class cl{constructor(e){this.styles=e,this.styleClass=ll()}addStylesTo(e){e=Zs(Zo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const s=document.createElement("style");s.innerHTML=t[r],s.className=i,e.append(s)}}removeStylesFrom(e){e=Zs(Zo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let Js=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},en=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ke.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Js=(o,e)=>{o.adoptedStyleSheets.push(...e)},en=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ke.setDefaultStrategy(qi)}else ke.setDefaultStrategy(cl);const tn="defer-hydration",on="needs-hydration";class Bt extends Ft{static hydrationObserverHandler(e){for(const t of e)Bt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(on)!==null),this.source.hasAttribute(tn)){Bt.hydrationObserver.observe(this.source,{attributeFilter:[tn]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,r=(e=co(i))!==null&&e!==void 0?e:i;if(this.template)if(qo(this.template)){let s=r.firstChild,n=r.lastChild;i.shadowRoot===null&&(De.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),De.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,i),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(on),this.needsInitialization=this.needsHydration=!1,m.notify(this,Qo)}disconnect(){super.disconnect(),Bt.hydrationObserver.unobserve(this.source)}static install(){Ft.setStrategy(Bt)}}Bt.hydrationObserver=new sl(Bt.hydrationObserverHandler);function rn(o){const e=class extends o{constructor(){super(),Ft.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return Fe.registerBaseType(e),e}function dl(o,e){return Ot(o)?Fe.compose(o,e):Fe.compose(this,o)}function hl(o,e){return Ot(o)?Fe.compose(o,e).define().type:Fe.compose(this,o).define().type}function ul(o){return rn(o)}const $=Object.assign(rn(HTMLElement),{from:ul,define:hl,compose:dl});var pl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,j=(o,e,t,i)=>{for(var r=i>1?void 0:i?bl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&pl(e,t,r),r};class R{}j([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),j([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),j([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),j([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),j([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),j([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),j([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),j([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),j([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),j([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),j([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),j([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),j([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),j([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),j([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),j([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),j([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),j([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),j([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const sr={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()}},ge={horizontal:"horizontal",vertical:"vertical"};function gl(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function nr(...o){return o.every(e=>e instanceof HTMLElement)}const ho="ArrowDown",uo="ArrowLeft",po="ArrowRight",bo="ArrowUp",go="End",fo="Enter",fl="Escape",mo="Home",Jo=" ",ml="Tab";var Le;(function(o){o.ltr="ltr",o.rtl="rtl"})(Le||(Le={}));function vl(o,e,t){return t<o?e:t>e?o:t}function ar(o,e,t){return Math.min(Math.max(t,o),e)}let $l=0;function Mt(o=""){return`${o}${$l++}`}const ei=o=>o.closest("[dir]")?.dir==="rtl"?Le.rtl:Le.ltr;function he(o){return o?typeof o=="string"?new pt(o):"inline"in o?o.inline():o:pt.empty}const sn=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,yl=":host([hidden]){display:none}";function k(o){return`${yl}:host{display:${o}}`}class xl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let i=this.listenerCache.get(e);i||(i=this.constructListener(e),this.listenerCache.set(e,i)),i.bind(t)(),t.addEventListener("change",i)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class Do extends xl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Do(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(i),t=s):!s&&t&&(e.removeStyles(i),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const U=Do.with(window.matchMedia("(forced-colors)"));Do.with(window.matchMedia("(prefers-color-scheme: dark)")),Do.with(window.matchMedia("(prefers-color-scheme: light)"));const ti=CSS.supports("anchor-name: --a"),kl="anchor"in HTMLElement.prototype,nn=CSS.supports("selector(:state(g))");class Ue{}function ot(o){return b`<slot name="end" ${V("end")}>${he(o.end)}</slot>`.inline()}function Ve(o){return b`<slot name="start" ${V("start")}>${he(o.start)}</slot>`.inline()}function Ke(o,...e){const t=Ko.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),Ko.locate(i).forEach(s=>t.push(s))})}var wl=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,oi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&wl(e,t,r),r};class Ye extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Mt("accordion-")}}oi([a({attribute:"heading-level",mode:"fromView",converter:re})],Ye.prototype,"headinglevel",2),oi([a({mode:"boolean"})],Ye.prototype,"expanded",2),oi([a({mode:"boolean"})],Ye.prototype,"disabled",2),oi([a],Ye.prototype,"id",2);var Sl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,lr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Il(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sl(e,t,r),r};class vo extends Ye{constructor(){super(...arguments),this.block=!1}}lr([a],vo.prototype,"size",2),lr([a({attribute:"marker-position"})],vo.prototype,"markerPosition",2),lr([a({mode:"boolean"})],vo.prototype,"block",2),Ke(vo,Ue);const z="var(--colorNeutralForeground1)",cr="var(--colorNeutralForeground1Hover)",Pl="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Ht="var(--colorNeutralForeground2Pressed)",ii="var(--colorNeutralForeground2Selected)",ri="var(--colorNeutralForeground2BrandHover)",si="var(--colorNeutralForeground2BrandPressed)",zl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",Tl="var(--colorNeutralForeground3Hover)",Bl="var(--colorNeutralForeground3Pressed)",Ol="var(--colorNeutralForeground3Selected)",dr="var(--colorNeutralForeground4)",S="var(--colorNeutralForegroundDisabled)",Al="var(--colorBrandForegroundLink)",_l="var(--colorBrandForegroundLinkHover)",El="var(--colorBrandForegroundLinkPressed)",Nl="var(--colorNeutralForeground2Link)",Fl="var(--colorNeutralForeground2LinkHover)",Ml="var(--colorNeutralForeground2LinkPressed)",an="var(--colorCompoundBrandForeground1Hover)",Dl="var(--colorCompoundBrandForeground1Pressed)",Qe="var(--colorNeutralForegroundOnBrand)",bt="var(--colorNeutralForegroundInverted)",Hl="var(--colorNeutralForegroundInvertedHover)",Ll="var(--colorNeutralForegroundInvertedPressed)",ln="var(--colorNeutralForegroundStaticInverted)",ni="var(--colorBrandForeground1)",Vl="var(--colorBrandForeground2)",jl="var(--colorNeutralForeground1Static)",I="var(--colorNeutralBackground1)",ai="var(--colorNeutralBackground1Hover)",hr="var(--colorNeutralBackground1Pressed)",cn="var(--colorNeutralBackground1Selected)",$o="var(--colorNeutralBackground3)",Rl="var(--colorNeutralBackground4)",ql="var(--colorNeutralBackground5)",yo="var(--colorNeutralBackground6)",dn="var(--colorNeutralBackgroundInverted)",hn="var(--colorSubtleBackground)",xo="var(--colorSubtleBackgroundHover)",gt="var(--colorSubtleBackgroundPressed)",un="var(--colorSubtleBackgroundSelected)",Wl="var(--colorSubtleBackgroundLightAlphaHover)",Gl="var(--colorSubtleBackgroundLightAlphaPressed)",Xl="var(--colorSubtleBackgroundLightAlphaSelected)",fe="var(--colorTransparentBackground)",li="var(--colorTransparentBackgroundHover)",ci="var(--colorTransparentBackgroundPressed)",pn="var(--colorTransparentBackgroundSelected)",it="var(--colorNeutralBackgroundDisabled)",ur="var(--colorBackgroundOverlay)",bn="var(--colorBrandBackground)",gn="var(--colorBrandBackgroundHover)",fn="var(--colorBrandBackgroundPressed)",Ul="var(--colorBrandBackgroundSelected)",ft="var(--colorCompoundBrandBackground)",Lt="var(--colorCompoundBrandBackgroundHover)",Vt="var(--colorCompoundBrandBackgroundPressed)",mn="var(--colorBrandBackgroundStatic)",vn="var(--colorBrandBackground2)",je="var(--colorNeutralStrokeAccessible)",mt="var(--colorNeutralStrokeAccessibleHover)",vt="var(--colorNeutralStrokeAccessiblePressed)",Re="var(--colorNeutralStroke1)",jt="var(--colorNeutralStroke1Hover)",ko="var(--colorNeutralStroke1Pressed)",wo="var(--colorNeutralStroke2)",Kl="var(--colorNeutralStroke3)",Yl="var(--colorNeutralStrokeOnBrand2)",$n="var(--colorBrandStroke1)",yn="var(--colorBrandStroke2)",$t="var(--colorCompoundBrandStroke)",Ql="var(--colorCompoundBrandStrokeHover)",xn="var(--colorCompoundBrandStrokePressed)",we="var(--colorNeutralStrokeDisabled)",J="var(--colorTransparentStroke)",pr="var(--colorTransparentStrokeInteractive)",br="var(--colorStrokeFocus1)",Ce="var(--colorStrokeFocus2)",Zl="var(--colorNeutralShadowAmbient)",Jl="var(--colorNeutralShadowKey)",kn="var(--colorPaletteRedBackground1)",ec="var(--colorPaletteRedBackground2)",wn="var(--colorPaletteRedBackground3)",Cn="var(--colorPaletteRedBorder1)",gr="var(--colorPaletteRedBorder2)",fr="var(--colorPaletteRedForeground1)",tc="var(--colorPaletteRedForeground2)",Sn="var(--colorPaletteRedForeground3)",In="var(--colorPaletteGreenBackground1)",Pn="var(--colorPaletteGreenBackground3)",oc="var(--colorPaletteGreenBorder1)",ic="var(--colorPaletteGreenBorder2)",rc="var(--colorPaletteGreenForeground1)",sc="var(--colorPaletteGreenForeground2)",nc="var(--colorPaletteGreenForeground3)",zn="var(--colorPaletteDarkOrangeBackground1)",Tn="var(--colorPaletteDarkOrangeBackground3)",Bn="var(--colorPaletteDarkOrangeBorder1)",ac="var(--colorPaletteDarkOrangeForeground1)",On="var(--colorPaletteDarkOrangeForeground3)",lc="var(--colorPaletteYellowBackground1)",cc="var(--colorPaletteYellowBackground3)",dc="var(--colorPaletteYellowBorder1)",mr="var(--colorPaletteYellowForeground2)",An="var(--colorPaletteMarigoldBackground2)",hc="var(--colorPaletteMarigoldBorderActive)",uc="var(--colorPaletteMarigoldForeground2)",pc="var(--colorPaletteAnchorBackground2)",bc="var(--colorPaletteAnchorForeground2)",gc="var(--colorPaletteBeigeBackground2)",fc="var(--colorPaletteBeigeForeground2)",mc="var(--colorPaletteBlueBackground2)",vc="var(--colorPaletteBlueForeground2)",$c="var(--colorPaletteBrassBackground2)",yc="var(--colorPaletteBrassForeground2)",xc="var(--colorPaletteBrownBackground2)",kc="var(--colorPaletteBrownForeground2)",wc="var(--colorPaletteCornflowerBackground2)",Cc="var(--colorPaletteCornflowerForeground2)",Sc="var(--colorPaletteCranberryBackground2)",Ic="var(--colorPaletteCranberryForeground2)",Pc="var(--colorPaletteDarkGreenBackground2)",zc="var(--colorPaletteDarkGreenForeground2)",Tc="var(--colorPaletteDarkRedBackground2)",Bc="var(--colorPaletteDarkRedForeground2)",Oc="var(--colorPaletteForestBackground2)",Ac="var(--colorPaletteForestForeground2)",_c="var(--colorPaletteGoldBackground2)",Ec="var(--colorPaletteGoldForeground2)",Nc="var(--colorPaletteGrapeBackground2)",Fc="var(--colorPaletteGrapeForeground2)",Mc="var(--colorPaletteLavenderBackground2)",Dc="var(--colorPaletteLavenderForeground2)",Hc="var(--colorPaletteLightTealBackground2)",Lc="var(--colorPaletteLightTealForeground2)",Vc="var(--colorPaletteLilacBackground2)",jc="var(--colorPaletteLilacForeground2)",Rc="var(--colorPaletteMagentaBackground2)",qc="var(--colorPaletteMagentaForeground2)",Wc="var(--colorPaletteMinkBackground2)",Gc="var(--colorPaletteMinkForeground2)",Xc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Kc="var(--colorPalettePeachBackground2)",Yc="var(--colorPalettePeachForeground2)",Qc="var(--colorPalettePinkBackground2)",Zc="var(--colorPalettePinkForeground2)",Jc="var(--colorPalettePlatinumBackground2)",ed="var(--colorPalettePlatinumForeground2)",td="var(--colorPalettePlumBackground2)",od="var(--colorPalettePlumForeground2)",id="var(--colorPalettePumpkinBackground2)",rd="var(--colorPalettePumpkinForeground2)",sd="var(--colorPalettePurpleBackground2)",nd="var(--colorPalettePurpleForeground2)",ad="var(--colorPaletteRoyalBlueBackground2)",ld="var(--colorPaletteRoyalBlueForeground2)",cd="var(--colorPaletteSeafoamBackground2)",dd="var(--colorPaletteSeafoamForeground2)",hd="var(--colorPaletteSteelBackground2)",ud="var(--colorPaletteSteelForeground2)",pd="var(--colorPaletteTealBackground2)",bd="var(--colorPaletteTealForeground2)",di="var(--borderRadiusNone)",Oe="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",_n="var(--borderRadiusLarge)",En="var(--borderRadiusXLarge)",me="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",gd="var(--fontFamilyMonospace)",fd="var(--fontFamilyNumeric)",Co="var(--fontSizeBase100)",N="var(--fontSizeBase200)",B="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",Rt="var(--fontSizeBase500)",hi="var(--fontSizeBase600)",Nn="var(--fontSizeHero700)",Fn="var(--fontSizeHero800)",Mn="var(--fontSizeHero900)",Dn="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",md="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",ui="var(--fontWeightBold)",pi="var(--lineHeightBase100)",q="var(--lineHeightBase200)",_="var(--lineHeightBase300)",ve="var(--lineHeightBase400)",bi="var(--lineHeightBase500)",Hn="var(--lineHeightBase600)",Ln="var(--lineHeightHero700)",Vn="var(--lineHeightHero800)",jn="var(--lineHeightHero900)",Rn="var(--lineHeightHero1000)",vr="var(--shadow2)",gi="var(--shadow4)",vd="var(--shadow8)",$r="var(--shadow16)",$d="var(--shadow28)",qn="var(--shadow64)",T="var(--strokeWidthThin)",$e="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",yr="var(--strokeWidthThickest)",W="var(--spacingHorizontalXXS)",ne="var(--spacingHorizontalXS)",ee="var(--spacingHorizontalSNudge)",Ae="var(--spacingHorizontalS)",ae="var(--spacingHorizontalMNudge)",le="var(--spacingHorizontalM)",yd="var(--spacingHorizontalL)",xd="var(--spacingHorizontalXL)",xr="var(--spacingHorizontalXXL)",kr="var(--spacingVerticalNone)",qt="var(--spacingVerticalXXS)",Wt="var(--spacingVerticalXS)",qe="var(--spacingVerticalSNudge)",L="var(--spacingVerticalS)",Gt="var(--spacingVerticalMNudge)",kd="var(--spacingVerticalM)",fi="var(--spacingVerticalL)",yt="var(--spacingVerticalXXL)",wd="var(--spacingVerticalXXXL)",wr="var(--durationUltraFast)",mi="var(--durationFaster)",vi="var(--durationNormal)",Cr="var(--durationGentle)",Wn="var(--durationSlow)",Gn="var(--durationSlower)",$i="var(--durationUltraSlow)",Cd="var(--curveAccelerateMax)",xt="var(--curveAccelerateMid)",Sd="var(--curveAccelerateMin)",Sr="var(--curveDecelerateMax)",kt="var(--curveDecelerateMid)",Id="var(--curveDecelerateMin)",Xn="var(--curveEasyEaseMax)",yi="var(--curveEasyEase)",Ir="var(--curveLinear)",Pd=u`
1
+ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Ho;const ts="fast-kernel";try{if(document.currentScript)Ho=document.currentScript.getAttribute(ts);else{const o=document.getElementsByTagName("script");Ho=o[o.length-1].getAttribute(ts)}}catch{Ho="isolate"}let dt;switch(Ho){case"share":dt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":dt=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;dt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ot=o=>typeof o=="function",Me=o=>typeof o=="string",os=()=>{};var Wi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Wi<"u")Wi.globalThis=Wi;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const is={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},is));const ie=globalThis.FAST;if(ie.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ie,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},is))}ie.error===void 0&&Object.assign(ie,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ba=Object.freeze([]);function Gi(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function rs(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=o.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function ht(o){o.prototype.toJSON=os}const Y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ss=o=>o,Oa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ss}):{createHTML:ss};let Lo=Object.freeze({createHTML(o){return Oa.createHTML(o)},protect(o,e,t,i){return i}});const Aa=Lo,ut=Object.freeze({get policy(){return Lo},setPolicy(o){if(Lo!==Aa)throw ie.error(1201);Lo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),Q=ie.getById(dt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class Xi{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(i,e),s!==void 0&&s.handleChange(i,e)}else for(let r=0,s=t.length;r<s;++r)t[r].handleChange(i,e)}}class ns{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,r;let s;t?s=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Xi(this.subject):s=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Xi(this.subject),s.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const Vo=Object.freeze({unknown:void 0,coupled:1}),m=ie.getById(dt.observable,()=>{const o=Q.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw ie.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=r(d):t.set(d,f=new ns(d))),f}const n=rs();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,be=l[w];if(be!==f){l[w]=f;const et=l[this.callback];Ot(et)&&et.call(l,be,f),s(l).notify(this.name)}}}class h extends Xi{constructor(l,f,w=!1){super(l,f),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Vo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let be;try{be=this.expression(l,f)}finally{i=w}return be}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const w=this.last,be=s(l),et=w===null?this.first:{};if(et.propertySource=l,et.propertyName=f,et.notifier=be,be.subscribe(this,f),w!==null){if(!this.needsRefresh){let es;i=void 0,es=w.propertySource[w.propertyName],i=this,l===es&&(this.needsRefresh=!0)}w.next=et}this.last=et}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ht(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:s,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Me(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function as(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ls=ie.getById(dt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),At=Object.freeze({default:{index:0,length:0,get event(){return At.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ls.get()},setEvent(o){ls.set(o)}});class jo{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class _a extends jo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Ui(o,e,t=m.isVolatileBinding(o)){return new _a(o,e,t)}class cs extends jo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ht(cs);function ds(o,e){return new cs(o,e)}let hs;function us(o){return o.map(e=>e instanceof ke?us(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ke{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ke?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(hs),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(us(this.styles)),this}static setDefaultStrategy(e){hs=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ke(e):e instanceof ke?e:new ke([e])}}ke.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Ki=Gi(),Yi=Object.freeze({getForInstance:Ki.getForInstance,getByType:Ki.getByType,define(o){return Ki.register({type:o}),o}});function Qi(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Zi{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const s=i.setAttribute;i.setAttribute=(n,c)=>{s.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>Qi(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){Qi(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Qi(this,t.controller,t)}}Yi.define(Zi);const Ea=`${Math.random().toString(36).substring(2,8)}`;let Na=0;const ps=()=>`--v${Ea}${++Na}`;function bs(o,e){const t=[];let i="";const r=[],s=n=>{r.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=e[n];Ot(h)?h=new Zi(Ui(h),ps()).createCSS(s):h instanceof jo?h=new Zi(h,ps()).createCSS(s):Yi.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof ke||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const u=(o,...e)=>{const{styles:t,behaviors:i}=bs(o,e),r=new ke(t);return i.length?r.withBehaviors(...i):r};class gs{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,s)=>(Me(s)?this.css+=s:r.push(s),r),[]);i.length&&(this.styles=new ke(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Yi.define(gs),u.partial=(o,...e)=>{const{styles:t,behaviors:i}=bs(o,e);return new gs(t,i)};const fs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,ms=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,vs=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,$s=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,ys=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,xs=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function ks(o){return o&&o.nodeType===Node.COMMENT_NODE}const De=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return fs.test(o)},isContentBindingEndMarker(o){return ms.test(o)},isRepeatViewStartMarker(o){return vs.test(o)},isRepeatViewEndMarker(o){return $s.test(o)},isElementBoundaryStartMarker(o){return ks(o)&&ys.test(o.data.trim())},isElementBoundaryEndMarker(o){return ks(o)&&xs.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Ss(fs,o)},parseContentBindingEndMarker(o){return Ss(ms,o)},parseRepeatStartMarker(o){return ws(vs,o)},parseRepeatEndMarker(o){return ws($s,o)},parseElementBoundaryStartMarker(o){return Cs(ys,o.trim())},parseElementBoundaryEndMarker(o){return Cs(xs,o)}});function ws(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Cs(o,e){const t=o.exec(e);return t===null?t:t[1]}function Ss(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Ro=Symbol.for("fe-hydration");function qo(o){return o[Ro]===Ro}const Ji=`fast-${Math.random().toString(36).substring(2,8)}`,Wo=`${Ji}{`,ao=`}${Ji}`,Fa=ao.length;let Ma=0;const lo=()=>`${Ji}-${++Ma}`,Is=Object.freeze({interpolation:o=>`${Wo}${o}${ao}`,attribute:o=>`${lo()}="${Wo}${o}${ao}"`,comment:o=>`<!--${Wo}${o}${ao}-->`}),Go=Object.freeze({parse(o,e){const t=o.split(Wo);if(t.length===1)return null;const i=[];for(let r=0,s=t.length;r<s;++r){const n=t[r],c=n.indexOf(ao);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(e[d]),h=n.substring(c+Fa)}h!==""&&i.push(h)}return i}}),er=Gi(),Be=Object.freeze({getForInstance:er.getForInstance,getByType:er.getByType,define(o,e){return e=e||{},e.type=o,er.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Y.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Y.tokenList:Y.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Y.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Y.event;break;default:o.targetAspect=e,o.aspectType=Y.attribute;break}}});class tr{constructor(e){this.options=e}createHTML(e){return Is.attribute(e(this))}createBehavior(){return this}}ht(tr);class Ps extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function or(o){return o.nodeType===Node.COMMENT_NODE}function zs(o){return o.nodeType===Node.TEXT_NODE}function Ts(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,or(e)||zs(e)?e.data.length:e.childNodes.length),t}function Da(o){return o instanceof DocumentFragment&&"mode"in o}function Ha(o,e,t){const i=Ts(o,e),r=i.commonAncestorContainer,s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return i.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{La(h,t,n);break}case Node.COMMENT_NODE:{Va(h,s,t,n,c);break}}h=s.nextNode()}return i.detach(),{targets:n,boundaries:c}}function La(o,e,t){const i=De.parseAttributeBinding(o);if(i!==null){for(const r of i){if(!e[r])throw new Ps(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,e,o);Xo(e[r],o,t)}o.removeAttribute(De.attributeMarkerName)}}function Va(o,e,t,i,r){if(De.isElementBoundaryStartMarker(o)){ja(o,e);return}if(De.isContentBindingStartMarker(o.data)){const s=De.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(or(l)){const w=De.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Da(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&zs(d[0]))Xo(h,d[0],i);else{l!==f&&l.previousSibling!==null&&(r[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Xo(h,w,i)}}}function ja(o,e){const t=De.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(or(i)){const r=De.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Xo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Bs;function ir(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=r}t.removeChild(e)}class Os{constructor(){this.index=0,this.length=0}get event(){return At.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Uo extends Os{constructor(e,t,i){super(),this.fragment=e,this.factories=t,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){ir(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const r=this.factories;for(let s=0,n=r.length;s<n;++s){const c=r[s].createBehavior();c.bind(this),i[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,s=i.length;r<s;++r)i[r].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){ir(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}ht(Uo),m.defineProperty(Uo.prototype,"index"),m.defineProperty(Uo.prototype,"length");const _t={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ra extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class qa extends Os{constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[Bs]=Ro,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=_t.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let i=this.firstChild,r;for(;i!==t;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=r}e.appendChild(t)}bind(e,t=this){var i,r;if(this.hydrationStage!==_t.hydrated&&(this._hydrationStage=_t.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Ha(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Ps){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&Xo(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Ra(`HydrationView was unable to successfully target bindings inside "${(r=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||r===void 0?void 0:r.nodeName}".`,d,Ts(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=_t.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){ir(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}Bs=Ro,ht(qa);function Wa(o){return o.create!==void 0}function Ga(o,e,t,i){if(t==null&&(t=""),Wa(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(qo(i)&&qo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==_t.hydrated){const s=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(s.first,s.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Xa(o,e,t){var i;const r=`${this.id}-t`,s=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Ua={[Y.attribute]:ut.setAttribute,[Y.booleanAttribute]:ut.setBooleanAttribute,[Y.property]:(o,e,t)=>o[e]=t,[Y.content]:Ga,[Y.tokenList]:Xa,[Y.event]:()=>{}};class Et{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Y.content}createHTML(e){return Is.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Ua[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ie.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],r=qo(e)&&e.hydrationStage&&e.hydrationStage!==_t.hydrated;switch(this.aspectType){case Y.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Y.content:e.onUnbind(this);default:const s=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(s.target=i,s.controller=e,r&&(this.aspectType===Y.attribute||this.aspectType===Y.booleanAttribute)){s.bind(e);break}this.updateTarget(i,this.targetAspect,s.bind(e),e);break}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){At.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);At.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,r=t.controller;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Be.define(Et,{aspected:!0});const As=(o,e)=>`${o}.${e}`,_s={},He={index:0,node:null};function Es(o){o.startsWith("fast-")||ie.warn(1204,{name:o})}const Ka=new Proxy(document.createElement("div"),{get(o,e){Es(e);const t=Reflect.get(o,e);return Ot(t)?t.bind(o):t},set(o,e,t){return Es(e),Reflect.set(o,e,t)}});class Ya{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,s){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(n=e.id)!==null&&n!==void 0?n:lo(),e.targetNodeId=i,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=_s[t];if(!s){const n=`_${t}`;_s[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[i]}}}r[t]=s}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Ka;for(const r of this.nodeIds)i[r];return new Uo(t,this.factories,i)}}function Ns(o,e,t,i,r,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Go.parse(f,c);let be=null;w===null?s&&(be=new Et(ds(()=>f,o.policy)),Be.assignAspect(be,l.name)):be=rr.aggregate(w,o.policy),be!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(be,e,i,r,t.tagName))}}function Qa(o,e,t,i,r){const s=Go.parse(e.textContent,o.directives);if(s===null)return He.node=e.nextSibling,He.index=r+1,He;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(r++,i=As(t,r),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Me(l)?n.textContent=l:(n.textContent=" ",Be.assignAspect(l),o.addFactory(l,t,i,r,null)),c=n}return He.index=r+1,He.node=c.nextSibling,He}function Fs(o,e,t){let i=0,r=e.firstChild;for(;r;){const s=Za(o,t,r,i);r=s.node,i=s.index}}function Za(o,e,t,i){const r=As(e,i);switch(t.nodeType){case 1:Ns(o,e,t,r,i),Fs(o,t,r);break;case 3:return Qa(o,t,e,r,i);case 8:const s=Go.parse(t.data,o.directives);s!==null&&o.addFactory(rr.aggregate(s),e,r,i,null);break}return He.index=i+1,He.node=t.nextSibling,He}function Ja(o,e){return o&&o.nodeType==8&&Go.parse(o.data,e)!==null}const Ms="TEMPLATE",rr={compile(o,e,t=ut.policy){let i;if(Me(o)){i=document.createElement(Ms),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Ms&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),s=new Ya(r,e,t);return Ns(s,"",i,"h",0,!0),(Ja(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Fs(s,r,"r"),He.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=ut.policy){if(o.length===1)return o[0];let t,i=!1,r;const s=o.length,n=o.map(d=>Me(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Et(Ui(c,r??e,i));return Be.assignAspect(h,t),h}},el=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,tl=Object.create(null);class pt{constructor(e,t=tl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}pt.empty=new pt(""),Be.define(pt);function ol(o,e,t,i=Be.getForInstance(o)){if(i.aspected){const r=el.exec(e);r!==null&&Be.assignAspect(o,r[2])}return o.createHTML(t)}class ji{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=rr.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new pt(Me(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ie.error(1208);if(this.policy)throw ie.error(1207);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=lo();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(r+=d,Ot(l))l=new Et(Ui(l));else if(l instanceof jo)l=new Et(l);else if(!(f=Be.getForInstance(l))){const w=l;l=new Et(ds(()=>w))}r+=ol(l,d,n,f)}return new ji(r+e[e.length-1],s,i)}}ht(ji);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ji.create(o,e);throw ie.error(1206)};b.partial=o=>new pt(o);class Ds extends tr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Be.define(Ds);const V=o=>new Ds(o),il=o=>o.nodeType===1,Nt=o=>o?e=>e.nodeType===1&&e.matches(o):il;class Hs extends tr{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Ba),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const Ls="slotchange";class Vs extends Hs{observe(e){e.addEventListener(Ls,this)}disconnect(e){e.removeEventListener(Ls,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Be.define(Vs);function D(o){return Me(o)&&(o={property:o}),new Vs(o)}class js extends Hs{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,i)=>{const r=i.target;this.updateTarget(this.getSource(r),this.computeNodes(r))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=os,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}Be.define(js);function Rs(o){return Me(o)&&(o={property:o}),new js(o)}const qs="boolean",Ws="reflect",Ko=Object.freeze({locate:rs()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Gs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const re={toView(o){const e=Gs(o);return e&&e.toString()},fromView:Gs};class Ri{constructor(e,t,i=t.toLowerCase(),r=Ws,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===qs&&s===void 0&&(this.converter=rl)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||Q.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Ws:const s=this.converter;ut.setAttribute(e,this.attribute,s!==void 0?s.toView(r):r);break;case qs:ut.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Ko.locate(e));for(let r=0,s=t.length;r<s;++r){const n=t[r];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Me(d)?i.push(new Ri(e,d)):i.push(new Ri(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,s){arguments.length>1&&(t.property=s),Ko.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const Xs={mode:"open"},Us={},Ks=new Set,Yo=ie.getById(dt.elementRegistry,()=>Gi());class Fe{constructor(e,t=e.definition){var i;this.platformDefined=!1,Me(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,s=Ri.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(r,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Xs:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Xs),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Us:Object.assign(Object.assign({},Us),t.elementOptions),this.styles=ke.normalize(t.styles),Yo.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return Ks.has(e)||Yo.getByType(e)?new Fe(class extends e{},t):new Fe(e,t)}static registerBaseType(e){Ks.add(e)}}Fe.getByType=Yo.getByType,Fe.getForInstance=Yo.getForInstance;class sl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,r=!1;return{source:o,context:At.default,targets:t,get isBound(){return r},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:lo(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:lo(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:ut.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),r&&s.bind(this)},onUnbind(s){i===null&&(i=[]),i.push(s)},connectedCallback(s){r||(r=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){r&&(r=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const nl={bubbles:!0,composed:!0,cancelable:!0},Qo="isConnected",Ys=new WeakMap;function co(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Ys.get(o))!==null&&t!==void 0?t:null}let Qs;class Ft extends ns{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const i=t.shadowOptions;if(i!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(i),i.mode==="closed"&&Ys.set(e,s))}const r=m.getAccessors(e);if(r.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=r.length;n<c;++n){const h=r[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Qo),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:At.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(i=r.get(e))!==null&&i!==void 0?i:0;s===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):r.set(e,s+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.addBehavior(r[s])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.removeBehavior(r[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Qo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,s=i.length;r<s;++r){const n=i[r];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Qo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},nl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=co(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=r.firstChild;s!==null;s=r.firstChild)r.removeChild(s)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Vo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=Fe.getForInstance(e);if(i===void 0)throw ie.error(1401);return e.$fastController=new Qs(e,i)}static setStrategy(e){Qs=e}}ht(Ft),Ft.setStrategy(Ft);function Zo(o){var e;return"adoptedStyleSheets"in o?o:(e=co(o))!==null&&e!==void 0?e:o.getRootNode()}class qi{constructor(e){const t=qi.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){Js(Zo(e),this.sheets)}removeStylesFrom(e){en(Zo(e),this.sheets)}}qi.styleSheetCache=new Map;let al=0;const ll=()=>`fast-${++al}`;function Zs(o){return o===document?document.body:o}class cl{constructor(e){this.styles=e,this.styleClass=ll()}addStylesTo(e){e=Zs(Zo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const s=document.createElement("style");s.innerHTML=t[r],s.className=i,e.append(s)}}removeStylesFrom(e){e=Zs(Zo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let Js=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},en=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ke.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Js=(o,e)=>{o.adoptedStyleSheets.push(...e)},en=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ke.setDefaultStrategy(qi)}else ke.setDefaultStrategy(cl);const tn="defer-hydration",on="needs-hydration";class Bt extends Ft{static hydrationObserverHandler(e){for(const t of e)Bt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(on)!==null),this.source.hasAttribute(tn)){Bt.hydrationObserver.observe(this.source,{attributeFilter:[tn]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,r=(e=co(i))!==null&&e!==void 0?e:i;if(this.template)if(qo(this.template)){let s=r.firstChild,n=r.lastChild;i.shadowRoot===null&&(De.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),De.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,i),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(on),this.needsInitialization=this.needsHydration=!1,m.notify(this,Qo)}disconnect(){super.disconnect(),Bt.hydrationObserver.unobserve(this.source)}static install(){Ft.setStrategy(Bt)}}Bt.hydrationObserver=new sl(Bt.hydrationObserverHandler);function rn(o){const e=class extends o{constructor(){super(),Ft.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return Fe.registerBaseType(e),e}function dl(o,e){return Ot(o)?Fe.compose(o,e):Fe.compose(this,o)}function hl(o,e){return Ot(o)?Fe.compose(o,e).define().type:Fe.compose(this,o).define().type}function ul(o){return rn(o)}const $=Object.assign(rn(HTMLElement),{from:ul,define:hl,compose:dl});var pl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,j=(o,e,t,i)=>{for(var r=i>1?void 0:i?bl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&pl(e,t,r),r};class R{}j([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),j([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),j([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),j([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),j([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),j([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),j([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),j([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),j([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),j([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),j([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),j([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),j([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),j([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),j([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),j([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),j([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),j([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),j([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const sr={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()}},ge={horizontal:"horizontal",vertical:"vertical"};function gl(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function nr(...o){return o.every(e=>e instanceof HTMLElement)}const ho="ArrowDown",uo="ArrowLeft",po="ArrowRight",bo="ArrowUp",go="End",fo="Enter",fl="Escape",mo="Home",Jo=" ",ml="Tab";var Le;(function(o){o.ltr="ltr",o.rtl="rtl"})(Le||(Le={}));function vl(o,e,t){return t<o?e:t>e?o:t}function ar(o,e,t){return Math.min(Math.max(t,o),e)}let $l=0;function Mt(o=""){return`${o}${$l++}`}const ei=o=>o.closest("[dir]")?.dir==="rtl"?Le.rtl:Le.ltr;function he(o){return o?typeof o=="string"?new pt(o):"inline"in o?o.inline():o:pt.empty}const sn=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,yl=":host([hidden]){display:none}";function k(o){return`${yl}:host{display:${o}}`}class xl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let i=this.listenerCache.get(e);i||(i=this.constructListener(e),this.listenerCache.set(e,i)),i.bind(t)(),t.addEventListener("change",i)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class Do extends xl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Do(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(i),t=s):!s&&t&&(e.removeStyles(i),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const U=Do.with(window.matchMedia("(forced-colors)"));Do.with(window.matchMedia("(prefers-color-scheme: dark)")),Do.with(window.matchMedia("(prefers-color-scheme: light)"));const ti=CSS.supports("anchor-name: --a"),kl="anchor"in HTMLElement.prototype,nn=CSS.supports("selector(:state(g))");class Ue{}function tt(o){return b`<slot name="end" ${V("end")}>${he(o.end)}</slot>`.inline()}function Ve(o){return b`<slot name="start" ${V("start")}>${he(o.start)}</slot>`.inline()}function Ke(o,...e){const t=Ko.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),Ko.locate(i).forEach(s=>t.push(s))})}var wl=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,oi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&wl(e,t,r),r};class ot extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Mt("accordion-")}}oi([a({attribute:"heading-level",mode:"fromView",converter:re})],ot.prototype,"headinglevel",2),oi([a({mode:"boolean"})],ot.prototype,"expanded",2),oi([a({mode:"boolean"})],ot.prototype,"disabled",2),oi([a],ot.prototype,"id",2);var Sl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,lr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Il(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sl(e,t,r),r};class vo extends ot{constructor(){super(...arguments),this.block=!1}}lr([a],vo.prototype,"size",2),lr([a({attribute:"marker-position"})],vo.prototype,"markerPosition",2),lr([a({mode:"boolean"})],vo.prototype,"block",2),Ke(vo,Ue);const z="var(--colorNeutralForeground1)",cr="var(--colorNeutralForeground1Hover)",Pl="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Ht="var(--colorNeutralForeground2Pressed)",ii="var(--colorNeutralForeground2Selected)",ri="var(--colorNeutralForeground2BrandHover)",si="var(--colorNeutralForeground2BrandPressed)",zl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",Tl="var(--colorNeutralForeground3Hover)",Bl="var(--colorNeutralForeground3Pressed)",Ol="var(--colorNeutralForeground3Selected)",dr="var(--colorNeutralForeground4)",S="var(--colorNeutralForegroundDisabled)",Al="var(--colorBrandForegroundLink)",_l="var(--colorBrandForegroundLinkHover)",El="var(--colorBrandForegroundLinkPressed)",Nl="var(--colorNeutralForeground2Link)",Fl="var(--colorNeutralForeground2LinkHover)",Ml="var(--colorNeutralForeground2LinkPressed)",an="var(--colorCompoundBrandForeground1Hover)",Dl="var(--colorCompoundBrandForeground1Pressed)",Ye="var(--colorNeutralForegroundOnBrand)",bt="var(--colorNeutralForegroundInverted)",Hl="var(--colorNeutralForegroundInvertedHover)",Ll="var(--colorNeutralForegroundInvertedPressed)",ln="var(--colorNeutralForegroundStaticInverted)",ni="var(--colorBrandForeground1)",Vl="var(--colorBrandForeground2)",jl="var(--colorNeutralForeground1Static)",I="var(--colorNeutralBackground1)",ai="var(--colorNeutralBackground1Hover)",hr="var(--colorNeutralBackground1Pressed)",cn="var(--colorNeutralBackground1Selected)",$o="var(--colorNeutralBackground3)",Rl="var(--colorNeutralBackground4)",ql="var(--colorNeutralBackground5)",yo="var(--colorNeutralBackground6)",dn="var(--colorNeutralBackgroundInverted)",hn="var(--colorSubtleBackground)",xo="var(--colorSubtleBackgroundHover)",gt="var(--colorSubtleBackgroundPressed)",un="var(--colorSubtleBackgroundSelected)",Wl="var(--colorSubtleBackgroundLightAlphaHover)",Gl="var(--colorSubtleBackgroundLightAlphaPressed)",Xl="var(--colorSubtleBackgroundLightAlphaSelected)",fe="var(--colorTransparentBackground)",li="var(--colorTransparentBackgroundHover)",ci="var(--colorTransparentBackgroundPressed)",pn="var(--colorTransparentBackgroundSelected)",it="var(--colorNeutralBackgroundDisabled)",ur="var(--colorBackgroundOverlay)",bn="var(--colorBrandBackground)",gn="var(--colorBrandBackgroundHover)",fn="var(--colorBrandBackgroundPressed)",Ul="var(--colorBrandBackgroundSelected)",ft="var(--colorCompoundBrandBackground)",Lt="var(--colorCompoundBrandBackgroundHover)",Vt="var(--colorCompoundBrandBackgroundPressed)",mn="var(--colorBrandBackgroundStatic)",vn="var(--colorBrandBackground2)",je="var(--colorNeutralStrokeAccessible)",mt="var(--colorNeutralStrokeAccessibleHover)",vt="var(--colorNeutralStrokeAccessiblePressed)",Re="var(--colorNeutralStroke1)",jt="var(--colorNeutralStroke1Hover)",ko="var(--colorNeutralStroke1Pressed)",wo="var(--colorNeutralStroke2)",Kl="var(--colorNeutralStroke3)",Yl="var(--colorNeutralStrokeOnBrand2)",$n="var(--colorBrandStroke1)",yn="var(--colorBrandStroke2)",$t="var(--colorCompoundBrandStroke)",Ql="var(--colorCompoundBrandStrokeHover)",xn="var(--colorCompoundBrandStrokePressed)",we="var(--colorNeutralStrokeDisabled)",J="var(--colorTransparentStroke)",pr="var(--colorTransparentStrokeInteractive)",br="var(--colorStrokeFocus1)",Ce="var(--colorStrokeFocus2)",Zl="var(--colorNeutralShadowAmbient)",Jl="var(--colorNeutralShadowKey)",kn="var(--colorPaletteRedBackground1)",ec="var(--colorPaletteRedBackground2)",wn="var(--colorPaletteRedBackground3)",Cn="var(--colorPaletteRedBorder1)",gr="var(--colorPaletteRedBorder2)",fr="var(--colorPaletteRedForeground1)",tc="var(--colorPaletteRedForeground2)",Sn="var(--colorPaletteRedForeground3)",In="var(--colorPaletteGreenBackground1)",Pn="var(--colorPaletteGreenBackground3)",oc="var(--colorPaletteGreenBorder1)",ic="var(--colorPaletteGreenBorder2)",rc="var(--colorPaletteGreenForeground1)",sc="var(--colorPaletteGreenForeground2)",nc="var(--colorPaletteGreenForeground3)",zn="var(--colorPaletteDarkOrangeBackground1)",Tn="var(--colorPaletteDarkOrangeBackground3)",Bn="var(--colorPaletteDarkOrangeBorder1)",ac="var(--colorPaletteDarkOrangeForeground1)",On="var(--colorPaletteDarkOrangeForeground3)",lc="var(--colorPaletteYellowBackground1)",cc="var(--colorPaletteYellowBackground3)",dc="var(--colorPaletteYellowBorder1)",mr="var(--colorPaletteYellowForeground2)",An="var(--colorPaletteMarigoldBackground2)",hc="var(--colorPaletteMarigoldBorderActive)",uc="var(--colorPaletteMarigoldForeground2)",pc="var(--colorPaletteAnchorBackground2)",bc="var(--colorPaletteAnchorForeground2)",gc="var(--colorPaletteBeigeBackground2)",fc="var(--colorPaletteBeigeForeground2)",mc="var(--colorPaletteBlueBackground2)",vc="var(--colorPaletteBlueForeground2)",$c="var(--colorPaletteBrassBackground2)",yc="var(--colorPaletteBrassForeground2)",xc="var(--colorPaletteBrownBackground2)",kc="var(--colorPaletteBrownForeground2)",wc="var(--colorPaletteCornflowerBackground2)",Cc="var(--colorPaletteCornflowerForeground2)",Sc="var(--colorPaletteCranberryBackground2)",Ic="var(--colorPaletteCranberryForeground2)",Pc="var(--colorPaletteDarkGreenBackground2)",zc="var(--colorPaletteDarkGreenForeground2)",Tc="var(--colorPaletteDarkRedBackground2)",Bc="var(--colorPaletteDarkRedForeground2)",Oc="var(--colorPaletteForestBackground2)",Ac="var(--colorPaletteForestForeground2)",_c="var(--colorPaletteGoldBackground2)",Ec="var(--colorPaletteGoldForeground2)",Nc="var(--colorPaletteGrapeBackground2)",Fc="var(--colorPaletteGrapeForeground2)",Mc="var(--colorPaletteLavenderBackground2)",Dc="var(--colorPaletteLavenderForeground2)",Hc="var(--colorPaletteLightTealBackground2)",Lc="var(--colorPaletteLightTealForeground2)",Vc="var(--colorPaletteLilacBackground2)",jc="var(--colorPaletteLilacForeground2)",Rc="var(--colorPaletteMagentaBackground2)",qc="var(--colorPaletteMagentaForeground2)",Wc="var(--colorPaletteMinkBackground2)",Gc="var(--colorPaletteMinkForeground2)",Xc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Kc="var(--colorPalettePeachBackground2)",Yc="var(--colorPalettePeachForeground2)",Qc="var(--colorPalettePinkBackground2)",Zc="var(--colorPalettePinkForeground2)",Jc="var(--colorPalettePlatinumBackground2)",ed="var(--colorPalettePlatinumForeground2)",td="var(--colorPalettePlumBackground2)",od="var(--colorPalettePlumForeground2)",id="var(--colorPalettePumpkinBackground2)",rd="var(--colorPalettePumpkinForeground2)",sd="var(--colorPalettePurpleBackground2)",nd="var(--colorPalettePurpleForeground2)",ad="var(--colorPaletteRoyalBlueBackground2)",ld="var(--colorPaletteRoyalBlueForeground2)",cd="var(--colorPaletteSeafoamBackground2)",dd="var(--colorPaletteSeafoamForeground2)",hd="var(--colorPaletteSteelBackground2)",ud="var(--colorPaletteSteelForeground2)",pd="var(--colorPaletteTealBackground2)",bd="var(--colorPaletteTealForeground2)",di="var(--borderRadiusNone)",Oe="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",_n="var(--borderRadiusLarge)",En="var(--borderRadiusXLarge)",me="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",gd="var(--fontFamilyMonospace)",fd="var(--fontFamilyNumeric)",Co="var(--fontSizeBase100)",N="var(--fontSizeBase200)",B="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",Rt="var(--fontSizeBase500)",hi="var(--fontSizeBase600)",Nn="var(--fontSizeHero700)",Fn="var(--fontSizeHero800)",Mn="var(--fontSizeHero900)",Dn="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",md="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",ui="var(--fontWeightBold)",pi="var(--lineHeightBase100)",q="var(--lineHeightBase200)",_="var(--lineHeightBase300)",ve="var(--lineHeightBase400)",bi="var(--lineHeightBase500)",Hn="var(--lineHeightBase600)",Ln="var(--lineHeightHero700)",Vn="var(--lineHeightHero800)",jn="var(--lineHeightHero900)",Rn="var(--lineHeightHero1000)",vr="var(--shadow2)",gi="var(--shadow4)",vd="var(--shadow8)",$r="var(--shadow16)",$d="var(--shadow28)",qn="var(--shadow64)",T="var(--strokeWidthThin)",$e="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",yr="var(--strokeWidthThickest)",W="var(--spacingHorizontalXXS)",ne="var(--spacingHorizontalXS)",ee="var(--spacingHorizontalSNudge)",Ae="var(--spacingHorizontalS)",ae="var(--spacingHorizontalMNudge)",le="var(--spacingHorizontalM)",yd="var(--spacingHorizontalL)",xd="var(--spacingHorizontalXL)",xr="var(--spacingHorizontalXXL)",kr="var(--spacingVerticalNone)",qt="var(--spacingVerticalXXS)",Wt="var(--spacingVerticalXS)",qe="var(--spacingVerticalSNudge)",L="var(--spacingVerticalS)",Gt="var(--spacingVerticalMNudge)",kd="var(--spacingVerticalM)",fi="var(--spacingVerticalL)",yt="var(--spacingVerticalXXL)",wd="var(--spacingVerticalXXXL)",wr="var(--durationUltraFast)",mi="var(--durationFaster)",vi="var(--durationNormal)",Cr="var(--durationGentle)",Wn="var(--durationSlow)",Gn="var(--durationSlower)",$i="var(--durationUltraSlow)",Cd="var(--curveAccelerateMax)",xt="var(--curveAccelerateMid)",Sd="var(--curveAccelerateMin)",Sr="var(--curveDecelerateMax)",kt="var(--curveDecelerateMid)",Id="var(--curveDecelerateMin)",Xn="var(--curveEasyEaseMax)",yi="var(--curveEasyEase)",Ir="var(--curveLinear)",Pd=u`
2
2
  ${k("block")}
3
3
 
4
4
  :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${le} ${ae};border-radius:${C};font-family:${v};font-size:${B};font-weight:${A};line-height:${_};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${fe};border:none;box-sizing:border-box;color:${z};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Oe}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${Ae};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${le}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Ae};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Oe};outline:none;border:2px solid ${br};box-shadow:inset 0 0 0 1px ${Ce}}:host([disabled]) .button{color:${S}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${B};line-height:${_}}:host([size='small']) .heading{font-size:${N};line-height:${q}}:host([size='large']) .heading{font-size:${ue};line-height:${ve}}:host([size='extra-large']) .heading{font-size:${Rt};line-height:${bi}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Ae};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${le}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${ae} ${le}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,zd=b.partial(`<svg
@@ -27,13 +27,13 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
27
27
  d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
28
28
  fill="currentColor"
29
29
  />
30
- </svg>`);function Bd(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${V("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}"><slot name="heading"></slot></button>${Ve(o)}<slot name="marker-expanded">${he(o.expandedIcon)}</slot><slot name="marker-collapsed">${he(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Od=Bd({collapsedIcon:zd,expandedIcon:Td}),Ad=vo.compose({name:`${p.prefix}-accordion-item`,template:Od,styles:Pd});Ad.define(p.registry);const Pr={single:"single",multi:"multi"};var _d=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Un=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ed(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_d(e,t,r),r};class zr extends ${constructor(){super(...arguments),this.expandmode=Pr.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t instanceof Ye&&(t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,i)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof Ye&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(t===Pr.single){this.setSingleExpandMode(i);return}i?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof Ye&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Pr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{i instanceof Ye&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}}Un([a({attribute:"expand-mode"})],zr.prototype,"expandmode",2),Un([g],zr.prototype,"slottedAccordionItems",2);const Nd=u`
30
+ </svg>`);function Bd(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${V("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}"><slot name="heading"></slot></button>${Ve(o)}<slot name="marker-expanded">${he(o.expandedIcon)}</slot><slot name="marker-collapsed">${he(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Od=Bd({collapsedIcon:zd,expandedIcon:Td}),Ad=vo.compose({name:`${p.prefix}-accordion-item`,template:Od,styles:Pd});Ad.define(p.registry);const Pr={single:"single",multi:"multi"};var _d=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Un=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ed(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_d(e,t,r),r};class zr extends ${constructor(){super(...arguments),this.expandmode=Pr.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,i)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof ot&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(t===Pr.single){this.setSingleExpandMode(i);return}i?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof ot&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Pr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{i instanceof ot&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}}Un([a({attribute:"expand-mode"})],zr.prototype,"expandmode",2),Un([g],zr.prototype,"slottedAccordionItems",2);const Nd=u`
31
31
  ${k("flex")}
32
32
 
33
33
  :host{flex-direction:column;width:100%;contain:content}`;function Fd(){return b`<template><slot ${D({property:"slottedAccordionItems",filter:Nt()})}></slot></template>`}const Md=Fd(),Dd=zr.compose({name:`${p.prefix}-accordion`,template:Md,styles:Nd});Dd.define(p.registry);const Kn=new Map;function P(o){return Kn.get(o)??Kn.set(o,nn?`:state(${o})`:`[state--${o}]`).get(o)}function y(o,e,t){if(!(!e||!o)){if(!nn){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Tr=new WeakMap;function Yn(o,e){if(!o||!e)return!1;if(Tr.has(o))return Tr.get(o).has(e);const t=new Set(Object.values(o));return Tr.set(o,t),t.has(e)}function wt(o,e="",t="",i,r=""){y(o,`${r}${e}`,!1),(!i||Yn(i,t))&&y(o,`${r}${t}`,!0)}const Hd={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Ld={circular:"circular",rounded:"rounded",square:"square"},Vd={small:"small",medium:"medium",large:"large"},xi={submit:"submit",reset:"reset",button:"button"},jd=Hd,Rd=Ld,qd=Vd,Wd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Gd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,rt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Gd(e,t,r),r};class We extends ${constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Wd){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===fo){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.ariaHidden="true",e.tabIndex=-1,e}}rt([a],We.prototype,"download",2),rt([a],We.prototype,"href",2),rt([a],We.prototype,"hreflang",2),rt([a],We.prototype,"ping",2),rt([a],We.prototype,"referrerpolicy",2),rt([a],We.prototype,"rel",2),rt([a],We.prototype,"target",2),rt([a],We.prototype,"type",2);var Ud=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,ki=(o,e,t,i)=>{for(var r=i>1?void 0:i?Kd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ud(e,t,r),r};class Xt extends We{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){wt(this.elementInternals,e,t,jd)}shapeChanged(e,t){wt(this.elementInternals,e,t,Rd)}sizeChanged(e,t){wt(this.elementInternals,e,t,qd)}iconOnlyChanged(e,t){y(this.elementInternals,"icon",!!t)}}ki([a],Xt.prototype,"appearance",2),ki([a],Xt.prototype,"shape",2),ki([a],Xt.prototype,"size",2),ki([a({attribute:"icon-only",mode:"boolean"})],Xt.prototype,"iconOnly",2),Ke(Xt,Ue);const Qn=u`
34
34
  ${k("inline-flex")}
35
35
 
36
- :host{--icon-spacing:${ee};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${I};color:${z};border:${T} solid ${Re};padding:0 ${le};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${H};line-height:${_};transition-duration:${mi};transition-property:background,border,color;transition-timing-function:${yi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ai};color:${cr};border-color:${jt}}:host(:hover:active){background-color:${hr};border-color:${ko};color:${Pl};outline-style:none}:host(:focus-visible){border-color:${J};outline:${$e} solid ${J};box-shadow:${gi},0 0 0 2px ${Ce}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${ne};min-height:24px;min-width:64px;padding:0 ${Ae};border-radius:${Oe};font-size:${N};line-height:${q};font-weight:${A}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${_n};padding:0 ${yd};font-size:${ue};line-height:${ve}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${me}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${di}}:host([appearance='primary']){background-color:${bn};color:${Qe};border-color:transparent}:host([appearance='primary']:hover){background-color:${gn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Qe}}:host([appearance='primary']:hover:active){background-color:${fn}}:host([appearance='primary']:focus-visible){border-color:${Qe};box-shadow:${vr},0 0 0 2px ${Ce}}:host([appearance='outline']){background-color:${fe}}:host([appearance='outline']:hover){background-color:${li}}:host([appearance='outline']:hover:active){background-color:${ci}}:host([appearance='subtle']){background-color:${hn};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${xo};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${gt};color:${Ht};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ri}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${si}}:host([appearance='transparent']){background-color:${fe};color:${Ie}}:host([appearance='transparent']:hover){background-color:${li};color:${ri}}:host([appearance='transparent']:hover:active){background-color:${ci};color:${si}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,wi=u`
36
+ :host{--icon-spacing:${ee};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${I};color:${z};border:${T} solid ${Re};padding:0 ${le};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${H};line-height:${_};transition-duration:${mi};transition-property:background,border,color;transition-timing-function:${yi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ai};color:${cr};border-color:${jt}}:host(:hover:active){background-color:${hr};border-color:${ko};color:${Pl};outline-style:none}:host(:focus-visible){border-color:${J};outline:${$e} solid ${J};box-shadow:${gi},0 0 0 2px ${Ce}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${ne};min-height:24px;min-width:64px;padding:0 ${Ae};border-radius:${Oe};font-size:${N};line-height:${q};font-weight:${A}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${_n};padding:0 ${yd};font-size:${ue};line-height:${ve}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${me}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${di}}:host([appearance='primary']){background-color:${bn};color:${Ye};border-color:transparent}:host([appearance='primary']:hover){background-color:${gn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ye}}:host([appearance='primary']:hover:active){background-color:${fn}}:host([appearance='primary']:focus-visible){border-color:${Ye};box-shadow:${vr},0 0 0 2px ${Ce}}:host([appearance='outline']){background-color:${fe}}:host([appearance='outline']:hover){background-color:${li}}:host([appearance='outline']:hover:active){background-color:${ci}}:host([appearance='subtle']){background-color:${hn};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${xo};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${gt};color:${Ht};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ri}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${si}}:host([appearance='transparent']){background-color:${fe};color:${Ie}}:host([appearance='transparent']:hover){background-color:${li};color:${ri}}:host([appearance='transparent']:hover:active){background-color:${ci};color:${si}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,wi=u`
37
37
  ${Qn}
38
38
 
39
39
  :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${it};border-color:${we};color:${S};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${fe}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${fe};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${fe}}`.withBehaviors(U(u`
@@ -41,7 +41,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
41
41
  ${Qn}
42
42
 
43
43
  ::slotted(a){position:absolute;inset:0}`.withBehaviors(U(u`
44
- :host{border-color:LinkText;color:LinkText}`));function Qd(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${Ve(o)}<span class="content" part="content"><slot></slot></span>${ot(o)}</template>`}const Zd=Qd(),Jd=Xt.compose({name:`${p.prefix}-anchor-button`,template:Zd,styles:Yd});Jd.define(p.registry);const eh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,th=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,oh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,ih=/\s+/g,rh=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function sh(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function nh(o){return o=o.replace(eh,""),o=o.replace(th,""),o=o.replace(ih," "),o=o.trim(),o}function ah(o,e,t){return!o||(o=nh(o),rh.test(o)||!t?.allowPhoneInitials&&oh.test(o))?"":sh(o,e,t?.firstInitialOnly)}var lh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,Zn=(o,e,t,i)=>{for(var r=i>1?void 0:i?ch(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&lh(e,t,r),r};class Br extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}Zn([a],Br.prototype,"name",2),Zn([a],Br.prototype,"initials",2);const Jn={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},ea={neutral:"neutral",brand:"brand",colorful:"colorful",...Jn};var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Ut=(o,e,t,i)=>{for(var r=i>1?void 0:i?hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&dh(e,t,r),r};const st=class Zr extends Br{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??ah(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===ea.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?Zr.colors[ph(this.name??"")%Zr.colors.length]:this.color??ea.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};st.colors=Object.values(Jn),Ut([a],st.prototype,"active",2),Ut([a],st.prototype,"shape",2),Ut([a],st.prototype,"appearance",2),Ut([a({converter:re})],st.prototype,"size",2),Ut([a],st.prototype,"color",2),Ut([a({attribute:"color-id"})],st.prototype,"colorId",2);let uh=st;const ph=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},nt={fastOutSlowInMax:Sr,fastOutSlowInMid:kt,fastOutSlowInMin:Id,slowOutFastInMax:Cd,slowOutFastInMid:xt,slowOutFastInMin:Sd,fastEase:Xn,normalEase:yi,nullEasing:Ir},bh=u`
44
+ :host{border-color:LinkText;color:LinkText}`));function Qd(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${Ve(o)}<span class="content" part="content"><slot></slot></span>${tt(o)}</template>`}const Zd=Qd(),Jd=Xt.compose({name:`${p.prefix}-anchor-button`,template:Zd,styles:Yd});Jd.define(p.registry);const eh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,th=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,oh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,ih=/\s+/g,rh=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function sh(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function nh(o){return o=o.replace(eh,""),o=o.replace(th,""),o=o.replace(ih," "),o=o.trim(),o}function ah(o,e,t){return!o||(o=nh(o),rh.test(o)||!t?.allowPhoneInitials&&oh.test(o))?"":sh(o,e,t?.firstInitialOnly)}var lh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,Zn=(o,e,t,i)=>{for(var r=i>1?void 0:i?ch(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&lh(e,t,r),r};class Br extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}Zn([a],Br.prototype,"name",2),Zn([a],Br.prototype,"initials",2);const Jn={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},ea={neutral:"neutral",brand:"brand",colorful:"colorful",...Jn};var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Ut=(o,e,t,i)=>{for(var r=i>1?void 0:i?hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&dh(e,t,r),r};const st=class Zr extends Br{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??ah(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===ea.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?Zr.colors[ph(this.name??"")%Zr.colors.length]:this.color??ea.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};st.colors=Object.values(Jn),Ut([a],st.prototype,"active",2),Ut([a],st.prototype,"shape",2),Ut([a],st.prototype,"appearance",2),Ut([a({converter:re})],st.prototype,"size",2),Ut([a],st.prototype,"color",2),Ut([a({attribute:"color-id"})],st.prototype,"colorId",2);let uh=st;const ph=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},nt={fastOutSlowInMax:Sr,fastOutSlowInMid:kt,fastOutSlowInMin:Id,slowOutFastInMax:Cd,slowOutFastInMid:xt,slowOutFastInMin:Sd,fastEase:Xn,normalEase:yi,nullEasing:Ir},bh=u`
45
45
  ${k("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${H};font-size:${B};border-radius:${me};color:${Z};background-color:${yo};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${me}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${T}) ${I}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${$e}) ${I}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Co};font-weight:${A}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${N}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ue}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Rt}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${hi}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${C}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Oe}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${_n}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${En}}:host([data-color='brand']){color:${ln};background-color:${mn}}:host([data-color='dark-red']){color:${Bc};background-color:${Tc}}:host([data-color='cranberry']){color:${Ic};background-color:${Sc}}:host([data-color='red']){color:${tc};background-color:${ec}}:host([data-color='pumpkin']){color:${rd};background-color:${id}}:host([data-color='peach']){color:${Yc};background-color:${Kc}}:host([data-color='marigold']){color:${uc};background-color:${An}}:host([data-color='gold']){color:${Ec};background-color:${_c}}:host([data-color='brass']){color:${yc};background-color:${$c}}:host([data-color='brown']){color:${kc};background-color:${xc}}:host([data-color='forest']){color:${Ac};background-color:${Oc}}:host([data-color='seafoam']){color:${dd};background-color:${cd}}:host([data-color='dark-green']){color:${zc};background-color:${Pc}}:host([data-color='light-teal']){color:${Lc};background-color:${Hc}}:host([data-color='teal']){color:${bd};background-color:${pd}}:host([data-color='steel']){color:${ud};background-color:${hd}}:host([data-color='blue']){color:${vc};background-color:${mc}}:host([data-color='royal-blue']){color:${ld};background-color:${ad}}:host([data-color='cornflower']){color:${Cc};background-color:${wc}}:host([data-color='navy']){color:${Uc};background-color:${Xc}}:host([data-color='lavender']){color:${Dc};background-color:${Mc}}:host([data-color='purple']){color:${nd};background-color:${sd}}:host([data-color='grape']){color:${Fc};background-color:${Nc}}:host([data-color='lilac']){color:${jc};background-color:${Vc}}:host([data-color='pink']){color:${Zc};background-color:${Qc}}:host([data-color='magenta']){color:${qc};background-color:${Rc}}:host([data-color='plum']){color:${od};background-color:${td}}:host([data-color='beige']){color:${fc};background-color:${gc}}:host([data-color='mink']){color:${Gc};background-color:${Wc}}:host([data-color='platinum']){color:${ed};background-color:${Jc}}:host([data-color='anchor']){color:${bc};background-color:${pc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${$i},${mi};transition-delay:${nt.fastEase},${nt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${$i}),${Gn};transition-delay:${nt.fastEase}),${nt.nullEasing})}:host([active])::before{box-shadow:${vd};border-style:solid;border-color:${mn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${$e});border-width:${$e}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${se});border-width:${se}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${yr});border-width:${yr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${gi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${$r}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${$d}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${$i},${mi};transition-delay:${nt.fastOutSlowInMin},${nt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${$i},${Gn};transition-delay:${nt.fastOutSlowInMin},${nt.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,gh=b`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function fh(){return b`<slot>${o=>o.name||o.initials?o.generateInitials():gh}</slot><slot name="badge"></slot>`}const mh=fh(),vh=uh.compose({name:`${p.prefix}-avatar`,template:mh,styles:bh});vh.define(p.registry);const $h={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},yh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var xh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Ci=(o,e,t,i)=>{for(var r=i>1?void 0:i?kh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xh(e,t,r),r};class Kt extends ${constructor(){super(...arguments),this.appearance=$h.filled,this.color=yh.brand}}Ci([a],Kt.prototype,"appearance",2),Ci([a],Kt.prototype,"color",2),Ci([a],Kt.prototype,"shape",2),Ci([a],Kt.prototype,"size",2),Ke(Kt,Ue);const ta=u.partial`
46
46
  ${k("inline-flex")} :host {
47
47
  position: relative;
@@ -58,7 +58,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
58
58
  border-radius: ${me};
59
59
  border-color: ${J};
60
60
  background-color: ${bn};
61
- color: ${Qe};
61
+ color: ${Ye};
62
62
  contain: content;
63
63
  }
64
64
 
@@ -134,7 +134,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
134
134
  `,ia=u.partial`
135
135
  :host([color='danger']) {
136
136
  background-color: ${wn};
137
- color: ${Qe};
137
+ color: ${Ye};
138
138
  }
139
139
 
140
140
  :host([color='important']) {
@@ -149,7 +149,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
149
149
 
150
150
  :host([color='severe']) {
151
151
  background-color: ${Tn};
152
- color: ${Qe};
152
+ color: ${Ye};
153
153
  }
154
154
 
155
155
  :host([color='subtle']) {
@@ -159,7 +159,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
159
159
 
160
160
  :host([color='success']) {
161
161
  background-color: ${Pn};
162
- color: ${Qe};
162
+ color: ${Ye};
163
163
  }
164
164
 
165
165
  :host([color='warning']) {
@@ -376,7 +376,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
376
376
  ${oa}
377
377
  ${ta}
378
378
  `.withBehaviors(U(u`
379
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function aa(o={}){return b` ${Ve(o)}<slot>${he(o.defaultContent)}</slot>${ot(o)} `}const zh=aa(),Th=Kt.compose({name:`${p.prefix}-badge`,template:zh,styles:Ph});Th.define(p.registry);var Bh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,Se=(o,e,t,i)=>{for(var r=i>1?void 0:i?Oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bh(e,t,r),r};class pe extends ${constructor(){super(),this.disabled=!1,this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.$fastController.isConnected&&(this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0)}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==xi.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.disabledChanged()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===fo||e.key===Jo){this.click();return}return!0}press(){switch(this.type){case xi.reset:{this.resetForm();break}case xi.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==xi.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}pe.formAssociated=!0,Se([a({mode:"boolean"})],pe.prototype,"autofocus",2),Se([g],pe.prototype,"defaultSlottedContent",2),Se([a({mode:"boolean"})],pe.prototype,"disabled",2),Se([a({attribute:"disabled-focusable",mode:"boolean"})],pe.prototype,"disabledFocusable",2),Se([a({attribute:"formaction"})],pe.prototype,"formAction",2),Se([a({attribute:"form"})],pe.prototype,"formAttribute",2),Se([a({attribute:"formenctype"})],pe.prototype,"formEnctype",2),Se([a({attribute:"formmethod"})],pe.prototype,"formMethod",2),Se([a({attribute:"formnovalidate",mode:"boolean"})],pe.prototype,"formNoValidate",2),Se([a({attribute:"formtarget"})],pe.prototype,"formTarget",2),Se([a],pe.prototype,"name",2),Se([a],pe.prototype,"type",2),Se([a],pe.prototype,"value",2);var Ah=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,Si=(o,e,t,i)=>{for(var r=i>1?void 0:i?_h(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ah(e,t,r),r};class Ze extends pe{constructor(){super(...arguments),this.iconOnly=!1}}Si([a],Ze.prototype,"appearance",2),Si([a],Ze.prototype,"shape",2),Si([a],Ze.prototype,"size",2),Si([a({attribute:"icon-only",mode:"boolean"})],Ze.prototype,"iconOnly",2),Ke(Ze,Ue);function Or(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Ve(o)}<span class="content" part="content"><slot ${D("defaultSlottedContent")}></slot></span>${ot(o)}</template>`}const Eh=Or(),Nh=Ze.compose({name:`${p.prefix}-button`,template:Eh,styles:wi});Nh.define(p.registry);var Fh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,at=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Fh(e,t,r),r};class Pe extends ${constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),y(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}Pe.formAssociated=!0,at([a({mode:"boolean"})],Pe.prototype,"autofocus",2),at([g],Pe.prototype,"disabled",2),at([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),at([a({attribute:"form"})],Pe.prototype,"formAttribute",2),at([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),at([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),at([a],Pe.prototype,"name",2),at([a({mode:"boolean"})],Pe.prototype,"required",2);var Dh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Ar=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Dh(e,t,r),r};class Ii extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Ar([g],Ii.prototype,"indeterminate",2),Ar([a],Ii.prototype,"shape",2),Ar([a],Ii.prototype,"size",2);const Lh=P("active"),Vh=P("bad-input"),x=P("checked"),jh=P("custom-error"),Rh=P("description"),ye=P("disabled");P("error");const qh=P("flip-block"),Wh=P("focus-visible");P("has-message");const Ct=P("indeterminate"),Yt=P("multiple"),Gh=P("open"),Xh=P("pattern-mismatch"),Uh=P("placeholder-shown"),F=P("pressed"),Kh=P("range-overflow"),Yh=P("range-underflow"),Qh=P("required"),_r=P("selected"),Zh=P("step-mismatch"),Pi=P("submenu"),Jh=P("too-long"),eu=P("too-short"),tu=P("type-mismatch"),ou=P("user-invalid"),iu=P("valid"),ru=P("value-missing"),su=u`
379
+ :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function aa(o={}){return b` ${Ve(o)}<slot>${he(o.defaultContent)}</slot>${tt(o)} `}const zh=aa(),Th=Kt.compose({name:`${p.prefix}-badge`,template:zh,styles:Ph});Th.define(p.registry);var Bh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,Se=(o,e,t,i)=>{for(var r=i>1?void 0:i?Oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bh(e,t,r),r};class pe extends ${constructor(){super(),this.disabled=!1,this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.$fastController.isConnected&&(this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0)}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==xi.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.disabledChanged()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===fo||e.key===Jo){this.click();return}return!0}press(){switch(this.type){case xi.reset:{this.resetForm();break}case xi.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==xi.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}pe.formAssociated=!0,Se([a({mode:"boolean"})],pe.prototype,"autofocus",2),Se([g],pe.prototype,"defaultSlottedContent",2),Se([a({mode:"boolean"})],pe.prototype,"disabled",2),Se([a({attribute:"disabled-focusable",mode:"boolean"})],pe.prototype,"disabledFocusable",2),Se([a({attribute:"formaction"})],pe.prototype,"formAction",2),Se([a({attribute:"form"})],pe.prototype,"formAttribute",2),Se([a({attribute:"formenctype"})],pe.prototype,"formEnctype",2),Se([a({attribute:"formmethod"})],pe.prototype,"formMethod",2),Se([a({attribute:"formnovalidate",mode:"boolean"})],pe.prototype,"formNoValidate",2),Se([a({attribute:"formtarget"})],pe.prototype,"formTarget",2),Se([a],pe.prototype,"name",2),Se([a],pe.prototype,"type",2),Se([a],pe.prototype,"value",2);var Ah=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,Si=(o,e,t,i)=>{for(var r=i>1?void 0:i?_h(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ah(e,t,r),r};class Qe extends pe{constructor(){super(...arguments),this.iconOnly=!1}}Si([a],Qe.prototype,"appearance",2),Si([a],Qe.prototype,"shape",2),Si([a],Qe.prototype,"size",2),Si([a({attribute:"icon-only",mode:"boolean"})],Qe.prototype,"iconOnly",2),Ke(Qe,Ue);function Or(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Ve(o)}<span class="content" part="content"><slot ${D("defaultSlottedContent")}></slot></span>${tt(o)}</template>`}const Eh=Or(),Nh=Qe.compose({name:`${p.prefix}-button`,template:Eh,styles:wi});Nh.define(p.registry);var Fh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,at=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Fh(e,t,r),r};class Pe extends ${constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),y(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}Pe.formAssociated=!0,at([a({mode:"boolean"})],Pe.prototype,"autofocus",2),at([g],Pe.prototype,"disabled",2),at([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),at([a({attribute:"form"})],Pe.prototype,"formAttribute",2),at([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),at([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),at([a],Pe.prototype,"name",2),at([a({mode:"boolean"})],Pe.prototype,"required",2);var Dh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Ar=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Dh(e,t,r),r};class Ii extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Ar([g],Ii.prototype,"indeterminate",2),Ar([a],Ii.prototype,"shape",2),Ar([a],Ii.prototype,"size",2);const Lh=P("active"),Vh=P("bad-input"),x=P("checked"),jh=P("custom-error"),Rh=P("description"),ye=P("disabled");P("error");const qh=P("flip-block"),Wh=P("focus-visible");P("has-message");const Ct=P("indeterminate"),Yt=P("multiple"),Gh=P("open"),Xh=P("pattern-mismatch"),Uh=P("placeholder-shown"),F=P("pressed"),Kh=P("range-overflow"),Yh=P("range-underflow"),Qh=P("required"),_r=P("selected"),Zh=P("step-mismatch"),Pi=P("submenu"),Jh=P("too-long"),eu=P("too-short"),tu=P("type-mismatch"),ou=P("user-invalid"),iu=P("valid"),ru=P("value-missing"),su=u`
380
380
  ${k("inline-flex")}
381
381
 
382
382
  :host{--size:16px;background-color:${I};border-radius:${Oe};border:${T} solid ${je};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${mt}}:host(:active){border-color:${vt}}:host(${x}:hover){background-color:${Lt};border-color:${Ql}}:host(${x}:active){background-color:${Vt};border-color:${xn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${$e} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ce}}.indeterminate-indicator,.checked-indicator{color:${bt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${Ct}){border-color:${$t}}:host(${x}),:host(${Ct}) .indeterminate-indicator{background-color:${ft}}:host(${Ct}) .indeterminate-indicator{border-radius:${Oe};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${me}}:host([disabled]),:host([disabled]${x}){background-color:${it};border-color:${we}}:host([disabled]){cursor:unset}:host([disabled]${Ct}) .indeterminate-indicator{background-color:${we}}:host([disabled]${x}) .checked-indicator{color:${we}}`.withBehaviors(U(u`
@@ -393,14 +393,14 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
393
393
  </svg>
394
394
  `),au=b.partial(`
395
395
  <span class="indeterminate-indicator"></span>
396
- `);function lu(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="checked-indicator">${he(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${he(o.indeterminateIndicator)}</slot></template>`}const cu=lu({checkedIndicator:nu,indeterminateIndicator:au}),du=Ii.compose({name:`${p.prefix}-checkbox`,template:cu,styles:su});du.define(p.registry);class hu extends Ze{}const uu=u`
396
+ `);function lu(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="checked-indicator">${he(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${he(o.indeterminateIndicator)}</slot></template>`}const cu=lu({checkedIndicator:nu,indeterminateIndicator:au}),du=Ii.compose({name:`${p.prefix}-checkbox`,template:cu,styles:su});du.define(p.registry);class hu extends Qe{}const uu=u`
397
397
  ${wi}
398
398
 
399
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${_}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${N};font-weight:${A}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Dt}}:host(:active) ::slotted([slot='description']){color:${Ht}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Qe}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
399
+ :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${_}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${N};font-weight:${A}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Dt}}:host(:active) ::slotted([slot='description']){color:${Ht}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ye}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
400
400
  ::slotted([slot='description']){color:${Ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ri}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${si}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
401
401
  ::slotted([slot='description']){color:${S}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ee}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${ne}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Ae}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${ve}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}`.withBehaviors(U(u`
402
402
  :host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable]))
403
- ::slotted([slot='description']){color:HighlightText}`));function pu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${Ve(o)}<span class="content" part="content"><slot ${D("defaultSlottedContent")}></slot><slot name="description"></slot></span>${ot(o)}</template>`}const bu=pu(),gu=hu.compose({name:`${p.prefix}-compound-button`,template:bu,styles:uu});gu.define(p.registry);var fu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,lt=(o,e,t,i)=>{for(var r=i>1?void 0:i?mu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&fu(e,t,r),r};class Ge extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}lt([a],Ge.prototype,"appearance",2),lt([a],Ge.prototype,"color",2),lt([a],Ge.prototype,"shape",2),lt([a],Ge.prototype,"size",2),lt([a({converter:re})],Ge.prototype,"count",2),lt([a({attribute:"overflow-count",converter:re})],Ge.prototype,"overflowCount",2),lt([a({attribute:"show-zero",mode:"boolean"})],Ge.prototype,"showZero",2),lt([a({mode:"boolean"})],Ge.prototype,"dot",2),Ke(Ge,Ue);const vu=u`
403
+ ::slotted([slot='description']){color:HighlightText}`));function pu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${Ve(o)}<span class="content" part="content"><slot ${D("defaultSlottedContent")}></slot><slot name="description"></slot></span>${tt(o)}</template>`}const bu=pu(),gu=hu.compose({name:`${p.prefix}-compound-button`,template:bu,styles:uu});gu.define(p.registry);var fu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,lt=(o,e,t,i)=>{for(var r=i>1?void 0:i?mu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&fu(e,t,r),r};class Ge extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}lt([a],Ge.prototype,"appearance",2),lt([a],Ge.prototype,"color",2),lt([a],Ge.prototype,"shape",2),lt([a],Ge.prototype,"size",2),lt([a({converter:re})],Ge.prototype,"count",2),lt([a({attribute:"overflow-count",converter:re})],Ge.prototype,"overflowCount",2),lt([a({attribute:"show-zero",mode:"boolean"})],Ge.prototype,"showZero",2),lt([a({mode:"boolean"})],Ge.prototype,"dot",2),Ke(Ge,Ue);const vu=u`
404
404
  :host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Oe}}${oa}
405
405
  ${ia}
406
406
  ${ra}
@@ -437,7 +437,7 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
437
437
  :host{color:LinkText}`));function Np(){return b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const Fp=Np(),Mp=Dr.compose({name:`${p.prefix}-link`,template:Fp,styles:Ep});Mp.define(p.registry);var Dp=Object.defineProperty,Hp=Object.getOwnPropertyDescriptor,Oo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Dp(e,t,r),r};class eo extends ${constructor(){super(),this.id=Zt("listbox-"),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),Q.enqueue(()=>{this.options.forEach(i=>{i.multiple=!!t})})}optionsChanged(e,t){t?.forEach((i,r)=>{i.elementInternals.ariaPosInSet=`${r+1}`,i.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Bi(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),this.$emit("connected")}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((i,r)=>{const s=r===e;i.selected=s,s&&(t=r)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}}Oo([a({attribute:"id",mode:"fromView"})],eo.prototype,"id",2),Oo([g],eo.prototype,"multiple",2),Oo([g],eo.prototype,"options",2),Oo([g],eo.prototype,"selectedIndex",2),Oo([g],eo.prototype,"dropdown",2);const Lp=u`
438
438
  ${k("inline-flex")}
439
439
 
440
- :host{background-color:${I};border-radius:${C};border:none;box-shadow:${$r};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${ne};row-gap:${W};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${qh}){margin-block-start:revert;translate:0 -100%}}`;function Vp(){return b`<template id="${o=>o.id}" @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot ${D({property:"options",filter:o=>Bi(o)})}></slot></template>`}const jp=Vp(),Rp=eo.compose({name:`${p.prefix}-listbox`,template:jp,styles:Lp});Rp.define(p.registry);class qp extends Ze{}const Wp=Or({end:b.partial(`
440
+ :host{background-color:${I};border-radius:${C};border:none;box-shadow:${$r};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${ne};row-gap:${W};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${qh}){margin-block-start:revert;translate:0 -100%}}`;function Vp(){return b`<template id="${o=>o.id}" @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot ${D({property:"options",filter:o=>Bi(o)})}></slot></template>`}const jp=Vp(),Rp=eo.compose({name:`${p.prefix}-listbox`,template:jp,styles:Lp});Rp.define(p.registry);class qp extends Qe{}const Wp=Or({end:b.partial(`
441
441
  <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
442
442
  <path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
443
443
  </svg>
@@ -445,13 +445,13 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
445
445
  ${k("grid")}
446
446
 
447
447
  :host{--indent:0;align-items:center;background:${I};border-radius:${C};color:${Ie};contain:layout;cursor:pointer;flex-shrink:0;font:${A} ${B} / ${_} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ai};color:${Dt}}:host(:active){background-color:${cn};color:${Ht}}:host(:active) ::slotted([slot='start']){color:${Dl}}:host(${ye}){background-color:${it};color:${S}}:host(${ye}) ::slotted([slot='start']),:host(${ye}) ::slotted([slot='end']){color:${S}}:host(:focus-visible){border-radius:${C};outline:2px solid ${Ce}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${Pi})) .submenu-glyph,:host(:not(${Pi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Z};font:${A} ${N} / ${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Pi}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Pi}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(U(u`
448
- :host(${ye}),:host(${ye}) ::slotted([slot='start']),:host(${ye}) ::slotted([slot='end']){color:GrayText}`)),Yp=b.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),Qp=b.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function Zp(o={}){return b`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${he(o.indicator)}</slot>${Ve(o)}<div part="content" class="content"><slot></slot></div>${ot(o)}<slot name="submenu-glyph">${he(o.submenuGlyph)}</slot><slot name="submenu" ${D({property:"slottedSubmenu"})}></slot></template>`}const Jp=Zp({indicator:Yp,submenuGlyph:Qp}),eb=_e.compose({name:`${p.prefix}-menu-item`,template:Jp,styles:Kp});eb.define(p.registry);var tb=Object.defineProperty,ob=Object.getOwnPropertyDescriptor,ib=(o,e,t,i)=>{for(var r=i>1?void 0:i?ob(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&tb(e,t,r),r};const Hr=class Jr extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&nr(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,i=this.menuItems.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=i-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}const r=this.menuItems.length-1;for(let s=i+1;s<=r;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>e instanceof _e||nr(e)&&e.getAttribute("role")in Jr.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Q.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case ho:this.setFocus(this.focusIndex+1,1);return;case bo:this.setFocus(this.focusIndex-1,-1);return;case go:this.setFocus(this.menuItems.length-1,-1);return;case mo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t&&t!==te.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const r=this.menuItems?.filter(this.isMenuItemElement),s=r?.reduce((n,c)=>{const h=Jr.elementIndent(c);return Math.max(n,h)},0);r?.forEach(n=>{n instanceof _e&&n.setAttribute("data-indent",`${s}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}};Hr.focusableElementRoles=te,ib([g],Hr.prototype,"items",2);let rb=Hr;const sb=u`
448
+ :host(${ye}),:host(${ye}) ::slotted([slot='start']),:host(${ye}) ::slotted([slot='end']){color:GrayText}`)),Yp=b.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),Qp=b.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function Zp(o={}){return b`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${he(o.indicator)}</slot>${Ve(o)}<div part="content" class="content"><slot></slot></div>${tt(o)}<slot name="submenu-glyph">${he(o.submenuGlyph)}</slot><slot name="submenu" ${D({property:"slottedSubmenu"})}></slot></template>`}const Jp=Zp({indicator:Yp,submenuGlyph:Qp}),eb=_e.compose({name:`${p.prefix}-menu-item`,template:Jp,styles:Kp});eb.define(p.registry);var tb=Object.defineProperty,ob=Object.getOwnPropertyDescriptor,ib=(o,e,t,i)=>{for(var r=i>1?void 0:i?ob(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&tb(e,t,r),r};const Hr=class Jr extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&nr(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,i=this.menuItems.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=i-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}const r=this.menuItems.length-1;for(let s=i+1;s<=r;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>e instanceof _e||nr(e)&&e.getAttribute("role")in Jr.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Q.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case ho:this.setFocus(this.focusIndex+1,1);return;case bo:this.setFocus(this.focusIndex-1,-1);return;case go:this.setFocus(this.menuItems.length-1,-1);return;case mo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t&&t!==te.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const r=this.menuItems?.filter(this.isMenuItemElement),s=r?.reduce((n,c)=>{const h=Jr.elementIndent(c);return Math.max(n,h)},0);r?.forEach(n=>{n instanceof _e&&n.setAttribute("data-indent",`${s}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}};Hr.focusableElementRoles=te,ib([g],Hr.prototype,"items",2);let rb=Hr;const sb=u`
449
449
  ${k("flex")}
450
450
 
451
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${I};border:1px solid ${J};border-radius:${C};box-shadow:${$r};padding:4px;row-gap:2px}`;function nb(){return b`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${D("items")}></slot></template>`}const ab=nb(),lb=rb.compose({name:`${p.prefix}-menu-list`,template:ab,styles:sb});lb.define(p.registry);var cb=Object.defineProperty,db=Object.getOwnPropertyDescriptor,ct=(o,e,t,i)=>{for(var r=i>1?void 0:i?db(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&cb(e,t,r),r};class Je extends ${constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof _e&&(e.target.getAttribute("role")===te.menuitemcheckbox||e.target.getAttribute("role")===te.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Jo:case fo:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Q.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Q.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Q.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case fl:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case ml:if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}ct([a({attribute:"open-on-hover",mode:"boolean"})],Je.prototype,"openOnHover",2),ct([a({attribute:"open-on-context",mode:"boolean"})],Je.prototype,"openOnContext",2),ct([a({attribute:"close-on-scroll",mode:"boolean"})],Je.prototype,"closeOnScroll",2),ct([a({attribute:"persist-on-item-click",mode:"boolean"})],Je.prototype,"persistOnItemClick",2),ct([a({mode:"boolean"})],Je.prototype,"split",2),ct([g],Je.prototype,"slottedMenuList",2),ct([g],Je.prototype,"slottedTriggers",2),ct([g],Je.prototype,"primaryAction",2);const hb=u`
451
+ :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${I};border:1px solid ${J};border-radius:${C};box-shadow:${$r};padding:4px;row-gap:2px}`;function nb(){return b`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${D("items")}></slot></template>`}const ab=nb(),lb=rb.compose({name:`${p.prefix}-menu-list`,template:ab,styles:sb});lb.define(p.registry);var cb=Object.defineProperty,db=Object.getOwnPropertyDescriptor,ct=(o,e,t,i)=>{for(var r=i>1?void 0:i?db(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&cb(e,t,r),r};class Ze extends ${constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof _e&&(e.target.getAttribute("role")===te.menuitemcheckbox||e.target.getAttribute("role")===te.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Jo:case fo:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Q.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Q.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Q.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case fl:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case ml:if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}ct([a({attribute:"open-on-hover",mode:"boolean"})],Ze.prototype,"openOnHover",2),ct([a({attribute:"open-on-context",mode:"boolean"})],Ze.prototype,"openOnContext",2),ct([a({attribute:"close-on-scroll",mode:"boolean"})],Ze.prototype,"closeOnScroll",2),ct([a({attribute:"persist-on-item-click",mode:"boolean"})],Ze.prototype,"persistOnItemClick",2),ct([a({mode:"boolean"})],Ze.prototype,"split",2),ct([g],Ze.prototype,"slottedMenuList",2),ct([g],Ze.prototype,"slottedTriggers",2),ct([g],Ze.prototype,"primaryAction",2);const hb=u`
452
452
  ${k("inline-block")}
453
453
 
454
- ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${T} solid ${Re};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${T} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function ub(){return b`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${V("primaryAction")}></slot><slot name="trigger" ${D({property:"slottedTriggers",filter:Nt()})}></slot><slot ${D({property:"slottedMenuList",filter:Nt()})}></slot></template>`}const pb=ub(),bb=Je.compose({name:`${p.prefix}-menu`,template:pb,styles:hb});bb.define(p.registry);var gb=Object.defineProperty,fb=Object.getOwnPropertyDescriptor,Lr=(o,e,t,i)=>{for(var r=i>1?void 0:i?fb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gb(e,t,r),r};class _i extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Lr([a],_i.prototype,"shape",2),Lr([a],_i.prototype,"layout",2),Lr([a],_i.prototype,"intent",2);const mb=u`
454
+ ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${T} solid ${Re};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${T} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function ub(){return b`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${V("primaryAction")}></slot><slot name="trigger" ${D({property:"slottedTriggers",filter:Nt()})}></slot><slot ${D({property:"slottedMenuList",filter:Nt()})}></slot></template>`}const pb=ub(),bb=Ze.compose({name:`${p.prefix}-menu`,template:pb,styles:hb});bb.define(p.registry);var gb=Object.defineProperty,fb=Object.getOwnPropertyDescriptor,Lr=(o,e,t,i)=>{for(var r=i>1?void 0:i?fb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gb(e,t,r),r};class _i extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Lr([a],_i.prototype,"shape",2),Lr([a],_i.prototype,"layout",2),Lr([a],_i.prototype,"intent",2);const mb=u`
455
455
  :host{display:grid;box-sizing:border-box;font-family:${v};font-size:${N};line-height:${q};width:100%;background:${$o};border:1px solid ${Re};padding-inline:${le};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${In};border-color:${oc}}:host([intent='warning']){background-color:${zn};border-color:${Bn}}:host([intent='error']){background-color:${kn};border-color:${Cn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
456
456
  'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Gt};padding-inline:${le}}.content{grid-area:body;max-width:520px;padding-block:${Gt};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${Ae}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Ae};gap:${Ae}}:host([layout='multiline']) .actions{margin-block-start:${Gt};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${L}}::slotted(*){font-size:inherit}`;function vb(){return b`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const $b=vb(),yb=_i.compose({name:`${p.prefix}-message-bar`,template:$b,styles:mb,shadowOptions:{mode:p.shadowRootMode}});yb.define(p.registry);var xb=Object.defineProperty,kb=Object.getOwnPropertyDescriptor,xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?kb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xb(e,t,r),r};class ce extends ${constructor(){super(),this.active=!1,this.id=Zt("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){y(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){y(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){y(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,Q.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",y(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ce.formAssociated=!0,xe([g],ce.prototype,"active",2),xe([a({attribute:"current-selected",mode:"boolean"})],ce.prototype,"currentSelected",2),xe([a({attribute:"selected",mode:"boolean"})],ce.prototype,"defaultSelected",2),xe([g],ce.prototype,"descriptionSlot",2),xe([g],ce.prototype,"disabled",2),xe([a({attribute:"disabled",mode:"boolean"})],ce.prototype,"disabledAttribute",2),xe([a({attribute:"form"})],ce.prototype,"formAttribute",2),xe([a({mode:"boolean"})],ce.prototype,"freeform",2),xe([a({attribute:"id"})],ce.prototype,"id",2),xe([a({attribute:"value",mode:"fromView"})],ce.prototype,"initialValue",2),xe([g],ce.prototype,"multiple",2),xe([a],ce.prototype,"name",2),xe([g],ce.prototype,"start",2),xe([a({attribute:"text",mode:"fromView"})],ce.prototype,"textAttribute",2);const wb=u`
457
457
  ${k("inline-grid")}
@@ -475,10 +475,10 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
475
475
  :host{width:100%;height:2px;overflow-x:hidden;background-color:${yo};border-radius:${C};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${di}}.indicator{background-color:${ft};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
476
476
  to right,${yo} 0%,${fe} 50%,${yo} 100%
477
477
  );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${wn}}:host([validation-state='warning']) .indicator{background-color:${Tn}}:host([validation-state='success']) .indicator{background-color:${Pn}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(U(u`
478
- :host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Eb(){return b`<div class="indicator" part="indicator" ${V("indicator")}></div>`}const Nb=Eb(),Fb=Vr.compose({name:`${p.prefix}-progress-bar`,template:Nb,styles:_b});Fb.define(p.registry);class ma extends Pe{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function va(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const $a=ge;var Mb=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,Pt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Db(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mb(e,t,r),r};class et extends ${constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??$a.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=!!i.disabledAttribute||!!this.disabled}),this.restrictFocus())}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??$a.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const r=gl(this.enabledRadios,n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===r,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s),Q.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((r,s)=>{const n=s===e;r.checked=n,n&&(i=s,t&&r.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(e){return this.disabled||this.enabledRadios.forEach(t=>{t.tabIndex=0}),!0}focusoutHandler(e){return this.radios?.includes(e.relatedTarget)&&this.radios?.some(t=>t.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledRadios.length){return t===0?-1:(e+t)%t}keydownHandler(e){const t=ei(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===va(this))??this.checkedIndex;let r=0;switch(e.key){case"ArrowLeft":{r=t?1:-1;break}case"ArrowUp":{r=-1;break}case"ArrowRight":{r=t?-1:1;break}case"ArrowDown":{r=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!r)return!0;const s=i+r;this.checkRadio(this.getEnabledIndexInBounds(s),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let e=Math.max(this.checkedIndex,0);const t=this.enabledRadios.indexOf(va(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((i,r)=>{i.tabIndex=r===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...e},t??this.validationMessage,i??this.enabledRadios[0])}}slotchangeHandler(e){Q.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(t=>t instanceof ma)})}}et.formAssociated=!0,Pt([g],et.prototype,"checkedIndex",2),Pt([a({attribute:"disabled",mode:"boolean"})],et.prototype,"disabled",2),Pt([a({attribute:"value",mode:"fromView"})],et.prototype,"initialValue",2),Pt([a],et.prototype,"name",2),Pt([a],et.prototype,"orientation",2),Pt([g],et.prototype,"radios",2),Pt([a({mode:"boolean"})],et.prototype,"required",2);const Hb=u`
478
+ :host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Eb(){return b`<div class="indicator" part="indicator" ${V("indicator")}></div>`}const Nb=Eb(),Fb=Vr.compose({name:`${p.prefix}-progress-bar`,template:Nb,styles:_b});Fb.define(p.registry);class ma extends Pe{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function va(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const $a=ge;var Mb=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,Pt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Db(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mb(e,t,r),r};class Je extends ${constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??$a.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=!!i.disabledAttribute||!!this.disabled}),this.restrictFocus())}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??$a.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const r=gl(this.enabledRadios,n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===r,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s),Q.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((r,s)=>{const n=s===e;r.checked=n,n&&(i=s,t&&r.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(e){return this.disabled||this.enabledRadios.forEach(t=>{t.tabIndex=0}),!0}focusoutHandler(e){return this.radios?.includes(e.relatedTarget)&&this.radios?.some(t=>t.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledRadios.length){return t===0?-1:(e+t)%t}keydownHandler(e){const t=ei(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===va(this))??this.checkedIndex;let r=0;switch(e.key){case"ArrowLeft":{r=t?1:-1;break}case"ArrowUp":{r=-1;break}case"ArrowRight":{r=t?-1:1;break}case"ArrowDown":{r=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!r)return!0;const s=i+r;this.checkRadio(this.getEnabledIndexInBounds(s),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let e=Math.max(this.checkedIndex,0);const t=this.enabledRadios.indexOf(va(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((i,r)=>{i.tabIndex=r===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...e},t??this.validationMessage,i??this.enabledRadios[0])}}slotchangeHandler(e){Q.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(t=>t instanceof ma)})}}Je.formAssociated=!0,Pt([g],Je.prototype,"checkedIndex",2),Pt([a({attribute:"disabled",mode:"boolean"})],Je.prototype,"disabled",2),Pt([a({attribute:"value",mode:"fromView"})],Je.prototype,"initialValue",2),Pt([a],Je.prototype,"name",2),Pt([a],Je.prototype,"orientation",2),Pt([g],Je.prototype,"radios",2),Pt([a({mode:"boolean"})],Je.prototype,"required",2);const Hb=u`
479
479
  ${k("flex")}
480
480
 
481
- :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${fi}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${z}}::slotted(${ye}){color:${S}}::slotted(${x}){color:${z}}:host([slot='input']){margin:${L} ${Ae}}`;function Lb(){return b`<template @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Vb=Lb(),jb=et.compose({name:`${p.prefix}-radio-group`,template:Vb,styles:Hb});jb.define(p.registry);const Rb=u`
481
+ :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${fi}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${z}}::slotted(${ye}){color:${S}}::slotted(${x}){color:${z}}:host([slot='input']){margin:${L} ${Ae}}`;function Lb(){return b`<template @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Vb=Lb(),jb=Je.compose({name:`${p.prefix}-radio-group`,template:Vb,styles:Hb});jb.define(p.registry);const Rb=u`
482
482
  ${k("inline-flex")}
483
483
 
484
484
  :host{--size:16px;aspect-ratio:1;background-color:${I};border:${T} solid ${je};border-radius:${me};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${me};color:${bt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${$e} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ce}}:host(:hover){border-color:${mt}}:host(${x}){border-color:${$t}}:host(${x}) .checked-indicator{background-color:${ft}}:host(${x}:hover) .checked-indicator{background-color:${Lt}}:host(:active){border-color:${vt}}:host(${x}:active) .checked-indicator{background-color:${Vt}}:host(:focus-visible){outline:none}:host(${ye}){background-color:${it};border-color:${we}}:host(${x}${ye}) .checked-indicator{background-color:${we}}`.withBehaviors(U(u`
@@ -509,13 +509,13 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
509
509
  ${k("block")}
510
510
 
511
511
  :host{box-sizing:border-box;padding:${le} ${ae}}`,Ig=kg.compose({name:`${p.prefix}-tab-panel`,template:Cg,styles:Sg});Ig.define(p.registry);var Pg=Object.defineProperty,zg=Object.getOwnPropertyDescriptor,Tg=(o,e,t,i)=>{for(var r=i>1?void 0:i?zg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pg(e,t,r),r};class qr extends ${connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
512
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Tg([a({mode:"boolean"})],qr.prototype,"disabled",2),Ke(qr,Ue);function Bg(o={}){return b`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Ve(o)}<span class="tab-content"><slot></slot></span>${ot(o)}</template>`}const Og=Bg({}),Ag=u`
512
+ :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Tg([a({mode:"boolean"})],qr.prototype,"disabled",2),Ke(qr,Ue);function Bg(o={}){return b`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Ve(o)}<span class="tab-content"><slot></slot></span>${tt(o)}</template>`}const Og=Bg({}),Ag=u`
513
513
  ${k("inline-flex")}
514
514
 
515
515
  :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${_};font-family:${v};font-size:${B};color:${Ie};fill:currentcolor;grid-row:1;padding:${le} ${ae};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${z};font-weight:${H}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${_};font-weight:${H}}:host([aria-selected='true'])::after{background-color:${$t};border-radius:${me};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${jt};border-radius:${me};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${S}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${S};color:${S}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Oe};box-shadow:0 0 0 3px ${Ce};outline:1px solid ${br}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}`.withBehaviors(U(u`
516
516
  :host([aria-selected='true'])::after{background-color:Highlight}`)),_g=qr.compose({name:`${p.prefix}-tab`,template:Og,styles:Ag});_g.define(p.registry);const Eg={subtle:"subtle",transparent:"transparent"},Ni=ge;var Ng=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,Fi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ng(e,t,r),r};class _o extends ${constructor(){super(...arguments),this.orientation=Ni.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case uo:e.preventDefault(),this.adjustBackward(e);break;case po:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case bo:e.preventDefault(),this.adjustBackward(e);break;case ho:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case mo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case go:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((r,s)=>{if(r.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(r),c=this.tabIds[s],h=this.tabpanelIds[s];r.setAttribute("id",c),r.setAttribute("aria-selected",n?"true":"false"),r.setAttribute("aria-controls",h),r.addEventListener("click",this.handleTabClick),r.addEventListener("keydown",this.handleTabKeyDown),r.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=r,this.activeid=c)}r.style[e]="",r.style[t]="",r.style[i]=`${s+1}`,this.isHorizontal()?r.classList.remove("vertical"):r.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute("id",r),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Mt()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Mt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Ni.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),i=t.indexOf(this.activetab),r=ar(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.moveToTabByIndex(this.tabs,s)}adjustForward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else{if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}}adjustBackward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else i-1<0?i=t.length-1:i-=1}moveToTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Fi([a],_o.prototype,"orientation",2),Fi([a],_o.prototype,"activeid",2),Fi([g],_o.prototype,"tabs",2),Fi([g],_o.prototype,"tabpanels",2);var Mg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,Wr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mg(e,t,r),r};class Eo extends _o{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Eg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Ni.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Ni.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}getTabPositionData(e){const t=e.getBoundingClientRect(),i=this.getBoundingClientRect();return{x:t.x-i.x,y:t.y-i.y,height:t.height,width:t.width}}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,t=this.activetab||e[0];this.activeTabData=this.getTabPositionData(t),this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=u`
517
517
  :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=u`
518
- :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){if(e&&this.tabs){const i=this.tabs.find(r=>r.id===e);i&&(this.previousActiveTabData=this.getTabPositionData(i))}super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Wr([a],Eo.prototype,"appearance",2),Wr([a({mode:"boolean"})],Eo.prototype,"disabled",2),Wr([a],Eo.prototype,"size",2),Ke(Eo,Ue);function Hg(o={}){return b` ${Ve(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${D("tabs")}></slot></div>${ot(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${D("tabpanels")}></slot></div>`}const Lg=Hg({}),Vg=u`
518
+ :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){if(e&&this.tabs){const i=this.tabs.find(r=>r.id===e);i&&(this.previousActiveTabData=this.getTabPositionData(i))}super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Wr([a],Eo.prototype,"appearance",2),Wr([a({mode:"boolean"})],Eo.prototype,"disabled",2),Wr([a],Eo.prototype,"size",2),Ke(Eo,Ue);function Hg(o={}){return b` ${Ve(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${D("tabs")}></slot></div>${tt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${D("tabpanels")}></slot></div>`}const Lg=Hg({}),Vg=u`
519
519
  ${k("grid")}
520
520
 
521
521
  :host{box-sizing:border-box;font-family:${v};font-size:${B};line-height:${_};color:${Ie};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${S}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${C}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${S}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${xo};color:${cr};fill:${an}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${gt};fill:${gt};color:${z}}:host([size='small']) ::slotted(fluent-tab){font-size:${B};line-height:${_};padding:${qe} ${ee}}:host([size='large']) ::slotted(fluent-tab){font-size:${ue};line-height:${ve};padding:${fi} ${ae}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Wn};transition-timing-function:${Sr}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${me};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${qe};padding-bottom:${qe}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${qt};padding-bottom:${qt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${L};padding-bottom:${L}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ee};left:${ee}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${qe};bottom:${qe}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${L};bottom:${L}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Gt};bottom:${Gt}}`,jg=Eo.compose({name:`${p.prefix}-tabs`,template:Lg,styles:Vg});jg.define(p.registry);const Rg=o=>o.getAttribute("aria-disabled")==="true",qg=o=>o.hasAttribute("hidden"),Mi=o=>!Rg(o)&&!qg(o);function Wg(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Gg={subtle:"subtle",transparent:"transparent"},Tt=ge;var Xg=Object.defineProperty,Ug=Object.getOwnPropertyDescriptor,No=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ug(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Xg(e,t,r),r};class ro extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Tt.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&Mi(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=ei(this);switch(e.key){case uo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case po:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case bo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case ho:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case mo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case go:e.preventDefault(),this.adjust(this.tabs.filter(i=>Mi(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){y(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Tt.horizontal,wt(this.elementInternals,e,t,Tt),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs(),e){const i=this.tabs[this.prevActiveTabIndex],r=this.tabPanelMap.get(i);r&&(r.hidden=!0)}if(t&&this.activetab){const i=this.tabPanelMap.get(this.activetab);i&&(i.hidden=!1)}e!==t&&this.change()}}slottedTabsChanged(e,t){this.tabs=t?.filter(i=>Wg(i))??[]}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",r=this.getRootNode().getElementById(t);t&&r&&(r.role??(r.role="tabpanel"),r.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,r))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex();const e=this.tabs.some(t=>t.start.assignedNodes().length>0);this.tabs.forEach((t,i)=>{if(t.slot==="tab"){const r=this.activeTabIndex===i&&Mi(t),s=this.tabIds[i];t.setAttribute("id",s),t.setAttribute("aria-selected",r?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",r&&!this.disabled?"0":"-1"),r&&(this.activetab=t,this.activeid=s),e&&this.orientation===Tt.vertical&&t.setAttribute("data-hasIndent","")}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Mt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===Tt.horizontal}adjust(e){const t=this.tabs.filter(n=>Mi(n)),i=t.indexOf(this.activetab),r=vl(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}No([a({mode:"boolean"})],ro.prototype,"disabled",2),No([a],ro.prototype,"orientation",2),No([a],ro.prototype,"activeid",2),No([g],ro.prototype,"slottedTabs",2),No([g],ro.prototype,"tabs",2);var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,ka=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kg(e,t,r),r};class Gr extends ro{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Gg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Tt.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Tt.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),r=this.getBoundingClientRect();this.activeTabData={x:i.x-r.x,y:i.y-r.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}ka([a],Gr.prototype,"appearance",2),ka([a],Gr.prototype,"size",2);const Qg=b`<template role="tablist"><slot name="tab" ${D("slottedTabs")}></slot></template>`,Zg=u`
@@ -528,13 +528,13 @@ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
528
528
  :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 af(){return b`<template><label ${V("labelEl")} for="control" part="label"><slot name="label" ${D("labelSlottedNodes")}></slot></label><div class="root" part="root"><textarea ${V("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 ${D("defaultSlottedNodes")}></slot></div></template>`}const lf=af(),cf=Hi.compose({name:`${p.prefix}-textarea`,template:lf,styles:nf,shadowOptions:{delegatesFocus:!0}});cf.define(p.registry);const df={email:"email",password:"password",tel:"tel",text:"text",url:"url"},hf=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var uf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,E=(o,e,t,i)=>{for(var r=i>1?void 0:i?pf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&uf(e,t,r),r};class O extends ${constructor(){super(...arguments),this.type=df.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}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){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.$fastController.isConnected&&(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}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}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()}focusinHandler(e){return e.target===this&&this.control?.focus(),!0}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(r=>r.getAttribute("type")==="submit");if(t){t.click();return}e.filter(r=>hf.includes(r.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,i){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,i??this.control)}}}O.formAssociated=!0,E([a],O.prototype,"autocomplete",2),E([a({mode:"boolean"})],O.prototype,"autofocus",2),E([a({attribute:"current-value"})],O.prototype,"currentValue",2),E([g],O.prototype,"defaultSlottedNodes",2),E([a],O.prototype,"dirname",2),E([a({mode:"boolean"})],O.prototype,"disabled",2),E([a({attribute:"form"})],O.prototype,"formAttribute",2),E([a({attribute:"value",mode:"fromView"})],O.prototype,"initialValue",2),E([a],O.prototype,"list",2),E([a({converter:re})],O.prototype,"maxlength",2),E([a({converter:re})],O.prototype,"minlength",2),E([a({mode:"boolean"})],O.prototype,"multiple",2),E([a],O.prototype,"name",2),E([a],O.prototype,"pattern",2),E([a],O.prototype,"placeholder",2),E([a({attribute:"readonly",mode:"boolean"})],O.prototype,"readOnly",2),E([a({mode:"boolean"})],O.prototype,"required",2),E([a({converter:re})],O.prototype,"size",2),E([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],O.prototype,"spellcheck",2),E([a],O.prototype,"type",2),E([g],O.prototype,"control",2),E([g],O.prototype,"controlLabel",2);var bf=Object.defineProperty,gf=Object.getOwnPropertyDescriptor,wa=(o,e,t,i)=>{for(var r=i>1?void 0:i?gf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bf(e,t,r),r};class Li extends O{}wa([a],Li.prototype,"appearance",2),wa([a({attribute:"control-size"})],Li.prototype,"controlSize",2),Ke(Li,Ue);const ff=u`
529
529
  ${k("block")}
530
530
 
531
- :host{font-family:${v};font-size:${B};font-weight:${A};line-height:${_};max-width:400px}.label{display:flex;color:${z};padding-bottom:${Wt};flex-shrink:0;padding-inline-end:${ne}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${I};border:${T} solid ${Re};border-bottom-color:${je};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${W};padding:0 ${ae};position:relative;width:100%}:has(.control:user-invalid){border-color:${gr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${$t};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${wr};transition-delay:${xt}}.control{width:100%;height:100%;box-sizing:border-box;color:${z};border-radius:${C};background:${fe};font-family:${v};font-weight:${A};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${dr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Z};font-size:${Rt}}:host ::slotted([slot='start']){padding-right:${W}}:host ::slotted([slot='end']){padding-left:${W};gap:${ne}}:host(:hover) .root{border-color:${jt};border-bottom-color:${mt}}:host(:active) .root{border-color:${ko}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vi};transition-delay:${kt}}:host(:focus-within:active) .root:after{border-bottom-color:${xn}}:host([appearance='outline']:focus-within) .root{border:${T} solid ${Re}}:host(:focus-within) .control{color:${z}}:host([disabled]) .root{background:${fe};border:${T} solid ${we}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${S}}::selection{color:${bt};background-color:${dn}}:host([control-size='small']) .control{font-size:${N};font-weight:${A};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${W};padding:0 ${ee}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ue}}:host([control-size='large']) .control{font-size:${ue};font-weight:${A};line-height:${ve}}:host([control-size='large']) .root{height:40px;gap:${Ae};padding:0 ${le}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${hi}}:host([appearance='underline']) .root{background:${fe};border:0;border-radius:0;border-bottom:${T} solid ${je}}:host([appearance='underline']:hover) .root{border-bottom-color:${mt}}:host([appearance='underline']:active) .root{border-bottom-color:${vt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${vt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${we}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${T} solid ${J};box-shadow:${vr}}:host([appearance='filled-lighter']) .root{background:${I}}:host([appearance='filled-darker']) .root{background:${$o}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${pr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${pr};background:${$o}}`;function mf(o={}){return b`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${V("controlLabel")}><slot ${D({property:"defaultSlottedNodes",filter:sn})}></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)}" ?autofocus="${e=>e.autofocus}" 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.initialValue}" ${V("control")} />${ot(o)}</div></template>`}const vf=mf(),$f=Li.compose({name:`${p.prefix}-text-input`,template:vf,styles:ff,shadowOptions:{delegatesFocus:!0}});$f.define(p.registry);var yf=Object.defineProperty,xf=Object.getOwnPropertyDescriptor,Xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?xf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&yf(e,t,r),r};class Ee extends ${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}}Xe([a({mode:"boolean"})],Ee.prototype,"nowrap",2),Xe([a({mode:"boolean"})],Ee.prototype,"truncate",2),Xe([a({mode:"boolean"})],Ee.prototype,"italic",2),Xe([a({mode:"boolean"})],Ee.prototype,"underline",2),Xe([a({mode:"boolean"})],Ee.prototype,"strikethrough",2),Xe([a({mode:"boolean"})],Ee.prototype,"block",2),Xe([a],Ee.prototype,"size",2),Xe([a],Ee.prototype,"font",2),Xe([a],Ee.prototype,"weight",2),Xe([a],Ee.prototype,"align",2);const kf=u`
531
+ :host{font-family:${v};font-size:${B};font-weight:${A};line-height:${_};max-width:400px}.label{display:flex;color:${z};padding-bottom:${Wt};flex-shrink:0;padding-inline-end:${ne}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${I};border:${T} solid ${Re};border-bottom-color:${je};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${W};padding:0 ${ae};position:relative;width:100%}:has(.control:user-invalid){border-color:${gr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${$t};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${wr};transition-delay:${xt}}.control{width:100%;height:100%;box-sizing:border-box;color:${z};border-radius:${C};background:${fe};font-family:${v};font-weight:${A};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${dr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Z};font-size:${Rt}}:host ::slotted([slot='start']){padding-right:${W}}:host ::slotted([slot='end']){padding-left:${W};gap:${ne}}:host(:hover) .root{border-color:${jt};border-bottom-color:${mt}}:host(:active) .root{border-color:${ko}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vi};transition-delay:${kt}}:host(:focus-within:active) .root:after{border-bottom-color:${xn}}:host([appearance='outline']:focus-within) .root{border:${T} solid ${Re}}:host(:focus-within) .control{color:${z}}:host([disabled]) .root{background:${fe};border:${T} solid ${we}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${S}}::selection{color:${bt};background-color:${dn}}:host([control-size='small']) .control{font-size:${N};font-weight:${A};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${W};padding:0 ${ee}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ue}}:host([control-size='large']) .control{font-size:${ue};font-weight:${A};line-height:${ve}}:host([control-size='large']) .root{height:40px;gap:${Ae};padding:0 ${le}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${hi}}:host([appearance='underline']) .root{background:${fe};border:0;border-radius:0;border-bottom:${T} solid ${je}}:host([appearance='underline']:hover) .root{border-bottom-color:${mt}}:host([appearance='underline']:active) .root{border-bottom-color:${vt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${vt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${we}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${T} solid ${J};box-shadow:${vr}}:host([appearance='filled-lighter']) .root{background:${I}}:host([appearance='filled-darker']) .root{background:${$o}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${pr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${pr};background:${$o}}`;function mf(o={}){return b`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${V("controlLabel")}><slot ${D({property:"defaultSlottedNodes",filter:sn})}></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)}" ?autofocus="${e=>e.autofocus}" 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.initialValue}" ${V("control")} />${tt(o)}</div></template>`}const vf=mf(),$f=Li.compose({name:`${p.prefix}-text-input`,template:vf,styles:ff,shadowOptions:{delegatesFocus:!0}});$f.define(p.registry);var yf=Object.defineProperty,xf=Object.getOwnPropertyDescriptor,Xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?xf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&yf(e,t,r),r};class Ee extends ${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}}Xe([a({mode:"boolean"})],Ee.prototype,"nowrap",2),Xe([a({mode:"boolean"})],Ee.prototype,"truncate",2),Xe([a({mode:"boolean"})],Ee.prototype,"italic",2),Xe([a({mode:"boolean"})],Ee.prototype,"underline",2),Xe([a({mode:"boolean"})],Ee.prototype,"strikethrough",2),Xe([a({mode:"boolean"})],Ee.prototype,"block",2),Xe([a],Ee.prototype,"size",2),Xe([a],Ee.prototype,"font",2),Xe([a],Ee.prototype,"weight",2),Xe([a],Ee.prototype,"align",2);const kf=u`
532
532
  ${k("inline")}
533
533
 
534
- :host{font-family:${v};font-size:${B};line-height:${_};font-weight:${A};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:${Co};line-height:${pi}}:host([size='200']){font-size:${N};line-height:${q}}:host([size='400']){font-size:${ue};line-height:${ve}}:host([size='500']){font-size:${Rt};line-height:${bi}}:host([size='600']){font-size:${hi};line-height:${Hn}}:host([size='700']){font-size:${Nn};line-height:${Ln}}:host([size='800']){font-size:${Fn};line-height:${Vn}}:host([size='900']){font-size:${Mn};line-height:${jn}}:host([size='1000']){font-size:${Dn};line-height:${Rn}}:host([font='monospace']){font-family:${gd}}:host([font='numeric']){font-family:${fd}}:host([weight='medium']){font-weight:${md}}:host([weight='semibold']){font-weight:${H}}:host([weight='bold']){font-weight:${ui}}: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}`,wf=b`<slot></slot>`,Cf=Ee.compose({name:`${p.prefix}-text`,template:wf,styles:kf});Cf.define(p.registry);var Sf=Object.defineProperty,If=Object.getOwnPropertyDescriptor,Ca=(o,e,t,i)=>{for(var r=i>1?void 0:i?If(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sf(e,t,r),r};class Ur extends Ze{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}Ca([a({mode:"boolean"})],Ur.prototype,"pressed",2),Ca([a({mode:"boolean"})],Ur.prototype,"mixed",2);const Pf=u`
534
+ :host{font-family:${v};font-size:${B};line-height:${_};font-weight:${A};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:${Co};line-height:${pi}}:host([size='200']){font-size:${N};line-height:${q}}:host([size='400']){font-size:${ue};line-height:${ve}}:host([size='500']){font-size:${Rt};line-height:${bi}}:host([size='600']){font-size:${hi};line-height:${Hn}}:host([size='700']){font-size:${Nn};line-height:${Ln}}:host([size='800']){font-size:${Fn};line-height:${Vn}}:host([size='900']){font-size:${Mn};line-height:${jn}}:host([size='1000']){font-size:${Dn};line-height:${Rn}}:host([font='monospace']){font-family:${gd}}:host([font='numeric']){font-family:${fd}}:host([weight='medium']){font-weight:${md}}:host([weight='semibold']){font-weight:${H}}:host([weight='bold']){font-weight:${ui}}: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}`,wf=b`<slot></slot>`,Cf=Ee.compose({name:`${p.prefix}-text`,template:wf,styles:kf});Cf.define(p.registry);var Sf=Object.defineProperty,If=Object.getOwnPropertyDescriptor,Ca=(o,e,t,i)=>{for(var r=i>1?void 0:i?If(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sf(e,t,r),r};class Ur extends Qe{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}Ca([a({mode:"boolean"})],Ur.prototype,"pressed",2),Ca([a({mode:"boolean"})],Ur.prototype,"mixed",2);const Pf=u`
535
535
  ${wi}
536
536
 
537
- :host(${F}){border-color:${Re};background-color:${cn};color:${z};border-width:${T}}:host(${F}:hover){border-color:${jt};background-color:${ai}}:host(${F}:active){border-color:${ko};background-color:${hr}}:host(${F}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${F}[appearance='primary']){background-color:${Ul};color:${Qe}}:host(${F}[appearance='primary']:hover){background-color:${gn}}:host(${F}[appearance='primary']:active){background-color:${fn}}:host(${F}[appearance='subtle']){border-color:transparent;background-color:${un};color:${ii}}:host(${F}[appearance='subtle']:hover){background-color:${xo};color:${Dt}}:host(${F}[appearance='subtle']:active){background-color:${gt};color:${Ht}}:host(${F}[appearance='outline']),:host(${F}[appearance='transparent']){background-color:${pn}}:host(${F}[appearance='outline']:hover),:host(${F}[appearance='transparent']:hover){background-color:${li}}:host(${F}[appearance='outline']:active),:host(${F}[appearance='transparent']:active){background-color:${ci}}:host(${F}[appearance='transparent']){border-color:transparent;color:${zl}}:host(${F}[appearance='transparent']:hover){color:${ri}}:host(${F}[appearance='transparent']:active){color:${si}}`.withBehaviors(U(u`
537
+ :host(${F}){border-color:${Re};background-color:${cn};color:${z};border-width:${T}}:host(${F}:hover){border-color:${jt};background-color:${ai}}:host(${F}:active){border-color:${ko};background-color:${hr}}:host(${F}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${F}[appearance='primary']){background-color:${Ul};color:${Ye}}:host(${F}[appearance='primary']:hover){background-color:${gn}}:host(${F}[appearance='primary']:active){background-color:${fn}}:host(${F}[appearance='subtle']){border-color:transparent;background-color:${un};color:${ii}}:host(${F}[appearance='subtle']:hover){background-color:${xo};color:${Dt}}:host(${F}[appearance='subtle']:active){background-color:${gt};color:${Ht}}:host(${F}[appearance='outline']),:host(${F}[appearance='transparent']){background-color:${pn}}:host(${F}[appearance='outline']:hover),:host(${F}[appearance='transparent']:hover){background-color:${li}}:host(${F}[appearance='outline']:active),:host(${F}[appearance='transparent']:active){background-color:${ci}}:host(${F}[appearance='transparent']){border-color:transparent;color:${zl}}:host(${F}[appearance='transparent']:hover){color:${ri}}:host(${F}[appearance='transparent']:active){color:${si}}`.withBehaviors(U(u`
538
538
  :host(${F}),:host(
539
539
  ${F}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
540
540
  ){background:SelectedItem;color:SelectedItemText}`)),zf=Or(),Tf=Ur.compose({name:`${p.prefix}-toggle-button`,template:zf,styles:Pf});Tf.define(p.registry);var Bf=Object.defineProperty,Of=Object.getOwnPropertyDescriptor,Vi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Of(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bf(e,t,r),r};class Fo extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Mt("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.elementInternals.role="tooltip"}positioningChanged(){ti||this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!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),ti){kl||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}Q.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(e=this.defaultDelay){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)}setFallbackStyles(){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,i]=this.positioning?.split("-")??[];i||((t==="above"||t==="below")&&(i="centerX"),(t==="before"||t==="after")&&(i="centerY"));const r={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},s=r[t]??r.above,n={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%;"},c=n[i]??n.centerX;this.anchorPositioningStyleElement.textContent=`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fluentui/web-components",
3
3
  "description": "A library of Fluent Web Components",
4
- "version": "3.0.0-beta.116",
4
+ "version": "3.0.0-beta.117",
5
5
  "author": {
6
6
  "name": "Microsoft",
7
7
  "url": "https://discord.gg/FcSNfg4"