@fluid-topics/ft-filterable-table 0.3.31 → 0.3.32

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,n=new WeakMap,s=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);h(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,p),p.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,p,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.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),n.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=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=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,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(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!==n.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 s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),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=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(It){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.reject()}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,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){o(t)}n()}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}reject(){this.rejectPromise&&(this.rejectPromise(),this.clearPromise())}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,n=new WeakMap,s=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);f(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,p),p.standInClass=c);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)s.delete(t),u(t,p,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.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),n.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=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=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,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.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,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},h=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):h(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=t;try{new e.elementClass}catch(t){h(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(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!==n.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 s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),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=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Pt){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.reject()}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,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){o(t)}n()}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}reject(){this.rejectPromise&&(this.rejectPromise(),this.clearPromise())}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -39,40 +39,39 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
39
39
  * @license
40
40
  * Copyright 2021 Google LLC
41
41
  * SPDX-License-Identifier: BSD-3-Clause
42
- */var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const p=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
42
+ */var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const p=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function c(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!c(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!c(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var s=n[o];if(!c(t[s],e[s]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */
48
- const c=window,d=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),f=new WeakMap;class u{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(d&&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 v=t=>new u("string"==typeof t?t:t+"",void 0,h),b=(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 u(i,t,h)},x=(t,e)=>{d?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=c.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},y=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(t):t
47
+ */const d=window,f=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),u=new WeakMap;class v{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(f&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}}const b=t=>new v("string"==typeof t?t:t+"",void 0,h),x=(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 v(i,t,h)},y=(t,e)=>{f?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=d.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},g=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return b(e)})(t):t
49
48
  /**
50
49
  * @license
51
50
  * Copyright 2017 Google LLC
52
51
  * SPDX-License-Identifier: BSD-3-Clause
53
- */;var g;const m=window,$=m.trustedTypes,w=$?$.emptyScript:"",O=m.reactiveElementPolyfillSupport,k={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),C={attribute:!0,type:String,converter:k,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=C){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 n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||C}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(y(t))}else void 0!==t&&e.push(y(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=C){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:k).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:k;this._$El=n,this[n]=s.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){}}
52
+ */;var m;const $=window,w=$.trustedTypes,O=w?w.emptyScript:"",k=$.reactiveElementPolyfillSupport,S={toAttribute(t,e){switch(e){case Boolean:t=t?O: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}},C=(t,e)=>e!==t&&(e==e||t==t),E={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:C};class N 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=E){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 n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||E}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(g(t))}else void 0!==t&&e.push(g(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 y(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=E){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:S).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:S;this._$El=n,this[n]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||C)(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
53
  /**
55
54
  * @license
56
55
  * Copyright 2017 Google LLC
57
56
  * SPDX-License-Identifier: BSD-3-Clause
58
57
  */
59
- var N;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:E}),(null!==(g=m.reactiveElementVersions)&&void 0!==g?g:m.reactiveElementVersions=[]).push("1.4.1");const R=window,z=R.trustedTypes,M=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,F=`lit$${(Math.random()+"").slice(9)}$`,U="?"+F,B=`<${U}>`,j=document,D=(t="")=>j.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,T=t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,_=/>/g,H=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,Z=/"/g,K=/^(?:script|style|textarea|title)$/i,V=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=j.createTreeWalker(j,129,null,!1),G=(t,e)=>{const i=t.length-1,o=[];let n,s=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=P:void 0!==a[1]?r=_:void 0!==a[2]?(K.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=H):void 0!==a[3]&&(r=H):r===H?">"===a[0]?(r=null!=n?n: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:W):r===Z||r===W?r=H:r===P||r===_?r=I:(r=H,n=void 0);const d=r===H&&t[e+1].startsWith("/>")?" ":"";s+=r===I?i+B:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+F+d):i+F+(-2===p?(o.push(void 0),e):d)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==M?M.createHTML(l):l,o]};class Q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=G(t,e);if(this.el=Q.createElement(a,i),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Y.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(F)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(F),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?rt:"@"===e[1]?lt:ot})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(F),e=t.length-1;if(e>0){o.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],D()),Y.nextNode(),l.push({type:2,index:++n});o.append(t[e],D())}}}else if(8===o.nodeType)if(o.data===U)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)l.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,e){const i=j.createElement("template");return i.innerHTML=t,i}}function tt(t,e,i=t,o){var n,s,r,l;if(e===J)return e;let a=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const p=A(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.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=tt(t,a._$AS(t,e.values),a,o)),e}class et{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,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:j).importNode(i,!0);Y.currentNode=n;let s=Y.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new it(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new at(s,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=Y.nextNode(),r++)}return n}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 it{constructor(t,e,i,o){var n;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}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=tt(this,t,e),A(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):T(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!==q&&A(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new et(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new Q(t)),e}k(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new it(this.O(D()),this.O(D()),this,this.options)):i=e[o],i._$AI(n),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 ot{constructor(t,e,i,o,n){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=tt(this,t,e,0),s=!A(t)||t!==this._$AH&&t!==J,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=tt(this,o[i+r],e,r),l===J&&(l=this._$AH[r]),s||(s=!A(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const st=z?z.emptyScript:"";class rt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class lt extends ot{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=tt(this,t,e,0))&&void 0!==i?i:q)===J)return;const o=this._$AH,n=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==q&&(o===q||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 at{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){tt(this,t)}}const pt={P:"$lit$",A:F,M:U,C:1,L:G,R:et,D:T,V:tt,I:it,H:ot,N:rt,U:lt,B:nt,F:at},ct=R.litHtmlPolyfillSupport;null==ct||ct(Q,it),(null!==(N=R.litHtmlVersions)&&void 0!==N?N:R.litHtmlVersions=[]).push("2.4.0");
58
+ var R;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:N}),(null!==(m=$.reactiveElementVersions)&&void 0!==m?m:$.reactiveElementVersions=[]).push("1.4.1");const z=window,M=z.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,j="?"+U,B=`<${j}>`,D=document,A=(t="")=>D.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,I=t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,H=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Z=/'/g,K=/"/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=D.createTreeWalker(D,129,null,!1),Q=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=P;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===P?"!--"===a[1]?r=_:void 0!==a[1]?r=H:void 0!==a[2]?(V.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=W):void 0!==a[3]&&(r=W):r===W?">"===a[0]?(r=null!=n?n:P,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?W:'"'===a[3]?K:Z):r===K||r===Z?r=W:r===_||r===H?r=P:(r=W,n=void 0);const d=r===W&&t[e+1].startsWith("/>")?" ":"";s+=r===P?i+B:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+U+d):i+U+(-2===p?(o.push(void 0),e):d)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(l):l,o]};class tt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=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("$lit$")||e.startsWith(U)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?st:"?"===e[1]?lt:"@"===e[1]?at:nt})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(V.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()),G.nextNode(),l.push({type:2,index:++n});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===j)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)l.push({type:7,index:n}),t+=U.length-1}n++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function et(t,e,i=t,o){var n,s,r,l;if(e===q)return e;let a=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const p=L(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.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.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,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:D).importNode(i,!0);G.currentNode=n;let s=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(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new pt(s,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=G.nextNode(),r++)}return n}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 ot{constructor(t,e,i,o){var n;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}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=et(this,t,e),L(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==q&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):I(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!==X&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="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)===n)this._$AH.p(i);else{const t=new it(n,this),e=t.v(this.options);t.p(i),this.T(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}k(t){T(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new ot(this.O(A()),this.O(A()),this,this.options)):i=e[o],i._$AI(n),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 nt{constructor(t,e,i,o,n){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,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 n=this.strings;let s=!1;if(void 0===n)t=et(this,t,e,0),s=!L(t)||t!==this._$AH&&t!==q,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=et(this,o[i+r],e,r),l===q&&(l=this._$AH[r]),s||(s=!L(l)||l!==this._$AH[r]),l===X?t=X:t!==X&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends nt{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 nt{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 nt{constructor(t,e,i,o,n){super(t,e,i,o,n),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,n=t===X&&o!==X||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==X&&(o===X||n);n&&this.element.removeEventListener(this.name,this,o),s&&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={P:"$lit$",A:U,M:j,C:1,L:Q,R:it,D:I,V:et,I:ot,H:nt,N:lt,U:at,B:st,F:pt},dt=z.litHtmlPolyfillSupport;null==dt||dt(tt,ot),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.4.0");
60
59
  /**
61
60
  * @license
62
61
  * Copyright 2017 Google LLC
63
62
  * SPDX-License-Identifier: BSD-3-Clause
64
63
  */
65
- var dt,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,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new it(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 J}}ft.finalized=!0,ft._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:ft});const ut=globalThis.litElementPolyfillSupport;null==ut||ut({LitElement:ft}),(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.2.2");class vt{static create(t,e,i){let o=t=>v(null!=t?t:i),n=b`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=b`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>b`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):v(null!=e?e:t.defaultValue),o=b`var(${v(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=>b`var(${v(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 bt(t,e){return v(`${t.name}: ${e}`)}const xt={colorPrimary:vt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:vt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:vt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:vt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:vt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:vt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:vt.create("--ft-color-error","COLOR","#B00020"),colorOutline:vt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:vt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:vt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:vt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:vt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:vt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:vt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:vt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:vt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:vt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:vt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:vt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:vt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:vt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:vt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:vt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:vt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:vt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:vt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:vt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:vt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:vt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:vt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:vt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:vt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:vt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:vt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:vt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:vt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:vt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:vt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:vt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:vt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:vt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:vt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:vt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:vt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:vt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:vt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:vt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:vt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:vt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:vt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:vt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
64
+ var ft,ht;class ut extends N{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,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new ot(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 q}}ut.finalized=!0,ut._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:ut});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:ut}),(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.2.2");class bt{static create(t,e,i){let o=t=>b(null!=t?t:i),n=x`var(${b(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>x`var(${b(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=x`var(${b(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>x`var(${b(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):b(null!=e?e:t.defaultValue),o=x`var(${b(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>x`var(${b(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 xt(t,e){return b(`${t.name}: ${e}`)}const yt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
66
65
  /**
67
66
  * @license
68
67
  * Copyright 2021 Google LLC
69
68
  * SPDX-License-Identifier: BSD-3-Clause
70
- */var yt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class gt 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 n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(n,this.constructor.elementStyles),n}}}(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]),V`
71
- ${t.map((t=>V`
69
+ */var gt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>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 n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return y(n,this.constructor.elementStyles),n}}}(ut)){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]),J`
70
+ ${t.map((t=>J`
72
71
  <style>${t}</style>
73
72
  `))}
74
73
  ${this.getTemplate()}
75
- `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(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,n,s,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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.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(", "))}}yt([o()],gt.prototype,"exportpartsPrefix",void 0),yt([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)},...null!=e?e:{}})}([])],gt.prototype,"exportpartsPrefixes",void 0);const mt=b`
74
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(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,n,s,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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.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)},...null!=e?e:{}})}([])],mt.prototype,"exportpartsPrefixes",void 0);const $t=x`
76
75
  .ft-no-text-select {
77
76
  -webkit-touch-callout: none;
78
77
  -webkit-user-select: none;
@@ -81,7 +80,7 @@ var dt,ht;class ft extends E{constructor(){super(...arguments),this.renderOption
81
80
  -ms-user-select: none;
82
81
  user-select: none;
83
82
  }
84
- `;var $t,wt,Ot;b`
83
+ `;var wt,Ot,kt;x`
85
84
  .ft-word-wrap {
86
85
  white-space: normal;
87
86
  word-wrap: break-word;
@@ -93,17 +92,17 @@ var dt,ht;class ft extends E{constructor(){super(...arguments),this.renderOption
93
92
  -webkit-hyphens: auto;
94
93
  hyphens: auto
95
94
  }
96
- `;const kt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ot=null===(wt=null===($t=window.safari)||void 0===$t?void 0:$t.pushNotification)||void 0===wt?void 0:wt.toString())&&void 0!==Ot?Ot:""),St=1,Ct=2,Et=t=>(...e)=>({_$litDirective$:t,values:e});
95
+ `;const St=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(kt=null===(Ot=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===Ot?void 0:Ot.toString())&&void 0!==kt?kt:""),Ct=1,Et=2,Nt=t=>(...e)=>({_$litDirective$:t,values:e});
97
96
  /**
98
97
  * @license
99
98
  * Copyright 2017 Google LLC
100
99
  * SPDX-License-Identifier: BSD-3-Clause
101
- */class Nt{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)}}
100
+ */class Rt{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)}}
102
101
  /**
103
102
  * @license
104
103
  * Copyright 2020 Google LLC
105
104
  * SPDX-License-Identifier: BSD-3-Clause
106
- */const{I:Rt}=pt,zt=()=>document.createComment(""),Mt=(t,e,i)=>{var o;const n=t._$AA.parentNode,s=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(zt(),s),o=n.insertBefore(zt(),s);i=new Rt(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!==s||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,s),t=e}}}return i},Ft=(t,e,i=t)=>(t._$AI(e,i),t),Ut={},Bt=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}},jt=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Dt=Et(class extends Nt{constructor(t){if(super(t),t.type!==Ct)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 n=[],s=[];let r=0;for(const e of t)n[r]=o?o(e,r):r,s[r]=i(e,r),r++;return{values:s,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const s=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(s))return this.ut=l,r;const a=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],p=[];let c,d,h=0,f=s.length-1,u=0,v=r.length-1;for(;h<=f&&u<=v;)if(null===s[h])h++;else if(null===s[f])f--;else if(a[h]===l[u])p[u]=Ft(s[h],r[u]),h++,u++;else if(a[f]===l[v])p[v]=Ft(s[f],r[v]),f--,v--;else if(a[h]===l[v])p[v]=Ft(s[h],r[v]),Mt(t,p[v+1],s[h]),h++,v--;else if(a[f]===l[u])p[u]=Ft(s[f],r[u]),Mt(t,s[h],s[f]),f--,u++;else if(void 0===c&&(c=jt(l,u,v),d=jt(a,h,f)),c.has(a[h]))if(c.has(a[f])){const e=d.get(l[u]),i=void 0!==e?s[e]:null;if(null===i){const e=Mt(t,s[h]);Ft(e,r[u]),p[u]=e}else p[u]=Ft(i,r[u]),Mt(t,s[h],i),s[e]=null;u++}else Bt(s[f]),f--;else Bt(s[h]),h++;for(;u<=v;){const e=Mt(t,p[v+1]);Ft(e,r[u]),p[u++]=e}for(;h<=f;){const t=s[h++];null!==t&&Bt(t)}return this.ut=l,((t,e=Ut)=>{t._$AH=e})(t,p),J}});
105
+ */const{I:zt}=ct,Mt=()=>document.createComment(""),Ft=(t,e,i)=>{var o;const n=t._$AA.parentNode,s=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Mt(),s),o=n.insertBefore(Mt(),s);i=new zt(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!==s||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,s),t=e}}}return i},Ut=(t,e,i=t)=>(t._$AI(e,i),t),jt={},Bt=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}},Dt=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},At=Nt(class extends Rt{constructor(t){if(super(t),t.type!==Et)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 n=[],s=[];let r=0;for(const e of t)n[r]=o?o(e,r):r,s[r]=i(e,r),r++;return{values:s,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const s=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(s))return this.ut=l,r;const a=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],p=[];let c,d,f=0,h=s.length-1,u=0,v=r.length-1;for(;f<=h&&u<=v;)if(null===s[f])f++;else if(null===s[h])h--;else if(a[f]===l[u])p[u]=Ut(s[f],r[u]),f++,u++;else if(a[h]===l[v])p[v]=Ut(s[h],r[v]),h--,v--;else if(a[f]===l[v])p[v]=Ut(s[f],r[v]),Ft(t,p[v+1],s[f]),f++,v--;else if(a[h]===l[u])p[u]=Ut(s[h],r[u]),Ft(t,s[f],s[h]),h--,u++;else if(void 0===c&&(c=Dt(l,u,v),d=Dt(a,f,h)),c.has(a[f]))if(c.has(a[h])){const e=d.get(l[u]),i=void 0!==e?s[e]:null;if(null===i){const e=Ft(t,s[f]);Ut(e,r[u]),p[u]=e}else p[u]=Ut(i,r[u]),Ft(t,s[f],i),s[e]=null;u++}else Bt(s[h]),h--;else Bt(s[f]),f++;for(;u<=v;){const e=Ft(t,p[v+1]);Ut(e,r[u]),p[u++]=e}for(;f<=h;){const t=s[f++];null!==t&&Bt(t)}return this.ut=l,((t,e=jt)=>{t._$AH=e})(t,p),q}});
107
106
  /**
108
107
  * @license
109
108
  * Copyright 2017 Google LLC
@@ -114,132 +113,132 @@ var dt,ht;class ft extends E{constructor(){super(...arguments),this.renderOption
114
113
  * Copyright 2017 Google LLC
115
114
  * SPDX-License-Identifier: BSD-3-Clause
116
115
  */
117
- class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)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:[]}}}At.directiveName="unsafeHTML",At.resultType=1;const Lt=Et(At),Tt=Et(class extends Nt{constructor(t){var e;if(super(t),t.type!==St||"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 n=t.element.classList;this.nt.forEach((t=>{t in e||(n.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?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),It=Symbol.for(""),Pt=t=>{if((null==t?void 0:t.r)===It)return null==t?void 0:t._$litStatic$},_t=t=>({_$litStatic$:t,r:It}),Ht=new Map,Wt=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(s=i[p],n=Pt(s));)a+=n+e[++p],c=!0;l.push(s),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)})(V);
116
+ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this._t=void 0,this.it=t;if(t===q)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:[]}}}Lt.directiveName="unsafeHTML",Lt.resultType=1;const Tt=Nt(Lt),It=Nt(class extends Rt{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.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 n=t.element.classList;this.nt.forEach((t=>{t in e||(n.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?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return q}}),Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void 0:t._$litStatic$},Ht=t=>({_$litStatic$:t,r:Pt}),Wt=new Map,Zt=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(s=i[p],n=_t(s));)a+=n+e[++p],c=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Wt.get(t))&&(r.raw=r,Wt.set(t,e=r)),i=l}return t(e,...i)})(J);
118
117
  /**
119
118
  * @license
120
119
  * Copyright 2018 Google LLC
121
120
  * SPDX-License-Identifier: BSD-3-Clause
122
- */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 Kt=vt.extend("--ft-typography-font-family",xt.titleFont),Vt=vt.extend("--ft-typography-font-family",xt.contentFont),Jt={fontFamily:Vt,fontSize:vt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:vt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:vt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:vt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:vt.create("--ft-typography-text-transform","UNKNOWN","inherit")},qt=vt.extend("--ft-typography-title-font-family",Kt),Xt=vt.extend("--ft-typography-title-font-size",Jt.fontSize,"20px"),Yt=vt.extend("--ft-typography-title-font-weight",Jt.fontWeight,"normal"),Gt=vt.extend("--ft-typography-title-letter-spacing",Jt.letterSpacing,"0.15px"),Qt=vt.extend("--ft-typography-title-line-height",Jt.lineHeight,"1.2"),te=vt.extend("--ft-typography-title-text-transform",Jt.textTransform,"inherit"),ee=vt.extend("--ft-typography-title-dense-font-family",Kt),ie=vt.extend("--ft-typography-title-dense-font-size",Jt.fontSize,"14px"),oe=vt.extend("--ft-typography-title-dense-font-weight",Jt.fontWeight,"normal"),ne=vt.extend("--ft-typography-title-dense-letter-spacing",Jt.letterSpacing,"0.105px"),se=vt.extend("--ft-typography-title-dense-line-height",Jt.lineHeight,"1.7"),re=vt.extend("--ft-typography-title-dense-text-transform",Jt.textTransform,"inherit"),le=vt.extend("--ft-typography-subtitle1-font-family",Vt),ae=vt.extend("--ft-typography-subtitle1-font-size",Jt.fontSize,"16px"),pe=vt.extend("--ft-typography-subtitle1-font-weight",Jt.fontWeight,"600"),ce=vt.extend("--ft-typography-subtitle1-letter-spacing",Jt.letterSpacing,"0.144px"),de=vt.extend("--ft-typography-subtitle1-line-height",Jt.lineHeight,"1.5"),he=vt.extend("--ft-typography-subtitle1-text-transform",Jt.textTransform,"inherit"),fe=vt.extend("--ft-typography-subtitle2-font-family",Vt),ue=vt.extend("--ft-typography-subtitle2-font-size",Jt.fontSize,"14px"),ve=vt.extend("--ft-typography-subtitle2-font-weight",Jt.fontWeight,"normal"),be=vt.extend("--ft-typography-subtitle2-letter-spacing",Jt.letterSpacing,"0.098px"),xe=vt.extend("--ft-typography-subtitle2-line-height",Jt.lineHeight,"1.7"),ye=vt.extend("--ft-typography-subtitle2-text-transform",Jt.textTransform,"inherit"),ge={fontFamily:vt.extend("--ft-typography-body1-font-family",Vt),fontSize:vt.extend("--ft-typography-body1-font-size",Jt.fontSize,"16px"),fontWeight:vt.extend("--ft-typography-body1-font-weight",Jt.fontWeight,"normal"),letterSpacing:vt.extend("--ft-typography-body1-letter-spacing",Jt.letterSpacing,"0.496px"),lineHeight:vt.extend("--ft-typography-body1-line-height",Jt.lineHeight,"1.5"),textTransform:vt.extend("--ft-typography-body1-text-transform",Jt.textTransform,"inherit")},me=vt.extend("--ft-typography-body2-font-family",Vt),$e=vt.extend("--ft-typography-body2-font-size",Jt.fontSize,"14px"),we=vt.extend("--ft-typography-body2-font-weight",Jt.fontWeight,"normal"),Oe=vt.extend("--ft-typography-body2-letter-spacing",Jt.letterSpacing,"0.252px"),ke=vt.extend("--ft-typography-body2-line-height",Jt.lineHeight,"1.4"),Se=vt.extend("--ft-typography-body2-text-transform",Jt.textTransform,"inherit"),Ce={fontFamily:vt.extend("--ft-typography-caption-font-family",Vt),fontSize:vt.extend("--ft-typography-caption-font-size",Jt.fontSize,"12px"),fontWeight:vt.extend("--ft-typography-caption-font-weight",Jt.fontWeight,"normal"),letterSpacing:vt.extend("--ft-typography-caption-letter-spacing",Jt.letterSpacing,"0.396px"),lineHeight:vt.extend("--ft-typography-caption-line-height",Jt.lineHeight,"1.33"),textTransform:vt.extend("--ft-typography-caption-text-transform",Jt.textTransform,"inherit")},Ee=vt.extend("--ft-typography-breadcrumb-font-family",Vt),Ne=vt.extend("--ft-typography-breadcrumb-font-size",Jt.fontSize,"10px"),Re=vt.extend("--ft-typography-breadcrumb-font-weight",Jt.fontWeight,"normal"),ze=vt.extend("--ft-typography-breadcrumb-letter-spacing",Jt.letterSpacing,"0.33px"),Me=vt.extend("--ft-typography-breadcrumb-line-height",Jt.lineHeight,"1.6"),Fe=vt.extend("--ft-typography-breadcrumb-text-transform",Jt.textTransform,"inherit"),Ue=vt.extend("--ft-typography-overline-font-family",Vt),Be=vt.extend("--ft-typography-overline-font-size",Jt.fontSize,"10px"),je=vt.extend("--ft-typography-overline-font-weight",Jt.fontWeight,"normal"),De=vt.extend("--ft-typography-overline-letter-spacing",Jt.letterSpacing,"1.5px"),Ae=vt.extend("--ft-typography-overline-line-height",Jt.lineHeight,"1.6"),Le=vt.extend("--ft-typography-overline-text-transform",Jt.textTransform,"uppercase"),Te={fontFamily:vt.extend("--ft-typography-button-font-family",Vt),fontSize:vt.extend("--ft-typography-button-font-size",Jt.fontSize,"14px"),fontWeight:vt.extend("--ft-typography-button-font-weight",Jt.fontWeight,"600"),letterSpacing:vt.extend("--ft-typography-button-letter-spacing",Jt.letterSpacing,"1.246px"),lineHeight:vt.extend("--ft-typography-button-line-height",Jt.lineHeight,"1.15"),textTransform:vt.extend("--ft-typography-button-text-transform",Jt.textTransform,"uppercase")},Ie=b`
121
+ */var Kt;!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"}(Kt||(Kt={}));const Vt=bt.extend("--ft-typography-font-family",yt.titleFont),Jt=bt.extend("--ft-typography-font-family",yt.contentFont),qt={fontFamily:Jt,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=bt.extend("--ft-typography-title-font-family",Vt),Yt=bt.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=bt.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=bt.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),te=bt.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ee=bt.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ie=bt.extend("--ft-typography-title-dense-font-family",Vt),oe=bt.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),ne=bt.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),se=bt.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),re=bt.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),le=bt.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),ae=bt.extend("--ft-typography-subtitle1-font-family",Jt),pe=bt.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),ce=bt.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),de=bt.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fe=bt.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),he=bt.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ue=bt.extend("--ft-typography-subtitle2-font-family",Jt),ve=bt.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),be=bt.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),xe=bt.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),ye=bt.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),ge=bt.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),me={fontFamily:bt.extend("--ft-typography-body1-font-family",Jt),fontSize:bt.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),fontWeight:bt.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),lineHeight:bt.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),textTransform:bt.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit")},$e=bt.extend("--ft-typography-body2-font-family",Jt),we=bt.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Oe=bt.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),ke=bt.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),Se=bt.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),Ce=bt.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),Ee={fontFamily:bt.extend("--ft-typography-caption-font-family",Jt),fontSize:bt.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),fontWeight:bt.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),lineHeight:bt.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),textTransform:bt.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit")},Ne=bt.extend("--ft-typography-breadcrumb-font-family",Jt),Re=bt.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),ze=bt.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),Me=bt.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),Fe=bt.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),Ue=bt.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),je=bt.extend("--ft-typography-overline-font-family",Jt),Be=bt.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),De=bt.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Ae=bt.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Le=bt.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),Te=bt.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),Ie={fontFamily:bt.extend("--ft-typography-button-font-family",Jt),fontSize:bt.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase")},Pe=x`
123
122
  .ft-typography--title {
124
- font-family: ${qt};
125
- font-size: ${Xt};
126
- font-weight: ${Yt};
127
- letter-spacing: ${Gt};
128
- line-height: ${Qt};
129
- text-transform: ${te};
130
- }
131
- `,Pe=b`
123
+ font-family: ${Xt};
124
+ font-size: ${Yt};
125
+ font-weight: ${Gt};
126
+ letter-spacing: ${Qt};
127
+ line-height: ${te};
128
+ text-transform: ${ee};
129
+ }
130
+ `,_e=x`
132
131
  .ft-typography--title-dense {
133
- font-family: ${ee};
134
- font-size: ${ie};
135
- font-weight: ${oe};
136
- letter-spacing: ${ne};
137
- line-height: ${se};
138
- text-transform: ${re};
139
- }
140
- `,_e=b`
132
+ font-family: ${ie};
133
+ font-size: ${oe};
134
+ font-weight: ${ne};
135
+ letter-spacing: ${se};
136
+ line-height: ${re};
137
+ text-transform: ${le};
138
+ }
139
+ `,He=x`
141
140
  .ft-typography--subtitle1 {
142
- font-family: ${le};
143
- font-size: ${ae};
144
- font-weight: ${pe};
145
- letter-spacing: ${ce};
146
- line-height: ${de};
141
+ font-family: ${ae};
142
+ font-size: ${pe};
143
+ font-weight: ${ce};
144
+ letter-spacing: ${de};
145
+ line-height: ${fe};
147
146
  text-transform: ${he};
148
147
  }
149
- `,He=b`
148
+ `,We=x`
150
149
  .ft-typography--subtitle2 {
151
- font-family: ${fe};
152
- font-size: ${ue};
153
- font-weight: ${ve};
154
- letter-spacing: ${be};
155
- line-height: ${xe};
156
- text-transform: ${ye};
150
+ font-family: ${ue};
151
+ font-size: ${ve};
152
+ font-weight: ${be};
153
+ letter-spacing: ${xe};
154
+ line-height: ${ye};
155
+ text-transform: ${ge};
157
156
  }
158
157
 
159
- `,We=b`
158
+ `,Ze=x`
160
159
  .ft-typography--body1 {
161
- font-family: ${ge.fontFamily};
162
- font-size: ${ge.fontSize};
163
- font-weight: ${ge.fontWeight};
164
- letter-spacing: ${ge.letterSpacing};
165
- line-height: ${ge.lineHeight};
166
- text-transform: ${ge.textTransform};
167
- }
168
- `,Ze=b`
160
+ font-family: ${me.fontFamily};
161
+ font-size: ${me.fontSize};
162
+ font-weight: ${me.fontWeight};
163
+ letter-spacing: ${me.letterSpacing};
164
+ line-height: ${me.lineHeight};
165
+ text-transform: ${me.textTransform};
166
+ }
167
+ `,Ke=x`
169
168
  .ft-typography--body2 {
170
- font-family: ${me};
171
- font-size: ${$e};
172
- font-weight: ${we};
173
- letter-spacing: ${Oe};
174
- line-height: ${ke};
175
- text-transform: ${Se};
176
- }
177
- `,Ke=b`
169
+ font-family: ${$e};
170
+ font-size: ${we};
171
+ font-weight: ${Oe};
172
+ letter-spacing: ${ke};
173
+ line-height: ${Se};
174
+ text-transform: ${Ce};
175
+ }
176
+ `,Ve=x`
178
177
  .ft-typography--caption {
179
- font-family: ${Ce.fontFamily};
180
- font-size: ${Ce.fontSize};
181
- font-weight: ${Ce.fontWeight};
182
- letter-spacing: ${Ce.letterSpacing};
183
- line-height: ${Ce.lineHeight};
184
- text-transform: ${Ce.textTransform};
185
- }
186
- `,Ve=b`
178
+ font-family: ${Ee.fontFamily};
179
+ font-size: ${Ee.fontSize};
180
+ font-weight: ${Ee.fontWeight};
181
+ letter-spacing: ${Ee.letterSpacing};
182
+ line-height: ${Ee.lineHeight};
183
+ text-transform: ${Ee.textTransform};
184
+ }
185
+ `,Je=x`
187
186
  .ft-typography--breadcrumb {
188
- font-family: ${Ee};
189
- font-size: ${Ne};
190
- font-weight: ${Re};
191
- letter-spacing: ${ze};
192
- line-height: ${Me};
193
- text-transform: ${Fe};
194
- }
195
- `,Je=b`
187
+ font-family: ${Ne};
188
+ font-size: ${Re};
189
+ font-weight: ${ze};
190
+ letter-spacing: ${Me};
191
+ line-height: ${Fe};
192
+ text-transform: ${Ue};
193
+ }
194
+ `,qe=x`
196
195
  .ft-typography--overline {
197
- font-family: ${Ue};
196
+ font-family: ${je};
198
197
  font-size: ${Be};
199
- font-weight: ${je};
200
- letter-spacing: ${De};
201
- line-height: ${Ae};
202
- text-transform: ${Le};
198
+ font-weight: ${De};
199
+ letter-spacing: ${Ae};
200
+ line-height: ${Le};
201
+ text-transform: ${Te};
203
202
  }
204
- `,qe=b`
203
+ `,Xe=x`
205
204
  .ft-typography--button {
206
- font-family: ${Te.fontFamily};
207
- font-size: ${Te.fontSize};
208
- font-weight: ${Te.fontWeight};
209
- letter-spacing: ${Te.letterSpacing};
210
- line-height: ${Te.lineHeight};
211
- text-transform: ${Te.textTransform};
212
- }
213
- `,Xe=b`
205
+ font-family: ${Ie.fontFamily};
206
+ font-size: ${Ie.fontSize};
207
+ font-weight: ${Ie.fontWeight};
208
+ letter-spacing: ${Ie.letterSpacing};
209
+ line-height: ${Ie.lineHeight};
210
+ text-transform: ${Ie.textTransform};
211
+ }
212
+ `,Ye=x`
214
213
  .ft-typography {
215
214
  vertical-align: inherit;
216
215
  }
217
- `;var Ye=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ge extends gt{constructor(){super(...arguments),this.variant=Zt.body1}render(){return this.element?Wt`
218
- <${_t(this.element)}
216
+ `;var Ge=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Qe extends mt{constructor(){super(...arguments),this.variant=Kt.body1}render(){return this.element?Zt`
217
+ <${Ht(this.element)}
219
218
  class="ft-typography ft-typography--${this.variant}">
220
219
  <slot></slot>
221
- </${_t(this.element)}>
222
- `:Wt`
220
+ </${Ht(this.element)}>
221
+ `:Zt`
223
222
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
224
- `}}Ge.styles=[Ie,Pe,_e,He,We,Ze,Ke,Ve,Je,qe,Xe],Ye([o()],Ge.prototype,"element",void 0),Ye([o()],Ge.prototype,"variant",void 0),p("ft-typography")(Ge);const Qe={fontSize:vt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:vt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:vt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:vt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:vt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:vt.extend("--ft-input-label-border-color",xt.colorOutline),textColor:vt.extend("--ft-input-label-text-color",xt.colorOnSurfaceMedium),disabledTextColor:vt.extend("--ft-input-label-disabled-text-color",xt.colorOnSurfaceDisabled),colorSurface:vt.external(xt.colorSurface,"Design system"),borderRadiusS:vt.external(xt.borderRadiusS,"Design system"),colorError:vt.external(xt.colorError,"Design system")},ti=b`
223
+ `}}Qe.styles=[Pe,_e,He,We,Ze,Ke,Ve,Je,qe,Xe,Ye],Ge([o()],Qe.prototype,"element",void 0),Ge([o()],Qe.prototype,"variant",void 0),p("ft-typography")(Qe);const ti={fontSize:bt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:bt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:bt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:bt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:bt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:bt.extend("--ft-input-label-border-color",yt.colorOutline),textColor:bt.extend("--ft-input-label-text-color",yt.colorOnSurfaceMedium),disabledTextColor:bt.extend("--ft-input-label-disabled-text-color",yt.colorOnSurfaceDisabled),colorSurface:bt.external(yt.colorSurface,"Design system"),borderRadiusS:bt.external(yt.borderRadiusS,"Design system"),colorError:bt.external(yt.colorError,"Design system")},ei=x`
225
224
  .ft-input-label {
226
225
  position: absolute;
227
226
  inset: 0;
228
227
  display: flex;
229
- background-color: ${Qe.colorSurface};
230
- border-radius: ${Qe.borderRadiusS} ${Qe.borderRadiusS} 0 0;
228
+ background-color: ${ti.colorSurface};
229
+ border-radius: ${ti.borderRadiusS} ${ti.borderRadiusS} 0 0;
231
230
  }
232
231
 
233
232
  .ft-input-label--outlined {
234
- border-radius: ${Qe.borderRadiusS};
233
+ border-radius: ${ti.borderRadiusS};
235
234
  }
236
235
 
237
236
  .ft-input-label {
238
- border-color: ${Qe.borderColor};
237
+ border-color: ${ti.borderColor};
239
238
  }
240
239
 
241
240
  .ft-input-label.ft-input-label--in-error {
242
- border-color: ${Qe.colorError}
241
+ border-color: ${ti.colorError}
243
242
  }
244
243
 
245
244
  .ft-input-label:before,
@@ -252,7 +251,7 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
252
251
  }
253
252
 
254
253
  .ft-input-label:before {
255
- width: ${Qe.horizontalSpacing};
254
+ width: ${ti.horizontalSpacing};
256
255
  flex-shrink: 0;
257
256
  }
258
257
 
@@ -268,18 +267,18 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
268
267
  border-bottom-width: 1px;
269
268
  border-bottom-style: solid;
270
269
  border-color: inherit;
271
- color: ${Qe.textColor};
270
+ color: ${ti.textColor};
272
271
  transition: font-size 250ms, line-height 250ms, color 250ms;
273
- ${bt(Ce.fontSize,Qe.fontSize)};
274
- ${bt(Ce.lineHeight,Qe.fontSize)};
272
+ ${xt(Ee.fontSize,ti.fontSize)};
273
+ ${xt(Ee.lineHeight,ti.fontSize)};
275
274
  }
276
275
 
277
276
  .ft-input-label--in-error .ft-input-label--text {
278
- color: ${Qe.colorError}
277
+ color: ${ti.colorError}
279
278
  }
280
279
 
281
280
  .ft-input-label--disabled .ft-input-label--text {
282
- color: ${Qe.disabledTextColor};
281
+ color: ${ti.disabledTextColor};
283
282
  }
284
283
 
285
284
  .ft-input-label--hidden-text {
@@ -294,17 +293,17 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
294
293
  overflow: hidden;
295
294
  white-space: nowrap;
296
295
  text-overflow: ellipsis;
297
- padding: ${Qe.verticalSpacing} 4px;
298
- margin: calc(${Qe.verticalSpacing} * -1) 0;
296
+ padding: ${ti.verticalSpacing} 4px;
297
+ margin: calc(${ti.verticalSpacing} * -1) 0;
299
298
  }
300
299
 
301
300
  .ft-input-label--raised .ft-input-label--text {
302
- ${bt(Ce.fontSize,Qe.raisedFontSize)};
303
- ${bt(Ce.lineHeight,Qe.raisedFontSize)};
301
+ ${xt(Ee.fontSize,ti.raisedFontSize)};
302
+ ${xt(Ee.lineHeight,ti.raisedFontSize)};
304
303
  }
305
304
 
306
305
  .ft-input-label--raised .ft-input-label--floating-text {
307
- top: ${Qe.verticalSpacing};
306
+ top: ${ti.verticalSpacing};
308
307
  }
309
308
 
310
309
  .ft-input-label--outlined .ft-input-label--text,
@@ -317,36 +316,36 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
317
316
  .ft-input-label--outlined:before {
318
317
  border-left-width: 1px;
319
318
  border-left-style: solid;
320
- border-radius: ${Qe.borderRadiusS} 0 0 ${Qe.borderRadiusS};
319
+ border-radius: ${ti.borderRadiusS} 0 0 ${ti.borderRadiusS};
321
320
  }
322
321
 
323
322
  .ft-input-label--outlined:after {
324
323
  border-right-width: 1px;
325
324
  border-right-style: solid;
326
- border-radius: 0 ${Qe.borderRadiusS} ${Qe.borderRadiusS} 0;
325
+ border-radius: 0 ${ti.borderRadiusS} ${ti.borderRadiusS} 0;
327
326
  }
328
327
 
329
328
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
330
329
  padding: 2px 4px;
331
- z-index: ${Qe.raisedZIndex};
332
- background-color: ${Qe.colorSurface};
333
- border-radius: ${Qe.borderRadiusS};
330
+ z-index: ${ti.raisedZIndex};
331
+ background-color: ${ti.colorSurface};
332
+ border-radius: ${ti.borderRadiusS};
334
333
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
335
334
  }
336
335
 
337
336
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
338
337
  border-top: none;
339
338
  }
340
- `;var ei=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ii extends gt{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 V`
341
- <div class="${Tt(t)}">
342
- ${this.text?V`
339
+ `;var ii=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class oi 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 J`
340
+ <div class="${It(t)}">
341
+ ${this.text?J`
343
342
  <div class="ft-input-label--text ft-typography--caption">
344
343
  <span class="ft-input-label--floating-text">${this.text}</span>
345
344
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
346
345
  </div>
347
346
  `:null}
348
347
  </div>
349
- `}}ii.elementDefinitions={},ii.styles=[Ke,ti],ei([o({type:String})],ii.prototype,"text",void 0),ei([o({type:Boolean})],ii.prototype,"raised",void 0),ei([o({type:Boolean})],ii.prototype,"outlined",void 0),ei([o({type:Boolean})],ii.prototype,"disabled",void 0),ei([o({type:Boolean})],ii.prototype,"error",void 0),p("ft-input-label")(ii);const oi=vt.extend("--ft-ripple-color",xt.colorContent),ni={color:oi,backgroundColor:vt.extend("--ft-ripple-background-color",oi),opacityContentOnSurfacePressed:vt.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:vt.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:vt.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:vt.external(xt.opacityContentOnSurfaceSelected,"Design system")},si=vt.extend("--ft-ripple-color",xt.colorPrimary),ri=si,li=vt.extend("--ft-ripple-background-color",si),ai=vt.extend("--ft-ripple-color",xt.colorSecondary),pi=ai,ci=vt.extend("--ft-ripple-background-color",ai),di=b`
348
+ `}}oi.elementDefinitions={},oi.styles=[Ve,ei],ii([o({type:String})],oi.prototype,"text",void 0),ii([o({type:Boolean})],oi.prototype,"raised",void 0),ii([o({type:Boolean})],oi.prototype,"outlined",void 0),ii([o({type:Boolean})],oi.prototype,"disabled",void 0),ii([o({type:Boolean})],oi.prototype,"error",void 0),p("ft-input-label")(oi);const ni=bt.extend("--ft-ripple-color",yt.colorContent),si={color:ni,backgroundColor:bt.extend("--ft-ripple-background-color",ni),opacityContentOnSurfacePressed:bt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(yt.opacityContentOnSurfaceSelected,"Design system")},ri=bt.extend("--ft-ripple-color",yt.colorPrimary),li=ri,ai=bt.extend("--ft-ripple-background-color",ri),pi=bt.extend("--ft-ripple-color",yt.colorSecondary),ci=pi,di=bt.extend("--ft-ripple-background-color",pi),fi=x`
350
349
  :host {
351
350
  display: contents;
352
351
  }
@@ -368,27 +367,27 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
368
367
  }
369
368
 
370
369
  .ft-ripple .ft-ripple--background {
371
- background-color: ${ni.backgroundColor};
370
+ background-color: ${si.backgroundColor};
372
371
  }
373
372
 
374
373
  .ft-ripple .ft-ripple--effect {
375
- background-color: ${ni.color};
374
+ background-color: ${si.color};
376
375
  }
377
376
 
378
377
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
379
- background-color: ${ci};
378
+ background-color: ${di};
380
379
  }
381
380
 
382
381
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
383
- background-color: ${pi};
382
+ background-color: ${ci};
384
383
  }
385
384
 
386
385
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
387
- background-color: ${li};
386
+ background-color: ${ai};
388
387
  }
389
388
 
390
389
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
391
- background-color: ${ri};
390
+ background-color: ${li};
392
391
  }
393
392
 
394
393
  .ft-ripple .ft-ripple--background {
@@ -420,22 +419,22 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
420
419
  }
421
420
 
422
421
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
423
- opacity: ${ni.opacityContentOnSurfaceHover};
422
+ opacity: ${si.opacityContentOnSurfaceHover};
424
423
  }
425
424
 
426
425
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
427
- opacity: ${ni.opacityContentOnSurfaceSelected};
426
+ opacity: ${si.opacityContentOnSurfaceSelected};
428
427
  }
429
428
 
430
429
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
431
- opacity: ${ni.opacityContentOnSurfaceFocused};
430
+ opacity: ${si.opacityContentOnSurfaceFocused};
432
431
  }
433
432
 
434
433
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
435
- opacity: ${ni.opacityContentOnSurfacePressed};
434
+ opacity: ${si.opacityContentOnSurfacePressed};
436
435
  transform: translate(-50%, -50%) scale(1);
437
436
  }
438
- `;var hi,fi,ui=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class vi extends gt{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.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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 V`
437
+ `;var hi,ui,vi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class bi 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.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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`
439
438
  <style>
440
439
  .ft-ripple .ft-ripple--effect,
441
440
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -448,23 +447,23 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
448
447
  top: ${this.originY}px;
449
448
  }
450
449
  </style>
451
- <div class="${Tt(t)}">
450
+ <div class="${It(t)}">
452
451
  <div class="ft-ripple--background"></div>
453
452
  <div class="ft-ripple--effect"></div>
454
453
  </div>
455
- `}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(){var t;super.connectedCallback();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"),n=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",n),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",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}vi.elementDefinitions={},vi.styles=di,ui([o({type:Boolean})],vi.prototype,"primary",void 0),ui([o({type:Boolean})],vi.prototype,"secondary",void 0),ui([o({type:Boolean})],vi.prototype,"unbounded",void 0),ui([o({type:Boolean})],vi.prototype,"activated",void 0),ui([o({type:Boolean})],vi.prototype,"selected",void 0),ui([o({type:Boolean})],vi.prototype,"disabled",void 0),ui([n()],vi.prototype,"hovered",void 0),ui([n()],vi.prototype,"focused",void 0),ui([n()],vi.prototype,"pressed",void 0),ui([n()],vi.prototype,"rippling",void 0),ui([n()],vi.prototype,"rippleSize",void 0),ui([n()],vi.prototype,"originX",void 0),ui([n()],vi.prototype,"originY",void 0),ui([r(".ft-ripple")],vi.prototype,"ripple",void 0),ui([r(".ft-ripple--effect")],vi.prototype,"rippleEffect",void 0),p("ft-ripple")(vi),function(t){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.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",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="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",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="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(hi||(hi={})),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;"}(fi||(fi={})),new Map([...["abw"].map((t=>[t,fi.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,fi.AUDIO])),...["avi"].map((t=>[t,fi.AVI])),...["chm","xhs"].map((t=>[t,fi.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,fi.CODE])),...["csv"].map((t=>[t,fi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,fi.DITA])),...["epub"].map((t=>[t,fi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,fi.EXCEL])),...["flac"].map((t=>[t,fi.FLAC])),...["gif"].map((t=>[t,fi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,fi.GZIP])),...["html","htm","xhtml"].map((t=>[t,fi.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,fi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,fi.JPEG])),...["json"].map((t=>[t,fi.JSON])),...["m4a","m4p"].map((t=>[t,fi.M4A])),...["mov","qt"].map((t=>[t,fi.MOV])),...["mp3"].map((t=>[t,fi.MP3])),...["mp4","m4v"].map((t=>[t,fi.MP4])),...["ogg","oga"].map((t=>[t,fi.OGG])),...["pdf","ps"].map((t=>[t,fi.PDF])),...["png"].map((t=>[t,fi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,fi.POWERPOINT])),...["rar"].map((t=>[t,fi.RAR])),...["stp"].map((t=>[t,fi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,fi.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,fi.VIDEO])),...["wav"].map((t=>[t,fi.WAV])),...["wma"].map((t=>[t,fi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,fi.WORD])),...["xml","xsl","rdf"].map((t=>[t,fi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,fi.YAML])),...["zip"].map((t=>[t,fi.ZIP]))]);const bi={size:vt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:vt.extend("--ft-icon-fluid-topics-font-family",vt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:vt.extend("--ft-icon-file-format-font-family",vt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:vt.extend("--ft-icon-material-font-family",vt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:vt.create("--ft-icon-vertical-align","UNKNOWN","unset")},xi=b`
454
+ `}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(){var t;super.connectedCallback();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"),n=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",n),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",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}}bi.elementDefinitions={},bi.styles=fi,vi([o({type:Boolean})],bi.prototype,"primary",void 0),vi([o({type:Boolean})],bi.prototype,"secondary",void 0),vi([o({type:Boolean})],bi.prototype,"unbounded",void 0),vi([o({type:Boolean})],bi.prototype,"activated",void 0),vi([o({type:Boolean})],bi.prototype,"selected",void 0),vi([o({type:Boolean})],bi.prototype,"disabled",void 0),vi([n()],bi.prototype,"hovered",void 0),vi([n()],bi.prototype,"focused",void 0),vi([n()],bi.prototype,"pressed",void 0),vi([n()],bi.prototype,"rippling",void 0),vi([n()],bi.prototype,"rippleSize",void 0),vi([n()],bi.prototype,"originX",void 0),vi([n()],bi.prototype,"originY",void 0),vi([r(".ft-ripple")],bi.prototype,"ripple",void 0),vi([r(".ft-ripple--effect")],bi.prototype,"rippleEffect",void 0),p("ft-ripple")(bi),function(t){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.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",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="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",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="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(hi||(hi={})),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;"}(ui||(ui={})),new Map([...["abw"].map((t=>[t,ui.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,ui.AUDIO])),...["avi"].map((t=>[t,ui.AVI])),...["chm","xhs"].map((t=>[t,ui.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,ui.CODE])),...["csv"].map((t=>[t,ui.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ui.DITA])),...["epub"].map((t=>[t,ui.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ui.EXCEL])),...["flac"].map((t=>[t,ui.FLAC])),...["gif"].map((t=>[t,ui.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ui.GZIP])),...["html","htm","xhtml"].map((t=>[t,ui.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,ui.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ui.JPEG])),...["json"].map((t=>[t,ui.JSON])),...["m4a","m4p"].map((t=>[t,ui.M4A])),...["mov","qt"].map((t=>[t,ui.MOV])),...["mp3"].map((t=>[t,ui.MP3])),...["mp4","m4v"].map((t=>[t,ui.MP4])),...["ogg","oga"].map((t=>[t,ui.OGG])),...["pdf","ps"].map((t=>[t,ui.PDF])),...["png"].map((t=>[t,ui.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ui.POWERPOINT])),...["rar"].map((t=>[t,ui.RAR])),...["stp"].map((t=>[t,ui.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ui.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,ui.VIDEO])),...["wav"].map((t=>[t,ui.WAV])),...["wma"].map((t=>[t,ui.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ui.WORD])),...["xml","xsl","rdf"].map((t=>[t,ui.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ui.YAML])),...["zip"].map((t=>[t,ui.ZIP]))]);const xi={size:bt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:bt.create("--ft-icon-vertical-align","UNKNOWN","unset")},yi=x`
456
455
  :host {
457
456
  display: inline-block;
458
457
  }
459
458
 
460
459
  :host, i.ft-icon {
461
- width: ${bi.size};
462
- height: ${bi.size};
460
+ width: ${xi.size};
461
+ height: ${xi.size};
463
462
  text-align: center;
464
463
  }
465
464
 
466
465
  i.ft-icon {
467
- font-size: ${bi.size};
466
+ font-size: ${xi.size};
468
467
  line-height: 1;
469
468
  font-weight: normal;
470
469
  text-transform: none;
@@ -475,26 +474,26 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
475
474
  text-rendering: auto;
476
475
  -webkit-font-smoothing: antialiased;
477
476
  -moz-osx-font-smoothing: grayscale;
478
- vertical-align: ${bi.verticalAlign};
477
+ vertical-align: ${xi.verticalAlign};
479
478
  }
480
479
 
481
480
  .ft-icon--fluid-topics {
482
- font-family: ${bi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
481
+ font-family: ${xi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
483
482
  }
484
483
 
485
484
  .ft-icon--file-format {
486
- font-family: ${bi.fileFormatFontFamily}, ft-mime, sans-serif;
485
+ font-family: ${xi.fileFormatFontFamily}, ft-mime, sans-serif;
487
486
  }
488
487
 
489
488
  .ft-icon--material {
490
- font-family: ${bi.materialFontFamily}, "Material Icons", sans-serif;
489
+ font-family: ${xi.materialFontFamily}, "Material Icons", sans-serif;
491
490
  }
492
- `;var yi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(yi||(yi={}));var gi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class mi extends gt{constructor(){super(...arguments),this.variant=yi.fluid_topics,this.resolvedIcon=q}render(){const t="material"!==this.variant||this.value;return V`
491
+ `;var gi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(gi||(gi={}));var mi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class $i extends mt{constructor(){super(...arguments),this.variant=gi.fluid_topics,this.resolvedIcon=X}render(){const t="material"!==this.variant||this.value;return J`
493
492
  <i class="ft-icon ${"ft-icon--"+this.variant}">
494
- ${Lt(this.resolvedIcon)}
493
+ ${Tt(this.resolvedIcon)}
495
494
  <slot ?hidden=${t}></slot>
496
495
  </i>
497
- `}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 yi.file_format:this.resolvedIcon=null!==(t=fi[i.toUpperCase()])&&void 0!==t?t:i;break;case yi.fluid_topics:this.resolvedIcon=null!==(e=hi[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}mi.elementDefinitions={},mi.styles=xi,gi([o()],mi.prototype,"variant",void 0),gi([o()],mi.prototype,"value",void 0),gi([n()],mi.prototype,"resolvedIcon",void 0),gi([r("slot")],mi.prototype,"slottedContent",void 0),p("ft-icon")(mi);const $i={labelSize:vt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:vt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:vt.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:vt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:vt.extend("--ft-select-selected-option-color",xt.colorOnSurface),helperColor:vt.extend("--ft-select-helper-color",xt.colorOnSurfaceMedium),optionsColor:vt.extend("--ft-select-options-color",xt.colorOnSurface),optionsZIndex:vt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:vt.external(xt.colorSurface,"Design system"),colorOnSurfaceDisabled:vt.external(xt.colorOnSurfaceDisabled,"Design system"),colorPrimary:vt.external(xt.colorPrimary,"Design system"),borderRadiusS:vt.external(xt.borderRadiusS,"Design system"),elevation02:vt.external(xt.elevation02,"Design system"),colorError:vt.external(xt.colorError,"Design system")},wi=b`
496
+ `}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 gi.file_format:this.resolvedIcon=null!==(t=ui[i.toUpperCase()])&&void 0!==t?t:i;break;case gi.fluid_topics:this.resolvedIcon=null!==(e=hi[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||X}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}$i.elementDefinitions={},$i.styles=yi,mi([o()],$i.prototype,"variant",void 0),mi([o()],$i.prototype,"value",void 0),mi([n()],$i.prototype,"resolvedIcon",void 0),mi([r("slot")],$i.prototype,"slottedContent",void 0),p("ft-icon")($i);const wi={labelSize:bt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:bt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:bt.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:bt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:bt.extend("--ft-select-selected-option-color",yt.colorOnSurface),helperColor:bt.extend("--ft-select-helper-color",yt.colorOnSurfaceMedium),optionsColor:bt.extend("--ft-select-options-color",yt.colorOnSurface),optionsZIndex:bt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:bt.external(yt.colorSurface,"Design system"),colorOnSurfaceDisabled:bt.external(yt.colorOnSurfaceDisabled,"Design system"),colorPrimary:bt.external(yt.colorPrimary,"Design system"),borderRadiusS:bt.external(yt.borderRadiusS,"Design system"),elevation02:bt.external(yt.elevation02,"Design system"),colorError:bt.external(yt.colorError,"Design system")},Oi=x`
498
497
  *:focus {
499
498
  outline: none;
500
499
  }
@@ -508,7 +507,7 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
508
507
  .ft-select--main-panel {
509
508
  position: relative;
510
509
  display: flex;
511
- height: calc(4 * ${$i.verticalSpacing} + ${$i.labelSize} + ${$i.selectedOptionSize});
510
+ height: calc(4 * ${wi.verticalSpacing} + ${wi.labelSize} + ${wi.selectedOptionSize});
512
511
  }
513
512
 
514
513
  .ft-select--input-panel {
@@ -520,14 +519,14 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
520
519
  padding-left: 16px;
521
520
  padding-right: 8px;
522
521
  gap: 8px;
523
- color: ${$i.selectedOptionColor};
524
- ${bt(ni.color,$i.selectedOptionColor)};
522
+ color: ${wi.selectedOptionColor};
523
+ ${xt(si.color,wi.selectedOptionColor)};
525
524
  }
526
525
 
527
526
  .ft-select--input-panel,
528
527
  .ft-select--option {
529
- ${bt(ni.opacityContentOnSurfaceHover,"0.08")};
530
- ${bt(ni.opacityContentOnSurfacePressed,"0.04")};
528
+ ${xt(si.opacityContentOnSurfaceHover,"0.08")};
529
+ ${xt(si.opacityContentOnSurfacePressed,"0.04")};
531
530
  }
532
531
 
533
532
  .ft-select--input-panel > *:not(ft-ripple),
@@ -537,7 +536,7 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
537
536
 
538
537
  .ft-select--disabled .ft-select--input-panel,
539
538
  .ft-select--disabled .ft-select--option {
540
- color: ${$i.colorOnSurfaceDisabled};
539
+ color: ${wi.colorOnSurfaceDisabled};
541
540
  }
542
541
 
543
542
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -546,18 +545,18 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
546
545
  }
547
546
 
548
547
  ft-input-label {
549
- ${bt(Qe.fontSize,$i.selectedOptionSize)};
550
- ${bt(Qe.raisedFontSize,$i.labelSize)};
551
- ${bt(Qe.verticalSpacing,$i.verticalSpacing)};
548
+ ${xt(ti.fontSize,wi.selectedOptionSize)};
549
+ ${xt(ti.raisedFontSize,wi.labelSize)};
550
+ ${xt(ti.verticalSpacing,wi.verticalSpacing)};
552
551
  }
553
552
 
554
553
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
555
- color: ${$i.colorPrimary};
554
+ color: ${wi.colorPrimary};
556
555
  }
557
556
 
558
557
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
559
- ${bt(Qe.borderColor,$i.colorPrimary)};
560
- ${bt(Qe.textColor,$i.colorPrimary)};
558
+ ${xt(ti.borderColor,wi.colorPrimary)};
559
+ ${xt(ti.textColor,wi.colorPrimary)};
561
560
  }
562
561
 
563
562
  .ft-select--selected-option {
@@ -567,12 +566,12 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
567
566
  overflow: hidden;
568
567
  white-space: nowrap;
569
568
  text-overflow: ellipsis;
570
- ${bt(ge.fontSize,$i.selectedOptionSize)};
571
- ${bt(ge.lineHeight,$i.selectedOptionSize)};
569
+ ${xt(me.fontSize,wi.selectedOptionSize)};
570
+ ${xt(me.lineHeight,wi.selectedOptionSize)};
572
571
  }
573
572
 
574
573
  .ft-select--in-error .ft-select--selected-option {
575
- color: ${$i.colorError};
574
+ color: ${wi.colorError};
576
575
  }
577
576
 
578
577
  ft-icon {
@@ -584,16 +583,16 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
584
583
  }
585
584
 
586
585
  .ft-select--filled .ft-select--input-panel {
587
- border-radius: ${$i.borderRadiusS} ${$i.borderRadiusS} 0 0;
586
+ border-radius: ${wi.borderRadiusS} ${wi.borderRadiusS} 0 0;
588
587
  }
589
588
 
590
589
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
591
590
  align-self: stretch;
592
- padding-top: calc(${$i.labelSize} + 2 * ${$i.verticalSpacing});
591
+ padding-top: calc(${wi.labelSize} + 2 * ${wi.verticalSpacing});
593
592
  }
594
593
 
595
594
  .ft-select--outlined .ft-select--input-panel {
596
- border-radius: ${$i.borderRadiusS};
595
+ border-radius: ${wi.borderRadiusS};
597
596
  }
598
597
 
599
598
  .ft-select--options {
@@ -602,10 +601,10 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
602
601
  top: 100%;
603
602
  left: 0;
604
603
  right: 0;
605
- color: ${$i.optionsColor};
606
- background: ${$i.colorSurface};
607
- z-index: ${$i.optionsZIndex};
608
- box-shadow: ${$i.elevation02};
604
+ color: ${wi.optionsColor};
605
+ background: ${wi.colorSurface};
606
+ z-index: ${wi.optionsZIndex};
607
+ box-shadow: ${wi.elevation02};
609
608
  }
610
609
 
611
610
  .ft-select--fixed .ft-select--options {
@@ -616,7 +615,7 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
616
615
 
617
616
  .ft-select--options-displayed .ft-select--options {
618
617
  display: block;
619
- max-height: ${$i.optionsHeight};
618
+ max-height: ${wi.optionsHeight};
620
619
  overflow-y: auto;
621
620
  }
622
621
 
@@ -635,14 +634,14 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
635
634
 
636
635
  .ft-select--helper-text {
637
636
  padding: 0 12px 0 16px;
638
- color: ${$i.helperColor};
637
+ color: ${wi.helperColor};
639
638
  }
640
639
 
641
640
  .ft-select--in-error .ft-select--helper-text {
642
- color: ${$i.colorError};
641
+ color: ${wi.colorError};
643
642
  }
644
- `;var Oi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ki extends gt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return V``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}ki.elementDefinitions={},Oi([o({type:String})],ki.prototype,"label",void 0),Oi([o({type:Object,converter:t=>t})],ki.prototype,"value",void 0),Oi([o({type:Boolean,reflect:!0})],ki.prototype,"selected",void 0);class Si extends gt{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,n;let s=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":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return V`
645
- <div class="${Tt(a)}" part="container">
643
+ `;var ki=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Si extends mt{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}))}}Si.elementDefinitions={},ki([o({type:String})],Si.prototype,"label",void 0),ki([o({type:Object,converter:t=>t})],Si.prototype,"value",void 0),ki([o({type:Boolean,reflect:!0})],Si.prototype,"selected",void 0);class Ci 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,n;let s=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":s,"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`
644
+ <div class="${It(a)}" part="container">
646
645
  <div class="ft-select--main-panel" part="main-panel">
647
646
  <ft-input-label text="${this.label}"
648
647
  part="label"
@@ -669,18 +668,18 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
669
668
  part="options"
670
669
  @keydown=${this.onOptionsKeyDown}
671
670
  innerrole="listbox">
672
- ${Dt(this.options,(t=>t.value),(t=>this.renderOption(t)))}
671
+ ${At(this.options,(t=>t.value),(t=>this.renderOption(t)))}
673
672
  </div>
674
673
  </div>
675
- ${this.helper?V`
674
+ ${this.helper?J`
676
675
  <ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
677
676
  </ft-typography>`:void 0}
678
677
  </div>
679
678
  <slot @slotchange=${this.updateOptionsFromSlot}
680
679
  @option-change=${this.updateOptionsFromSlot}
681
680
  ></slot>
682
- `}renderOption(t){let e=this.selectedOption===t;return V`
683
- <div class="${Tt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
681
+ `}renderOption(t){let e=this.selectedOption===t;return J`
682
+ <div class="${It({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
684
683
  part="option"
685
684
  tabindex="0"
686
685
  data-value="${t.value}"
@@ -689,7 +688,7 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
689
688
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
690
689
  <span>${t.label}</span>
691
690
  </div>
692
- `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),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,n,s;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!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s: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){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Si.elementDefinitions={"ft-input-label":ii,"ft-typography":Ge,"ft-ripple":vi,"ft-icon":mi},Si.styles=[Ze,Ke,wi],Oi([o({type:String})],Si.prototype,"label",void 0),Oi([o({type:String})],Si.prototype,"helper",void 0),Oi([o({type:Boolean})],Si.prototype,"outlined",void 0),Oi([o({type:Boolean})],Si.prototype,"disabled",void 0),Oi([o({type:Boolean})],Si.prototype,"error",void 0),Oi([o({type:Boolean})],Si.prototype,"fixedMenuPosition",void 0),Oi([o({type:Array})],Si.prototype,"options",void 0),Oi([n()],Si.prototype,"selectedOption",void 0),Oi([n()],Si.prototype,"optionsDisplayed",void 0),Oi([n()],Si.prototype,"focusOptions",void 0),Oi([r(".ft-select")],Si.prototype,"container",void 0),Oi([r(".ft-select--options")],Si.prototype,"optionsMenu",void 0),Oi([r(".ft-select--input-panel")],Si.prototype,"mainPanel",void 0),Oi([r(".ft-select--option:first-child")],Si.prototype,"firstOption",void 0),Oi([r(".ft-select--option:focus")],Si.prototype,"focusedOption",void 0),Oi([r(".ft-select--option.ft-select--option-selected")],Si.prototype,"selectedOptionElement",void 0),Oi([r(".ft-select--option:last-child")],Si.prototype,"lastOption",void 0),Oi([r("slot")],Si.prototype,"optionsSlot",void 0),p("ft-select")(Si),p("ft-select-option")(ki);const Ci={fontSize:vt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:vt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:vt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:vt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:vt.extend("--ft-text-field-helper-color",xt.colorOnSurfaceMedium),colorPrimary:vt.external(xt.colorPrimary,"Design system"),colorOnSurface:vt.external(xt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:vt.external(xt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:vt.external(xt.borderRadiusS,"Design system"),colorError:vt.external(xt.colorError,"Design system"),prefixColor:vt.extend("--ft-text-field-prefix-color",xt.colorOnSurfaceMedium),iconColor:vt.extend("--ft-text-field-icon-color",xt.colorOnSurfaceMedium)},Ei=b`
691
+ `}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,n,s;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!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s: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(!c(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)}}Ci.elementDefinitions={"ft-input-label":oi,"ft-typography":Qe,"ft-ripple":bi,"ft-icon":$i},Ci.styles=[Ke,Ve,Oi],ki([o({type:String})],Ci.prototype,"label",void 0),ki([o({type:String})],Ci.prototype,"helper",void 0),ki([o({type:Boolean})],Ci.prototype,"outlined",void 0),ki([o({type:Boolean})],Ci.prototype,"disabled",void 0),ki([o({type:Boolean})],Ci.prototype,"error",void 0),ki([o({type:Boolean})],Ci.prototype,"fixedMenuPosition",void 0),ki([o({type:Array})],Ci.prototype,"options",void 0),ki([n()],Ci.prototype,"selectedOption",void 0),ki([n()],Ci.prototype,"optionsDisplayed",void 0),ki([n()],Ci.prototype,"focusOptions",void 0),ki([r(".ft-select")],Ci.prototype,"container",void 0),ki([r(".ft-select--options")],Ci.prototype,"optionsMenu",void 0),ki([r(".ft-select--input-panel")],Ci.prototype,"mainPanel",void 0),ki([r(".ft-select--option:first-child")],Ci.prototype,"firstOption",void 0),ki([r(".ft-select--option:focus")],Ci.prototype,"focusedOption",void 0),ki([r(".ft-select--option.ft-select--option-selected")],Ci.prototype,"selectedOptionElement",void 0),ki([r(".ft-select--option:last-child")],Ci.prototype,"lastOption",void 0),ki([r("slot")],Ci.prototype,"optionsSlot",void 0),p("ft-select")(Ci),p("ft-select-option")(Si);const Ei={fontSize:bt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:bt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:bt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:bt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:bt.extend("--ft-text-field-helper-color",yt.colorOnSurfaceMedium),colorPrimary:bt.external(yt.colorPrimary,"Design system"),colorOnSurface:bt.external(yt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:bt.external(yt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:bt.external(yt.borderRadiusS,"Design system"),colorError:bt.external(yt.colorError,"Design system"),prefixColor:bt.extend("--ft-text-field-prefix-color",yt.colorOnSurfaceMedium),iconColor:bt.extend("--ft-text-field-icon-color",yt.colorOnSurfaceMedium)},Ni=x`
693
692
  *:focus {
694
693
  outline: none;
695
694
  }
@@ -701,16 +700,16 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
701
700
  }
702
701
 
703
702
  ft-input-label {
704
- ${bt(Qe.fontSize,Ci.fontSize)};
705
- ${bt(Qe.raisedFontSize,Ci.labelSize)};
706
- ${bt(Qe.verticalSpacing,Ci.verticalSpacing)};
707
- ${bt(Qe.horizontalSpacing,b`calc(${Ci.horizontalSpacing} - 4px)`)};
703
+ ${xt(ti.fontSize,Ei.fontSize)};
704
+ ${xt(ti.raisedFontSize,Ei.labelSize)};
705
+ ${xt(ti.verticalSpacing,Ei.verticalSpacing)};
706
+ ${xt(ti.horizontalSpacing,x`calc(${Ei.horizontalSpacing} - 4px)`)};
708
707
  }
709
708
 
710
709
  .ft-text-field--main-panel {
711
710
  position: relative;
712
711
  display: flex;
713
- height: calc(4 * ${Ci.verticalSpacing} + ${Ci.labelSize} + ${Ci.fontSize});
712
+ height: calc(4 * ${Ei.verticalSpacing} + ${Ei.labelSize} + ${Ei.fontSize});
714
713
  }
715
714
 
716
715
  .ft-text-field--input-panel {
@@ -722,8 +721,8 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
722
721
  }
723
722
 
724
723
  .ft-text-field--input-panel ft-ripple {
725
- ${bt(ni.opacityContentOnSurfaceHover,"0.08")};
726
- ${bt(ni.opacityContentOnSurfacePressed,"0.04")};
724
+ ${xt(si.opacityContentOnSurfaceHover,"0.08")};
725
+ ${xt(si.opacityContentOnSurfacePressed,"0.04")};
727
726
  }
728
727
 
729
728
  .ft-text-field--input-wrapper {
@@ -733,20 +732,20 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
733
732
  display: flex;
734
733
  align-items: center;
735
734
 
736
- ${bt(ge.fontSize,Ci.fontSize)};
737
- ${bt(ge.lineHeight,Ci.fontSize)};
735
+ ${xt(me.fontSize,Ei.fontSize)};
736
+ ${xt(me.lineHeight,Ei.fontSize)};
738
737
 
739
- padding: 0 ${Ci.horizontalSpacing};
738
+ padding: 0 ${Ei.horizontalSpacing};
740
739
  }
741
740
 
742
741
  .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
743
742
  align-items: flex-end;
744
- padding: 0 ${Ci.horizontalSpacing} ${Ci.verticalSpacing} ${Ci.horizontalSpacing};
743
+ padding: 0 ${Ei.horizontalSpacing} ${Ei.verticalSpacing} ${Ei.horizontalSpacing};
745
744
  }
746
745
 
747
746
  .ft-text-field--prefix {
748
747
  display: none;
749
- color: ${Ci.prefixColor}
748
+ color: ${Ei.prefixColor}
750
749
  }
751
750
 
752
751
  .ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
@@ -760,15 +759,15 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
760
759
  flex-shrink: 1;
761
760
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
762
761
 
763
- color: ${Ci.colorOnSurface};
764
- padding: calc(2 * ${Ci.verticalSpacing}) 0;
762
+ color: ${Ei.colorOnSurface};
763
+ padding: calc(2 * ${Ei.verticalSpacing}) 0;
765
764
  border: none;
766
765
  background: none;
767
766
  }
768
767
 
769
768
  .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
770
769
  padding-bottom: 0;
771
- padding-top: calc(${Ci.labelSize} + 2 * ${Ci.verticalSpacing});
770
+ padding-top: calc(${Ei.labelSize} + 2 * ${Ei.verticalSpacing});
772
771
  }
773
772
 
774
773
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -777,7 +776,7 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
777
776
  }
778
777
 
779
778
  .ft-text-field--disabled .ft-text-field--input {
780
- color: ${Ci.colorOnSurfaceDisabled};
779
+ color: ${Ei.colorOnSurfaceDisabled};
781
780
  }
782
781
 
783
782
  .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
@@ -785,35 +784,35 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
785
784
  }
786
785
 
787
786
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
788
- ${bt(Qe.borderColor,Ci.colorPrimary)};
789
- ${bt(Qe.textColor,Ci.colorPrimary)};
787
+ ${xt(ti.borderColor,Ei.colorPrimary)};
788
+ ${xt(ti.textColor,Ei.colorPrimary)};
790
789
  }
791
790
 
792
791
  .ft-text-field--filled .ft-text-field--input-panel {
793
- border-radius: ${Ci.borderRadiusS} ${Ci.borderRadiusS} 0 0;
792
+ border-radius: ${Ei.borderRadiusS} ${Ei.borderRadiusS} 0 0;
794
793
  }
795
794
 
796
795
  .ft-text-field--outlined .ft-text-field--input-panel {
797
- border-radius: ${Ci.borderRadiusS};
796
+ border-radius: ${Ei.borderRadiusS};
798
797
  }
799
798
 
800
799
  .ft-text-field--helper-text {
801
- padding: 0 12px 0 ${Ci.horizontalSpacing};
802
- color: ${Ci.helperColor};
800
+ padding: 0 12px 0 ${Ei.horizontalSpacing};
801
+ color: ${Ei.helperColor};
803
802
  }
804
803
 
805
804
  .ft-text-field--in-error .ft-text-field--input,
806
805
  .ft-text-field--in-error .ft-text-field--helper-text,
807
806
  .ft-text-field--in-error .ft-text-field--prefix {
808
- color: ${Ci.colorError};
807
+ color: ${Ei.colorError};
809
808
  }
810
809
 
811
810
  .ft-text-field--icon {
812
- padding-right: ${Ci.horizontalSpacing};
813
- color: ${Ci.iconColor};
811
+ padding-right: ${Ei.horizontalSpacing};
812
+ color: ${Ei.iconColor};
814
813
  }
815
- `;var Ni=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ri extends gt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return V`
816
- <div class="${Tt(t)}">
814
+ `;var Ri=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class zi extends mt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return J`
815
+ <div class="${It(t)}">
817
816
  <div class="ft-text-field--main-panel">
818
817
  <ft-input-label text="${this.label}"
819
818
  ?disabled=${this.disabled}
@@ -823,7 +822,7 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
823
822
  ></ft-input-label>
824
823
  <div class="ft-text-field--input-panel"
825
824
  aria-label="${this.label}">
826
- ${this.outlined?null:V`
825
+ ${this.outlined?null:J`
827
826
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
828
827
  `}
829
828
  <div class="ft-text-field--input-wrapper">
@@ -838,16 +837,16 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
838
837
  @focusout=${()=>this.focused=!1}
839
838
  />
840
839
  </div>
841
- ${this.icon?V`
840
+ ${this.icon?J`
842
841
  <ft-icon class="ft-text-field--icon" variant="${this.iconVariant}">${this.icon}
843
842
  </ft-icon>`:void 0}
844
843
  </div>
845
844
  </div>
846
- ${this.helper?V`
845
+ ${this.helper?J`
847
846
  <ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
848
847
  </ft-typography>`:void 0}
849
848
  </div>
850
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}Ri.elementDefinitions={"ft-input-label":ii,"ft-ripple":vi,"ft-typography":Ge,"ft-icon":mi},Ri.styles=[We,Ei],Ni([o({type:String})],Ri.prototype,"label",void 0),Ni([o({reflect:!0})],Ri.prototype,"value",void 0),Ni([o({type:String})],Ri.prototype,"helper",void 0),Ni([o({type:Boolean})],Ri.prototype,"outlined",void 0),Ni([o({type:Boolean})],Ri.prototype,"disabled",void 0),Ni([o({type:Boolean})],Ri.prototype,"error",void 0),Ni([r(".ft-text-field--input")],Ri.prototype,"input",void 0),Ni([o({type:String})],Ri.prototype,"prefix",void 0),Ni([o({type:String})],Ri.prototype,"icon",void 0),Ni([o({type:String})],Ri.prototype,"iconVariant",void 0),Ni([n()],Ri.prototype,"focused",void 0),p("ft-text-field")(Ri);const zi=vt.create("--ft-tooltip-distance","SIZE","4px"),Mi=vt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Fi=vt.create("--ft-tooltip-background-color","COLOR","#666666"),Ui=vt.create("--ft-tooltip-z-index","NUMBER","1"),Bi=vt.external(xt.borderRadiusS,"Design system"),ji=vt.create("--ft-tooltip-max-width","SIZE","150px"),Di=b`
849
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}zi.elementDefinitions={"ft-input-label":oi,"ft-ripple":bi,"ft-typography":Qe,"ft-icon":$i},zi.styles=[Ze,Ni],Ri([o({type:String})],zi.prototype,"label",void 0),Ri([o({reflect:!0})],zi.prototype,"value",void 0),Ri([o({type:String})],zi.prototype,"helper",void 0),Ri([o({type:Boolean})],zi.prototype,"outlined",void 0),Ri([o({type:Boolean})],zi.prototype,"disabled",void 0),Ri([o({type:Boolean})],zi.prototype,"error",void 0),Ri([r(".ft-text-field--input")],zi.prototype,"input",void 0),Ri([o({type:String})],zi.prototype,"prefix",void 0),Ri([o({type:String})],zi.prototype,"icon",void 0),Ri([o({type:String})],zi.prototype,"iconVariant",void 0),Ri([n()],zi.prototype,"focused",void 0),p("ft-text-field")(zi);const Mi=bt.create("--ft-tooltip-distance","SIZE","4px"),Fi=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ui=bt.create("--ft-tooltip-background-color","COLOR","#666666"),ji=bt.create("--ft-tooltip-z-index","NUMBER","1"),Bi=bt.external(yt.borderRadiusS,"Design system"),Di=bt.create("--ft-tooltip-max-width","SIZE","150px"),Ai=x`
851
850
  .ft-tooltip--container {
852
851
  display: block;
853
852
  position: relative;
@@ -863,23 +862,23 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
863
862
  box-sizing: border-box;
864
863
  overflow: hidden;
865
864
  width: max-content;
866
- max-width: ${ji};
865
+ max-width: ${Di};
867
866
  text-align: center;
868
- padding: ${zi};
869
- z-index: ${Ui};
867
+ padding: ${Mi};
868
+ z-index: ${ji};
870
869
  }
871
870
 
872
871
  .ft-tooltip--content {
873
872
  padding: 4px 8px;
874
873
  border-radius: ${Bi};
875
- background-color: ${Fi};
876
- color: ${Mi};
874
+ background-color: ${Ui};
875
+ color: ${Fi};
877
876
  top: -500px;
878
877
  left: -500px;
879
878
  position: relative;
880
879
  word-break: break-word;
881
880
  }
882
- `;var Ai=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Li extends gt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return V`
881
+ `;var Li=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ti extends mt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return J`
883
882
  <div part="container"
884
883
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
885
884
  @mouseenter=${this.onHover}
@@ -895,13 +894,13 @@ class At extends Nt{constructor(t){if(super(t),this.it=q,t.type!==Ct)throw Error
895
894
  </div>
896
895
  <slot></slot>
897
896
  </div>
898
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.position){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${ji})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Li.elementDefinitions={"ft-typography":Ge},Li.styles=Di,Ai([o()],Li.prototype,"text",void 0),Ai([o({type:Boolean})],Li.prototype,"manual",void 0),Ai([o({type:Boolean})],Li.prototype,"inline",void 0),Ai([o({type:Number})],Li.prototype,"delay",void 0),Ai([o()],Li.prototype,"position",void 0),Ai([
897
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.position){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${Di})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ti.elementDefinitions={"ft-typography":Qe},Ti.styles=Ai,Li([o()],Ti.prototype,"text",void 0),Li([o({type:Boolean})],Ti.prototype,"manual",void 0),Li([o({type:Boolean})],Ti.prototype,"inline",void 0),Li([o({type:Number})],Ti.prototype,"delay",void 0),Li([o()],Ti.prototype,"position",void 0),Li([
899
898
  /**
900
899
  * @license
901
900
  * Copyright 2017 Google LLC
902
901
  * SPDX-License-Identifier: BSD-3-Clause
903
902
  */
904
- function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Li.prototype,"slotNodes",void 0),Ai([r(".ft-tooltip--container")],Li.prototype,"container",void 0),Ai([r("slot")],Li.prototype,"target",void 0),Ai([r(".ft-tooltip")],Li.prototype,"tooltip",void 0),Ai([r(".ft-tooltip--content")],Li.prototype,"tooltipContent",void 0),Ai([n()],Li.prototype,"visible",void 0),p("ft-tooltip")(Li);const Ti={color:vt.extend("--ft-loader-color",xt.colorPrimary),size:vt.create("--ft-loader-size","SIZE","80px")},Ii=b`
903
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ti.prototype,"slotNodes",void 0),Li([r(".ft-tooltip--container")],Ti.prototype,"container",void 0),Li([r("slot")],Ti.prototype,"target",void 0),Li([r(".ft-tooltip")],Ti.prototype,"tooltip",void 0),Li([r(".ft-tooltip--content")],Ti.prototype,"tooltipContent",void 0),Li([n()],Ti.prototype,"visible",void 0),p("ft-tooltip")(Ti);const Ii={color:bt.extend("--ft-loader-color",yt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},Pi=x`
905
904
  :host {
906
905
  line-height: 0;
907
906
  }
@@ -910,8 +909,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
910
909
  display: inline-block;
911
910
  position: relative;
912
911
 
913
- width: ${Ti.size};
914
- height: ${Ti.size};
912
+ width: ${Ii.size};
913
+ height: ${Ii.size};
915
914
  }
916
915
 
917
916
  .ft-loader div {
@@ -920,7 +919,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
920
919
  width: 25%;
921
920
  height: 25%;
922
921
  border-radius: 50%;
923
- background: ${Ti.color};
922
+ background: ${Ii.color};
924
923
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
925
924
  }
926
925
 
@@ -967,17 +966,17 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
967
966
  transform: translate(0, 0);
968
967
  }
969
968
  100% {
970
- transform: translate(calc(0.35 * ${Ti.size}), 0);
969
+ transform: translate(calc(0.35 * ${Ii.size}), 0);
971
970
  }
972
971
  }
973
- `;class Pi extends gt{render(){return V`
972
+ `;class _i extends mt{render(){return J`
974
973
  <div class="ft-loader">
975
974
  <div></div>
976
975
  <div></div>
977
976
  <div></div>
978
977
  <div></div>
979
978
  </div>
980
- `}}Pi.styles=Ii,p("ft-loader")(Pi);const _i=vt.extend("--ft-button-color",xt.colorPrimary),Hi={backgroundColor:vt.extend("--ft-button-background-color",xt.colorSurface),borderRadius:vt.extend("--ft-button-border-radius",xt.borderRadiusL),color:_i,fontSize:vt.extend("--ft-button-font-size",Te.fontSize),iconSize:vt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:vt.extend("--ft-button-ripple-color",_i),opacityDisabled:vt.external(xt.colorOpacityDisabled,"Design system")},Wi=vt.extend("--ft-button-primary-color",vt.extend("--ft-button-color",xt.colorOnPrimary)),Zi={backgroundColor:vt.extend("--ft-button-primary-background-color",vt.extend("--ft-button-background-color",xt.colorPrimary)),color:Wi,rippleColor:vt.extend("--ft-button-primary-ripple-color",Wi)},Ki=vt.extend("--ft-button-dense-border-radius",vt.extend("--ft-button-border-radius",xt.borderRadiusM)),Vi=[mt,b`
979
+ `}}_i.styles=Pi,p("ft-loader")(_i);const Hi=bt.extend("--ft-button-color",yt.colorPrimary),Wi={backgroundColor:bt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",yt.borderRadiusL),color:Hi,fontSize:bt.extend("--ft-button-font-size",Ie.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",Hi),opacityDisabled:bt.external(yt.colorOpacityDisabled,"Design system")},Zi=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",yt.colorOnPrimary)),Ki={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",yt.colorPrimary)),color:Zi,rippleColor:bt.extend("--ft-button-primary-ripple-color",Zi)},Vi=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",yt.borderRadiusM)),Ji=[$t,x`
981
980
  :host {
982
981
  display: inline-block;
983
982
  max-width: 100%;
@@ -988,7 +987,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
988
987
  box-shadow: 0px 0px 0px transparent;
989
988
  border: 0px solid transparent;
990
989
  text-shadow: 0px 0px 0px transparent;
991
- font-size: ${Hi.fontSize};
990
+ font-size: ${Wi.fontSize};
992
991
  }
993
992
 
994
993
  button:hover {
@@ -1017,17 +1016,17 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1017
1016
  border: none;
1018
1017
  pointer-events: auto;
1019
1018
 
1020
- --ft-button-internal-line-height: calc(${Hi.fontSize} + 2px);
1021
- --ft-button-internal-color: ${Hi.color};
1022
- ${bt(bi.size,Hi.iconSize)};
1019
+ --ft-button-internal-line-height: calc(${Wi.fontSize} + 2px);
1020
+ --ft-button-internal-color: ${Wi.color};
1021
+ ${xt(xi.size,Wi.iconSize)};
1023
1022
  --ft-button-internal-vertical-padding: 6px;
1024
1023
  --ft-button-internal-horizontal-padding: 8px;
1025
- ${bt(ni.color,Hi.rippleColor)};
1026
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Hi.iconSize});
1024
+ ${xt(si.color,Wi.rippleColor)};
1025
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Wi.iconSize});
1027
1026
 
1028
- border-radius: ${Hi.borderRadius};
1027
+ border-radius: ${Wi.borderRadius};
1029
1028
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
1030
- background-color: ${Hi.backgroundColor};
1029
+ background-color: ${Wi.backgroundColor};
1031
1030
  color: var(--ft-button-internal-color);
1032
1031
  -webkit-mask-image: radial-gradient(white, black);
1033
1032
  }
@@ -1039,7 +1038,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1039
1038
  .ft-button--dense {
1040
1039
  --ft-button-internal-vertical-padding: 2px;
1041
1040
  --ft-button-internal-horizontal-padding: 4px;
1042
- border-radius: ${Ki};
1041
+ border-radius: ${Vi};
1043
1042
  }
1044
1043
 
1045
1044
  .ft-button--round {
@@ -1048,13 +1047,13 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1048
1047
 
1049
1048
  .ft-button[disabled] {
1050
1049
  filter: grayscale(1);
1051
- opacity: ${Hi.opacityDisabled};
1050
+ opacity: ${Wi.opacityDisabled};
1052
1051
  }
1053
1052
 
1054
1053
  .ft-button.ft-button--primary {
1055
- background-color: ${Zi.backgroundColor};
1056
- --ft-button-internal-color: ${Zi.color};
1057
- ${bt(ni.color,Zi.rippleColor)};
1054
+ background-color: ${Ki.backgroundColor};
1055
+ --ft-button-internal-color: ${Ki.color};
1056
+ ${xt(si.color,Ki.rippleColor)};
1058
1057
  }
1059
1058
 
1060
1059
  .ft-button.ft-button--outlined {
@@ -1073,8 +1072,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1073
1072
  text-overflow: ellipsis;
1074
1073
  display: block;
1075
1074
  margin: 0 var(--ft-button-internal-horizontal-padding);
1076
- ${bt(Te.fontSize,"1em")};
1077
- ${bt(Te.lineHeight,"var(--ft-button-internal-content-height)")};
1075
+ ${xt(Ie.fontSize,"1em")};
1076
+ ${xt(Ie.lineHeight,"var(--ft-button-internal-content-height)")};
1078
1077
  }
1079
1078
 
1080
1079
  .ft-button--safari-fix .ft-button--label {
@@ -1107,12 +1106,12 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1107
1106
  }
1108
1107
 
1109
1108
  ft-loader {
1110
- ${bt(Ti.size,Hi.iconSize)};
1111
- ${bt(Ti.color,"var(--ft-button-internal-color)")};
1109
+ ${xt(Ii.size,Wi.iconSize)};
1110
+ ${xt(Ii.color,"var(--ft-button-internal-color)")};
1112
1111
  }
1113
- `];var Ji=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class qi extends gt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=yi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":kt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
1112
+ `];var qi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Xi extends mt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=gi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":St,"ft-no-text-select":!0};return this.addTooltipIfNeeded(J`
1114
1113
  <button part="button"
1115
- class="${Tt(t)}"
1114
+ class="${It(t)}"
1116
1115
  aria-label="${this.getLabel()}"
1117
1116
  ?disabled=${this.isDisabled()}>
1118
1117
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -1124,15 +1123,15 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1124
1123
  </ft-typography>
1125
1124
  ${this.resolveIcon()}
1126
1125
  </button>
1127
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?V`
1126
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?J`
1128
1127
  <ft-tooltip part="tooltip"
1129
1128
  text="${this.getLabel()}"
1130
1129
  position="${this.tooltipPosition}">
1131
1130
  ${t}
1132
1131
  </ft-tooltip>
1133
- `:t}resolveIcon(){return this.loading?V`
1134
- <ft-loader></ft-loader> `:this.icon?V`
1135
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}qi.elementDefinitions={"ft-ripple":vi,"ft-tooltip":Li,"ft-typography":Ge,"ft-icon":mi,"ft-loader":Pi},qi.styles=Vi,Ji([o({type:Boolean})],qi.prototype,"primary",void 0),Ji([o({type:Boolean})],qi.prototype,"outlined",void 0),Ji([o({type:Boolean})],qi.prototype,"disabled",void 0),Ji([o({type:Boolean})],qi.prototype,"dense",void 0),Ji([o({type:Boolean})],qi.prototype,"round",void 0),Ji([o({type:String})],qi.prototype,"label",void 0),Ji([o({type:String})],qi.prototype,"icon",void 0),Ji([o({type:String})],qi.prototype,"iconVariant",void 0),Ji([o({type:Boolean})],qi.prototype,"trailingIcon",void 0),Ji([o({type:Boolean})],qi.prototype,"loading",void 0),Ji([o({type:String})],qi.prototype,"tooltipPosition",void 0),Ji([o({type:Boolean})],qi.prototype,"hideTooltip",void 0),Ji([o({type:Boolean})],qi.prototype,"forceTooltip",void 0),Ji([r(".ft-button")],qi.prototype,"button",void 0),Ji([r(".ft-button--label slot")],qi.prototype,"slottedContent",void 0),p("ft-button")(qi);class Xi extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Yi={headerBackground:vt.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:vt.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:vt.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:vt.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:vt.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:vt.external(xt.colorOnSurfaceHigh,"Design system"),titleFont:vt.external(xt.titleFont,"Design system"),contentFont:vt.external(xt.contentFont,"Design system")},Gi=b`
1132
+ `:t}resolveIcon(){return this.loading?J`
1133
+ <ft-loader></ft-loader> `:this.icon?J`
1134
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:X}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Xi.elementDefinitions={"ft-ripple":bi,"ft-tooltip":Ti,"ft-typography":Qe,"ft-icon":$i,"ft-loader":_i},Xi.styles=Ji,qi([o({type:Boolean})],Xi.prototype,"primary",void 0),qi([o({type:Boolean})],Xi.prototype,"outlined",void 0),qi([o({type:Boolean})],Xi.prototype,"disabled",void 0),qi([o({type:Boolean})],Xi.prototype,"dense",void 0),qi([o({type:Boolean})],Xi.prototype,"round",void 0),qi([o({type:String})],Xi.prototype,"label",void 0),qi([o({type:String})],Xi.prototype,"icon",void 0),qi([o({type:String})],Xi.prototype,"iconVariant",void 0),qi([o({type:Boolean})],Xi.prototype,"trailingIcon",void 0),qi([o({type:Boolean})],Xi.prototype,"loading",void 0),qi([o({type:String})],Xi.prototype,"tooltipPosition",void 0),qi([o({type:Boolean})],Xi.prototype,"hideTooltip",void 0),qi([o({type:Boolean})],Xi.prototype,"forceTooltip",void 0),qi([r(".ft-button")],Xi.prototype,"button",void 0),qi([r(".ft-button--label slot")],Xi.prototype,"slottedContent",void 0),p("ft-button")(Xi);class Yi extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Gi={headerBackground:bt.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:bt.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:bt.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:bt.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:bt.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:bt.external(yt.colorOnSurfaceHigh,"Design system"),titleFont:bt.external(yt.titleFont,"Design system"),contentFont:bt.external(yt.contentFont,"Design system")},Qi=x`
1136
1135
  :host {
1137
1136
  display: block;
1138
1137
  }
@@ -1148,15 +1147,15 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1148
1147
  .header-cell {
1149
1148
  display: flex;
1150
1149
  flex-direction: column;
1151
- background: ${Yi.headerBackground};
1152
- color: ${Yi.colorOnSurfaceHigh};
1150
+ background: ${Gi.headerBackground};
1151
+ color: ${Gi.colorOnSurfaceHigh};
1153
1152
  padding: .5rem 1rem;
1154
- font-family: ${Yi.titleFont};
1153
+ font-family: ${Gi.titleFont};
1155
1154
  }
1156
1155
 
1157
1156
  .header-cell--sticky {
1158
1157
  top: 0;
1159
- z-index: ${Yi.stickyHeaderZIndex};
1158
+ z-index: ${Gi.stickyHeaderZIndex};
1160
1159
  position: sticky;
1161
1160
  }
1162
1161
 
@@ -1174,8 +1173,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1174
1173
  }
1175
1174
 
1176
1175
  .column-title-container ft-button {
1177
- ${bt(Hi.backgroundColor,Yi.headerBackground)};
1178
- ${bt(Hi.color,Yi.colorOnSurfaceHigh)};
1176
+ ${xt(Wi.backgroundColor,Gi.headerBackground)};
1177
+ ${xt(Wi.color,Gi.colorOnSurfaceHigh)};
1179
1178
  }
1180
1179
 
1181
1180
  .column-title {
@@ -1204,29 +1203,29 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1204
1203
 
1205
1204
  .cell {
1206
1205
  padding: 1rem;
1207
- border-left: 1px solid ${Yi.headerBackground};
1208
- border-bottom: 1px solid ${Yi.headerBackground};
1206
+ border-left: 1px solid ${Gi.headerBackground};
1207
+ border-bottom: 1px solid ${Gi.headerBackground};
1209
1208
  overflow-x: auto;
1210
1209
  display: flex;
1211
1210
  align-items: center;
1212
- font-family: ${Yi.contentFont};
1211
+ font-family: ${Gi.contentFont};
1213
1212
  }
1214
1213
 
1215
1214
  /* Even is 2n+1 and odd is 2n because of the header */
1216
1215
  .row:nth-child(2n) > .cell {
1217
- background: ${Yi.oddRowBackground};
1216
+ background: ${Gi.oddRowBackground};
1218
1217
  }
1219
1218
 
1220
1219
  .row:nth-child(2n + 1) > .cell {
1221
- background: ${Yi.evenRowBackground};
1220
+ background: ${Gi.evenRowBackground};
1222
1221
  }
1223
1222
 
1224
1223
  .row:hover > .cell {
1225
- background: ${Yi.rowHoverBackground};
1224
+ background: ${Gi.rowHoverBackground};
1226
1225
  }
1227
1226
 
1228
1227
  .cell:last-of-type {
1229
- border-right: 1px solid ${Yi.headerBackground};
1228
+ border-right: 1px solid ${Gi.headerBackground};
1230
1229
  }
1231
1230
 
1232
1231
  .row:last-of-type .cell:first-of-type {
@@ -1240,7 +1239,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1240
1239
  .hidden {
1241
1240
  visibility: hidden;
1242
1241
  }
1243
- `;var Qi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const to=t=>V`${t}`,eo=(t,e)=>t-e;class io extends gt{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return V`
1242
+ `;var to=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const eo=t=>J`${t}`,io=(t,e)=>t-e;class oo extends mt{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return J`
1244
1243
  <style>
1245
1244
  .table {
1246
1245
  grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
@@ -1248,27 +1247,27 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1248
1247
  </style>
1249
1248
  <div class="table">
1250
1249
  <div class="header">
1251
- ${Dt(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
1250
+ ${At(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
1252
1251
  </div>
1253
- ${Dt(t,((t,e)=>"row-"+e),((t,e)=>V`
1252
+ ${At(t,((t,e)=>"row-"+e),((t,e)=>J`
1254
1253
  <div class="row"
1255
- @click=${()=>this.dispatchEvent(new Xi(t))}>
1256
- ${Dt(this.columns,((t,i)=>"cell-"+e+" "+i),(i=>this.renderCell(i,t,e)))}
1254
+ @click=${()=>this.dispatchEvent(new Yi(t))}>
1255
+ ${At(this.columns,((t,i)=>"cell-"+e+" "+i),(i=>this.renderCell(i,t,e)))}
1257
1256
  </div>
1258
1257
  `))}
1259
1258
  </div>
1260
- `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:eo,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){const i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return V`
1261
- <div class="${Tt(i)}">
1259
+ `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:io,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){const i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return J`
1260
+ <div class="${It(i)}">
1262
1261
  <div class="column-title-container">
1263
1262
  <span class="column-title">${t.title}</span>
1264
1263
  ${this.renderColumnSort(t,e)}
1265
1264
  </div>
1266
- ${t.filter?V`
1265
+ ${t.filter?J`
1267
1266
  <div class="column-filter">
1268
1267
  ${this.renderColumnFilter(t,e)}
1269
1268
  </div>`:null}
1270
1269
  </div>
1271
- `}renderColumnSort(t,e){var i;const o=this.currentSort&&this.currentSort.column===e,n=o?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return V`
1270
+ `}renderColumnSort(t,e){var i;const o=this.currentSort&&this.currentSort.column===e,n=o?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return J`
1272
1271
  <ft-button
1273
1272
  round
1274
1273
  dense
@@ -1277,18 +1276,18 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1277
1276
  label="Sort ${t.title}"
1278
1277
  @click=${()=>{var t;o?"asc"===(null===(t=this.currentSort)||void 0===t?void 0:t.order)?this.currentSort={column:e,order:"desc"}:this.currentSort=void 0:this.currentSort={column:e,order:"asc"}}}
1279
1278
  ></ft-button>
1280
- `}renderColumnFilter(t,e){var i,o;const n=t=>{this.filters[e]={value:t.detail},this.requestUpdate()};switch(null!==(i=t.filter)&&void 0!==i?i:"text"){case"text":return V`
1279
+ `}renderColumnFilter(t,e){var i,o;const n=t=>{this.filters[e]={value:t.detail},this.requestUpdate()};switch(null!==(i=t.filter)&&void 0!==i?i:"text"){case"text":return J`
1281
1280
  <ft-text-field
1282
1281
  label="Search ${t.title}"
1283
1282
  @live-change="${n}"
1284
1283
  ></ft-text-field>
1285
- `;case"select":const i=null!==(o=this.selectData[e])&&void 0!==o?o:[];return i.length?V`
1284
+ `;case"select":const i=null!==(o=this.selectData[e])&&void 0!==o?o:[];return i.length?J`
1286
1285
  <ft-select label="Filter ${t.title}" @change=${n}>
1287
1286
  <ft-select-option></ft-select-option>
1288
- ${i.map((t=>V`
1287
+ ${i.map((t=>J`
1289
1288
  <ft-select-option value="${t}" label="${t}"></ft-select-option>
1290
1289
  `))}
1291
1290
  </ft-select>
1292
- `:null}return null}renderCell(t,e,i){var o;const n=null!==(o=t.render)&&void 0!==o?o:to;return V`
1293
- <div class="cell">${(t=>{const e=n(t,i);return"string"==typeof e?Lt(e):e})(this.getValue(t,e))}</div>
1294
- `}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}io.styles=Gi,Qi([o({attribute:!1})],io.prototype,"data",void 0),Qi([o({attribute:!1})],io.prototype,"columns",void 0),Qi([o({attribute:!1})],io.prototype,"sort",void 0),Qi([o()],io.prototype,"stickyHeaders",void 0),Qi([n()],io.prototype,"currentSort",void 0),p("ft-filterable-table")(io),t.FtFilterableTable=io,t.FtFilterableTableCssVariables=Yi,t.RowClickEvent=Xi,t.styles=Gi,Object.defineProperty(t,"i",{value:!0})}({});
1291
+ `:null}return null}renderCell(t,e,i){var o;const n=null!==(o=t.render)&&void 0!==o?o:eo;return J`
1292
+ <div class="cell">${(t=>{const e=n(t,i);return"string"==typeof e?Tt(e):e})(this.getValue(t,e))}</div>
1293
+ `}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}oo.styles=Qi,to([o({attribute:!1})],oo.prototype,"data",void 0),to([o({attribute:!1})],oo.prototype,"columns",void 0),to([o({attribute:!1})],oo.prototype,"sort",void 0),to([o()],oo.prototype,"stickyHeaders",void 0),to([n()],oo.prototype,"currentSort",void 0),p("ft-filterable-table")(oo),t.FtFilterableTable=oo,t.FtFilterableTableCssVariables=Gi,t.RowClickEvent=Yi,t.styles=Qi,Object.defineProperty(t,"i",{value:!0})}({});