@fluid-topics/ft-tabs 1.0.15 → 1.0.17

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/build/ft-tab.js CHANGED
@@ -46,7 +46,7 @@ __decorate([
46
46
  property()
47
47
  ], FtTab.prototype, "iconVariant", void 0);
48
48
  __decorate([
49
- property({ type: Boolean })
49
+ property({ type: Boolean, reflect: true })
50
50
  ], FtTab.prototype, "active", void 0);
51
51
  __decorate([
52
52
  property({ type: Boolean })
@@ -17,8 +17,9 @@ export declare class FtTabs extends FtLitElement implements FtTabsProperties {
17
17
  activeIndex: number;
18
18
  protected render(): TemplateResult<1>;
19
19
  private updateDebouncer;
20
- private scheduleRequestUpdate;
20
+ private onTabUpdated;
21
21
  private onContentChange;
22
+ protected update(props: PropertyValues): void;
22
23
  protected updated(props: PropertyValues): void;
23
24
  private resizeObserver;
24
25
  protected contentAvailableCallback(props: PropertyValues): void;
package/build/ft-tabs.js CHANGED
@@ -8,7 +8,7 @@ import { html } from "lit";
8
8
  import { property, query, state } from "lit/decorators.js";
9
9
  import { repeat } from "lit/directives/repeat.js";
10
10
  import { classMap } from "lit/directives/class-map.js";
11
- import { Debouncer, FtLitElement } from "@fluid-topics/ft-wc-utils";
11
+ import { Debouncer, FtLitElement, PostResizeEvent, PreResizeEvent } from "@fluid-topics/ft-wc-utils";
12
12
  import { FtTab } from "./ft-tab";
13
13
  import { FtRipple } from "@fluid-topics/ft-ripple";
14
14
  import { FtTypography, FtTypographyVariants } from "@fluid-topics/ft-typography";
@@ -29,9 +29,10 @@ class FtTabs extends FtLitElement {
29
29
  this.alignTabs = FtTabsAlignment.justify;
30
30
  this.ftTabs = [];
31
31
  this.activeIndex = 0;
32
- this.updateDebouncer = new Debouncer(20);
33
- this.scheduleRequestUpdate = () => this.updateDebouncer.run(() => {
32
+ this.updateDebouncer = new Debouncer(2);
33
+ this.onTabUpdated = () => this.updateDebouncer.run(() => {
34
34
  this.requestUpdate();
35
+ this.dispatchEvent(new PostResizeEvent());
35
36
  });
36
37
  this.resizeObserver = new ResizeObserver(() => this.placeIndicator());
37
38
  }
@@ -92,11 +93,17 @@ class FtTabs extends FtLitElement {
92
93
  const slot = e.composedPath()[0];
93
94
  this.ftTabs = slot.assignedElements().map(n => n);
94
95
  this.ftTabs.forEach(tab => {
95
- tab.removeEventListener("updated", this.scheduleRequestUpdate);
96
- tab.addEventListener("updated", this.scheduleRequestUpdate);
96
+ tab.removeEventListener("updated", this.onTabUpdated);
97
+ tab.addEventListener("updated", this.onTabUpdated);
97
98
  });
98
99
  this.updateTabs();
99
100
  }
101
+ update(props) {
102
+ super.update(props);
103
+ if (props.has("activeIndex")) {
104
+ this.dispatchEvent(new PreResizeEvent());
105
+ }
106
+ }
100
107
  updated(props) {
101
108
  super.updated(props);
102
109
  if (props.has("ftTabs") || props.has("activeIndex")) {
@@ -5,7 +5,7 @@
5
5
  }
6
6
  </style>
7
7
  <slot></slot>
8
- `}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}a.elementDefinitions={},l([o.property({type:String})],a.prototype,"label",void 0),l([o.property({type:String})],a.prototype,"icon",void 0),l([o.property()],a.prototype,"iconVariant",void 0),l([o.property({type:Boolean})],a.prototype,"active",void 0),l([o.property({type:Boolean})],a.prototype,"disabled",void 0),l([o.property({reflect:!0})],a.prototype,"id",void 0),l([o.property()],a.prototype,"color",void 0),l([o.property()],a.prototype,"rippleColor",void 0),l([o.property({reflect:!0,attribute:"aria-labelledby"})],a.prototype,"ariaLabelledBy",void 0);const p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),h=p,f=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),c=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),d=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),u=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),x=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),y=i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px"),g=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),b=g,v=i.FtCssVariableFactory.extend("--ft-ripple-background-color",g),m=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),$=m,w=i.FtCssVariableFactory.extend("--ft-ripple-background-color",m),k=e.css`
8
+ `}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}a.elementDefinitions={},l([o.property({type:String})],a.prototype,"label",void 0),l([o.property({type:String})],a.prototype,"icon",void 0),l([o.property()],a.prototype,"iconVariant",void 0),l([o.property({type:Boolean,reflect:!0})],a.prototype,"active",void 0),l([o.property({type:Boolean})],a.prototype,"disabled",void 0),l([o.property({reflect:!0})],a.prototype,"id",void 0),l([o.property()],a.prototype,"color",void 0),l([o.property()],a.prototype,"rippleColor",void 0),l([o.property({reflect:!0,attribute:"aria-labelledby"})],a.prototype,"ariaLabelledBy",void 0);const p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),h=p,f=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),c=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),d=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),u=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),x=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),y=i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px"),g=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),b=g,v=i.FtCssVariableFactory.extend("--ft-ripple-background-color",g),m=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),$=m,w=i.FtCssVariableFactory.extend("--ft-ripple-background-color",m),k=e.css`
9
9
  :host {
10
10
  display: contents;
11
11
  }
@@ -416,7 +416,7 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
416
416
  </div>
417
417
  </div>
418
418
  </div>
419
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=4-i.left);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${ee})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ne.elementDefinitions={"ft-typography":Ri},ne.styles=oe,se([o.property()],ne.prototype,"text",void 0),se([o.property({type:Boolean})],ne.prototype,"manual",void 0),se([o.property({type:Boolean})],ne.prototype,"inline",void 0),se([o.property({type:Number})],ne.prototype,"delay",void 0),se([o.property()],ne.prototype,"position",void 0),se([o.queryAssignedNodes("",!0)],ne.prototype,"slotNodes",void 0),se([o.query(".ft-tooltip--container")],ne.prototype,"container",void 0),se([o.query("slot")],ne.prototype,"target",void 0),se([o.query(".ft-tooltip")],ne.prototype,"tooltip",void 0),se([o.query(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0),se([o.state()],ne.prototype,"visible",void 0),i.customElement("ft-tooltip")(ne);var re=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class le extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class ae extends i.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new i.Debouncer(20),this.scheduleRequestUpdate=()=>this.updateDebouncer.run((()=>{this.requestUpdate()})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const i={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},o=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return e.html`
419
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=4-i.left);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${ee})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ne.elementDefinitions={"ft-typography":Ri},ne.styles=oe,se([o.property()],ne.prototype,"text",void 0),se([o.property({type:Boolean})],ne.prototype,"manual",void 0),se([o.property({type:Boolean})],ne.prototype,"inline",void 0),se([o.property({type:Number})],ne.prototype,"delay",void 0),se([o.property()],ne.prototype,"position",void 0),se([o.queryAssignedNodes("",!0)],ne.prototype,"slotNodes",void 0),se([o.query(".ft-tooltip--container")],ne.prototype,"container",void 0),se([o.query("slot")],ne.prototype,"target",void 0),se([o.query(".ft-tooltip")],ne.prototype,"tooltip",void 0),se([o.query(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0),se([o.state()],ne.prototype,"visible",void 0),i.customElement("ft-tooltip")(ne);var re=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class le extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class ae extends i.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new i.Debouncer(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new i.PostResizeEvent)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const i={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},o=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return e.html`
420
420
  <div class="${n.classMap(i)}" part="container">
421
421
  <div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
422
422
  ${s.repeat(this.ftTabs,((t,i)=>this.addTooltipIfNecessary(t,e.html`
@@ -456,7 +456,7 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
456
456
  <slot @slotchange=${this.onContentChange}></slot>
457
457
  </div>
458
458
  </div>
459
- `}onContentChange(t){const i=t.composedPath()[0];this.ftTabs=i.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new le(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,i,e,o,s,n,r;if(this.activeTabIndicator){const l=null!==(i=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==i?i:this.activeTab;this.activeTabIndicator.style.width=(null!==(e=null==l?void 0:l.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(o=null==l?void 0:l.offsetLeft)&&void 0!==o?o:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(s=null==l?void 0:l.offsetTop)&&void 0!==s?s:0)+"px":this.activeTabIndicator.style.top=(null!==(n=null==l?void 0:l.offsetTop)&&void 0!==n?n:0)+(null!==(r=null==l?void 0:l.clientHeight)&&void 0!==r?r:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,i)=>{t.active=i==this.activeIndex}))}addTooltipIfNecessary(t,i){return this.dense&&t.label&&t.icon?e.html`
459
+ `}onContentChange(t){const i=t.composedPath()[0];this.ftTabs=i.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.onTabUpdated),t.addEventListener("updated",this.onTabUpdated)})),this.updateTabs()}update(t){super.update(t),t.has("activeIndex")&&this.dispatchEvent(new i.PreResizeEvent)}updated(t){super.updated(t),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new le(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,i,e,o,s,n,r;if(this.activeTabIndicator){const l=null!==(i=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==i?i:this.activeTab;this.activeTabIndicator.style.width=(null!==(e=null==l?void 0:l.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(o=null==l?void 0:l.offsetLeft)&&void 0!==o?o:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(s=null==l?void 0:l.offsetTop)&&void 0!==s?s:0)+"px":this.activeTabIndicator.style.top=(null!==(n=null==l?void 0:l.offsetTop)&&void 0!==n?n:0)+(null!==(r=null==l?void 0:l.clientHeight)&&void 0!==r?r:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,i)=>{t.active=i==this.activeIndex}))}addTooltipIfNecessary(t,i){return this.dense&&t.label&&t.icon?e.html`
460
460
  <ft-tooltip class="ft-tabs--tab-tooltip"
461
461
  part="tab-tooltip"
462
462
  text="${t.label}"
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);f(s,l,a);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(n.set(s,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const x=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ai){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,r=new WeakMap,n=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=s.prototype.attributeChangedCallback,l=new Set(s.observedAttributes||[]);f(s,l,a);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(n.set(s,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=n.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):r.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,s),i.call(this,r,t,s)}else o.call(this,r,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const x=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Li){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -62,7 +62,7 @@ var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRoot
62
62
  * Copyright 2017 Google LLC
63
63
  * SPDX-License-Identifier: BSD-3-Clause
64
64
  */
65
- var ut,vt;let yt=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new rt(e.insertBefore(T(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}};yt.finalized=!0,yt._$litElement$=!0,null===(ut=globalThis.litElementHydrateSupport)||void 0===ut||ut.call(globalThis,{LitElement:yt});const xt=globalThis.litElementPolyfillSupport;null==xt||xt({LitElement:yt}),(null!==(vt=globalThis.litElementVersions)&&void 0!==vt?vt:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,e,i){let o=t=>y(null!=t?t:i),s=x`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>x`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=x`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>x`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=x`var(${y(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>x`var(${y(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const gt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends yt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return b(i,t.elementStyles),i}}var wt,$t=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Ot=Symbol("constructorPrototype"),St=Symbol("constructorName"),kt=Symbol("exportpartsDebouncer");class Nt extends mt{constructor(){super(),this[wt]=new e(5),this[St]=this.constructor.name,this[Ot]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[St]&&Object.setPrototypeOf(this,this[Ot])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[kt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var Ct,Et;wt=kt,$t([o()],Nt.prototype,"exportpartsPrefix",void 0),$t([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}([])],Nt.prototype,"exportpartsPrefixes",void 0),$t([o()],Nt.prototype,"customStylesheet",void 0),x`
65
+ var ut,vt;let yt=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=r._$litPart$;if(void 0===n){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;r._$litPart$=n=new rt(e.insertBefore(T(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}};yt.finalized=!0,yt._$litElement$=!0,null===(ut=globalThis.litElementHydrateSupport)||void 0===ut||ut.call(globalThis,{LitElement:yt});const xt=globalThis.litElementPolyfillSupport;null==xt||xt({LitElement:yt}),(null!==(vt=globalThis.litElementVersions)&&void 0!==vt?vt:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,e,i){let o=t=>y(null!=t?t:i),s=x`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>x`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=x`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>x`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=x`var(${y(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>x`var(${y(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const gt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class wt extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}class $t extends yt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return b(i,t.elementStyles),i}}var Ot,St=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const kt=Symbol("constructorPrototype"),Nt=Symbol("constructorName"),Ct=Symbol("exportpartsDebouncer");class Et extends $t{constructor(){super(),this[Ot]=new e(5),this[Nt]=this.constructor.name,this[kt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Nt]&&Object.setPrototypeOf(this,this[kt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ct].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,r,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(n=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var Rt,Mt;Ot=Ct,St([o()],Et.prototype,"exportpartsPrefix",void 0),St([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}([])],Et.prototype,"exportpartsPrefixes",void 0),St([o()],Et.prototype,"customStylesheet",void 0),x`
66
66
  .ft-no-text-select {
67
67
  -webkit-touch-callout: none;
68
68
  -webkit-user-select: none;
@@ -94,25 +94,25 @@ var ut,vt;let yt=class extends E{constructor(){super(...arguments),this.renderOp
94
94
  display: inline-block;
95
95
  width: 0;
96
96
  }
97
- `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Et=null===(Ct=window.safari)||void 0===Ct?void 0:Ct.pushNotification)||void 0===Et||Et.toString());var Rt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Mt extends Nt{constructor(){super(...arguments),this.label="",this.icon="",this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return X`
97
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Mt=null===(Rt=window.safari)||void 0===Rt?void 0:Rt.pushNotification)||void 0===Mt||Mt.toString());var jt=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ut extends Et{constructor(){super(...arguments),this.label="",this.icon="",this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return X`
98
98
  <style>
99
99
  :host {
100
100
  display: ${y(this.active?"block":"none")};
101
101
  }
102
102
  </style>
103
103
  <slot></slot>
104
- `}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}Mt.elementDefinitions={},Rt([o({type:String})],Mt.prototype,"label",void 0),Rt([o({type:String})],Mt.prototype,"icon",void 0),Rt([o()],Mt.prototype,"iconVariant",void 0),Rt([o({type:Boolean})],Mt.prototype,"active",void 0),Rt([o({type:Boolean})],Mt.prototype,"disabled",void 0),Rt([o({reflect:!0})],Mt.prototype,"id",void 0),Rt([o()],Mt.prototype,"color",void 0),Rt([o()],Mt.prototype,"rippleColor",void 0),Rt([o({reflect:!0,attribute:"aria-labelledby"})],Mt.prototype,"ariaLabelledBy",void 0);
104
+ `}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}Ut.elementDefinitions={},jt([o({type:String})],Ut.prototype,"label",void 0),jt([o({type:String})],Ut.prototype,"icon",void 0),jt([o()],Ut.prototype,"iconVariant",void 0),jt([o({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0),jt([o({type:Boolean})],Ut.prototype,"disabled",void 0),jt([o({reflect:!0})],Ut.prototype,"id",void 0),jt([o()],Ut.prototype,"color",void 0),jt([o()],Ut.prototype,"rippleColor",void 0),jt([o({reflect:!0,attribute:"aria-labelledby"})],Ut.prototype,"ariaLabelledBy",void 0);
105
105
  /**
106
106
  * @license
107
107
  * Copyright 2017 Google LLC
108
108
  * SPDX-License-Identifier: BSD-3-Clause
109
109
  */
110
- const jt=1,Ut=2,Ft=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
110
+ const Ft=1,zt=2,At=t=>(...e)=>({_$litDirective$:t,values:e});class Bt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
111
111
  /**
112
112
  * @license
113
113
  * Copyright 2020 Google LLC
114
114
  * SPDX-License-Identifier: BSD-3-Clause
115
- */const{I:At}=ft,Bt=()=>document.createComment(""),Lt=(t,e,i)=>{var o;const s=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Bt(),r),o=s.insertBefore(Bt(),r);i=new At(e,o,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,r),t=e}}}return i},Tt=(t,e,i=t)=>(t._$AI(e,i),t),Pt={},Dt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},_t=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},It=Ft(class extends zt{constructor(t){if(super(t),t.type!==Ut)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],r=[];let n=0;for(const e of t)s[n]=o?o(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const r=(t=>t._$AH)(t),{values:n,keys:a}=this.dt(e,i,o);if(!Array.isArray(r))return this.ht=a,n;const l=null!==(s=this.ht)&&void 0!==s?s:this.ht=[],h=[];let c,p,f=0,d=r.length-1,u=0,v=n.length-1;for(;f<=d&&u<=v;)if(null===r[f])f++;else if(null===r[d])d--;else if(l[f]===a[u])h[u]=Tt(r[f],n[u]),f++,u++;else if(l[d]===a[v])h[v]=Tt(r[d],n[v]),d--,v--;else if(l[f]===a[v])h[v]=Tt(r[f],n[v]),Lt(t,h[v+1],r[f]),f++,v--;else if(l[d]===a[u])h[u]=Tt(r[d],n[u]),Lt(t,r[f],r[d]),d--,u++;else if(void 0===c&&(c=_t(a,u,v),p=_t(l,f,d)),c.has(l[f]))if(c.has(l[d])){const e=p.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Lt(t,r[f]);Tt(e,n[u]),h[u]=e}else h[u]=Tt(i,n[u]),Lt(t,r[f],i),r[e]=null;u++}else Dt(r[d]),d--;else Dt(r[f]),f++;for(;u<=v;){const e=Lt(t,h[v+1]);Tt(e,n[u]),h[u++]=e}for(;f<=d;){const t=r[f++];null!==t&&Dt(t)}return this.ht=a,((t,e=Pt)=>{t._$AH=e})(t,h),Y}}),Wt=Ft(class extends zt{constructor(t){var e;if(super(t),t.type!==jt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Y}}),Ht=bt.extend("--ft-ripple-color",gt.colorContent),Kt=Ht,Zt=bt.extend("--ft-ripple-background-color",Ht),Vt=bt.external(gt.opacityContentOnSurfacePressed,"Design system"),Jt=bt.external(gt.opacityContentOnSurfaceHover,"Design system"),qt=bt.external(gt.opacityContentOnSurfaceFocused,"Design system"),Xt=bt.external(gt.opacityContentOnSurfaceSelected,"Design system"),Yt=bt.create("--ft-ripple-border-radius","SIZE","0px"),Gt=bt.extend("--ft-ripple-color",gt.colorPrimary),Qt=Gt,te=bt.extend("--ft-ripple-background-color",Gt),ee=bt.extend("--ft-ripple-color",gt.colorSecondary),ie=ee,oe=bt.extend("--ft-ripple-background-color",ee),se=x`
115
+ */const{I:Lt}=ft,Tt=()=>document.createComment(""),Pt=(t,e,i)=>{var o;const s=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Tt(),r),o=s.insertBefore(Tt(),r);i=new Lt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,r),t=e}}}return i},Dt=(t,e,i=t)=>(t._$AI(e,i),t),_t={},It=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Wt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Ht=At(class extends Bt{constructor(t){if(super(t),t.type!==zt)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],r=[];let n=0;for(const e of t)s[n]=o?o(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const r=(t=>t._$AH)(t),{values:n,keys:a}=this.dt(e,i,o);if(!Array.isArray(r))return this.ht=a,n;const l=null!==(s=this.ht)&&void 0!==s?s:this.ht=[],h=[];let c,p,f=0,d=r.length-1,u=0,v=n.length-1;for(;f<=d&&u<=v;)if(null===r[f])f++;else if(null===r[d])d--;else if(l[f]===a[u])h[u]=Dt(r[f],n[u]),f++,u++;else if(l[d]===a[v])h[v]=Dt(r[d],n[v]),d--,v--;else if(l[f]===a[v])h[v]=Dt(r[f],n[v]),Pt(t,h[v+1],r[f]),f++,v--;else if(l[d]===a[u])h[u]=Dt(r[d],n[u]),Pt(t,r[f],r[d]),d--,u++;else if(void 0===c&&(c=Wt(a,u,v),p=Wt(l,f,d)),c.has(l[f]))if(c.has(l[d])){const e=p.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Pt(t,r[f]);Dt(e,n[u]),h[u]=e}else h[u]=Dt(i,n[u]),Pt(t,r[f],i),r[e]=null;u++}else It(r[d]),d--;else It(r[f]),f++;for(;u<=v;){const e=Pt(t,h[v+1]);Dt(e,n[u]),h[u++]=e}for(;f<=d;){const t=r[f++];null!==t&&It(t)}return this.ht=a,((t,e=_t)=>{t._$AH=e})(t,h),Y}}),Kt=At(class extends Bt{constructor(t){var e;if(super(t),t.type!==Ft||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Y}}),Zt=bt.extend("--ft-ripple-color",gt.colorContent),Vt=Zt,Jt=bt.extend("--ft-ripple-background-color",Zt),qt=bt.external(gt.opacityContentOnSurfacePressed,"Design system"),Xt=bt.external(gt.opacityContentOnSurfaceHover,"Design system"),Yt=bt.external(gt.opacityContentOnSurfaceFocused,"Design system"),Gt=bt.external(gt.opacityContentOnSurfaceSelected,"Design system"),Qt=bt.create("--ft-ripple-border-radius","SIZE","0px"),te=bt.extend("--ft-ripple-color",gt.colorPrimary),ee=te,ie=bt.extend("--ft-ripple-background-color",te),oe=bt.extend("--ft-ripple-color",gt.colorSecondary),se=oe,re=bt.extend("--ft-ripple-background-color",oe),ne=x`
116
116
  :host {
117
117
  display: contents;
118
118
  }
@@ -125,7 +125,7 @@ const jt=1,Ut=2,Ft=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
125
125
 
126
126
  .ft-ripple:not(.ft-ripple--unbounded) {
127
127
  overflow: hidden;
128
- border-radius: ${Yt};
128
+ border-radius: ${Qt};
129
129
  }
130
130
 
131
131
  .ft-ripple .ft-ripple--background,
@@ -135,27 +135,27 @@ const jt=1,Ut=2,Ft=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
135
135
  }
136
136
 
137
137
  .ft-ripple .ft-ripple--background {
138
- background-color: ${Zt};
138
+ background-color: ${Jt};
139
139
  }
140
140
 
141
141
  .ft-ripple .ft-ripple--effect {
142
- background-color: ${Kt};
142
+ background-color: ${Vt};
143
143
  }
144
144
 
145
145
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
146
- background-color: ${oe};
146
+ background-color: ${re};
147
147
  }
148
148
 
149
149
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
150
- background-color: ${ie};
150
+ background-color: ${se};
151
151
  }
152
152
 
153
153
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
154
- background-color: ${te};
154
+ background-color: ${ie};
155
155
  }
156
156
 
157
157
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
158
- background-color: ${Qt};
158
+ background-color: ${ee};
159
159
  }
160
160
 
161
161
  .ft-ripple .ft-ripple--background {
@@ -187,19 +187,19 @@ const jt=1,Ut=2,Ft=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
187
187
  }
188
188
 
189
189
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
190
- opacity: ${Jt};
190
+ opacity: ${Xt};
191
191
  }
192
192
 
193
193
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
194
- opacity: ${Xt};
194
+ opacity: ${Gt};
195
195
  }
196
196
 
197
197
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
198
- opacity: ${qt};
198
+ opacity: ${Yt};
199
199
  }
200
200
 
201
201
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
202
- opacity: ${Vt};
202
+ opacity: ${qt};
203
203
  transform: translate(-50%, -50%) scale(1);
204
204
  }
205
205
  `;
@@ -207,7 +207,7 @@ const jt=1,Ut=2,Ft=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
207
207
  * @license
208
208
  * Copyright 2017 Google LLC
209
209
  * SPDX-License-Identifier: BSD-3-Clause
210
- */var re=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ne extends Nt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return X`
210
+ */var ae=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class le extends Et{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return X`
211
211
  <style>
212
212
  .ft-ripple .ft-ripple--effect,
213
213
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -220,125 +220,125 @@ const jt=1,Ut=2,Ft=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
220
220
  top: ${this.originY}px;
221
221
  }
222
222
  </style>
223
- <div class="${Wt(t)}">
223
+ <div class="${Kt(t)}">
224
224
  <div class="ft-ripple--background"></div>
225
225
  <div class="ft-ripple--effect"></div>
226
226
  </div>
227
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ne.elementDefinitions={},ne.styles=se,re([o({type:Boolean})],ne.prototype,"primary",void 0),re([o({type:Boolean})],ne.prototype,"secondary",void 0),re([o({type:Boolean})],ne.prototype,"unbounded",void 0),re([o({type:Boolean})],ne.prototype,"activated",void 0),re([o({type:Boolean})],ne.prototype,"selected",void 0),re([o({type:Boolean})],ne.prototype,"disabled",void 0),re([s()],ne.prototype,"hovered",void 0),re([s()],ne.prototype,"focused",void 0),re([s()],ne.prototype,"pressed",void 0),re([s()],ne.prototype,"rippling",void 0),re([s()],ne.prototype,"rippleSize",void 0),re([s()],ne.prototype,"originX",void 0),re([s()],ne.prototype,"originY",void 0),re([n(".ft-ripple")],ne.prototype,"ripple",void 0),re([n(".ft-ripple--effect")],ne.prototype,"rippleEffect",void 0),c("ft-ripple")(ne);
227
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}le.elementDefinitions={},le.styles=ne,ae([o({type:Boolean})],le.prototype,"primary",void 0),ae([o({type:Boolean})],le.prototype,"secondary",void 0),ae([o({type:Boolean})],le.prototype,"unbounded",void 0),ae([o({type:Boolean})],le.prototype,"activated",void 0),ae([o({type:Boolean})],le.prototype,"selected",void 0),ae([o({type:Boolean})],le.prototype,"disabled",void 0),ae([s()],le.prototype,"hovered",void 0),ae([s()],le.prototype,"focused",void 0),ae([s()],le.prototype,"pressed",void 0),ae([s()],le.prototype,"rippling",void 0),ae([s()],le.prototype,"rippleSize",void 0),ae([s()],le.prototype,"originX",void 0),ae([s()],le.prototype,"originY",void 0),ae([n(".ft-ripple")],le.prototype,"ripple",void 0),ae([n(".ft-ripple--effect")],le.prototype,"rippleEffect",void 0),c("ft-ripple")(le);
228
228
  /**
229
229
  * @license
230
230
  * Copyright 2020 Google LLC
231
231
  * SPDX-License-Identifier: BSD-3-Clause
232
232
  */
233
- const ae=Symbol.for(""),le=t=>{if((null==t?void 0:t.r)===ae)return null==t?void 0:t._$litStatic$},he=t=>({_$litStatic$:t,r:ae}),ce=new Map,pe=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],s=le(r));)l+=s+e[++h],c=!0;h!==o&&a.push(r),n.push(l),h++}if(h===o&&n.push(e[o]),c){const t=n.join("$$lit$$");void 0===(e=ce.get(t))&&(n.raw=n,ce.set(t,e=n)),i=a}return t(e,...i)})(X);var fe;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(fe||(fe={}));const de=bt.extend("--ft-typography-font-family",gt.titleFont),ue=bt.extend("--ft-typography-font-family",gt.contentFont),ve={fontFamily:ue,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ye=bt.extend("--ft-typography-title-font-family",de),xe=bt.extend("--ft-typography-title-font-size",ve.fontSize,"20px"),be=bt.extend("--ft-typography-title-font-weight",ve.fontWeight,"normal"),ge=bt.extend("--ft-typography-title-letter-spacing",ve.letterSpacing,"0.15px"),me=bt.extend("--ft-typography-title-line-height",ve.lineHeight,"1.2"),we=bt.extend("--ft-typography-title-text-transform",ve.textTransform,"inherit"),$e=bt.extend("--ft-typography-title-dense-font-family",de),Oe=bt.extend("--ft-typography-title-dense-font-size",ve.fontSize,"14px"),Se=bt.extend("--ft-typography-title-dense-font-weight",ve.fontWeight,"normal"),ke=bt.extend("--ft-typography-title-dense-letter-spacing",ve.letterSpacing,"0.105px"),Ne=bt.extend("--ft-typography-title-dense-line-height",ve.lineHeight,"1.7"),Ce=bt.extend("--ft-typography-title-dense-text-transform",ve.textTransform,"inherit"),Ee=bt.extend("--ft-typography-subtitle1-font-family",ue),Re=bt.extend("--ft-typography-subtitle1-font-size",ve.fontSize,"16px"),Me=bt.extend("--ft-typography-subtitle1-font-weight",ve.fontWeight,"600"),je=bt.extend("--ft-typography-subtitle1-letter-spacing",ve.letterSpacing,"0.144px"),Ue=bt.extend("--ft-typography-subtitle1-line-height",ve.lineHeight,"1.5"),Fe=bt.extend("--ft-typography-subtitle1-text-transform",ve.textTransform,"inherit"),ze=bt.extend("--ft-typography-subtitle2-font-family",ue),Ae=bt.extend("--ft-typography-subtitle2-font-size",ve.fontSize,"14px"),Be=bt.extend("--ft-typography-subtitle2-font-weight",ve.fontWeight,"normal"),Le=bt.extend("--ft-typography-subtitle2-letter-spacing",ve.letterSpacing,"0.098px"),Te=bt.extend("--ft-typography-subtitle2-line-height",ve.lineHeight,"1.7"),Pe=bt.extend("--ft-typography-subtitle2-text-transform",ve.textTransform,"inherit"),De=bt.extend("--ft-typography-body1-font-family",ue),_e=bt.extend("--ft-typography-body1-font-size",ve.fontSize,"16px"),Ie=bt.extend("--ft-typography-body1-font-weight",ve.fontWeight,"normal"),We=bt.extend("--ft-typography-body1-letter-spacing",ve.letterSpacing,"0.496px"),He=bt.extend("--ft-typography-body1-line-height",ve.lineHeight,"1.5"),Ke=bt.extend("--ft-typography-body1-text-transform",ve.textTransform,"inherit"),Ze=bt.extend("--ft-typography-body2-font-family",ue),Ve=bt.extend("--ft-typography-body2-font-size",ve.fontSize,"14px"),Je=bt.extend("--ft-typography-body2-font-weight",ve.fontWeight,"normal"),qe=bt.extend("--ft-typography-body2-letter-spacing",ve.letterSpacing,"0.252px"),Xe=bt.extend("--ft-typography-body2-line-height",ve.lineHeight,"1.4"),Ye=bt.extend("--ft-typography-body2-text-transform",ve.textTransform,"inherit"),Ge=bt.extend("--ft-typography-caption-font-family",ue),Qe=bt.extend("--ft-typography-caption-font-size",ve.fontSize,"12px"),ti=bt.extend("--ft-typography-caption-font-weight",ve.fontWeight,"normal"),ei=bt.extend("--ft-typography-caption-letter-spacing",ve.letterSpacing,"0.396px"),ii=bt.extend("--ft-typography-caption-line-height",ve.lineHeight,"1.33"),oi=bt.extend("--ft-typography-caption-text-transform",ve.textTransform,"inherit"),si=bt.extend("--ft-typography-breadcrumb-font-family",ue),ri=bt.extend("--ft-typography-breadcrumb-font-size",ve.fontSize,"10px"),ni=bt.extend("--ft-typography-breadcrumb-font-weight",ve.fontWeight,"normal"),ai=bt.extend("--ft-typography-breadcrumb-letter-spacing",ve.letterSpacing,"0.33px"),li=bt.extend("--ft-typography-breadcrumb-line-height",ve.lineHeight,"1.6"),hi=bt.extend("--ft-typography-breadcrumb-text-transform",ve.textTransform,"inherit"),ci=bt.extend("--ft-typography-overline-font-family",ue),pi=bt.extend("--ft-typography-overline-font-size",ve.fontSize,"10px"),fi=bt.extend("--ft-typography-overline-font-weight",ve.fontWeight,"normal"),di=bt.extend("--ft-typography-overline-letter-spacing",ve.letterSpacing,"1.5px"),ui=bt.extend("--ft-typography-overline-line-height",ve.lineHeight,"1.6"),vi=bt.extend("--ft-typography-overline-text-transform",ve.textTransform,"uppercase"),yi=bt.extend("--ft-typography-button-font-family",ue),xi=bt.extend("--ft-typography-button-font-size",ve.fontSize,"14px"),bi=bt.extend("--ft-typography-button-font-weight",ve.fontWeight,"600"),gi=bt.extend("--ft-typography-button-letter-spacing",ve.letterSpacing,"1.246px"),mi=bt.extend("--ft-typography-button-line-height",ve.lineHeight,"1.15"),wi=bt.extend("--ft-typography-button-text-transform",ve.textTransform,"uppercase"),$i=x`
233
+ const he=Symbol.for(""),ce=t=>{if((null==t?void 0:t.r)===he)return null==t?void 0:t._$litStatic$},pe=t=>({_$litStatic$:t,r:he}),fe=new Map,de=(t=>(e,...i)=>{const o=i.length;let s,r;const n=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],s=ce(r));)l+=s+e[++h],c=!0;h!==o&&a.push(r),n.push(l),h++}if(h===o&&n.push(e[o]),c){const t=n.join("$$lit$$");void 0===(e=fe.get(t))&&(n.raw=n,fe.set(t,e=n)),i=a}return t(e,...i)})(X);var ue;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ue||(ue={}));const ve=bt.extend("--ft-typography-font-family",gt.titleFont),ye=bt.extend("--ft-typography-font-family",gt.contentFont),xe={fontFamily:ye,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},be=bt.extend("--ft-typography-title-font-family",ve),ge=bt.extend("--ft-typography-title-font-size",xe.fontSize,"20px"),me=bt.extend("--ft-typography-title-font-weight",xe.fontWeight,"normal"),we=bt.extend("--ft-typography-title-letter-spacing",xe.letterSpacing,"0.15px"),$e=bt.extend("--ft-typography-title-line-height",xe.lineHeight,"1.2"),Oe=bt.extend("--ft-typography-title-text-transform",xe.textTransform,"inherit"),Se=bt.extend("--ft-typography-title-dense-font-family",ve),ke=bt.extend("--ft-typography-title-dense-font-size",xe.fontSize,"14px"),Ne=bt.extend("--ft-typography-title-dense-font-weight",xe.fontWeight,"normal"),Ce=bt.extend("--ft-typography-title-dense-letter-spacing",xe.letterSpacing,"0.105px"),Ee=bt.extend("--ft-typography-title-dense-line-height",xe.lineHeight,"1.7"),Re=bt.extend("--ft-typography-title-dense-text-transform",xe.textTransform,"inherit"),Me=bt.extend("--ft-typography-subtitle1-font-family",ye),je=bt.extend("--ft-typography-subtitle1-font-size",xe.fontSize,"16px"),Ue=bt.extend("--ft-typography-subtitle1-font-weight",xe.fontWeight,"600"),Fe=bt.extend("--ft-typography-subtitle1-letter-spacing",xe.letterSpacing,"0.144px"),ze=bt.extend("--ft-typography-subtitle1-line-height",xe.lineHeight,"1.5"),Ae=bt.extend("--ft-typography-subtitle1-text-transform",xe.textTransform,"inherit"),Be=bt.extend("--ft-typography-subtitle2-font-family",ye),Le=bt.extend("--ft-typography-subtitle2-font-size",xe.fontSize,"14px"),Te=bt.extend("--ft-typography-subtitle2-font-weight",xe.fontWeight,"normal"),Pe=bt.extend("--ft-typography-subtitle2-letter-spacing",xe.letterSpacing,"0.098px"),De=bt.extend("--ft-typography-subtitle2-line-height",xe.lineHeight,"1.7"),_e=bt.extend("--ft-typography-subtitle2-text-transform",xe.textTransform,"inherit"),Ie=bt.extend("--ft-typography-body1-font-family",ye),We=bt.extend("--ft-typography-body1-font-size",xe.fontSize,"16px"),He=bt.extend("--ft-typography-body1-font-weight",xe.fontWeight,"normal"),Ke=bt.extend("--ft-typography-body1-letter-spacing",xe.letterSpacing,"0.496px"),Ze=bt.extend("--ft-typography-body1-line-height",xe.lineHeight,"1.5"),Ve=bt.extend("--ft-typography-body1-text-transform",xe.textTransform,"inherit"),Je=bt.extend("--ft-typography-body2-font-family",ye),qe=bt.extend("--ft-typography-body2-font-size",xe.fontSize,"14px"),Xe=bt.extend("--ft-typography-body2-font-weight",xe.fontWeight,"normal"),Ye=bt.extend("--ft-typography-body2-letter-spacing",xe.letterSpacing,"0.252px"),Ge=bt.extend("--ft-typography-body2-line-height",xe.lineHeight,"1.4"),Qe=bt.extend("--ft-typography-body2-text-transform",xe.textTransform,"inherit"),ti=bt.extend("--ft-typography-caption-font-family",ye),ei=bt.extend("--ft-typography-caption-font-size",xe.fontSize,"12px"),ii=bt.extend("--ft-typography-caption-font-weight",xe.fontWeight,"normal"),oi=bt.extend("--ft-typography-caption-letter-spacing",xe.letterSpacing,"0.396px"),si=bt.extend("--ft-typography-caption-line-height",xe.lineHeight,"1.33"),ri=bt.extend("--ft-typography-caption-text-transform",xe.textTransform,"inherit"),ni=bt.extend("--ft-typography-breadcrumb-font-family",ye),ai=bt.extend("--ft-typography-breadcrumb-font-size",xe.fontSize,"10px"),li=bt.extend("--ft-typography-breadcrumb-font-weight",xe.fontWeight,"normal"),hi=bt.extend("--ft-typography-breadcrumb-letter-spacing",xe.letterSpacing,"0.33px"),ci=bt.extend("--ft-typography-breadcrumb-line-height",xe.lineHeight,"1.6"),pi=bt.extend("--ft-typography-breadcrumb-text-transform",xe.textTransform,"inherit"),fi=bt.extend("--ft-typography-overline-font-family",ye),di=bt.extend("--ft-typography-overline-font-size",xe.fontSize,"10px"),ui=bt.extend("--ft-typography-overline-font-weight",xe.fontWeight,"normal"),vi=bt.extend("--ft-typography-overline-letter-spacing",xe.letterSpacing,"1.5px"),yi=bt.extend("--ft-typography-overline-line-height",xe.lineHeight,"1.6"),xi=bt.extend("--ft-typography-overline-text-transform",xe.textTransform,"uppercase"),bi=bt.extend("--ft-typography-button-font-family",ye),gi=bt.extend("--ft-typography-button-font-size",xe.fontSize,"14px"),mi=bt.extend("--ft-typography-button-font-weight",xe.fontWeight,"600"),wi=bt.extend("--ft-typography-button-letter-spacing",xe.letterSpacing,"1.246px"),$i=bt.extend("--ft-typography-button-line-height",xe.lineHeight,"1.15"),Oi=bt.extend("--ft-typography-button-text-transform",xe.textTransform,"uppercase"),Si=x`
234
234
  .ft-typography--title {
235
- font-family: ${ye};
236
- font-size: ${xe};
237
- font-weight: ${be};
238
- letter-spacing: ${ge};
239
- line-height: ${me};
240
- text-transform: ${we};
241
- }
242
- `,Oi=x`
243
- .ft-typography--title-dense {
244
- font-family: ${$e};
245
- font-size: ${Oe};
246
- font-weight: ${Se};
247
- letter-spacing: ${ke};
248
- line-height: ${Ne};
249
- text-transform: ${Ce};
250
- }
251
- `,Si=x`
252
- .ft-typography--subtitle1 {
253
- font-family: ${Ee};
254
- font-size: ${Re};
255
- font-weight: ${Me};
256
- letter-spacing: ${je};
257
- line-height: ${Ue};
258
- text-transform: ${Fe};
235
+ font-family: ${be};
236
+ font-size: ${ge};
237
+ font-weight: ${me};
238
+ letter-spacing: ${we};
239
+ line-height: ${$e};
240
+ text-transform: ${Oe};
259
241
  }
260
242
  `,ki=x`
261
- .ft-typography--subtitle2 {
262
- font-family: ${ze};
263
- font-size: ${Ae};
264
- font-weight: ${Be};
265
- letter-spacing: ${Le};
266
- line-height: ${Te};
267
- text-transform: ${Pe};
243
+ .ft-typography--title-dense {
244
+ font-family: ${Se};
245
+ font-size: ${ke};
246
+ font-weight: ${Ne};
247
+ letter-spacing: ${Ce};
248
+ line-height: ${Ee};
249
+ text-transform: ${Re};
268
250
  }
269
-
270
251
  `,Ni=x`
271
- .ft-typography--body1 {
272
- font-family: ${De};
273
- font-size: ${_e};
274
- font-weight: ${Ie};
275
- letter-spacing: ${We};
276
- line-height: ${He};
277
- text-transform: ${Ke};
252
+ .ft-typography--subtitle1 {
253
+ font-family: ${Me};
254
+ font-size: ${je};
255
+ font-weight: ${Ue};
256
+ letter-spacing: ${Fe};
257
+ line-height: ${ze};
258
+ text-transform: ${Ae};
278
259
  }
279
260
  `,Ci=x`
280
- .ft-typography--body2 {
281
- font-family: ${Ze};
282
- font-size: ${Ve};
283
- font-weight: ${Je};
284
- letter-spacing: ${qe};
285
- line-height: ${Xe};
286
- text-transform: ${Ye};
261
+ .ft-typography--subtitle2 {
262
+ font-family: ${Be};
263
+ font-size: ${Le};
264
+ font-weight: ${Te};
265
+ letter-spacing: ${Pe};
266
+ line-height: ${De};
267
+ text-transform: ${_e};
287
268
  }
269
+
288
270
  `,Ei=x`
289
- .ft-typography--caption {
290
- font-family: ${Ge};
291
- font-size: ${Qe};
292
- font-weight: ${ti};
293
- letter-spacing: ${ei};
294
- line-height: ${ii};
295
- text-transform: ${oi};
271
+ .ft-typography--body1 {
272
+ font-family: ${Ie};
273
+ font-size: ${We};
274
+ font-weight: ${He};
275
+ letter-spacing: ${Ke};
276
+ line-height: ${Ze};
277
+ text-transform: ${Ve};
296
278
  }
297
279
  `,Ri=x`
298
- .ft-typography--breadcrumb {
299
- font-family: ${si};
300
- font-size: ${ri};
301
- font-weight: ${ni};
302
- letter-spacing: ${ai};
303
- line-height: ${li};
304
- text-transform: ${hi};
280
+ .ft-typography--body2 {
281
+ font-family: ${Je};
282
+ font-size: ${qe};
283
+ font-weight: ${Xe};
284
+ letter-spacing: ${Ye};
285
+ line-height: ${Ge};
286
+ text-transform: ${Qe};
305
287
  }
306
288
  `,Mi=x`
307
- .ft-typography--overline {
308
- font-family: ${ci};
309
- font-size: ${pi};
310
- font-weight: ${fi};
311
- letter-spacing: ${di};
312
- line-height: ${ui};
313
- text-transform: ${vi};
289
+ .ft-typography--caption {
290
+ font-family: ${ti};
291
+ font-size: ${ei};
292
+ font-weight: ${ii};
293
+ letter-spacing: ${oi};
294
+ line-height: ${si};
295
+ text-transform: ${ri};
314
296
  }
315
297
  `,ji=x`
316
- .ft-typography--button {
317
- font-family: ${yi};
318
- font-size: ${xi};
319
- font-weight: ${bi};
320
- letter-spacing: ${gi};
321
- line-height: ${mi};
322
- text-transform: ${wi};
298
+ .ft-typography--breadcrumb {
299
+ font-family: ${ni};
300
+ font-size: ${ai};
301
+ font-weight: ${li};
302
+ letter-spacing: ${hi};
303
+ line-height: ${ci};
304
+ text-transform: ${pi};
323
305
  }
324
306
  `,Ui=x`
307
+ .ft-typography--overline {
308
+ font-family: ${fi};
309
+ font-size: ${di};
310
+ font-weight: ${ui};
311
+ letter-spacing: ${vi};
312
+ line-height: ${yi};
313
+ text-transform: ${xi};
314
+ }
315
+ `,Fi=x`
316
+ .ft-typography--button {
317
+ font-family: ${bi};
318
+ font-size: ${gi};
319
+ font-weight: ${mi};
320
+ letter-spacing: ${wi};
321
+ line-height: ${$i};
322
+ text-transform: ${Oi};
323
+ }
324
+ `,zi=x`
325
325
  .ft-typography {
326
326
  vertical-align: inherit;
327
327
  }
328
- `;var Fi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class zi extends Nt{constructor(){super(...arguments),this.variant=fe.body1}render(){return this.element?pe`
329
- <${he(this.element)}
328
+ `;var Ai=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Bi extends Et{constructor(){super(...arguments),this.variant=ue.body1}render(){return this.element?de`
329
+ <${pe(this.element)}
330
330
  class="ft-typography ft-typography--${this.variant}">
331
331
  <slot></slot>
332
- </${he(this.element)}>
333
- `:pe`
332
+ </${pe(this.element)}>
333
+ `:de`
334
334
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
335
- `}}zi.styles=[$i,Oi,Si,ki,Ni,Ci,Ei,Ri,Mi,ji,Ui],Fi([o()],zi.prototype,"element",void 0),Fi([o()],zi.prototype,"variant",void 0),c("ft-typography")(zi);
335
+ `}}Bi.styles=[Si,ki,Ni,Ci,Ei,Ri,Mi,ji,Ui,Fi,zi],Ai([o()],Bi.prototype,"element",void 0),Ai([o()],Bi.prototype,"variant",void 0),c("ft-typography")(Bi);
336
336
  /**
337
337
  * @license
338
338
  * Copyright 2017 Google LLC
339
339
  * SPDX-License-Identifier: BSD-3-Clause
340
340
  */
341
- class Ai extends zt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ai.directiveName="unsafeHTML",Ai.resultType=1;const Bi=Ft(Ai);var Li,Ti;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;"}(Li||(Li={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ti||(Ti={})),new Map([...["abw"].map((t=>[t,Ti.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ti.AUDIO])),...["avi"].map((t=>[t,Ti.AVI])),...["chm","xhs"].map((t=>[t,Ti.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ti.CODE])),...["csv"].map((t=>[t,Ti.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ti.DITA])),...["epub"].map((t=>[t,Ti.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ti.EXCEL])),...["flac"].map((t=>[t,Ti.FLAC])),...["gif"].map((t=>[t,Ti.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ti.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ti.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ti.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ti.JPEG])),...["json"].map((t=>[t,Ti.JSON])),...["m4a","m4p"].map((t=>[t,Ti.M4A])),...["mov","qt"].map((t=>[t,Ti.MOV])),...["mp3"].map((t=>[t,Ti.MP3])),...["mp4","m4v"].map((t=>[t,Ti.MP4])),...["ogg","oga"].map((t=>[t,Ti.OGG])),...["pdf","ps"].map((t=>[t,Ti.PDF])),...["png"].map((t=>[t,Ti.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ti.POWERPOINT])),...["rar"].map((t=>[t,Ti.RAR])),...["stp"].map((t=>[t,Ti.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ti.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ti.VIDEO])),...["wav"].map((t=>[t,Ti.WAV])),...["wma"].map((t=>[t,Ti.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ti.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ti.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ti.YAML])),...["zip"].map((t=>[t,Ti.ZIP]))]);const Pi=bt.create("--ft-icon-font-size","SIZE","24px"),Di=bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),_i=bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ii=bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Wi=bt.create("--ft-icon-vertical-align","UNKNOWN","unset"),Hi=x`
341
+ class Li extends Bt{constructor(t){if(super(t),this.et=G,t.type!==zt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Li.directiveName="unsafeHTML",Li.resultType=1;const Ti=At(Li);var Pi,Di;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;"}(Pi||(Pi={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Di||(Di={})),new Map([...["abw"].map((t=>[t,Di.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Di.AUDIO])),...["avi"].map((t=>[t,Di.AVI])),...["chm","xhs"].map((t=>[t,Di.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Di.CODE])),...["csv"].map((t=>[t,Di.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Di.DITA])),...["epub"].map((t=>[t,Di.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Di.EXCEL])),...["flac"].map((t=>[t,Di.FLAC])),...["gif"].map((t=>[t,Di.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Di.GZIP])),...["html","htm","xhtml"].map((t=>[t,Di.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Di.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Di.JPEG])),...["json"].map((t=>[t,Di.JSON])),...["m4a","m4p"].map((t=>[t,Di.M4A])),...["mov","qt"].map((t=>[t,Di.MOV])),...["mp3"].map((t=>[t,Di.MP3])),...["mp4","m4v"].map((t=>[t,Di.MP4])),...["ogg","oga"].map((t=>[t,Di.OGG])),...["pdf","ps"].map((t=>[t,Di.PDF])),...["png"].map((t=>[t,Di.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Di.POWERPOINT])),...["rar"].map((t=>[t,Di.RAR])),...["stp"].map((t=>[t,Di.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Di.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Di.VIDEO])),...["wav"].map((t=>[t,Di.WAV])),...["wma"].map((t=>[t,Di.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Di.WORD])),...["xml","xsl","rdf"].map((t=>[t,Di.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Di.YAML])),...["zip"].map((t=>[t,Di.ZIP]))]);const _i=bt.create("--ft-icon-font-size","SIZE","24px"),Ii=bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Wi=bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Hi=bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ki=bt.create("--ft-icon-vertical-align","UNKNOWN","unset"),Zi=x`
342
342
  :host, i.ft-icon {
343
343
  display: inline-flex;
344
344
  align-items: center;
@@ -347,14 +347,14 @@ class Ai extends zt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
347
347
  }
348
348
 
349
349
  :host {
350
- width: ${Pi};
351
- height: ${Pi};
350
+ width: ${_i};
351
+ height: ${_i};
352
352
  }
353
353
 
354
354
  i.ft-icon {
355
355
  width: 100%;
356
356
  height: 100%;
357
- font-size: ${Pi};
357
+ font-size: ${_i};
358
358
  line-height: 1;
359
359
  font-weight: normal;
360
360
  text-transform: none;
@@ -365,37 +365,37 @@ class Ai extends zt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
365
365
  text-rendering: auto;
366
366
  -webkit-font-smoothing: antialiased;
367
367
  -moz-osx-font-smoothing: grayscale;
368
- vertical-align: ${Wi};
368
+ vertical-align: ${Ki};
369
369
  }
370
370
 
371
371
  i.ft-icon.ft-icon--fluid-topics {
372
- font-family: ${Di}, ft-icons, fticons, sans-serif;
372
+ font-family: ${Ii}, ft-icons, fticons, sans-serif;
373
373
 
374
374
  /* Ugly fix because font is broken */
375
- font-size: calc(0.75 * ${Pi});
376
- line-height: ${Pi};
375
+ font-size: calc(0.75 * ${_i});
376
+ line-height: ${_i};
377
377
  position: relative;
378
378
  top: -4%;
379
379
  justify-content: center;
380
380
  }
381
381
 
382
382
  .ft-icon--file-format {
383
- font-family: ${_i}, ft-mime, sans-serif;
383
+ font-family: ${Wi}, ft-mime, sans-serif;
384
384
  }
385
385
 
386
386
  .ft-icon--material {
387
- font-family: ${Ii}, "Material Icons", sans-serif;
387
+ font-family: ${Hi}, "Material Icons", sans-serif;
388
388
  }
389
- `;var Ki;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ki||(Ki={}));var Zi,Vi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Ji extends Nt{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(Ki).includes(this.variant)?this.variant:Ki.fluid_topics,e=t!==Ki.material||!!this.value;return X`
389
+ `;var Vi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Vi||(Vi={}));var Ji,qi=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Xi extends Et{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(Vi).includes(this.variant)?this.variant:Vi.fluid_topics,e=t!==Vi.material||!!this.value;return X`
390
390
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
391
- ${Bi(this.resolvedIcon)}
391
+ ${Ti(this.resolvedIcon)}
392
392
  <slot ?hidden=${e}></slot>
393
393
  </i>
394
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ki.file_format:this.resolvedIcon=null!==(t=Ti[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ki.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=Li[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ji.elementDefinitions={},Ji.styles=Hi,Vi([o()],Ji.prototype,"variant",void 0),Vi([o()],Ji.prototype,"value",void 0),Vi([s()],Ji.prototype,"resolvedIcon",void 0),Vi([n("slot")],Ji.prototype,"slottedContent",void 0),c("ft-icon")(Ji),t.FtTabsAlignment=void 0,(Zi=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Zi.right="right",Zi.justify="justify";const qi={colorSurface:bt.external(gt.colorSurface,"Design system"),colorPrimary:bt.external(gt.colorPrimary,"Design system"),colorOnSurfaceMedium:bt.external(gt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:bt.external(gt.colorOnSurfaceDisabled,"Design system")},Xi=x`
394
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Vi.file_format:this.resolvedIcon=null!==(t=Di[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Vi.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=Pi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Xi.elementDefinitions={},Xi.styles=Zi,qi([o()],Xi.prototype,"variant",void 0),qi([o()],Xi.prototype,"value",void 0),qi([s()],Xi.prototype,"resolvedIcon",void 0),qi([n("slot")],Xi.prototype,"slottedContent",void 0),c("ft-icon")(Xi),t.FtTabsAlignment=void 0,(Ji=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Ji.right="right",Ji.justify="justify";const Yi={colorSurface:bt.external(gt.colorSurface,"Design system"),colorPrimary:bt.external(gt.colorPrimary,"Design system"),colorOnSurfaceMedium:bt.external(gt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:bt.external(gt.colorOnSurfaceDisabled,"Design system")},Gi=x`
395
395
  .ft-tabs {
396
396
  display: flex;
397
397
  flex-direction: column;
398
- background-color: ${qi.colorSurface};
398
+ background-color: ${Yi.colorSurface};
399
399
  height: 100%;
400
400
  }
401
401
 
@@ -435,15 +435,15 @@ class Ai extends zt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
435
435
  outline: none;
436
436
  font-size: 16px;
437
437
  line-height: 1;
438
- color: ${qi.colorOnSurfaceMedium};
438
+ color: ${Yi.colorOnSurfaceMedium};
439
439
  }
440
440
 
441
441
  [role='tab'][aria-selected='true'] {
442
- color: ${qi.colorPrimary};
442
+ color: ${Yi.colorPrimary};
443
443
  }
444
444
 
445
445
  [role='tab'][disabled] {
446
- color: ${qi.colorOnSurfaceDisabled};
446
+ color: ${Yi.colorOnSurfaceDisabled};
447
447
  }
448
448
 
449
449
  .ft-tabs--align-justify [role='tab'],
@@ -475,7 +475,7 @@ class Ai extends zt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
475
475
  position: absolute;
476
476
  height: 3px;
477
477
  border-radius: 2px;
478
- background-color: ${qi.colorPrimary};
478
+ background-color: ${Yi.colorPrimary};
479
479
  transition: width 200ms ease, left 200ms ease, top 200ms ease;
480
480
  }
481
481
 
@@ -484,7 +484,7 @@ class Ai extends zt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
484
484
  flex-grow: 1;
485
485
  overflow: auto;
486
486
  }
487
- `,Yi=bt.create("--ft-tooltip-distance","SIZE","4px"),Gi=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Qi=bt.create("--ft-tooltip-background-color","COLOR","#666666"),to=bt.create("--ft-tooltip-z-index","NUMBER","1"),eo=bt.external(gt.borderRadiusS,"Design system"),io=bt.create("--ft-tooltip-max-width","SIZE","150px"),oo=x`
487
+ `,Qi=bt.create("--ft-tooltip-distance","SIZE","4px"),to=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),eo=bt.create("--ft-tooltip-background-color","COLOR","#666666"),io=bt.create("--ft-tooltip-z-index","NUMBER","1"),oo=bt.external(gt.borderRadiusS,"Design system"),so=bt.create("--ft-tooltip-max-width","SIZE","150px"),ro=x`
488
488
  .ft-tooltip--container {
489
489
  display: block;
490
490
  position: relative;
@@ -500,23 +500,23 @@ class Ai extends zt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
500
500
  box-sizing: border-box;
501
501
  overflow: hidden;
502
502
  width: max-content;
503
- max-width: ${io};
503
+ max-width: ${so};
504
504
  text-align: center;
505
- padding: ${Yi};
506
- z-index: ${to};
505
+ padding: ${Qi};
506
+ z-index: ${io};
507
507
  }
508
508
 
509
509
  .ft-tooltip--content {
510
510
  padding: 4px 8px;
511
- border-radius: ${eo};
512
- background-color: ${Qi};
513
- color: ${Gi};
511
+ border-radius: ${oo};
512
+ background-color: ${eo};
513
+ color: ${to};
514
514
  top: -500px;
515
515
  left: -500px;
516
516
  position: relative;
517
517
  word-break: break-word;
518
518
  }
519
- `;var so=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ro extends Nt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return X`
519
+ `;var no=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ao extends Et{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return X`
520
520
  <div part="container"
521
521
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
522
522
  @mouseenter=${this.onHover}
@@ -534,17 +534,17 @@ class Ai extends zt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
534
534
  </div>
535
535
  </div>
536
536
  </div>
537
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,s=o;break;case"bottom":r=e.height,s=o;break;case"left":r=i,s=-this.tooltip.clientWidth;break;case"right":r=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=4-e.left);const n=this.tooltip.style;n.left=s+"px",n.top=r+"px",n.maxWidth=`max(${e.width}px, ${io})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ro.elementDefinitions={"ft-typography":zi},ro.styles=oo,so([o()],ro.prototype,"text",void 0),so([o({type:Boolean})],ro.prototype,"manual",void 0),so([o({type:Boolean})],ro.prototype,"inline",void 0),so([o({type:Number})],ro.prototype,"delay",void 0),so([o()],ro.prototype,"position",void 0),so([
537
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,s=o;break;case"bottom":r=e.height,s=o;break;case"left":r=i,s=-this.tooltip.clientWidth;break;case"right":r=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=4-e.left);const n=this.tooltip.style;n.left=s+"px",n.top=r+"px",n.maxWidth=`max(${e.width}px, ${so})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ao.elementDefinitions={"ft-typography":Bi},ao.styles=ro,no([o()],ao.prototype,"text",void 0),no([o({type:Boolean})],ao.prototype,"manual",void 0),no([o({type:Boolean})],ao.prototype,"inline",void 0),no([o({type:Number})],ao.prototype,"delay",void 0),no([o()],ao.prototype,"position",void 0),no([
538
538
  /**
539
539
  * @license
540
540
  * Copyright 2017 Google LLC
541
541
  * SPDX-License-Identifier: BSD-3-Clause
542
542
  */
543
- function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),n=null!=r?l(r,t):[];return i?n.filter((t=>t.matches(i))):n},enumerable:!0,configurable:!0})})}({slot:s,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],ro.prototype,"slotNodes",void 0),so([n(".ft-tooltip--container")],ro.prototype,"container",void 0),so([n("slot")],ro.prototype,"target",void 0),so([n(".ft-tooltip")],ro.prototype,"tooltip",void 0),so([n(".ft-tooltip--content")],ro.prototype,"tooltipContent",void 0),so([s()],ro.prototype,"visible",void 0),c("ft-tooltip")(ro);var no=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ao extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class lo extends Nt{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new e(20),this.scheduleRequestUpdate=()=>this.updateDebouncer.run((()=>{this.requestUpdate()})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const e={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},i=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return X`
544
- <div class="${Wt(e)}" part="container">
543
+ function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),n=null!=r?l(r,t):[];return i?n.filter((t=>t.matches(i))):n},enumerable:!0,configurable:!0})})}({slot:s,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],ao.prototype,"slotNodes",void 0),no([n(".ft-tooltip--container")],ao.prototype,"container",void 0),no([n("slot")],ao.prototype,"target",void 0),no([n(".ft-tooltip")],ao.prototype,"tooltip",void 0),no([n(".ft-tooltip--content")],ao.prototype,"tooltipContent",void 0),no([s()],ao.prototype,"visible",void 0),c("ft-tooltip")(ao);var lo=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class ho extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class co extends Et{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new e(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new wt)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const e={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},i=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return X`
544
+ <div class="${Kt(e)}" part="container">
545
545
  <div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
546
- ${It(this.ftTabs,((t,e)=>this.addTooltipIfNecessary(t,X`
547
- <button class="${Wt({"ft-tabs--tab-with-icon":!!t.icon,"ft-tabs--tab-with-label":!!t.label})}"
546
+ ${Ht(this.ftTabs,((t,e)=>this.addTooltipIfNecessary(t,X`
547
+ <button class="${Kt({"ft-tabs--tab-with-icon":!!t.icon,"ft-tabs--tab-with-label":!!t.label})}"
548
548
  ?disabled=${t.disabled}
549
549
  @click=${()=>this.activeIndex=e}
550
550
  role="tab"
@@ -566,7 +566,7 @@ function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},
566
566
  </ft-icon>
567
567
  <ft-typography class="ft-tabs--tab-label"
568
568
  part="tab-label${t.active?" active-tab-label":""}"
569
- variant="${fe.body2}">
569
+ variant="${ue.body2}">
570
570
  ${t.label}
571
571
  </ft-typography>
572
572
  </button>
@@ -580,11 +580,11 @@ function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},
580
580
  <slot @slotchange=${this.onContentChange}></slot>
581
581
  </div>
582
582
  </div>
583
- `}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new ao(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,e,i,o,s,r,n;if(this.activeTabIndicator){const a=null!==(e=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==e?e:this.activeTab;this.activeTabIndicator.style.width=(null!==(i=null==a?void 0:a.clientWidth)&&void 0!==i?i:0)+"px",this.activeTabIndicator.style.left=(null!==(o=null==a?void 0:a.offsetLeft)&&void 0!==o?o:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(s=null==a?void 0:a.offsetTop)&&void 0!==s?s:0)+"px":this.activeTabIndicator.style.top=(null!==(r=null==a?void 0:a.offsetTop)&&void 0!==r?r:0)+(null!==(n=null==a?void 0:a.clientHeight)&&void 0!==n?n:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,e)=>{t.active=e==this.activeIndex}))}addTooltipIfNecessary(t,e){return this.dense&&t.label&&t.icon?X`
583
+ `}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.onTabUpdated),t.addEventListener("updated",this.onTabUpdated)})),this.updateTabs()}update(t){super.update(t),t.has("activeIndex")&&this.dispatchEvent(new mt)}updated(t){super.updated(t),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new ho(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,e,i,o,s,r,n;if(this.activeTabIndicator){const a=null!==(e=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==e?e:this.activeTab;this.activeTabIndicator.style.width=(null!==(i=null==a?void 0:a.clientWidth)&&void 0!==i?i:0)+"px",this.activeTabIndicator.style.left=(null!==(o=null==a?void 0:a.offsetLeft)&&void 0!==o?o:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(s=null==a?void 0:a.offsetTop)&&void 0!==s?s:0)+"px":this.activeTabIndicator.style.top=(null!==(r=null==a?void 0:a.offsetTop)&&void 0!==r?r:0)+(null!==(n=null==a?void 0:a.clientHeight)&&void 0!==n?n:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,e)=>{t.active=e==this.activeIndex}))}addTooltipIfNecessary(t,e){return this.dense&&t.label&&t.icon?X`
584
584
  <ft-tooltip class="ft-tabs--tab-tooltip"
585
585
  part="tab-tooltip"
586
586
  text="${t.label}"
587
587
  position="${this.contentBefore?"top":"bottom"}">
588
588
  ${e}
589
589
  </ft-tooltip>
590
- `:e}}lo.elementDefinitions={"ft-tab":Mt,"ft-ripple":ne,"ft-tooltip":ro,"ft-typography":zi,"ft-icon":Ji},lo.styles=Xi,no([o({type:Boolean})],lo.prototype,"dense",void 0),no([o({type:Boolean})],lo.prototype,"contentBefore",void 0),no([o()],lo.prototype,"alignTabs",void 0),no([s()],lo.prototype,"ftTabs",void 0),no([n("[role='tablist']")],lo.prototype,"tabsContainer",void 0),no([n("[aria-selected='true']")],lo.prototype,"activeTab",void 0),no([n(".ft-tabs--active-tab-indicator")],lo.prototype,"activeTabIndicator",void 0),no([o({type:Number,reflect:!0})],lo.prototype,"activeIndex",void 0);c("ft-tab")(Mt),c("ft-tabs")(lo),t.FtTab=Mt,t.FtTabCssVariables={},t.FtTabs=lo,t.FtTabsCssVariables=qi,t.IndexChangeEvent=ao,t.styles=Xi}({});
590
+ `:e}}co.elementDefinitions={"ft-tab":Ut,"ft-ripple":le,"ft-tooltip":ao,"ft-typography":Bi,"ft-icon":Xi},co.styles=Gi,lo([o({type:Boolean})],co.prototype,"dense",void 0),lo([o({type:Boolean})],co.prototype,"contentBefore",void 0),lo([o()],co.prototype,"alignTabs",void 0),lo([s()],co.prototype,"ftTabs",void 0),lo([n("[role='tablist']")],co.prototype,"tabsContainer",void 0),lo([n("[aria-selected='true']")],co.prototype,"activeTab",void 0),lo([n(".ft-tabs--active-tab-indicator")],co.prototype,"activeTabIndicator",void 0),lo([o({type:Number,reflect:!0})],co.prototype,"activeIndex",void 0);c("ft-tab")(Ut),c("ft-tabs")(co),t.FtTab=Ut,t.FtTabCssVariables={},t.FtTabs=co,t.FtTabsCssVariables=Yi,t.IndexChangeEvent=ho,t.styles=Gi}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-tabs",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Generic tabs component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "1.0.15",
23
- "@fluid-topics/ft-ripple": "1.0.15",
24
- "@fluid-topics/ft-tooltip": "1.0.15",
25
- "@fluid-topics/ft-typography": "1.0.15",
26
- "@fluid-topics/ft-wc-utils": "1.0.15",
22
+ "@fluid-topics/ft-icon": "1.0.17",
23
+ "@fluid-topics/ft-ripple": "1.0.17",
24
+ "@fluid-topics/ft-tooltip": "1.0.17",
25
+ "@fluid-topics/ft-typography": "1.0.17",
26
+ "@fluid-topics/ft-wc-utils": "1.0.17",
27
27
  "lit": "2.7.2"
28
28
  },
29
- "gitHead": "1790145546a4c4eb194a606ec2decb59f7339532"
29
+ "gitHead": "8764779376908b776e75e069c508e1da16fcf6b8"
30
30
  }