@fluid-topics/ft-select 0.3.71 → 1.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;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 l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=h(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.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=a;if(e)return a=void 0,e;const i=r.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 p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=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):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.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 n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,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),a=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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.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 n{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 r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(di){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{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,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;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 l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=h(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.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=a;if(e)return a=void 0,e;const i=r.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 p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=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):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.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 n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,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),a=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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const v=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.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 n{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 r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(mi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{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
@@ -46,34 +46,24 @@ function n(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
46
46
  * Copyright 2019 Google LLC
47
47
  * SPDX-License-Identifier: BSD-3-Clause
48
48
  */
49
- const p=window,c=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),f=new WeakMap;class d{constructor(t,e,i){if(this._$cssResult$=!0,i!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&f.set(e,t))}return t}toString(){return this.cssText}}const u=t=>new d("string"==typeof t?t:t+"",void 0,h),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new d(i,t,h)},x=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},v=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return u(e)})(t):t
49
+ const p=window,c=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),f=new WeakMap;let d=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&f.set(e,t))}return t}toString(){return this.cssText}};const u=t=>new d("string"==typeof t?t:t+"",void 0,h),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new d(i,t,h)},x=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},v=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return u(e)})(t):t
50
50
  /**
51
51
  * @license
52
52
  * Copyright 2017 Google LLC
53
53
  * SPDX-License-Identifier: BSD-3-Clause
54
- */;var b;const g=window,m=g.trustedTypes,w=m?m.emptyScript:"",$=g.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>e!==t&&(e==e||t==t),k={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};class E extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=k){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:O).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:O;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||S)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
54
+ */;var b;const g=window,m=g.trustedTypes,w=m?m.emptyScript:"",$=g.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>e!==t&&(e==e||t==t),k={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};let E=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=k){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:O).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:O;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||S)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
55
55
  /**
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
59
  */
60
- var N;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:E}),(null!==(b=g.reactiveElementVersions)&&void 0!==b?b:g.reactiveElementVersions=[]).push("1.4.1");const C=window,M=C.trustedTypes,R=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,z="?"+U,j=`<${z}>`,F=document,A=(t="")=>F.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,P=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,T=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,H=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),q=new WeakMap,X=F.createTreeWalker(F,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=L;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===L?"!--"===a[1]?r=_:void 0!==a[1]?r=T:void 0!==a[2]?(K.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=I):void 0!==a[3]&&(r=I):r===I?">"===a[0]?(r=null!=s?s:L,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?I:'"'===a[3]?H:W):r===H||r===W?r=I:r===_||r===T?r=L:(r=I,s=void 0);const h=r===I&&t[e+1].startsWith("/>")?" ":"";n+=r===L?i+j:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+U+h):i+U+(-2===p?(o.push(void 0),e):h)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(l):l,o]};class G{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=Y(t,e);if(this.el=G.createElement(a,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?nt:"@"===e[1]?rt:it})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),X.nextNode(),l.push({type:2,index:++s});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)l.push({type:7,index:s}),t+=U.length-1}s++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var s,n,r,l;if(e===V)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=B(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=Q(t,a._$AS(t,e.values),a,o)),e}class tt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);X.currentNode=s;let n=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new et(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new lt(n,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=X.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,o){var s;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),B(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):P(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==J&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=G.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new tt(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new G(t)),e}k(t){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new et(this.O(A()),this.O(A()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,o,s){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=Q(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Q(this,o[i+r],e,r),l===V&&(l=this._$AH[r]),n||(n=!B(l)||l!==this._$AH[r]),l===J?t=J:t!==J&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const st=M?M.emptyScript:"";class nt extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class rt extends it{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Q(this,t,e,0))&&void 0!==i?i:J)===V)return;const o=this._$AH,s=t===J&&o!==J||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==J&&(o===J||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const at={P:"$lit$",A:U,M:z,C:1,L:Y,R:tt,D:P,V:Q,I:et,H:it,N:nt,U:rt,B:ot,F:lt},pt=C.litHtmlPolyfillSupport;null==pt||pt(G,et),(null!==(N=C.litHtmlVersions)&&void 0!==N?N:C.litHtmlVersions=[]).push("2.4.0");
60
+ var N;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:E}),(null!==(b=g.reactiveElementVersions)&&void 0!==b?b:g.reactiveElementVersions=[]).push("1.6.1");const C=window,M=C.trustedTypes,R=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,j="?"+z,F=`<${j}>`,A=document,D=()=>A.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,L=t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),_="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,W=/>/g,H=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,Z=/"/g,V=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Y=new WeakMap,G=A.createTreeWalker(A,129,null,!1),Q=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=I;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===I?"!--"===a[1]?r=T:void 0!==a[1]?r=W:void 0!==a[2]?(V.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=H):void 0!==a[3]&&(r=H):r===H?">"===a[0]?(r=null!=s?s:I,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?H:'"'===a[3]?Z:K):r===Z||r===K?r=H:r===T||r===W?r=I:(r=H,s=void 0);const h=r===H&&t[e+1].startsWith("/>")?" ":"";n+=r===I?i+F:p>=0?(o.push(l),i.slice(0,p)+U+i.slice(p)+z+h):i+z+(-2===p?(o.push(void 0),e):h)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(l):l,o]};class tt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=Q(t,e);if(this.el=tt.createElement(a,i),G.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=G.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(U)||e.startsWith(z)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+U).split(z),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?lt:"@"===e[1]?at:st})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(V.test(o.tagName)){const t=o.textContent.split(z),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],D()),G.nextNode(),l.push({type:2,index:++s});o.append(t[e],D())}}}else if(8===o.nodeType)if(o.data===j)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)l.push({type:7,index:s}),t+=z.length-1}s++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function et(t,e,i=t,o){var s,n,r,l;if(e===q)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=B(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=et(t,a._$AS(t,e.values),a,o)),e}class it{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);G.currentNode=s;let n=G.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new ot(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new pt(n,this,t)),this._$AV.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=G.nextNode(),r++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class ot{constructor(t,e,i,o){var s;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),B(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):L(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==X&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=tt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new it(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new tt(t)),e}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new ot(this.k(D()),this.k(D()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class st{constructor(t,e,i,o,s){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=et(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==q,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=et(this,o[i+r],e,r),l===q&&(l=this._$AH[r]),n||(n=!B(l)||l!==this._$AH[r]),l===X?t=X:t!==X&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends st{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===X?void 0:t}}const rt=M?M.emptyScript:"";class lt extends st{constructor(){super(...arguments),this.type=4}j(t){t&&t!==X?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class at extends st{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=et(this,t,e,0))&&void 0!==i?i:X)===q)return;const o=this._$AH,s=t===X&&o!==X||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==X&&(o===X||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class pt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}}const ct={O:U,P:z,A:j,C:1,M:Q,L:it,D:L,R:et,I:ot,V:st,H:lt,N:at,U:nt,F:pt},ht=C.litHtmlPolyfillSupport;null==ht||ht(tt,ot),(null!==(N=C.litHtmlVersions)&&void 0!==N?N:C.litHtmlVersions=[]).push("2.7.3");
61
61
  /**
62
62
  * @license
63
63
  * Copyright 2017 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
65
  */
66
- var ct,ht;class ft 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 n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new et(e.insertBefore(A(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(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 V}}ft.finalized=!0,ft._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:ft});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ft}),(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.2.2");class ut{static create(t,e,i){let o=t=>u(null!=t?t:i),s=y`var(${u(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${u(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=y`var(${u(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${u(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):u(null!=e?e:t.defaultValue),o=y`var(${u(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=>y`var(${u(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}}function yt(t,e){return u(`${t.name}: ${e}`)}const xt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
67
- /**
68
- * @license
69
- * Copyright 2021 Google LLC
70
- * SPDX-License-Identifier: BSD-3-Clause
71
- */var vt,bt,gt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class mt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(s,this.constructor.elementStyles),s}}}(ft)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),Z`
72
- ${t.map((t=>Z`
73
- <style>${t}</style>
74
- `))}
75
- ${this.getTemplate()}
76
- `}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.exportpartsDebouncer.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,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const p=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!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}gt([o()],mt.prototype,"exportpartsPrefix",void 0),gt([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)=>!l(t,e),...null!=e?e:{}})}([])],mt.prototype,"exportpartsPrefixes",void 0),gt([o()],mt.prototype,"customStylesheet",void 0),y`
66
+ var ft,dt;let ut=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 n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new ot(e.insertBefore(D(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(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 q}};ut.finalized=!0,ut._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:ut});const yt=globalThis.litElementPolyfillSupport;null==yt||yt({LitElement:ut}),(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.3.2");class xt{static create(t,e,i){let o=t=>u(null!=t?t:i),s=y`var(${u(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${u(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=y`var(${u(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${u(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):u(null!=e?e:t.defaultValue),o=y`var(${u(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=>y`var(${u(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}}function vt(t,e){return u(`${t.name}: ${e}`)}const bt={colorPrimary:xt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:xt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:xt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:xt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:xt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:xt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xt.create("--ft-color-error","COLOR","#B00020"),colorOutline:xt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:xt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:xt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:xt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:xt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:xt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:xt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:xt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:xt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:xt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:xt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:xt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:xt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:xt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:xt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:xt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.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:xt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:xt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:xt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:xt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:xt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:xt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class gt extends ut{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 x(i,t.elementStyles),i}}var mt,wt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const $t=Symbol("constructorPrototype"),Ot=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class kt extends gt{constructor(){super(),this[mt]=new e(5),this[Ot]=this.constructor.name,this[$t]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ot]&&Object.setPrototypeOf(this,this[$t])}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[St].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,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const p=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!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var Et,Nt;mt=St,wt([o()],kt.prototype,"exportpartsPrefix",void 0),wt([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)=>!l(t,e),...null!=e?e:{}})}([])],kt.prototype,"exportpartsPrefixes",void 0),wt([o()],kt.prototype,"customStylesheet",void 0),y`
77
67
  .ft-no-text-select {
78
68
  -webkit-touch-callout: none;
79
69
  -webkit-user-select: none;
@@ -105,70 +95,51 @@ var ct,ht;class ft extends E{constructor(){super(...arguments),this.renderOption
105
95
  display: inline-block;
106
96
  width: 0;
107
97
  }
108
- `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(bt=null===(vt=window.safari)||void 0===vt?void 0:vt.pushNotification)||void 0===bt||bt.toString());
98
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Nt=null===(Et=window.safari)||void 0===Et?void 0:Et.pushNotification)||void 0===Nt||Nt.toString());
109
99
  /**
110
100
  * @license
111
101
  * Copyright 2017 Google LLC
112
102
  * SPDX-License-Identifier: BSD-3-Clause
113
103
  */
114
- const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{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)}}
104
+ const Ct=1,Mt=2,Rt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{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)}}
115
105
  /**
116
106
  * @license
117
107
  * Copyright 2018 Google LLC
118
108
  * SPDX-License-Identifier: BSD-3-Clause
119
- */const kt=Ot(class extends St{constructor(t){var e;if(super(t),t.type!==wt||"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.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return V}}),{I:Et}=at,Nt=()=>document.createComment(""),Ct=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Nt(),n),o=s.insertBefore(Nt(),n);i=new Et(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Mt=(t,e,i=t)=>(t._$AI(e,i),t),Rt={},Ut=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}},zt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},jt=Ot(class extends St{constructor(t){if(super(t),t.type!==$t)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],p=[];let c,h,f=0,d=n.length-1,u=0,y=r.length-1;for(;f<=d&&u<=y;)if(null===n[f])f++;else if(null===n[d])d--;else if(a[f]===l[u])p[u]=Mt(n[f],r[u]),f++,u++;else if(a[d]===l[y])p[y]=Mt(n[d],r[y]),d--,y--;else if(a[f]===l[y])p[y]=Mt(n[f],r[y]),Ct(t,p[y+1],n[f]),f++,y--;else if(a[d]===l[u])p[u]=Mt(n[d],r[u]),Ct(t,n[f],n[d]),d--,u++;else if(void 0===c&&(c=zt(l,u,y),h=zt(a,f,d)),c.has(a[f]))if(c.has(a[d])){const e=h.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Ct(t,n[f]);Mt(e,r[u]),p[u]=e}else p[u]=Mt(i,r[u]),Ct(t,n[f],i),n[e]=null;u++}else Ut(n[d]),d--;else Ut(n[f]),f++;for(;u<=y;){const e=Ct(t,p[y+1]);Mt(e,r[u]),p[u++]=e}for(;f<=d;){const t=n[f++];null!==t&&Ut(t)}return this.ut=l,((t,e=Rt)=>{t._$AH=e})(t,p),V}}),Ft=Symbol.for(""),At=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void 0:t._$litStatic$},Bt=t=>({_$litStatic$:t,r:Ft}),Dt=new Map,Pt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=At(n));)a+=s+e[++p],c=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Dt.get(t))&&(r.raw=r,Dt.set(t,e=r)),i=l}return t(e,...i)})(Z);
109
+ */const zt=Rt(class extends Ut{constructor(t){var e;if(super(t),t.type!==Ct||"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 q}}),{I:jt}=ct,Ft=()=>document.createComment(""),At=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Ft(),n),o=s.insertBefore(Ft(),n);i=new jt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Dt=(t,e,i=t)=>(t._$AI(e,i),t),Bt={},Pt=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}},Lt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},_t=Rt(class extends Ut{constructor(t){if(super(t),t.type!==Mt)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=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.ht=l,r;const a=null!==(s=this.ht)&&void 0!==s?s:this.ht=[],p=[];let c,h,f=0,d=n.length-1,u=0,y=r.length-1;for(;f<=d&&u<=y;)if(null===n[f])f++;else if(null===n[d])d--;else if(a[f]===l[u])p[u]=Dt(n[f],r[u]),f++,u++;else if(a[d]===l[y])p[y]=Dt(n[d],r[y]),d--,y--;else if(a[f]===l[y])p[y]=Dt(n[f],r[y]),At(t,p[y+1],n[f]),f++,y--;else if(a[d]===l[u])p[u]=Dt(n[d],r[u]),At(t,n[f],n[d]),d--,u++;else if(void 0===c&&(c=Lt(l,u,y),h=Lt(a,f,d)),c.has(a[f]))if(c.has(a[d])){const e=h.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=At(t,n[f]);Dt(e,r[u]),p[u]=e}else p[u]=Dt(i,r[u]),At(t,n[f],i),n[e]=null;u++}else Pt(n[d]),d--;else Pt(n[f]),f++;for(;u<=y;){const e=At(t,p[y+1]);Dt(e,r[u]),p[u++]=e}for(;f<=d;){const t=n[f++];null!==t&&Pt(t)}return this.ht=l,((t,e=Bt)=>{t._$AH=e})(t,p),q}}),It=Symbol.for(""),Tt=t=>{if((null==t?void 0:t.r)===It)return null==t?void 0:t._$litStatic$},Wt=t=>({_$litStatic$:t,r:It}),Ht=new Map,Kt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=Tt(n));)a+=s+e[++p],c=!0;p!==o&&l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Ht.get(t))&&(r.raw=r,Ht.set(t,e=r)),i=l}return t(e,...i)})(J);
120
110
  /**
121
111
  * @license
122
112
  * Copyright 2020 Google LLC
123
113
  * SPDX-License-Identifier: BSD-3-Clause
124
- */var Lt;!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"}(Lt||(Lt={}));const _t=ut.extend("--ft-typography-font-family",xt.titleFont),Tt=ut.extend("--ft-typography-font-family",xt.contentFont),It={fontFamily:Tt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=ut.extend("--ft-typography-title-font-family",_t),Ht=ut.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Kt=ut.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Zt=ut.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Vt=ut.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Jt=ut.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),qt=ut.extend("--ft-typography-title-dense-font-family",_t),Xt=ut.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),Yt=ut.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Gt=ut.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Qt=ut.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),te=ut.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),ee=ut.extend("--ft-typography-subtitle1-font-family",Tt),ie=ut.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),oe=ut.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),se=ut.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),ne=ut.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),re=ut.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),le=ut.extend("--ft-typography-subtitle2-font-family",Tt),ae=ut.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),pe=ut.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),ce=ut.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),he=ut.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),fe=ut.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),de={fontFamily:ut.extend("--ft-typography-body1-font-family",Tt),fontSize:ut.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),fontWeight:ut.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),lineHeight:ut.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),textTransform:ut.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit")},ue=ut.extend("--ft-typography-body2-font-family",Tt),ye=ut.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),xe=ut.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),ve=ut.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),be=ut.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),ge=ut.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit"),me={fontFamily:ut.extend("--ft-typography-caption-font-family",Tt),fontSize:ut.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),fontWeight:ut.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),lineHeight:ut.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),textTransform:ut.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit")},we=ut.extend("--ft-typography-breadcrumb-font-family",Tt),$e=ut.extend("--ft-typography-breadcrumb-font-size",It.fontSize,"10px"),Oe=ut.extend("--ft-typography-breadcrumb-font-weight",It.fontWeight,"normal"),Se=ut.extend("--ft-typography-breadcrumb-letter-spacing",It.letterSpacing,"0.33px"),ke=ut.extend("--ft-typography-breadcrumb-line-height",It.lineHeight,"1.6"),Ee=ut.extend("--ft-typography-breadcrumb-text-transform",It.textTransform,"inherit"),Ne=ut.extend("--ft-typography-overline-font-family",Tt),Ce=ut.extend("--ft-typography-overline-font-size",It.fontSize,"10px"),Me=ut.extend("--ft-typography-overline-font-weight",It.fontWeight,"normal"),Re=ut.extend("--ft-typography-overline-letter-spacing",It.letterSpacing,"1.5px"),Ue=ut.extend("--ft-typography-overline-line-height",It.lineHeight,"1.6"),ze=ut.extend("--ft-typography-overline-text-transform",It.textTransform,"uppercase"),je=ut.extend("--ft-typography-button-font-family",Tt),Fe=ut.extend("--ft-typography-button-font-size",It.fontSize,"14px"),Ae=ut.extend("--ft-typography-button-font-weight",It.fontWeight,"600"),Be=ut.extend("--ft-typography-button-letter-spacing",It.letterSpacing,"1.246px"),De=ut.extend("--ft-typography-button-line-height",It.lineHeight,"1.15"),Pe=ut.extend("--ft-typography-button-text-transform",It.textTransform,"uppercase"),Le=y`
114
+ */var Zt;!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"}(Zt||(Zt={}));const Vt=xt.extend("--ft-typography-font-family",bt.titleFont),Jt=xt.extend("--ft-typography-font-family",bt.contentFont),qt={fontFamily:Jt,fontSize:xt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:xt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:xt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:xt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:xt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=xt.extend("--ft-typography-title-font-family",Vt),Yt=xt.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=xt.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=xt.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),te=xt.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ee=xt.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ie=xt.extend("--ft-typography-title-dense-font-family",Vt),oe=xt.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),se=xt.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),ne=xt.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),re=xt.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),le=xt.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),ae=xt.extend("--ft-typography-subtitle1-font-family",Jt),pe=xt.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),ce=xt.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),he=xt.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fe=xt.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),de=xt.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ue=xt.extend("--ft-typography-subtitle2-font-family",Jt),ye=xt.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),xe=xt.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),ve=xt.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),be=xt.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),ge=xt.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),me={fontFamily:xt.extend("--ft-typography-body1-font-family",Jt),fontSize:xt.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),fontWeight:xt.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),lineHeight:xt.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),textTransform:xt.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit")},we=xt.extend("--ft-typography-body2-font-family",Jt),$e=xt.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Oe=xt.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),Se=xt.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),ke=xt.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),Ee=xt.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),Ne={fontFamily:xt.extend("--ft-typography-caption-font-family",Jt),fontSize:xt.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),fontWeight:xt.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),lineHeight:xt.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),textTransform:xt.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit")},Ce=xt.extend("--ft-typography-breadcrumb-font-family",Jt),Me=xt.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),Re=xt.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),Ue=xt.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),ze=xt.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),je=xt.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),Fe=xt.extend("--ft-typography-overline-font-family",Jt),Ae=xt.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),De=xt.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Be=xt.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Pe=xt.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),Le=xt.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),_e=xt.extend("--ft-typography-button-font-family",Jt),Ie=xt.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),Te=xt.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),We=xt.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),He=xt.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),Ke=xt.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase"),Ze=y`
125
115
  .ft-typography--title {
126
- font-family: ${Wt};
127
- font-size: ${Ht};
128
- font-weight: ${Kt};
129
- letter-spacing: ${Zt};
130
- line-height: ${Vt};
131
- text-transform: ${Jt};
132
- }
133
- `,_e=y`
116
+ font-family: ${Xt};
117
+ font-size: ${Yt};
118
+ font-weight: ${Gt};
119
+ letter-spacing: ${Qt};
120
+ line-height: ${te};
121
+ text-transform: ${ee};
122
+ }
123
+ `,Ve=y`
134
124
  .ft-typography--title-dense {
135
- font-family: ${qt};
136
- font-size: ${Xt};
137
- font-weight: ${Yt};
138
- letter-spacing: ${Gt};
139
- line-height: ${Qt};
140
- text-transform: ${te};
141
- }
142
- `,Te=y`
125
+ font-family: ${ie};
126
+ font-size: ${oe};
127
+ font-weight: ${se};
128
+ letter-spacing: ${ne};
129
+ line-height: ${re};
130
+ text-transform: ${le};
131
+ }
132
+ `,Je=y`
143
133
  .ft-typography--subtitle1 {
144
- font-family: ${ee};
145
- font-size: ${ie};
146
- font-weight: ${oe};
147
- letter-spacing: ${se};
148
- line-height: ${ne};
149
- text-transform: ${re};
150
- }
151
- `,Ie=y`
152
- .ft-typography--subtitle2 {
153
- font-family: ${le};
154
- font-size: ${ae};
155
- font-weight: ${pe};
156
- letter-spacing: ${ce};
157
- line-height: ${he};
158
- text-transform: ${fe};
134
+ font-family: ${ae};
135
+ font-size: ${pe};
136
+ font-weight: ${ce};
137
+ letter-spacing: ${he};
138
+ line-height: ${fe};
139
+ text-transform: ${de};
159
140
  }
160
-
161
- `,We=y`
162
- .ft-typography--body1 {
163
- font-family: ${de.fontFamily};
164
- font-size: ${de.fontSize};
165
- font-weight: ${de.fontWeight};
166
- letter-spacing: ${de.letterSpacing};
167
- line-height: ${de.lineHeight};
168
- text-transform: ${de.textTransform};
169
- }
170
- `,He=y`
171
- .ft-typography--body2 {
141
+ `,qe=y`
142
+ .ft-typography--subtitle2 {
172
143
  font-family: ${ue};
173
144
  font-size: ${ye};
174
145
  font-weight: ${xe};
@@ -176,8 +147,9 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
176
147
  line-height: ${be};
177
148
  text-transform: ${ge};
178
149
  }
179
- `,Ke=y`
180
- .ft-typography--caption {
150
+
151
+ `,Xe=y`
152
+ .ft-typography--body1 {
181
153
  font-family: ${me.fontFamily};
182
154
  font-size: ${me.fontSize};
183
155
  font-weight: ${me.fontWeight};
@@ -185,8 +157,8 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
185
157
  line-height: ${me.lineHeight};
186
158
  text-transform: ${me.textTransform};
187
159
  }
188
- `,Ze=y`
189
- .ft-typography--breadcrumb {
160
+ `,Ye=y`
161
+ .ft-typography--body2 {
190
162
  font-family: ${we};
191
163
  font-size: ${$e};
192
164
  font-weight: ${Oe};
@@ -194,54 +166,72 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
194
166
  line-height: ${ke};
195
167
  text-transform: ${Ee};
196
168
  }
197
- `,Ve=y`
169
+ `,Ge=y`
170
+ .ft-typography--caption {
171
+ font-family: ${Ne.fontFamily};
172
+ font-size: ${Ne.fontSize};
173
+ font-weight: ${Ne.fontWeight};
174
+ letter-spacing: ${Ne.letterSpacing};
175
+ line-height: ${Ne.lineHeight};
176
+ text-transform: ${Ne.textTransform};
177
+ }
178
+ `,Qe=y`
179
+ .ft-typography--breadcrumb {
180
+ font-family: ${Ce};
181
+ font-size: ${Me};
182
+ font-weight: ${Re};
183
+ letter-spacing: ${Ue};
184
+ line-height: ${ze};
185
+ text-transform: ${je};
186
+ }
187
+ `,ti=y`
198
188
  .ft-typography--overline {
199
- font-family: ${Ne};
200
- font-size: ${Ce};
201
- font-weight: ${Me};
202
- letter-spacing: ${Re};
203
- line-height: ${Ue};
204
- text-transform: ${ze};
205
- }
206
- `,Je=y`
207
- .ft-typography--button {
208
- font-family: ${je};
209
- font-size: ${Fe};
210
- font-weight: ${Ae};
189
+ font-family: ${Fe};
190
+ font-size: ${Ae};
191
+ font-weight: ${De};
211
192
  letter-spacing: ${Be};
212
- line-height: ${De};
213
- text-transform: ${Pe};
193
+ line-height: ${Pe};
194
+ text-transform: ${Le};
214
195
  }
215
- `,qe=y`
196
+ `,ei=y`
197
+ .ft-typography--button {
198
+ font-family: ${_e};
199
+ font-size: ${Ie};
200
+ font-weight: ${Te};
201
+ letter-spacing: ${We};
202
+ line-height: ${He};
203
+ text-transform: ${Ke};
204
+ }
205
+ `,ii=y`
216
206
  .ft-typography {
217
207
  vertical-align: inherit;
218
208
  }
219
- `;var Xe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ye extends mt{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?Pt`
220
- <${Bt(this.element)}
209
+ `;var oi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class si extends kt{constructor(){super(...arguments),this.variant=Zt.body1}render(){return this.element?Kt`
210
+ <${Wt(this.element)}
221
211
  class="ft-typography ft-typography--${this.variant}">
222
212
  <slot></slot>
223
- </${Bt(this.element)}>
224
- `:Pt`
213
+ </${Wt(this.element)}>
214
+ `:Kt`
225
215
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
226
- `}}Ye.styles=[Le,_e,Te,Ie,We,He,Ke,Ze,Ve,Je,qe],Xe([o()],Ye.prototype,"element",void 0),Xe([o()],Ye.prototype,"variant",void 0),a("ft-typography")(Ye);const Ge={fontSize:ut.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ut.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ut.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ut.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:ut.create("--ft-input-label-max-width","SIZE","100%"),borderColor:ut.extend("--ft-input-label-border-color",xt.colorOutline),textColor:ut.extend("--ft-input-label-text-color",xt.colorOnSurfaceMedium),disabledTextColor:ut.extend("--ft-input-label-disabled-text-color",xt.colorOnSurfaceDisabled),colorSurface:ut.external(xt.colorSurface,"Design system"),borderRadiusS:ut.external(xt.borderRadiusS,"Design system"),colorError:ut.external(xt.colorError,"Design system")},Qe=y`
216
+ `}}si.styles=[Ze,Ve,Je,qe,Xe,Ye,Ge,Qe,ti,ei,ii],oi([o()],si.prototype,"element",void 0),oi([o()],si.prototype,"variant",void 0),a("ft-typography")(si);const ni={fontSize:xt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:xt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:xt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:xt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:xt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:xt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:xt.extend("--ft-input-label-border-color",bt.colorOutline),textColor:xt.extend("--ft-input-label-text-color",bt.colorOnSurfaceMedium),disabledTextColor:xt.extend("--ft-input-label-disabled-text-color",bt.colorOnSurfaceDisabled),colorSurface:xt.external(bt.colorSurface,"Design system"),borderRadiusS:xt.external(bt.borderRadiusS,"Design system"),colorError:xt.external(bt.colorError,"Design system")},ri=y`
227
217
  .ft-input-label {
228
218
  position: absolute;
229
219
  inset: 0;
230
220
  display: flex;
231
- background-color: ${Ge.colorSurface};
232
- border-radius: ${Ge.borderRadiusS} ${Ge.borderRadiusS} 0 0;
221
+ background-color: ${ni.colorSurface};
222
+ border-radius: ${ni.borderRadiusS} ${ni.borderRadiusS} 0 0;
233
223
  }
234
224
 
235
225
  .ft-input-label--outlined {
236
- border-radius: ${Ge.borderRadiusS};
226
+ border-radius: ${ni.borderRadiusS};
237
227
  }
238
228
 
239
229
  .ft-input-label {
240
- border-color: ${Ge.borderColor};
230
+ border-color: ${ni.borderColor};
241
231
  }
242
232
 
243
233
  .ft-input-label.ft-input-label--in-error {
244
- border-color: ${Ge.colorError}
234
+ border-color: ${ni.colorError}
245
235
  }
246
236
 
247
237
  .ft-input-label:before,
@@ -254,7 +244,7 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
254
244
  }
255
245
 
256
246
  .ft-input-label:before {
257
- width: calc(${Ge.horizontalSpacing} - 4px);
247
+ width: calc(${ni.horizontalSpacing} - 4px);
258
248
  flex-shrink: 0;
259
249
  }
260
250
 
@@ -270,20 +260,20 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
270
260
  border-bottom-width: 1px;
271
261
  border-bottom-style: solid;
272
262
  border-color: inherit;
273
- color: ${Ge.textColor};
263
+ color: ${ni.textColor};
274
264
  transition: font-size 250ms, line-height 250ms, color 250ms;
275
- max-width: calc(${Ge.labelMaxWidth} - 2 * (${Ge.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
265
+ max-width: calc(${ni.labelMaxWidth} - 2 * (${ni.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
276
266
  text-overflow: ellipsis;
277
- ${yt(me.fontSize,Ge.fontSize)};
278
- ${yt(me.lineHeight,Ge.fontSize)};
267
+ ${vt(Ne.fontSize,ni.fontSize)};
268
+ ${vt(Ne.lineHeight,ni.fontSize)};
279
269
  }
280
270
 
281
271
  .ft-input-label--in-error .ft-input-label--text {
282
- color: ${Ge.colorError}
272
+ color: ${ni.colorError}
283
273
  }
284
274
 
285
275
  .ft-input-label--disabled .ft-input-label--text {
286
- color: ${Ge.disabledTextColor};
276
+ color: ${ni.disabledTextColor};
287
277
  }
288
278
 
289
279
  .ft-input-label--hidden-text {
@@ -300,19 +290,19 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
300
290
  overflow: hidden;
301
291
  white-space: nowrap;
302
292
  text-overflow: ellipsis;
303
- padding: ${Ge.verticalSpacing} 4px;
304
- margin: calc(${Ge.verticalSpacing} * -1) 0;
293
+ padding: ${ni.verticalSpacing} 4px;
294
+ margin: calc(${ni.verticalSpacing} * -1) 0;
305
295
  max-width: 100%;
306
296
  box-sizing: border-box;
307
297
  }
308
298
 
309
299
  .ft-input-label--raised .ft-input-label--text {
310
- ${yt(me.fontSize,Ge.raisedFontSize)};
311
- ${yt(me.lineHeight,Ge.raisedFontSize)};
300
+ ${vt(Ne.fontSize,ni.raisedFontSize)};
301
+ ${vt(Ne.lineHeight,ni.raisedFontSize)};
312
302
  }
313
303
 
314
304
  .ft-input-label--raised .ft-input-label--floating-text {
315
- top: ${Ge.verticalSpacing};
305
+ top: ${ni.verticalSpacing};
316
306
  }
317
307
 
318
308
  .ft-input-label--outlined .ft-input-label--text,
@@ -325,36 +315,36 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
325
315
  .ft-input-label--outlined:before {
326
316
  border-left-width: 1px;
327
317
  border-left-style: solid;
328
- border-radius: ${Ge.borderRadiusS} 0 0 ${Ge.borderRadiusS};
318
+ border-radius: ${ni.borderRadiusS} 0 0 ${ni.borderRadiusS};
329
319
  }
330
320
 
331
321
  .ft-input-label--outlined:after {
332
322
  border-right-width: 1px;
333
323
  border-right-style: solid;
334
- border-radius: 0 ${Ge.borderRadiusS} ${Ge.borderRadiusS} 0;
324
+ border-radius: 0 ${ni.borderRadiusS} ${ni.borderRadiusS} 0;
335
325
  }
336
326
 
337
327
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
338
328
  padding: 2px 4px;
339
- z-index: ${Ge.raisedZIndex};
340
- background-color: ${Ge.colorSurface};
341
- border-radius: ${Ge.borderRadiusS};
329
+ z-index: ${ni.raisedZIndex};
330
+ background-color: ${ni.colorSurface};
331
+ border-radius: ${ni.borderRadiusS};
342
332
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
343
333
  }
344
334
 
345
335
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
346
336
  border-top: none;
347
337
  }
348
- `;var ti=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ei extends mt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Z`
349
- <div class="${kt(t)}">
350
- ${this.text?Z`
338
+ `;var li=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ai extends kt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return J`
339
+ <div class="${zt(t)}">
340
+ ${this.text?J`
351
341
  <div class="ft-input-label--text ft-typography--caption">
352
342
  <span class="ft-input-label--floating-text">${this.text}</span>
353
343
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
354
344
  </div>
355
345
  `:null}
356
346
  </div>
357
- `}}ei.elementDefinitions={},ei.styles=[Ke,Qe],ti([o({type:String})],ei.prototype,"text",void 0),ti([o({type:Boolean})],ei.prototype,"raised",void 0),ti([o({type:Boolean})],ei.prototype,"outlined",void 0),ti([o({type:Boolean})],ei.prototype,"disabled",void 0),ti([o({type:Boolean})],ei.prototype,"error",void 0),a("ft-input-label")(ei);const ii=ut.extend("--ft-ripple-color",xt.colorContent),oi={color:ii,backgroundColor:ut.extend("--ft-ripple-background-color",ii),opacityContentOnSurfacePressed:ut.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(xt.opacityContentOnSurfaceSelected,"Design system")},si=ut.extend("--ft-ripple-color",xt.colorPrimary),ni=si,ri=ut.extend("--ft-ripple-background-color",si),li=ut.extend("--ft-ripple-color",xt.colorSecondary),ai=li,pi=ut.extend("--ft-ripple-background-color",li),ci=y`
347
+ `}}ai.elementDefinitions={},ai.styles=[Ge,ri],li([o({type:String})],ai.prototype,"text",void 0),li([o({type:Boolean})],ai.prototype,"raised",void 0),li([o({type:Boolean})],ai.prototype,"outlined",void 0),li([o({type:Boolean})],ai.prototype,"disabled",void 0),li([o({type:Boolean})],ai.prototype,"error",void 0),a("ft-input-label")(ai);const pi=xt.extend("--ft-ripple-color",bt.colorContent),ci={color:pi,backgroundColor:xt.extend("--ft-ripple-background-color",pi),opacityContentOnSurfacePressed:xt.external(bt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xt.external(bt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xt.external(bt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xt.external(bt.opacityContentOnSurfaceSelected,"Design system")},hi=xt.extend("--ft-ripple-color",bt.colorPrimary),fi=hi,di=xt.extend("--ft-ripple-background-color",hi),ui=xt.extend("--ft-ripple-color",bt.colorSecondary),yi=ui,xi=xt.extend("--ft-ripple-background-color",ui),vi=y`
358
348
  :host {
359
349
  display: contents;
360
350
  }
@@ -376,27 +366,27 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
376
366
  }
377
367
 
378
368
  .ft-ripple .ft-ripple--background {
379
- background-color: ${oi.backgroundColor};
369
+ background-color: ${ci.backgroundColor};
380
370
  }
381
371
 
382
372
  .ft-ripple .ft-ripple--effect {
383
- background-color: ${oi.color};
373
+ background-color: ${ci.color};
384
374
  }
385
375
 
386
376
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
387
- background-color: ${pi};
377
+ background-color: ${xi};
388
378
  }
389
379
 
390
380
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
391
- background-color: ${ai};
381
+ background-color: ${yi};
392
382
  }
393
383
 
394
384
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
395
- background-color: ${ri};
385
+ background-color: ${di};
396
386
  }
397
387
 
398
388
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
399
- background-color: ${ni};
389
+ background-color: ${fi};
400
390
  }
401
391
 
402
392
  .ft-ripple .ft-ripple--background {
@@ -428,22 +418,22 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
428
418
  }
429
419
 
430
420
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
431
- opacity: ${oi.opacityContentOnSurfaceHover};
421
+ opacity: ${ci.opacityContentOnSurfaceHover};
432
422
  }
433
423
 
434
424
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
435
- opacity: ${oi.opacityContentOnSurfaceSelected};
425
+ opacity: ${ci.opacityContentOnSurfaceSelected};
436
426
  }
437
427
 
438
428
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
439
- opacity: ${oi.opacityContentOnSurfaceFocused};
429
+ opacity: ${ci.opacityContentOnSurfaceFocused};
440
430
  }
441
431
 
442
432
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
443
- opacity: ${oi.opacityContentOnSurfacePressed};
433
+ opacity: ${ci.opacityContentOnSurfacePressed};
444
434
  transform: translate(-50%, -50%) scale(1);
445
435
  }
446
- `;var hi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class fi extends mt{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),n=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-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.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 Z`
436
+ `;var bi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class gi extends kt{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),n=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-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.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 J`
447
437
  <style>
448
438
  .ft-ripple .ft-ripple--effect,
449
439
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -456,17 +446,17 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
456
446
  top: ${this.originY}px;
457
447
  }
458
448
  </style>
459
- <div class="${kt(t)}">
449
+ <div class="${zt(t)}">
460
450
  <div class="ft-ripple--background"></div>
461
451
  <div class="ft-ripple--effect"></div>
462
452
  </div>
463
- `}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((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(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()}}fi.elementDefinitions={},fi.styles=ci,hi([o({type:Boolean})],fi.prototype,"primary",void 0),hi([o({type:Boolean})],fi.prototype,"secondary",void 0),hi([o({type:Boolean})],fi.prototype,"unbounded",void 0),hi([o({type:Boolean})],fi.prototype,"activated",void 0),hi([o({type:Boolean})],fi.prototype,"selected",void 0),hi([o({type:Boolean})],fi.prototype,"disabled",void 0),hi([s()],fi.prototype,"hovered",void 0),hi([s()],fi.prototype,"focused",void 0),hi([s()],fi.prototype,"pressed",void 0),hi([s()],fi.prototype,"rippling",void 0),hi([s()],fi.prototype,"rippleSize",void 0),hi([s()],fi.prototype,"originX",void 0),hi([s()],fi.prototype,"originY",void 0),hi([n(".ft-ripple")],fi.prototype,"ripple",void 0),hi([n(".ft-ripple--effect")],fi.prototype,"rippleEffect",void 0),a("ft-ripple")(fi);
453
+ `}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((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(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()}}gi.elementDefinitions={},gi.styles=vi,bi([o({type:Boolean})],gi.prototype,"primary",void 0),bi([o({type:Boolean})],gi.prototype,"secondary",void 0),bi([o({type:Boolean})],gi.prototype,"unbounded",void 0),bi([o({type:Boolean})],gi.prototype,"activated",void 0),bi([o({type:Boolean})],gi.prototype,"selected",void 0),bi([o({type:Boolean})],gi.prototype,"disabled",void 0),bi([s()],gi.prototype,"hovered",void 0),bi([s()],gi.prototype,"focused",void 0),bi([s()],gi.prototype,"pressed",void 0),bi([s()],gi.prototype,"rippling",void 0),bi([s()],gi.prototype,"rippleSize",void 0),bi([s()],gi.prototype,"originX",void 0),bi([s()],gi.prototype,"originY",void 0),bi([n(".ft-ripple")],gi.prototype,"ripple",void 0),bi([n(".ft-ripple--effect")],gi.prototype,"rippleEffect",void 0),a("ft-ripple")(gi);
464
454
  /**
465
455
  * @license
466
456
  * Copyright 2017 Google LLC
467
457
  * SPDX-License-Identifier: BSD-3-Clause
468
458
  */
469
- class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const ui=Ot(di);var yi,xi;!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.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;"}(yi||(yi={})),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;"}(xi||(xi={})),new Map([...["abw"].map((t=>[t,xi.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,xi.AUDIO])),...["avi"].map((t=>[t,xi.AVI])),...["chm","xhs"].map((t=>[t,xi.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,xi.CODE])),...["csv"].map((t=>[t,xi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xi.DITA])),...["epub"].map((t=>[t,xi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xi.EXCEL])),...["flac"].map((t=>[t,xi.FLAC])),...["gif"].map((t=>[t,xi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xi.GZIP])),...["html","htm","xhtml"].map((t=>[t,xi.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,xi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xi.JPEG])),...["json"].map((t=>[t,xi.JSON])),...["m4a","m4p"].map((t=>[t,xi.M4A])),...["mov","qt"].map((t=>[t,xi.MOV])),...["mp3"].map((t=>[t,xi.MP3])),...["mp4","m4v"].map((t=>[t,xi.MP4])),...["ogg","oga"].map((t=>[t,xi.OGG])),...["pdf","ps"].map((t=>[t,xi.PDF])),...["png"].map((t=>[t,xi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xi.POWERPOINT])),...["rar"].map((t=>[t,xi.RAR])),...["stp"].map((t=>[t,xi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xi.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,xi.VIDEO])),...["wav"].map((t=>[t,xi.WAV])),...["wma"].map((t=>[t,xi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xi.WORD])),...["xml","xsl","rdf"].map((t=>[t,xi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xi.YAML])),...["zip"].map((t=>[t,xi.ZIP]))]);const vi=ut.create("--ft-icon-font-size","SIZE","24px"),bi=ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),gi=ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),mi=ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),wi=ut.create("--ft-icon-vertical-align","UNKNOWN","unset"),$i=y`
459
+ class mi extends Ut{constructor(t){if(super(t),this.et=X,t.type!==Mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.ft=void 0,this.et=t;if(t===q)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:[]}}}mi.directiveName="unsafeHTML",mi.resultType=1;const wi=Rt(mi);var $i,Oi;!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.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;"}($i||($i={})),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;"}(Oi||(Oi={})),new Map([...["abw"].map((t=>[t,Oi.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,Oi.AUDIO])),...["avi"].map((t=>[t,Oi.AVI])),...["chm","xhs"].map((t=>[t,Oi.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,Oi.CODE])),...["csv"].map((t=>[t,Oi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Oi.DITA])),...["epub"].map((t=>[t,Oi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Oi.EXCEL])),...["flac"].map((t=>[t,Oi.FLAC])),...["gif"].map((t=>[t,Oi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Oi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Oi.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,Oi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Oi.JPEG])),...["json"].map((t=>[t,Oi.JSON])),...["m4a","m4p"].map((t=>[t,Oi.M4A])),...["mov","qt"].map((t=>[t,Oi.MOV])),...["mp3"].map((t=>[t,Oi.MP3])),...["mp4","m4v"].map((t=>[t,Oi.MP4])),...["ogg","oga"].map((t=>[t,Oi.OGG])),...["pdf","ps"].map((t=>[t,Oi.PDF])),...["png"].map((t=>[t,Oi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Oi.POWERPOINT])),...["rar"].map((t=>[t,Oi.RAR])),...["stp"].map((t=>[t,Oi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Oi.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,Oi.VIDEO])),...["wav"].map((t=>[t,Oi.WAV])),...["wma"].map((t=>[t,Oi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Oi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Oi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Oi.YAML])),...["zip"].map((t=>[t,Oi.ZIP]))]);const Si=xt.create("--ft-icon-font-size","SIZE","24px"),ki=xt.extend("--ft-icon-fluid-topics-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ei=xt.extend("--ft-icon-file-format-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ni=xt.extend("--ft-icon-material-font-family",xt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ci=xt.create("--ft-icon-vertical-align","UNKNOWN","unset"),Mi=y`
470
460
  :host, i.ft-icon {
471
461
  display: inline-flex;
472
462
  align-items: center;
@@ -475,14 +465,14 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
475
465
  }
476
466
 
477
467
  :host {
478
- width: ${vi};
479
- height: ${vi};
468
+ width: ${Si};
469
+ height: ${Si};
480
470
  }
481
471
 
482
472
  i.ft-icon {
483
473
  width: 100%;
484
474
  height: 100%;
485
- font-size: ${vi};
475
+ font-size: ${Si};
486
476
  line-height: 1;
487
477
  font-weight: normal;
488
478
  text-transform: none;
@@ -493,32 +483,32 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
493
483
  text-rendering: auto;
494
484
  -webkit-font-smoothing: antialiased;
495
485
  -moz-osx-font-smoothing: grayscale;
496
- vertical-align: ${wi};
486
+ vertical-align: ${Ci};
497
487
  }
498
488
 
499
489
  i.ft-icon.ft-icon--fluid-topics {
500
- font-family: ${bi}, ft-icons, fticons, sans-serif;
490
+ font-family: ${ki}, ft-icons, fticons, sans-serif;
501
491
 
502
492
  /* Ugly fix because font is broken */
503
- font-size: calc(0.9 * ${vi});
493
+ font-size: calc(0.75 * ${Si});
504
494
  position: relative;
505
- top: -5%;
495
+ top: -4%;
506
496
  justify-content: center;
507
497
  }
508
498
 
509
499
  .ft-icon--file-format {
510
- font-family: ${gi}, ft-mime, sans-serif;
500
+ font-family: ${Ei}, ft-mime, sans-serif;
511
501
  }
512
502
 
513
503
  .ft-icon--material {
514
- font-family: ${mi}, "Material Icons", sans-serif;
504
+ font-family: ${Ni}, "Material Icons", sans-serif;
515
505
  }
516
- `;var Oi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oi||(Oi={}));var Si=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ki extends mt{constructor(){super(...arguments),this.resolvedIcon=J}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:Oi.fluid_topics,i="material"!==e||this.value;return Z`
517
- <i class="ft-icon ${"ft-icon--"+e}">
518
- ${ui(this.resolvedIcon)}
519
- <slot ?hidden=${i}></slot>
506
+ `;var Ri;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ri||(Ri={}));var Ui=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class zi extends kt{constructor(){super(...arguments),this.resolvedIcon=X}render(){const t=this.variant&&Object.values(Ri).includes(this.variant)?this.variant:Ri.fluid_topics,e=t!==Ri.material||!!this.value;return J`
507
+ <i class="ft-icon ${"ft-icon--"+t}">
508
+ ${wi(this.resolvedIcon)}
509
+ <slot ?hidden=${e}></slot>
520
510
  </i>
521
- `}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 Oi.file_format:this.resolvedIcon=null!==(t=xi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oi.material:this.resolvedIcon=this.value||J;break;default:this.resolvedIcon=null!==(e=yi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ki.elementDefinitions={},ki.styles=$i,Si([o()],ki.prototype,"variant",void 0),Si([o()],ki.prototype,"value",void 0),Si([s()],ki.prototype,"resolvedIcon",void 0),Si([n("slot")],ki.prototype,"slottedContent",void 0),a("ft-icon")(ki);const Ei={labelSize:ut.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ut.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ut.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:ut.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ut.extend("--ft-select-selected-option-color",xt.colorOnSurface),helperColor:ut.extend("--ft-select-helper-color",xt.colorOnSurfaceMedium),optionsColor:ut.extend("--ft-select-options-color",xt.colorOnSurface),optionsZIndex:ut.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ut.external(xt.colorSurface,"Design system"),colorOnSurfaceDisabled:ut.external(xt.colorOnSurfaceDisabled,"Design system"),colorPrimary:ut.external(xt.colorPrimary,"Design system"),borderRadiusS:ut.external(xt.borderRadiusS,"Design system"),elevation02:ut.external(xt.elevation02,"Design system"),colorError:ut.external(xt.colorError,"Design system")},Ni=y`
511
+ `}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 Ri.file_format:this.resolvedIcon=null!==(t=Oi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ri.material:this.resolvedIcon=this.value||X;break;default:this.resolvedIcon=null!==(e=$i[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}zi.elementDefinitions={},zi.styles=Mi,Ui([o()],zi.prototype,"variant",void 0),Ui([o()],zi.prototype,"value",void 0),Ui([s()],zi.prototype,"resolvedIcon",void 0),Ui([n("slot")],zi.prototype,"slottedContent",void 0),a("ft-icon")(zi);const ji={labelSize:xt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:xt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:xt.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:xt.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:xt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:xt.extend("--ft-select-selected-option-color",bt.colorOnSurface),helperColor:xt.extend("--ft-select-helper-color",bt.colorOnSurfaceMedium),optionsColor:xt.extend("--ft-select-options-color",bt.colorOnSurface),optionsZIndex:xt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:xt.external(bt.colorSurface,"Design system"),colorOnSurfaceDisabled:xt.external(bt.colorOnSurfaceDisabled,"Design system"),colorPrimary:xt.external(bt.colorPrimary,"Design system"),borderRadiusS:xt.external(bt.borderRadiusS,"Design system"),elevation02:xt.external(bt.elevation02,"Design system"),colorError:xt.external(bt.colorError,"Design system")},Fi=y`
522
512
  *:focus {
523
513
  outline: none;
524
514
  }
@@ -532,7 +522,7 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
532
522
  .ft-select--main-panel {
533
523
  position: relative;
534
524
  display: flex;
535
- height: calc(4 * ${Ei.verticalSpacing} + ${Ei.labelSize} + ${Ei.selectedOptionSize});
525
+ height: calc(4 * ${ji.verticalSpacing} + ${ji.labelSize} + ${ji.selectedOptionSize});
536
526
  }
537
527
 
538
528
  .ft-select--input-panel {
@@ -541,17 +531,17 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
541
531
  display: flex;
542
532
  align-items: center;
543
533
  overflow: hidden;
544
- padding-left: ${Ei.horizontalSpacing};
545
- padding-right: ${Ei.horizontalSpacing};
534
+ padding-left: ${ji.horizontalSpacing};
535
+ padding-right: ${ji.horizontalSpacing};
546
536
  gap: 8px;
547
- color: ${Ei.selectedOptionColor};
548
- ${yt(oi.color,Ei.selectedOptionColor)};
537
+ color: ${ji.selectedOptionColor};
538
+ ${vt(ci.color,ji.selectedOptionColor)};
549
539
  }
550
540
 
551
541
  .ft-select--input-panel,
552
542
  .ft-select--option {
553
- ${yt(oi.opacityContentOnSurfaceHover,"0.08")};
554
- ${yt(oi.opacityContentOnSurfacePressed,"0.04")};
543
+ ${vt(ci.opacityContentOnSurfaceHover,"0.08")};
544
+ ${vt(ci.opacityContentOnSurfacePressed,"0.04")};
555
545
  }
556
546
 
557
547
  .ft-select--input-panel > *:not(ft-ripple),
@@ -561,7 +551,7 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
561
551
 
562
552
  .ft-select--disabled .ft-select--input-panel,
563
553
  .ft-select--disabled .ft-select--option {
564
- color: ${Ei.colorOnSurfaceDisabled};
554
+ color: ${ji.colorOnSurfaceDisabled};
565
555
  }
566
556
 
567
557
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -570,20 +560,20 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
570
560
  }
571
561
 
572
562
  ft-input-label {
573
- ${yt(Ge.fontSize,Ei.selectedOptionSize)};
574
- ${yt(Ge.raisedFontSize,Ei.labelSize)};
575
- ${yt(Ge.verticalSpacing,Ei.verticalSpacing)};
576
- ${yt(Ge.horizontalSpacing,Ei.horizontalSpacing)};
577
- ${yt(Ge.labelMaxWidth,`calc(100% - ${vi} - 8px)`)};
563
+ ${vt(ni.fontSize,ji.selectedOptionSize)};
564
+ ${vt(ni.raisedFontSize,ji.labelSize)};
565
+ ${vt(ni.verticalSpacing,ji.verticalSpacing)};
566
+ ${vt(ni.horizontalSpacing,ji.horizontalSpacing)};
567
+ ${vt(ni.labelMaxWidth,`calc(100% - ${Si} - 8px)`)};
578
568
  }
579
569
 
580
570
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
581
- color: ${Ei.colorPrimary};
571
+ color: ${ji.colorPrimary};
582
572
  }
583
573
 
584
574
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
585
- ${yt(Ge.borderColor,Ei.colorPrimary)};
586
- ${yt(Ge.textColor,Ei.colorPrimary)};
575
+ ${vt(ni.borderColor,ji.colorPrimary)};
576
+ ${vt(ni.textColor,ji.colorPrimary)};
587
577
  }
588
578
 
589
579
  .ft-select--selected-option {
@@ -593,12 +583,12 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
593
583
  overflow: hidden;
594
584
  white-space: nowrap;
595
585
  text-overflow: ellipsis;
596
- ${yt(de.fontSize,Ei.selectedOptionSize)};
597
- ${yt(de.lineHeight,Ei.selectedOptionSize)};
586
+ ${vt(me.fontSize,ji.selectedOptionSize)};
587
+ ${vt(me.lineHeight,ji.selectedOptionSize)};
598
588
  }
599
589
 
600
590
  .ft-select--in-error .ft-select--selected-option {
601
- color: ${Ei.colorError};
591
+ color: ${ji.colorError};
602
592
  }
603
593
 
604
594
  ft-icon {
@@ -610,16 +600,16 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
610
600
  }
611
601
 
612
602
  .ft-select--filled .ft-select--input-panel {
613
- border-radius: ${Ei.borderRadiusS} ${Ei.borderRadiusS} 0 0;
603
+ border-radius: ${ji.borderRadiusS} ${ji.borderRadiusS} 0 0;
614
604
  }
615
605
 
616
606
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
617
607
  align-self: stretch;
618
- padding-top: calc(${Ei.labelSize} + 2 * ${Ei.verticalSpacing});
608
+ padding-top: calc(${ji.labelSize} + 2 * ${ji.verticalSpacing});
619
609
  }
620
610
 
621
611
  .ft-select--outlined .ft-select--input-panel {
622
- border-radius: ${Ei.borderRadiusS};
612
+ border-radius: ${ji.borderRadiusS};
623
613
  }
624
614
 
625
615
  .ft-select--options {
@@ -628,10 +618,10 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
628
618
  top: 100%;
629
619
  left: 0;
630
620
  right: 0;
631
- color: ${Ei.optionsColor};
632
- background: ${Ei.colorSurface};
633
- z-index: ${Ei.optionsZIndex};
634
- box-shadow: ${Ei.elevation02};
621
+ color: ${ji.optionsColor};
622
+ background: ${ji.colorSurface};
623
+ z-index: ${ji.optionsZIndex};
624
+ box-shadow: ${ji.elevation02};
635
625
  }
636
626
 
637
627
  .ft-select--fixed .ft-select--options {
@@ -642,13 +632,13 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
642
632
 
643
633
  .ft-select--options-displayed .ft-select--options {
644
634
  display: block;
645
- max-height: ${Ei.optionsHeight};
635
+ max-height: ${ji.optionsHeight};
646
636
  overflow-y: auto;
647
637
  }
648
638
 
649
639
  .ft-select--option {
650
640
  position: relative;
651
- padding: 4px ${Ei.horizontalSpacing};
641
+ padding: 4px ${ji.horizontalSpacing};
652
642
  min-height: 32px;
653
643
  display: flex;
654
644
  align-items: center;
@@ -660,15 +650,15 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
660
650
  }
661
651
 
662
652
  .ft-select--helper-text {
663
- padding: 0 ${Ei.horizontalSpacing};
664
- color: ${Ei.helperColor};
653
+ padding: 0 ${ji.horizontalSpacing};
654
+ color: ${ji.helperColor};
665
655
  }
666
656
 
667
657
  .ft-select--in-error .ft-select--helper-text {
668
- color: ${Ei.colorError};
658
+ color: ${ji.colorError};
669
659
  }
670
- `;var Ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Mi extends mt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return Z``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Mi.elementDefinitions={},Ci([o({type:String})],Mi.prototype,"label",void 0),Ci([o({type:Object,converter:t=>t})],Mi.prototype,"value",void 0),Ci([o({type:Boolean,reflect:!0})],Mi.prototype,"selected",void 0);class Ri extends mt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return Z`
671
- <div class="${kt(a)}" part="container">
660
+ `;var Ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Di extends kt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return J``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Di.elementDefinitions={},Ai([o({type:String})],Di.prototype,"label",void 0),Ai([o({type:Object,converter:t=>t})],Di.prototype,"value",void 0),Ai([o({type:Boolean,reflect:!0})],Di.prototype,"selected",void 0);class Bi extends kt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return J`
661
+ <div class="${zt(a)}" part="container">
672
662
  <div class="ft-select--main-panel" part="main-panel">
673
663
  <ft-input-label text="${this.label}"
674
664
  part="label"
@@ -689,24 +679,24 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
689
679
  <ft-typography variant="body1" class="ft-select--selected-option">
690
680
  ${null!==(s=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==s?s:""}
691
681
  </ft-typography>
692
- <ft-icon variant="material">${n?"expand_less":"expand_more"}</ft-icon>
682
+ <ft-icon>${n?"thin_arrow_up":"thin_arrow"}</ft-icon>
693
683
  </div>
694
684
  <div class="ft-select--options"
695
685
  part="options"
696
686
  @keydown=${this.onOptionsKeyDown}
697
687
  innerrole="listbox">
698
- ${jt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
688
+ ${_t(this.options,(t=>t.value),(t=>this.renderOption(t)))}
699
689
  </div>
700
690
  </div>
701
- ${this.helper?Z`
691
+ ${this.helper?J`
702
692
  <ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
703
693
  </ft-typography>`:void 0}
704
694
  </div>
705
695
  <slot @slotchange=${this.updateOptionsFromSlot}
706
696
  @option-change=${this.updateOptionsFromSlot}
707
697
  ></slot>
708
- `}renderOption(t){let e=this.selectedOption===t;return Z`
709
- <div class="${kt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
698
+ `}renderOption(t){let e=this.selectedOption===t;return J`
699
+ <div class="${zt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
710
700
  part="option"
711
701
  tabindex="0"
712
702
  data-value="${t.value}"
@@ -715,4 +705,4 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
715
705
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
716
706
  <span>${t.label}</span>
717
707
  </div>
718
- `}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,n;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var e,i;if(!l(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ri.elementDefinitions={"ft-input-label":ei,"ft-typography":Ye,"ft-ripple":fi,"ft-icon":ki},Ri.styles=[He,Ke,Ni],Ci([o({type:String})],Ri.prototype,"label",void 0),Ci([o({type:String})],Ri.prototype,"helper",void 0),Ci([o({type:Boolean})],Ri.prototype,"outlined",void 0),Ci([o({type:Boolean})],Ri.prototype,"disabled",void 0),Ci([o({type:Boolean})],Ri.prototype,"error",void 0),Ci([o({type:Boolean})],Ri.prototype,"fixedMenuPosition",void 0),Ci([o({type:Array})],Ri.prototype,"options",void 0),Ci([s()],Ri.prototype,"selectedOption",void 0),Ci([s()],Ri.prototype,"optionsDisplayed",void 0),Ci([s()],Ri.prototype,"focusOptions",void 0),Ci([n(".ft-select")],Ri.prototype,"container",void 0),Ci([n(".ft-select--options")],Ri.prototype,"optionsMenu",void 0),Ci([n(".ft-select--input-panel")],Ri.prototype,"mainPanel",void 0),Ci([n(".ft-select--option:first-child")],Ri.prototype,"firstOption",void 0),Ci([n(".ft-select--option:focus")],Ri.prototype,"focusedOption",void 0),Ci([n(".ft-select--option.ft-select--option-selected")],Ri.prototype,"selectedOptionElement",void 0),Ci([n(".ft-select--option:last-child")],Ri.prototype,"lastOption",void 0),Ci([n("slot")],Ri.prototype,"optionsSlot",void 0),a("ft-select")(Ri),a("ft-select-option")(Mi),t.FtSelect=Ri,t.FtSelectCssVariables=Ei,t.FtSelectOption=Mi,t.styles=Ni,Object.defineProperty(t,"i",{value:!0})}({});
708
+ `}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,n;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var e,i;if(!l(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Bi.elementDefinitions={"ft-input-label":ai,"ft-typography":si,"ft-ripple":gi,"ft-icon":zi},Bi.styles=[Ye,Ge,Fi],Ai([o({type:String})],Bi.prototype,"label",void 0),Ai([o({type:String})],Bi.prototype,"helper",void 0),Ai([o({type:Boolean})],Bi.prototype,"outlined",void 0),Ai([o({type:Boolean})],Bi.prototype,"disabled",void 0),Ai([o({type:Boolean})],Bi.prototype,"error",void 0),Ai([o({type:Boolean})],Bi.prototype,"fixedMenuPosition",void 0),Ai([o({type:Array})],Bi.prototype,"options",void 0),Ai([s()],Bi.prototype,"selectedOption",void 0),Ai([s()],Bi.prototype,"optionsDisplayed",void 0),Ai([s()],Bi.prototype,"focusOptions",void 0),Ai([n(".ft-select")],Bi.prototype,"container",void 0),Ai([n(".ft-select--options")],Bi.prototype,"optionsMenu",void 0),Ai([n(".ft-select--input-panel")],Bi.prototype,"mainPanel",void 0),Ai([n(".ft-select--option:first-child")],Bi.prototype,"firstOption",void 0),Ai([n(".ft-select--option:focus")],Bi.prototype,"focusedOption",void 0),Ai([n(".ft-select--option.ft-select--option-selected")],Bi.prototype,"selectedOptionElement",void 0),Ai([n(".ft-select--option:last-child")],Bi.prototype,"lastOption",void 0),Ai([n("slot")],Bi.prototype,"optionsSlot",void 0),a("ft-select")(Bi),a("ft-select-option")(Di),t.FtSelect=Bi,t.FtSelectCssVariables=ji,t.FtSelectOption=Di,t.styles=Fi}({});