@fluid-topics/ft-chip 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/ft-chip.min.js +213 -209
  2. package/package.json +6 -6
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=f(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),y(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?y(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=u.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(Si){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=f(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),y(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?y(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=u.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(wi){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -82,7 +82,11 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
82
82
  * @license
83
83
  * Copyright 2019 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */class Ro extends go{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=$o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,ko=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Io=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class zo extends Ro{constructor(){super(),this[Uo]=new o(5),this[Wo]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Lo].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 o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Uo=Lo,ko([C()],zo.prototype,"exportpartsPrefix",void 0),ko([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],zo.prototype,"exportpartsPrefixes",void 0),ko([C()],zo.prototype,"customStylesheet",void 0);const Ko=bt`
85
+ */class Ro extends go{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=$o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,ko=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Io=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class zo extends Ro{constructor(){super(),this[Uo]=new o(5),this[Wo]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Lo].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 o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Uo=Lo,ko([C()],zo.prototype,"exportpartsPrefix",void 0),ko([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],zo.prototype,"exportpartsPrefixes",void 0),ko([C()],zo.prototype,"customStylesheet",void 0);const Ko=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");bt`
86
+ .highlight-html-match {
87
+ background: ${Ko};
88
+ }
89
+ `;const Zo=bt`
86
90
  .ft-no-text-select {
87
91
  -webkit-touch-callout: none;
88
92
  -webkit-user-select: none;
@@ -103,7 +107,7 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
103
107
  -webkit-hyphens: auto;
104
108
  hyphens: auto
105
109
  }
106
- `;const Zo=bt`
110
+ `;const Fo=bt`
107
111
  .ft-safari-ellipsis-fix {
108
112
  margin-right: 0;
109
113
 
@@ -114,17 +118,17 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
114
118
  display: inline-block;
115
119
  width: 0;
116
120
  }
117
- `;window.ftReduxStores||(window.ftReduxStores={});const Fo=Symbol("elementInternals");var Bo,Do,Ao;const Mo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ao=null===(Do=null===(Bo=window.safari)||void 0===Bo?void 0:Bo.pushNotification)||void 0===Do?void 0:Do.toString())&&void 0!==Ao?Ao:""),Po=1,Ho=2,jo=t=>(...o)=>({_$litDirective$:t,values:o});
121
+ `;window.ftReduxStores||(window.ftReduxStores={});const Bo=Symbol("elementInternals");var Do,Ao,Mo;const Po=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mo=null===(Ao=null===(Do=window.safari)||void 0===Do?void 0:Do.pushNotification)||void 0===Ao?void 0:Ao.toString())&&void 0!==Mo?Mo:""),Ho=1,jo=2,To=t=>(...o)=>({_$litDirective$:t,values:o});
118
122
  /**
119
123
  * @license
120
124
  * Copyright 2017 Google LLC
121
125
  * SPDX-License-Identifier: BSD-3-Clause
122
- */let To=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
126
+ */let _o=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
123
127
  /**
124
128
  * @license
125
129
  * Copyright 2018 Google LLC
126
130
  * SPDX-License-Identifier: BSD-3-Clause
127
- */const _o=jo(class extends To{constructor(t){if(super(t),t.type!==Po||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return q}}),Go=xo.extend("--ft-ripple-color","",Co.colorContent),Yo={color:Go,backgroundColor:xo.extend("--ft-ripple-background-color","",Go),opacityContentOnSurfacePressed:xo.external(Co.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(Co.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(Co.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(Co.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},Vo=xo.extend("--ft-ripple-color","",Co.colorPrimary),Jo=Vo,qo=xo.extend("--ft-ripple-background-color","",Vo),Xo=xo.extend("--ft-ripple-color","",Co.colorSecondary),Qo=Xo,te=xo.extend("--ft-ripple-background-color","",Xo),oe=bt`
131
+ */const Go=To(class extends _o{constructor(t){if(super(t),t.type!==Ho||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return q}}),Yo=xo.extend("--ft-ripple-color","",Co.colorContent),Vo={color:Yo,backgroundColor:xo.extend("--ft-ripple-background-color","",Yo),opacityContentOnSurfacePressed:xo.external(Co.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(Co.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(Co.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(Co.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},Jo=xo.extend("--ft-ripple-color","",Co.colorPrimary),qo=Jo,Xo=xo.extend("--ft-ripple-background-color","",Jo),Qo=xo.extend("--ft-ripple-color","",Co.colorSecondary),te=Qo,oe=xo.extend("--ft-ripple-background-color","",Qo),ee=bt`
128
132
  :host {
129
133
  display: contents;
130
134
  }
@@ -137,7 +141,7 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
137
141
 
138
142
  .ft-ripple:not(.ft-ripple--unbounded) {
139
143
  overflow: hidden;
140
- border-radius: ${Yo.borderRadius};
144
+ border-radius: ${Vo.borderRadius};
141
145
  }
142
146
 
143
147
  .ft-ripple .ft-ripple--background,
@@ -171,27 +175,27 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
171
175
  }
172
176
 
173
177
  .ft-ripple .ft-ripple--background {
174
- background-color: ${Yo.backgroundColor};
178
+ background-color: ${Vo.backgroundColor};
175
179
  }
176
180
 
177
181
  .ft-ripple .ft-ripple--effect {
178
- background-color: ${Yo.color};
182
+ background-color: ${Vo.color};
179
183
  }
180
184
 
181
185
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
182
- background-color: ${te};
186
+ background-color: ${oe};
183
187
  }
184
188
 
185
189
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
186
- background-color: ${Qo};
190
+ background-color: ${te};
187
191
  }
188
192
 
189
193
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
190
- background-color: ${qo};
194
+ background-color: ${Xo};
191
195
  }
192
196
 
193
197
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
194
- background-color: ${Jo};
198
+ background-color: ${qo};
195
199
  }
196
200
 
197
201
  .ft-ripple .ft-ripple--background {
@@ -221,134 +225,134 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
221
225
  }
222
226
 
223
227
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
224
- opacity: ${Yo.opacityContentOnSurfaceHover};
228
+ opacity: ${Vo.opacityContentOnSurfaceHover};
225
229
  }
226
230
 
227
231
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
228
- opacity: ${Yo.opacityContentOnSurfaceSelected};
232
+ opacity: ${Vo.opacityContentOnSurfaceSelected};
229
233
  }
230
234
 
231
235
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
232
- opacity: ${Yo.opacityContentOnSurfaceFocused};
236
+ opacity: ${Vo.opacityContentOnSurfaceFocused};
233
237
  }
234
238
 
235
239
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
236
- opacity: ${Yo.opacityContentOnSurfacePressed};
240
+ opacity: ${Vo.opacityContentOnSurfacePressed};
237
241
  transform: translate(-50%, -50%) scale(1);
238
242
  }
239
- `;var ee=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ie extends zo{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.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!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 Qt`
243
+ `;var ie=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class re extends zo{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.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!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 Qt`
240
244
  <style>
241
245
  .ft-ripple .ft-ripple--effect {
242
246
  left: ${this.originX}px;
243
247
  top: ${this.originY}px;
244
248
  }
245
249
  </style>
246
- <div class="${_o(t)}">
250
+ <div class="${Go(t)}">
247
251
  <div class="ft-ripple--background"></div>
248
252
  <div class="ft-ripple--effect"></div>
249
253
  </div>
250
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ie.elementDefinitions={},ie.styles=oe,ee([C({type:Boolean})],ie.prototype,"primary",void 0),ee([C({type:Boolean})],ie.prototype,"secondary",void 0),ee([C({type:Boolean})],ie.prototype,"unbounded",void 0),ee([C({type:Boolean})],ie.prototype,"activated",void 0),ee([C({type:Boolean})],ie.prototype,"selected",void 0),ee([C({type:Boolean})],ie.prototype,"disabled",void 0),ee([$()],ie.prototype,"hovered",void 0),ee([$()],ie.prototype,"focused",void 0),ee([$()],ie.prototype,"pressed",void 0),ee([$()],ie.prototype,"rippling",void 0),ee([$()],ie.prototype,"originX",void 0),ee([$()],ie.prototype,"originY",void 0),ee([R(".ft-ripple")],ie.prototype,"ripple",void 0),ee([R(".ft-ripple--effect")],ie.prototype,"rippleEffect",void 0),k("ft-ripple")(ie);
254
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}re.elementDefinitions={},re.styles=ee,ie([C({type:Boolean})],re.prototype,"primary",void 0),ie([C({type:Boolean})],re.prototype,"secondary",void 0),ie([C({type:Boolean})],re.prototype,"unbounded",void 0),ie([C({type:Boolean})],re.prototype,"activated",void 0),ie([C({type:Boolean})],re.prototype,"selected",void 0),ie([C({type:Boolean})],re.prototype,"disabled",void 0),ie([$()],re.prototype,"hovered",void 0),ie([$()],re.prototype,"focused",void 0),ie([$()],re.prototype,"pressed",void 0),ie([$()],re.prototype,"rippling",void 0),ie([$()],re.prototype,"originX",void 0),ie([$()],re.prototype,"originY",void 0),ie([R(".ft-ripple")],re.prototype,"ripple",void 0),ie([R(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0),k("ft-ripple")(re);
251
255
  /**
252
256
  * @license
253
257
  * Copyright 2020 Google LLC
254
258
  * SPDX-License-Identifier: BSD-3-Clause
255
259
  */
256
- const re=Symbol.for(""),ne=t=>{if(t?.r===re)return t?._$litStatic$},ae=t=>({_$litStatic$:t,r:re}),se=new Map,le=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=ne(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=se.get(t))&&(a.raw=a,se.set(t,o=a)),e=s}return t(o,...e)})(J);var ce;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(ce||(ce={}));const pe=xo.extend("--ft-typography-font-family","",Co.titleFont),fe=xo.extend("--ft-typography-font-family","",Co.contentFont),he={fontFamily:fe,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},de=xo.extend("--ft-typography-title-font-family","",pe),ye=xo.extend("--ft-typography-title-font-size","",he.fontSize,"20px"),ue=xo.extend("--ft-typography-title-font-weight","",he.fontWeight,"normal"),ge=xo.extend("--ft-typography-title-letter-spacing","",he.letterSpacing,"0.15px"),be=xo.extend("--ft-typography-title-line-height","",he.lineHeight,"1.2"),me=xo.extend("--ft-typography-title-text-transform","",he.textTransform,"inherit"),xe=xo.extend("--ft-typography-title-dense-font-family","",pe),Oe=xo.extend("--ft-typography-title-dense-font-size","",he.fontSize,"14px"),ve=xo.extend("--ft-typography-title-dense-font-weight","",he.fontWeight,"normal"),Ne=xo.extend("--ft-typography-title-dense-letter-spacing","",he.letterSpacing,"0.105px"),Se=xo.extend("--ft-typography-title-dense-line-height","",he.lineHeight,"1.7"),we=xo.extend("--ft-typography-title-dense-text-transform","",he.textTransform,"inherit"),Ce=xo.extend("--ft-typography-subtitle1-font-family","",fe),$e=xo.extend("--ft-typography-subtitle1-font-size","",he.fontSize,"16px"),Ee=xo.extend("--ft-typography-subtitle1-font-weight","",he.fontWeight,"600"),Re=xo.extend("--ft-typography-subtitle1-letter-spacing","",he.letterSpacing,"0.144px"),Ue=xo.extend("--ft-typography-subtitle1-line-height","",he.lineHeight,"1.5"),ke=xo.extend("--ft-typography-subtitle1-text-transform","",he.textTransform,"inherit"),Ie=xo.extend("--ft-typography-subtitle2-font-family","",fe),We=xo.extend("--ft-typography-subtitle2-font-size","",he.fontSize,"14px"),Le=xo.extend("--ft-typography-subtitle2-font-weight","",he.fontWeight,"normal"),ze=xo.extend("--ft-typography-subtitle2-letter-spacing","",he.letterSpacing,"0.098px"),Ke=xo.extend("--ft-typography-subtitle2-line-height","",he.lineHeight,"1.7"),Ze=xo.extend("--ft-typography-subtitle2-text-transform","",he.textTransform,"inherit"),Fe=xo.extend("--ft-typography-body1-font-family","",fe),Be=xo.extend("--ft-typography-body1-font-size","",he.fontSize,"16px"),De=xo.extend("--ft-typography-body1-font-weight","",he.fontWeight,"normal"),Ae=xo.extend("--ft-typography-body1-letter-spacing","",he.letterSpacing,"0.496px"),Me=xo.extend("--ft-typography-body1-line-height","",he.lineHeight,"1.5"),Pe=xo.extend("--ft-typography-body1-text-transform","",he.textTransform,"inherit"),He={fontFamily:xo.extend("--ft-typography-body2-font-family","",fe),fontSize:xo.extend("--ft-typography-body2-font-size","",he.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-body2-font-weight","",he.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-body2-letter-spacing","",he.letterSpacing,"0.252px"),lineHeight:xo.extend("--ft-typography-body2-line-height","",he.lineHeight,"1.4"),textTransform:xo.extend("--ft-typography-body2-text-transform","",he.textTransform,"inherit")},je=xo.extend("--ft-typography-caption-font-family","",fe),Te=xo.extend("--ft-typography-caption-font-size","",he.fontSize,"12px"),_e=xo.extend("--ft-typography-caption-font-weight","",he.fontWeight,"normal"),Ge=xo.extend("--ft-typography-caption-letter-spacing","",he.letterSpacing,"0.396px"),Ye=xo.extend("--ft-typography-caption-line-height","",he.lineHeight,"1.33"),Ve=xo.extend("--ft-typography-caption-text-transform","",he.textTransform,"inherit"),Je=xo.extend("--ft-typography-breadcrumb-font-family","",fe),qe=xo.extend("--ft-typography-breadcrumb-font-size","",he.fontSize,"10px"),Xe=xo.extend("--ft-typography-breadcrumb-font-weight","",he.fontWeight,"normal"),Qe=xo.extend("--ft-typography-breadcrumb-letter-spacing","",he.letterSpacing,"0.33px"),ti=xo.extend("--ft-typography-breadcrumb-line-height","",he.lineHeight,"1.6"),oi=xo.extend("--ft-typography-breadcrumb-text-transform","",he.textTransform,"inherit"),ei=xo.extend("--ft-typography-overline-font-family","",fe),ii=xo.extend("--ft-typography-overline-font-size","",he.fontSize,"10px"),ri=xo.extend("--ft-typography-overline-font-weight","",he.fontWeight,"normal"),ni=xo.extend("--ft-typography-overline-letter-spacing","",he.letterSpacing,"1.5px"),ai=xo.extend("--ft-typography-overline-line-height","",he.lineHeight,"1.6"),si=xo.extend("--ft-typography-overline-text-transform","",he.textTransform,"uppercase"),li={fontFamily:xo.extend("--ft-typography-button-font-family","",fe),fontSize:xo.extend("--ft-typography-button-font-size","",he.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",he.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",he.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",he.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",he.textTransform,"uppercase")},ci=bt`
260
+ const ne=Symbol.for(""),ae=t=>{if(t?.r===ne)return t?._$litStatic$},se=t=>({_$litStatic$:t,r:ne}),le=new Map,ce=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=ae(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=le.get(t))&&(a.raw=a,le.set(t,o=a)),e=s}return t(o,...e)})(J);var pe;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(pe||(pe={}));const fe=xo.extend("--ft-typography-font-family","",Co.titleFont),he=xo.extend("--ft-typography-font-family","",Co.contentFont),de={fontFamily:he,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ye=xo.extend("--ft-typography-title-font-family","",fe),ue=xo.extend("--ft-typography-title-font-size","",de.fontSize,"20px"),ge=xo.extend("--ft-typography-title-font-weight","",de.fontWeight,"normal"),be=xo.extend("--ft-typography-title-letter-spacing","",de.letterSpacing,"0.15px"),me=xo.extend("--ft-typography-title-line-height","",de.lineHeight,"1.2"),xe=xo.extend("--ft-typography-title-text-transform","",de.textTransform,"inherit"),Oe=xo.extend("--ft-typography-title-dense-font-family","",fe),ve=xo.extend("--ft-typography-title-dense-font-size","",de.fontSize,"14px"),Ne=xo.extend("--ft-typography-title-dense-font-weight","",de.fontWeight,"normal"),Se=xo.extend("--ft-typography-title-dense-letter-spacing","",de.letterSpacing,"0.105px"),we=xo.extend("--ft-typography-title-dense-line-height","",de.lineHeight,"1.7"),Ce=xo.extend("--ft-typography-title-dense-text-transform","",de.textTransform,"inherit"),$e=xo.extend("--ft-typography-subtitle1-font-family","",he),Ee=xo.extend("--ft-typography-subtitle1-font-size","",de.fontSize,"16px"),Re=xo.extend("--ft-typography-subtitle1-font-weight","",de.fontWeight,"600"),Ue=xo.extend("--ft-typography-subtitle1-letter-spacing","",de.letterSpacing,"0.144px"),ke=xo.extend("--ft-typography-subtitle1-line-height","",de.lineHeight,"1.5"),Ie=xo.extend("--ft-typography-subtitle1-text-transform","",de.textTransform,"inherit"),We=xo.extend("--ft-typography-subtitle2-font-family","",he),Le=xo.extend("--ft-typography-subtitle2-font-size","",de.fontSize,"14px"),ze=xo.extend("--ft-typography-subtitle2-font-weight","",de.fontWeight,"normal"),Ke=xo.extend("--ft-typography-subtitle2-letter-spacing","",de.letterSpacing,"0.098px"),Ze=xo.extend("--ft-typography-subtitle2-line-height","",de.lineHeight,"1.7"),Fe=xo.extend("--ft-typography-subtitle2-text-transform","",de.textTransform,"inherit"),Be=xo.extend("--ft-typography-body1-font-family","",he),De=xo.extend("--ft-typography-body1-font-size","",de.fontSize,"16px"),Ae=xo.extend("--ft-typography-body1-font-weight","",de.fontWeight,"normal"),Me=xo.extend("--ft-typography-body1-letter-spacing","",de.letterSpacing,"0.496px"),Pe=xo.extend("--ft-typography-body1-line-height","",de.lineHeight,"1.5"),He=xo.extend("--ft-typography-body1-text-transform","",de.textTransform,"inherit"),je={fontFamily:xo.extend("--ft-typography-body2-font-family","",he),fontSize:xo.extend("--ft-typography-body2-font-size","",de.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-body2-font-weight","",de.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-body2-letter-spacing","",de.letterSpacing,"0.252px"),lineHeight:xo.extend("--ft-typography-body2-line-height","",de.lineHeight,"1.4"),textTransform:xo.extend("--ft-typography-body2-text-transform","",de.textTransform,"inherit")},Te=xo.extend("--ft-typography-caption-font-family","",he),_e=xo.extend("--ft-typography-caption-font-size","",de.fontSize,"12px"),Ge=xo.extend("--ft-typography-caption-font-weight","",de.fontWeight,"normal"),Ye=xo.extend("--ft-typography-caption-letter-spacing","",de.letterSpacing,"0.396px"),Ve=xo.extend("--ft-typography-caption-line-height","",de.lineHeight,"1.33"),Je=xo.extend("--ft-typography-caption-text-transform","",de.textTransform,"inherit"),qe=xo.extend("--ft-typography-breadcrumb-font-family","",he),Xe=xo.extend("--ft-typography-breadcrumb-font-size","",de.fontSize,"10px"),Qe=xo.extend("--ft-typography-breadcrumb-font-weight","",de.fontWeight,"normal"),ti=xo.extend("--ft-typography-breadcrumb-letter-spacing","",de.letterSpacing,"0.33px"),oi=xo.extend("--ft-typography-breadcrumb-line-height","",de.lineHeight,"1.6"),ei=xo.extend("--ft-typography-breadcrumb-text-transform","",de.textTransform,"inherit"),ii=xo.extend("--ft-typography-overline-font-family","",he),ri=xo.extend("--ft-typography-overline-font-size","",de.fontSize,"10px"),ni=xo.extend("--ft-typography-overline-font-weight","",de.fontWeight,"normal"),ai=xo.extend("--ft-typography-overline-letter-spacing","",de.letterSpacing,"1.5px"),si=xo.extend("--ft-typography-overline-line-height","",de.lineHeight,"1.6"),li=xo.extend("--ft-typography-overline-text-transform","",de.textTransform,"uppercase"),ci={fontFamily:xo.extend("--ft-typography-button-font-family","",he),fontSize:xo.extend("--ft-typography-button-font-size","",de.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",de.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",de.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",de.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",de.textTransform,"uppercase")},pi=bt`
257
261
  .ft-typography--title {
258
- font-family: ${de};
259
- font-size: ${ye};
260
- font-weight: ${ue};
261
- letter-spacing: ${ge};
262
- line-height: ${be};
263
- text-transform: ${me};
262
+ font-family: ${ye};
263
+ font-size: ${ue};
264
+ font-weight: ${ge};
265
+ letter-spacing: ${be};
266
+ line-height: ${me};
267
+ text-transform: ${xe};
264
268
  }
265
- `,pi=bt`
269
+ `,fi=bt`
266
270
  .ft-typography--title-dense {
267
- font-family: ${xe};
268
- font-size: ${Oe};
269
- font-weight: ${ve};
270
- letter-spacing: ${Ne};
271
- line-height: ${Se};
272
- text-transform: ${we};
271
+ font-family: ${Oe};
272
+ font-size: ${ve};
273
+ font-weight: ${Ne};
274
+ letter-spacing: ${Se};
275
+ line-height: ${we};
276
+ text-transform: ${Ce};
273
277
  }
274
- `,fi=bt`
278
+ `,hi=bt`
275
279
  .ft-typography--subtitle1 {
276
- font-family: ${Ce};
277
- font-size: ${$e};
278
- font-weight: ${Ee};
279
- letter-spacing: ${Re};
280
- line-height: ${Ue};
281
- text-transform: ${ke};
280
+ font-family: ${$e};
281
+ font-size: ${Ee};
282
+ font-weight: ${Re};
283
+ letter-spacing: ${Ue};
284
+ line-height: ${ke};
285
+ text-transform: ${Ie};
282
286
  }
283
- `,hi=bt`
287
+ `,di=bt`
284
288
  .ft-typography--subtitle2 {
285
- font-family: ${Ie};
286
- font-size: ${We};
287
- font-weight: ${Le};
288
- letter-spacing: ${ze};
289
- line-height: ${Ke};
290
- text-transform: ${Ze};
289
+ font-family: ${We};
290
+ font-size: ${Le};
291
+ font-weight: ${ze};
292
+ letter-spacing: ${Ke};
293
+ line-height: ${Ze};
294
+ text-transform: ${Fe};
291
295
  }
292
296
 
293
- `,di=bt`
297
+ `,yi=bt`
294
298
  .ft-typography--body1 {
295
- font-family: ${Fe};
296
- font-size: ${Be};
297
- font-weight: ${De};
298
- letter-spacing: ${Ae};
299
- line-height: ${Me};
300
- text-transform: ${Pe};
299
+ font-family: ${Be};
300
+ font-size: ${De};
301
+ font-weight: ${Ae};
302
+ letter-spacing: ${Me};
303
+ line-height: ${Pe};
304
+ text-transform: ${He};
301
305
  }
302
- `,yi=bt`
306
+ `,ui=bt`
303
307
  .ft-typography--body2 {
304
- font-family: ${He.fontFamily};
305
- font-size: ${He.fontSize};
306
- font-weight: ${He.fontWeight};
307
- letter-spacing: ${He.letterSpacing};
308
- line-height: ${He.lineHeight};
309
- text-transform: ${He.textTransform};
308
+ font-family: ${je.fontFamily};
309
+ font-size: ${je.fontSize};
310
+ font-weight: ${je.fontWeight};
311
+ letter-spacing: ${je.letterSpacing};
312
+ line-height: ${je.lineHeight};
313
+ text-transform: ${je.textTransform};
310
314
  }
311
- `,ui=bt`
315
+ `,gi=bt`
312
316
  .ft-typography--caption {
313
- font-family: ${je};
314
- font-size: ${Te};
315
- font-weight: ${_e};
316
- letter-spacing: ${Ge};
317
- line-height: ${Ye};
318
- text-transform: ${Ve};
317
+ font-family: ${Te};
318
+ font-size: ${_e};
319
+ font-weight: ${Ge};
320
+ letter-spacing: ${Ye};
321
+ line-height: ${Ve};
322
+ text-transform: ${Je};
319
323
  }
320
- `,gi=bt`
324
+ `,bi=bt`
321
325
  .ft-typography--breadcrumb {
322
- font-family: ${Je};
323
- font-size: ${qe};
324
- font-weight: ${Xe};
325
- letter-spacing: ${Qe};
326
- line-height: ${ti};
327
- text-transform: ${oi};
326
+ font-family: ${qe};
327
+ font-size: ${Xe};
328
+ font-weight: ${Qe};
329
+ letter-spacing: ${ti};
330
+ line-height: ${oi};
331
+ text-transform: ${ei};
328
332
  }
329
- `,bi=bt`
333
+ `,mi=bt`
330
334
  .ft-typography--overline {
331
- font-family: ${ei};
332
- font-size: ${ii};
333
- font-weight: ${ri};
334
- letter-spacing: ${ni};
335
- line-height: ${ai};
336
- text-transform: ${si};
335
+ font-family: ${ii};
336
+ font-size: ${ri};
337
+ font-weight: ${ni};
338
+ letter-spacing: ${ai};
339
+ line-height: ${si};
340
+ text-transform: ${li};
337
341
  }
338
- `,mi=bt`
342
+ `,xi=bt`
339
343
  .ft-typography--button {
340
- font-family: ${li.fontFamily};
341
- font-size: ${li.fontSize};
342
- font-weight: ${li.fontWeight};
343
- letter-spacing: ${li.letterSpacing};
344
- line-height: ${li.lineHeight};
345
- text-transform: ${li.textTransform};
344
+ font-family: ${ci.fontFamily};
345
+ font-size: ${ci.fontSize};
346
+ font-weight: ${ci.fontWeight};
347
+ letter-spacing: ${ci.letterSpacing};
348
+ line-height: ${ci.lineHeight};
349
+ text-transform: ${ci.textTransform};
346
350
  }
347
- `,xi=bt`
351
+ `,Oi=bt`
348
352
  .ft-typography {
349
353
  vertical-align: inherit;
350
354
  }
351
- `,Oi=[Object.keys(No).map((t=>function(t){const o=No[t];return bt`
355
+ `,vi=[Object.keys(No).map((t=>function(t){const o=No[t];return bt`
352
356
  .ft-typography--${gt(t)} {
353
357
  font-family: ${o.fontFamily};
354
358
  font-size: ${o.fontSize};
@@ -357,20 +361,20 @@ const re=Symbol.for(""),ne=t=>{if(t?.r===re)return t?._$litStatic$},ae=t=>({_$li
357
361
  line-height: ${o.lineHeight};
358
362
  text-transform: ${o.textCase};
359
363
  }
360
- `}(t)))];var vi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ni extends zo{constructor(){super(...arguments),this.variant=ce.body1}render(){return this.element?le`
361
- <${ae(this.element)}
364
+ `}(t)))];var Ni=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Si extends zo{constructor(){super(...arguments),this.variant=pe.body1}render(){return this.element?ce`
365
+ <${se(this.element)}
362
366
  class="ft-typography ft-typography--${this.variant}">
363
367
  <slot></slot>
364
- </${ae(this.element)}>
365
- `:le`
368
+ </${se(this.element)}>
369
+ `:ce`
366
370
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
367
- `}}Ni.styles=[ci,pi,fi,hi,di,yi,ui,gi,bi,mi,xi,...Oi],vi([C()],Ni.prototype,"element",void 0),vi([C()],Ni.prototype,"variant",void 0),k("ft-typography")(Ni);
371
+ `}}Si.styles=[pi,fi,hi,di,yi,ui,gi,bi,mi,xi,Oi,...vi],Ni([C()],Si.prototype,"element",void 0),Ni([C()],Si.prototype,"variant",void 0),k("ft-typography")(Si);
368
372
  /**
369
373
  * @license
370
374
  * Copyright 2017 Google LLC
371
375
  * SPDX-License-Identifier: BSD-3-Clause
372
376
  */
373
- class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.vt=void 0,this.et=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Si.directiveName="unsafeHTML",Si.resultType=1;const wi=jo(Si);var Ci,$i;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Ci||(Ci={})),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;"}($i||($i={})),new Map([...["abw"].map((t=>[t,$i.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,$i.AUDIO])),...["avi"].map((t=>[t,$i.AVI])),...["chm","xhs"].map((t=>[t,$i.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,$i.CODE])),...["csv"].map((t=>[t,$i.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,$i.DITA])),...["epub"].map((t=>[t,$i.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,$i.EXCEL])),...["flac"].map((t=>[t,$i.FLAC])),...["gif"].map((t=>[t,$i.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,$i.GZIP])),...["html","htm","xhtml"].map((t=>[t,$i.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,$i.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,$i.JPEG])),...["json"].map((t=>[t,$i.JSON])),...["m4a","m4p"].map((t=>[t,$i.M4A])),...["mov","qt"].map((t=>[t,$i.MOV])),...["mp3"].map((t=>[t,$i.MP3])),...["mp4","m4v"].map((t=>[t,$i.MP4])),...["ogg","oga"].map((t=>[t,$i.OGG])),...["pdf","ps"].map((t=>[t,$i.PDF])),...["png"].map((t=>[t,$i.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,$i.POWERPOINT])),...["rar"].map((t=>[t,$i.RAR])),...["stp"].map((t=>[t,$i.STP])),...["txt","rtf","md","mdown"].map((t=>[t,$i.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,$i.VIDEO])),...["wav"].map((t=>[t,$i.WAV])),...["wma"].map((t=>[t,$i.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,$i.WORD])),...["xml","xsl","rdf"].map((t=>[t,$i.XML])),...["yaml","yml","x-yaml"].map((t=>[t,$i.YAML])),...["zip"].map((t=>[t,$i.ZIP]))]);const Ei={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ri=bt`
377
+ class wi extends _o{constructor(t){if(super(t),this.et=X,t.type!==jo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.vt=void 0,this.et=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}wi.directiveName="unsafeHTML",wi.resultType=1;const Ci=To(wi);var $i,Ei;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}($i||($i={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ei||(Ei={})),new Map([...["abw"].map((t=>[t,Ei.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,Ei.AUDIO])),...["avi"].map((t=>[t,Ei.AVI])),...["chm","xhs"].map((t=>[t,Ei.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,Ei.CODE])),...["csv"].map((t=>[t,Ei.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ei.DITA])),...["epub"].map((t=>[t,Ei.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ei.EXCEL])),...["flac"].map((t=>[t,Ei.FLAC])),...["gif"].map((t=>[t,Ei.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ei.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ei.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,Ei.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ei.JPEG])),...["json"].map((t=>[t,Ei.JSON])),...["m4a","m4p"].map((t=>[t,Ei.M4A])),...["mov","qt"].map((t=>[t,Ei.MOV])),...["mp3"].map((t=>[t,Ei.MP3])),...["mp4","m4v"].map((t=>[t,Ei.MP4])),...["ogg","oga"].map((t=>[t,Ei.OGG])),...["pdf","ps"].map((t=>[t,Ei.PDF])),...["png"].map((t=>[t,Ei.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ei.POWERPOINT])),...["rar"].map((t=>[t,Ei.RAR])),...["stp"].map((t=>[t,Ei.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ei.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,Ei.VIDEO])),...["wav"].map((t=>[t,Ei.WAV])),...["wma"].map((t=>[t,Ei.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ei.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ei.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ei.YAML])),...["zip"].map((t=>[t,Ei.ZIP]))]);const Ri={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ui=bt`
374
378
  :host, i.ft-icon {
375
379
  display: inline-flex;
376
380
  align-items: center;
@@ -379,14 +383,14 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
379
383
  }
380
384
 
381
385
  :host {
382
- width: ${Ei.size};
383
- height: ${Ei.size};
386
+ width: ${Ri.size};
387
+ height: ${Ri.size};
384
388
  }
385
389
 
386
390
  i.ft-icon {
387
391
  width: 100%;
388
392
  height: 100%;
389
- font-size: ${Ei.size};
393
+ font-size: ${Ri.size};
390
394
  line-height: 1;
391
395
  font-weight: normal;
392
396
  text-transform: none;
@@ -397,33 +401,33 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
397
401
  text-rendering: auto;
398
402
  -webkit-font-smoothing: antialiased;
399
403
  -moz-osx-font-smoothing: grayscale;
400
- vertical-align: ${Ei.verticalAlign};
404
+ vertical-align: ${Ri.verticalAlign};
401
405
  }
402
406
 
403
407
  i.ft-icon.ft-icon--fluid-topics {
404
- font-family: ${Ei.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
408
+ font-family: ${Ri.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
405
409
 
406
410
  /* Ugly fix because font is broken */
407
- font-size: calc(0.75 * ${Ei.size});
408
- line-height: ${Ei.size};
411
+ font-size: calc(0.75 * ${Ri.size});
412
+ line-height: ${Ri.size};
409
413
  position: relative;
410
414
  top: -4%;
411
415
  justify-content: center;
412
416
  }
413
417
 
414
418
  .ft-icon--file-format {
415
- font-family: ${Ei.fileFormatFontFamily}, ft-mime, sans-serif;
419
+ font-family: ${Ri.fileFormatFontFamily}, ft-mime, sans-serif;
416
420
  }
417
421
 
418
422
  .ft-icon--material {
419
- font-family: ${Ei.materialFontFamily}, "Material Icons", sans-serif;
423
+ font-family: ${Ri.materialFontFamily}, "Material Icons", sans-serif;
420
424
  }
421
- `;var Ui;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ui||(Ui={}));var ki=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ii extends zo{constructor(){super(...arguments),this.resolvedIcon=oo}render(){const t=this.variant&&Object.values(Ui).includes(this.variant)?this.variant:Ui.fluid_topics,o=t!==Ui.material||!!this.value;return Qt`
425
+ `;var ki;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ki||(ki={}));var Ii=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Wi extends zo{constructor(){super(...arguments),this.resolvedIcon=oo}render(){const t=this.variant&&Object.values(ki).includes(this.variant)?this.variant:ki.fluid_topics,o=t!==ki.material||!!this.value;return Qt`
422
426
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
423
- ${wi(this.resolvedIcon)}
427
+ ${Ci(this.resolvedIcon)}
424
428
  <slot ?hidden=${o}></slot>
425
429
  </i>
426
- `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case Ui.file_format:this.resolvedIcon=null!==(t=$i[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Ui.material:this.resolvedIcon=this.value||oo;break;default:this.resolvedIcon=null!==(o=Ci[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ii.elementDefinitions={},Ii.styles=Ri,ki([C()],Ii.prototype,"variant",void 0),ki([C()],Ii.prototype,"value",void 0),ki([$()],Ii.prototype,"resolvedIcon",void 0),ki([R("slot")],Ii.prototype,"slottedContent",void 0),k("ft-icon")(Ii);const Wi={color:xo.extend("--ft-loader-color","",Co.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},Li=bt`
430
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case ki.file_format:this.resolvedIcon=null!==(t=Ei[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case ki.material:this.resolvedIcon=this.value||oo;break;default:this.resolvedIcon=null!==(o=$i[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Wi.elementDefinitions={},Wi.styles=Ui,Ii([C()],Wi.prototype,"variant",void 0),Ii([C()],Wi.prototype,"value",void 0),Ii([$()],Wi.prototype,"resolvedIcon",void 0),Ii([R("slot")],Wi.prototype,"slottedContent",void 0),k("ft-icon")(Wi);const Li={color:xo.extend("--ft-loader-color","",Co.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},zi=bt`
427
431
  :host {
428
432
  line-height: 0;
429
433
  }
@@ -432,8 +436,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
432
436
  display: inline-block;
433
437
  position: relative;
434
438
 
435
- width: ${Wi.size};
436
- height: ${Wi.size};
439
+ width: ${Li.size};
440
+ height: ${Li.size};
437
441
  }
438
442
 
439
443
  .ft-loader div {
@@ -442,7 +446,7 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
442
446
  width: 25%;
443
447
  height: 25%;
444
448
  border-radius: 50%;
445
- background: ${Wi.color};
449
+ background: ${Li.color};
446
450
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
447
451
  }
448
452
 
@@ -489,10 +493,10 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
489
493
  transform: translate(0, 0);
490
494
  }
491
495
  100% {
492
- transform: translate(calc(0.35 * ${Wi.size}), 0);
496
+ transform: translate(calc(0.35 * ${Li.size}), 0);
493
497
  }
494
498
  }
495
- `,zi=xo.extend("--ft-button-color","",Co.colorPrimary),Ki={backgroundColor:xo.extend("--ft-button-background-color","",Co.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",Co.borderRadiusL),color:zi,fontSize:xo.extend("--ft-button-font-size","",li.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",zi),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},Zi=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",Co.colorOnPrimary)),Fi={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",Co.colorPrimary)),color:Zi,rippleColor:xo.extend("--ft-button-primary-ripple-color","",Zi)},Bi=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",Co.borderRadiusM)),Di=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Ai=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Mi=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Pi=[bt`
499
+ `,Ki=xo.extend("--ft-button-color","",Co.colorPrimary),Zi={backgroundColor:xo.extend("--ft-button-background-color","",Co.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",Co.borderRadiusL),color:Ki,fontSize:xo.extend("--ft-button-font-size","",ci.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",Ki),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},Fi=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",Co.colorOnPrimary)),Bi={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",Co.colorPrimary)),color:Fi,rippleColor:xo.extend("--ft-button-primary-ripple-color","",Fi)},Di=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",Co.borderRadiusM)),Ai=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Mi=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Pi=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Hi=[bt`
496
500
  :host {
497
501
  display: inline-block;
498
502
  max-width: 100%;
@@ -503,7 +507,7 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
503
507
  box-shadow: 0px 0px 0px transparent;
504
508
  border: 0px solid transparent;
505
509
  text-shadow: 0px 0px 0px transparent;
506
- font-size: ${Ki.fontSize};
510
+ font-size: ${Zi.fontSize};
507
511
  }
508
512
 
509
513
  button:hover {
@@ -532,31 +536,31 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
532
536
  border: none;
533
537
  pointer-events: auto;
534
538
 
535
- --ft-button-internal-line-height: max(calc(${Ki.fontSize} + 2px), ${Ki.iconSize});
536
- --ft-button-internal-color: ${Ki.color};
537
- ${Oo(Ei.size,Ki.iconSize)};
538
- ${Oo(Yo.color,Ki.rippleColor)};
539
+ --ft-button-internal-line-height: max(calc(${Zi.fontSize} + 2px), ${Zi.iconSize});
540
+ --ft-button-internal-color: ${Zi.color};
541
+ ${Oo(Ri.size,Zi.iconSize)};
542
+ ${Oo(Vo.color,Zi.rippleColor)};
539
543
 
540
- border-radius: ${Ki.borderRadius};
541
- padding: ${Ki.verticalPadding} ${Ki.horizontalPadding};
542
- background-color: ${Ki.backgroundColor};
544
+ border-radius: ${Zi.borderRadius};
545
+ padding: ${Zi.verticalPadding} ${Zi.horizontalPadding};
546
+ background-color: ${Zi.backgroundColor};
543
547
  color: var(--ft-button-internal-color);
544
548
  -webkit-mask-image: radial-gradient(white, black);
545
549
  }
546
550
 
547
551
  .ft-button.ft-button--outlined {
548
552
  border: 1px solid var(--ft-button-internal-color);
549
- padding: calc(${Ki.verticalPadding} - 1px) calc(${Ki.horizontalPadding} - 1px);
553
+ padding: calc(${Zi.verticalPadding} - 1px) calc(${Zi.horizontalPadding} - 1px);
550
554
  }
551
555
 
552
556
  .ft-button.ft-button--dense {
553
- padding: ${Di} ${Ai};
554
- border-radius: ${Bi};
555
- gap: ${Mi};
557
+ padding: ${Ai} ${Mi};
558
+ border-radius: ${Di};
559
+ gap: ${Pi};
556
560
  }
557
561
 
558
562
  .ft-button.ft-button--dense.ft-button--outlined {
559
- padding: calc(${Di} - 1px) calc(${Ai} - 1px);
563
+ padding: calc(${Ai} - 1px) calc(${Mi} - 1px);
560
564
  }
561
565
 
562
566
  .ft-button:not([disabled]):hover {
@@ -564,22 +568,22 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
564
568
  }
565
569
 
566
570
  .ft-button--round {
567
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ki.verticalPadding});
571
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Zi.verticalPadding});
568
572
  }
569
573
 
570
574
  .ft-button--round.ft-button--dense {
571
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Di});
575
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ai});
572
576
  }
573
577
 
574
578
  .ft-button[disabled] {
575
579
  filter: grayscale(1);
576
- opacity: ${Ki.opacityDisabled};
580
+ opacity: ${Zi.opacityDisabled};
577
581
  }
578
582
 
579
583
  .ft-button.ft-button--primary {
580
- background-color: ${Fi.backgroundColor};
581
- --ft-button-internal-color: ${Fi.color};
582
- ${Oo(Yo.color,Fi.rippleColor)};
584
+ background-color: ${Bi.backgroundColor};
585
+ --ft-button-internal-color: ${Bi.color};
586
+ ${Oo(Vo.color,Bi.rippleColor)};
583
587
  }
584
588
 
585
589
  .ft-button:focus {
@@ -592,13 +596,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
592
596
  white-space: nowrap;
593
597
  text-overflow: ellipsis;
594
598
  display: block;
595
- margin: 0 ${Ki.iconPadding};
596
- ${Oo(li.fontSize,"1em")};
597
- ${Oo(li.lineHeight,"var(--ft-button-internal-line-height)")};
599
+ margin: 0 ${Zi.iconPadding};
600
+ ${Oo(ci.fontSize,"1em")};
601
+ ${Oo(ci.lineHeight,"var(--ft-button-internal-line-height)")};
598
602
  }
599
603
 
600
604
  .ft-button--dense .ft-button--label {
601
- margin: 0 ${Mi};
605
+ margin: 0 ${Pi};
602
606
  }
603
607
 
604
608
  .ft-button--label[hidden] {
@@ -611,13 +615,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
611
615
  }
612
616
 
613
617
  .ft-button--label[hidden] + ft-icon {
614
- margin: 0 calc(${Ki.horizontalPadding} * -1);
615
- padding: 0 ${Ki.verticalPadding};
618
+ margin: 0 calc(${Zi.horizontalPadding} * -1);
619
+ padding: 0 ${Zi.verticalPadding};
616
620
  }
617
621
 
618
622
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
619
- margin: 0 calc(${Ai} * -1);
620
- padding: 0 ${Di};
623
+ margin: 0 calc(${Mi} * -1);
624
+ padding: 0 ${Ai};
621
625
  }
622
626
 
623
627
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -626,10 +630,10 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
626
630
  }
627
631
 
628
632
  ft-loader {
629
- ${Oo(Wi.size,Ki.iconSize)};
630
- ${Oo(Wi.color,"var(--ft-button-internal-color)")};
633
+ ${Oo(Li.size,Zi.iconSize)};
634
+ ${Oo(Li.color,"var(--ft-button-internal-color)")};
631
635
  }
632
- `,Ko],Hi=xo.create("--ft-tooltip-distance","","SIZE","4px"),ji=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ti=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),_i=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Gi=xo.external(Co.borderRadiusS,"Design system"),Yi=xo.create("--ft-tooltip-max-width","","SIZE","150px"),Vi=bt`
636
+ `,Zo],ji=xo.create("--ft-tooltip-distance","","SIZE","4px"),Ti=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),_i=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Gi=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Yi=xo.external(Co.borderRadiusS,"Design system"),Vi=xo.create("--ft-tooltip-max-width","","SIZE","150px"),Ji=bt`
633
637
  .ft-tooltip--container {
634
638
  display: block;
635
639
  }
@@ -644,21 +648,21 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
644
648
  box-sizing: border-box;
645
649
  overflow: hidden;
646
650
  width: max-content;
647
- max-width: ${Yi};
651
+ max-width: ${Vi};
648
652
  text-align: center;
649
- padding: ${Hi};
650
- z-index: ${_i};
653
+ padding: ${ji};
654
+ z-index: ${Gi};
651
655
  }
652
656
 
653
657
  .ft-tooltip--content {
654
658
  padding: 4px 8px;
655
- border-radius: ${Gi};
656
- background-color: ${Ti};
657
- color: ${ji};
659
+ border-radius: ${Yi};
660
+ background-color: ${_i};
661
+ color: ${Ti};
658
662
  position: relative;
659
663
  word-break: break-word;
660
664
  }
661
- `;var Ji=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class qi extends zo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Qt`
665
+ `;var qi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Xi extends zo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Qt`
662
666
  <div part="container"
663
667
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
664
668
  @mouseenter=${this.onHover}
@@ -676,23 +680,23 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
676
680
  </div>
677
681
  </div>
678
682
  </div>
679
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Yi})`}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())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}qi.elementDefinitions={"ft-typography":Ni},qi.styles=Vi,Ji([C()],qi.prototype,"text",void 0),Ji([C({type:Boolean})],qi.prototype,"manual",void 0),Ji([C({type:Boolean})],qi.prototype,"inline",void 0),Ji([C({type:Number})],qi.prototype,"delay",void 0),Ji([C()],qi.prototype,"position",void 0),Ji([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],qi.prototype,"slotNodes",void 0),Ji([R(".ft-tooltip--container")],qi.prototype,"container",void 0),Ji([R(".ft-tooltip")],qi.prototype,"tooltip",void 0),Ji([R(".ft-tooltip--content")],qi.prototype,"tooltipContent",void 0),Ji([$()],qi.prototype,"visible",void 0),k("ft-tooltip")(qi);class Xi extends zo{render(){return Qt`
683
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Vi})`}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())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Xi.elementDefinitions={"ft-typography":Si},Xi.styles=Ji,qi([C()],Xi.prototype,"text",void 0),qi([C({type:Boolean})],Xi.prototype,"manual",void 0),qi([C({type:Boolean})],Xi.prototype,"inline",void 0),qi([C({type:Number})],Xi.prototype,"delay",void 0),qi([C()],Xi.prototype,"position",void 0),qi([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],Xi.prototype,"slotNodes",void 0),qi([R(".ft-tooltip--container")],Xi.prototype,"container",void 0),qi([R(".ft-tooltip")],Xi.prototype,"tooltip",void 0),qi([R(".ft-tooltip--content")],Xi.prototype,"tooltipContent",void 0),qi([$()],Xi.prototype,"visible",void 0),k("ft-tooltip")(Xi);class Qi extends zo{render(){return Qt`
680
684
  <div class="ft-loader">
681
685
  <div></div>
682
686
  <div></div>
683
687
  <div></div>
684
688
  <div></div>
685
689
  </div>
686
- `}}Xi.styles=Li,k("ft-loader")(Xi);var Qi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class tr extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Fo].form}constructor(...t){super(t),this[Fo]=this.attachInternals(),this[Fo].role=o}setFormValue(t){this[Fo].setFormValue(t)}}}(zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(Qt`
690
+ `}}Qi.styles=zi,k("ft-loader")(Qi);var tr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class or extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Bo].form}constructor(...t){super(t),this[Bo]=this.attachInternals(),this[Bo].role=o}setFormValue(t){this[Bo].setFormValue(t)}}}(zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(Qt`
687
691
  <button part="button"
688
- class="${_o(this.buttonClasses)}"
692
+ class="${Go(this.buttonClasses)}"
689
693
  aria-label="${this.getLabel()}"
690
694
  ?disabled=${this.isDisabled()}>
691
695
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
692
696
  <ft-typography part="label"
693
697
  variant=${this.typographyVariant}
694
698
  element="span"
695
- class="ft-button--label ${Mo?"ft-safari-ellipsis-fix":""}"
699
+ class="ft-button--label ${Po?"ft-safari-ellipsis-fix":""}"
696
700
  ?hidden=${!this.hasTextContent()}>
697
701
  <slot @slotchange=${this.onSlotchange}></slot>
698
702
  </ft-typography>
@@ -706,7 +710,7 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
706
710
  </ft-tooltip>
707
711
  `:t}resolveIcon(){return this.loading?Qt`
708
712
  <ft-loader part="loader icon"></ft-loader> `:this.icon?Qt`
709
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:oo}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}}tr.elementDefinitions={"ft-ripple":ie,"ft-tooltip":qi,"ft-typography":Ni,"ft-icon":Ii,"ft-loader":Xi},Qi([C({type:String,reflect:!0})],tr.prototype,"role",void 0),Qi([C()],tr.prototype,"type",void 0),Qi([C({type:Boolean})],tr.prototype,"disabled",void 0),Qi([C()],tr.prototype,"label",void 0),Qi([C()],tr.prototype,"icon",void 0),Qi([C()],tr.prototype,"iconVariant",void 0),Qi([C({type:Boolean})],tr.prototype,"trailingIcon",void 0),Qi([C({type:Boolean})],tr.prototype,"loading",void 0),Qi([C()],tr.prototype,"tooltipPosition",void 0),Qi([C({type:Boolean})],tr.prototype,"hideTooltip",void 0),Qi([C({type:Boolean})],tr.prototype,"forceTooltip",void 0),Qi([R(".ft-button")],tr.prototype,"button",void 0),Qi([R(".ft-button--label slot")],tr.prototype,"slottedContent",void 0);var or=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class er extends tr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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-no-text-select":!0}}get typographyVariant(){return"button"}}er.styles=[Zo,Pi],or([C({type:Boolean})],er.prototype,"primary",void 0),or([C({type:Boolean})],er.prototype,"outlined",void 0),or([C({type:Boolean})],er.prototype,"dense",void 0),or([C({type:Boolean})],er.prototype,"round",void 0);const ir=[bt`
713
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:oo}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}}or.elementDefinitions={"ft-ripple":re,"ft-tooltip":Xi,"ft-typography":Si,"ft-icon":Wi,"ft-loader":Qi},tr([C({type:String,reflect:!0})],or.prototype,"role",void 0),tr([C()],or.prototype,"type",void 0),tr([C({type:Boolean})],or.prototype,"disabled",void 0),tr([C()],or.prototype,"label",void 0),tr([C()],or.prototype,"icon",void 0),tr([C()],or.prototype,"iconVariant",void 0),tr([C({type:Boolean})],or.prototype,"trailingIcon",void 0),tr([C({type:Boolean})],or.prototype,"loading",void 0),tr([C()],or.prototype,"tooltipPosition",void 0),tr([C({type:Boolean})],or.prototype,"hideTooltip",void 0),tr([C({type:Boolean})],or.prototype,"forceTooltip",void 0),tr([R(".ft-button")],or.prototype,"button",void 0),tr([R(".ft-button--label slot")],or.prototype,"slottedContent",void 0);var er=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ir extends or{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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-no-text-select":!0}}get typographyVariant(){return"button"}}ir.styles=[Fo,Hi],er([C({type:Boolean})],ir.prototype,"primary",void 0),er([C({type:Boolean})],ir.prototype,"outlined",void 0),er([C({type:Boolean})],ir.prototype,"dense",void 0),er([C({type:Boolean})],ir.prototype,"round",void 0);const rr=[bt`
710
714
  :host {
711
715
  display: inline-block;
712
716
  max-width: 100%;
@@ -785,13 +789,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
785
789
  /** Primary styles **/
786
790
 
787
791
  .ft-button--primary {
788
- ${Oo(Wi.color,wo.primaryIconColor)};
792
+ ${Oo(Li.color,wo.primaryIconColor)};
789
793
 
790
- ${Oo(Yo.color,wo.primaryStateLayerColor)};
791
- ${Oo(Yo.opacityContentOnSurfaceHover,wo.primaryStateLayerOpacityHover)};
792
- ${Oo(Yo.opacityContentOnSurfaceFocused,wo.primaryStateLayerOpacityFocus)};
793
- ${Oo(Yo.opacityContentOnSurfaceSelected,wo.primaryStateLayerOpacityActive)};
794
- ${Oo(Yo.opacityContentOnSurfacePressed,wo.primaryStateLayerOpacityActive)};
794
+ ${Oo(Vo.color,wo.primaryStateLayerColor)};
795
+ ${Oo(Vo.opacityContentOnSurfaceHover,wo.primaryStateLayerOpacityHover)};
796
+ ${Oo(Vo.opacityContentOnSurfaceFocused,wo.primaryStateLayerOpacityFocus)};
797
+ ${Oo(Vo.opacityContentOnSurfaceSelected,wo.primaryStateLayerOpacityActive)};
798
+ ${Oo(Vo.opacityContentOnSurfacePressed,wo.primaryStateLayerOpacityActive)};
795
799
 
796
800
  background-color: ${wo.primaryBackgroundColor};
797
801
  color: ${wo.primaryColor};
@@ -809,13 +813,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
809
813
  /** Secondary styles **/
810
814
 
811
815
  .ft-button--secondary {
812
- ${Oo(Wi.color,wo.secondaryIconColor)};
816
+ ${Oo(Li.color,wo.secondaryIconColor)};
813
817
 
814
- ${Oo(Yo.color,wo.secondaryStateLayerColor)};
815
- ${Oo(Yo.opacityContentOnSurfaceHover,wo.secondaryStateLayerOpacityHover)};
816
- ${Oo(Yo.opacityContentOnSurfaceFocused,wo.secondaryStateLayerOpacityFocus)};
817
- ${Oo(Yo.opacityContentOnSurfaceSelected,wo.secondaryStateLayerOpacityActive)};
818
- ${Oo(Yo.opacityContentOnSurfacePressed,wo.secondaryStateLayerOpacityActive)};
818
+ ${Oo(Vo.color,wo.secondaryStateLayerColor)};
819
+ ${Oo(Vo.opacityContentOnSurfaceHover,wo.secondaryStateLayerOpacityHover)};
820
+ ${Oo(Vo.opacityContentOnSurfaceFocused,wo.secondaryStateLayerOpacityFocus)};
821
+ ${Oo(Vo.opacityContentOnSurfaceSelected,wo.secondaryStateLayerOpacityActive)};
822
+ ${Oo(Vo.opacityContentOnSurfacePressed,wo.secondaryStateLayerOpacityActive)};
819
823
 
820
824
  background-color: ${wo.secondaryBackgroundColor};
821
825
  color: ${wo.secondaryColor};
@@ -834,13 +838,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
834
838
  /** Tertiary styles **/
835
839
 
836
840
  .ft-button--tertiary {
837
- ${Oo(Wi.color,wo.tertiaryIconColor)};
841
+ ${Oo(Li.color,wo.tertiaryIconColor)};
838
842
 
839
- ${Oo(Yo.color,wo.tertiaryStateLayerColor)};
840
- ${Oo(Yo.opacityContentOnSurfaceHover,wo.tertiaryStateLayerOpacityHover)};
841
- ${Oo(Yo.opacityContentOnSurfaceFocused,wo.tertiaryStateLayerOpacityFocus)};
842
- ${Oo(Yo.opacityContentOnSurfaceSelected,wo.tertiaryStateLayerOpacityActive)};
843
- ${Oo(Yo.opacityContentOnSurfacePressed,wo.tertiaryStateLayerOpacityActive)};
843
+ ${Oo(Vo.color,wo.tertiaryStateLayerColor)};
844
+ ${Oo(Vo.opacityContentOnSurfaceHover,wo.tertiaryStateLayerOpacityHover)};
845
+ ${Oo(Vo.opacityContentOnSurfaceFocused,wo.tertiaryStateLayerOpacityFocus)};
846
+ ${Oo(Vo.opacityContentOnSurfaceSelected,wo.tertiaryStateLayerOpacityActive)};
847
+ ${Oo(Vo.opacityContentOnSurfacePressed,wo.tertiaryStateLayerOpacityActive)};
844
848
 
845
849
  background-color: ${wo.tertiaryBackgroundColor};
846
850
  color: ${wo.tertiaryColor};
@@ -858,13 +862,13 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
858
862
  /** Neutral styles **/
859
863
 
860
864
  .ft-button--neutral {
861
- ${Oo(Wi.color,wo.neutralIconColor)};
865
+ ${Oo(Li.color,wo.neutralIconColor)};
862
866
 
863
- ${Oo(Yo.backgroundColor,wo.neutralStateLayerColor)};
864
- ${Oo(Yo.opacityContentOnSurfaceHover,wo.neutralStateLayerOpacityHover)};
865
- ${Oo(Yo.opacityContentOnSurfaceFocused,wo.neutralStateLayerOpacityFocus)};
866
- ${Oo(Yo.opacityContentOnSurfaceSelected,wo.neutralStateLayerOpacityActive)};
867
- ${Oo(Yo.opacityContentOnSurfacePressed,wo.neutralStateLayerOpacityActive)};
867
+ ${Oo(Vo.backgroundColor,wo.neutralStateLayerColor)};
868
+ ${Oo(Vo.opacityContentOnSurfaceHover,wo.neutralStateLayerOpacityHover)};
869
+ ${Oo(Vo.opacityContentOnSurfaceFocused,wo.neutralStateLayerOpacityFocus)};
870
+ ${Oo(Vo.opacityContentOnSurfaceSelected,wo.neutralStateLayerOpacityActive)};
871
+ ${Oo(Vo.opacityContentOnSurfacePressed,wo.neutralStateLayerOpacityActive)};
868
872
 
869
873
  background-color: ${wo.neutralBackgroundColor};
870
874
  color: ${wo.neutralColor};
@@ -882,8 +886,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
882
886
  /** Large styles **/
883
887
 
884
888
  .ft-button--large {
885
- ${Oo(Ei.size,wo.largeIconSize)};
886
- ${Oo(Wi.size,wo.largeIconSize)};
889
+ ${Oo(Ri.size,wo.largeIconSize)};
890
+ ${Oo(Li.size,wo.largeIconSize)};
887
891
 
888
892
  height: ${wo.largeHeight};
889
893
  padding: 0 ${wo.largeHorizontalPadding};
@@ -905,8 +909,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
905
909
  /** Small styles **/
906
910
 
907
911
  .ft-button--small {
908
- ${Oo(Ei.size,wo.smallIconSize)};
909
- ${Oo(Wi.size,wo.smallIconSize)};
912
+ ${Oo(Ri.size,wo.smallIconSize)};
913
+ ${Oo(Li.size,wo.smallIconSize)};
910
914
 
911
915
  height: ${wo.smallHeight};
912
916
  padding: 0 ${wo.smallHorizontalPadding};
@@ -924,7 +928,7 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
924
928
  width: ${wo.smallIconOnlyWidth};
925
929
  padding: unset;
926
930
  }
927
- `,Ko];var rr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class nr extends tr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?ce.caption1medium:ce.body2medium}}nr.styles=[Zo,ir],rr([C({type:Boolean})],nr.prototype,"primary",void 0),rr([C({type:Boolean})],nr.prototype,"secondary",void 0),rr([C({type:Boolean})],nr.prototype,"tertiary",void 0),rr([C({type:Boolean})],nr.prototype,"neutral",void 0),rr([C({type:Boolean})],nr.prototype,"small",void 0),k("ft-button")(er),k("ftds-button")(nr);const ar=xo.extend("--ft-chip-color","",Co.colorOnSurface),sr={backgroundColor:xo.extend("--ft-chip-background-color","",Co.colorSurface),color:ar,fontSize:xo.extend("--ft-chip-font-size","",He.fontSize),iconSize:xo.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:xo.extend("--ft-chip-ripple-color","",ar),horizontalPadding:xo.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:xo.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:xo.external(Co.colorOutline,"Design system"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},lr=xo.extend("--ft-chip-highlighted-color","",xo.extend("--ft-chip-color","",Co.colorOnPrimary)),cr={backgroundColor:xo.extend("--ft-chip-highlighted-background-color","",xo.extend("--ft-chip-background-color","",Co.colorPrimary)),color:lr,rippleColor:xo.extend("--ft-chip-highlighted-ripple-color","",lr)},pr={horizontalPadding:xo.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:xo.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},fr=[Ko,bt`
931
+ `,Zo];var nr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ar extends or{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?pe.caption1medium:pe.body2medium}}ar.styles=[Fo,rr],nr([C({type:Boolean})],ar.prototype,"primary",void 0),nr([C({type:Boolean})],ar.prototype,"secondary",void 0),nr([C({type:Boolean})],ar.prototype,"tertiary",void 0),nr([C({type:Boolean})],ar.prototype,"neutral",void 0),nr([C({type:Boolean})],ar.prototype,"small",void 0),k("ft-button")(ir),k("ftds-button")(ar);const sr=xo.extend("--ft-chip-color","",Co.colorOnSurface),lr={backgroundColor:xo.extend("--ft-chip-background-color","",Co.colorSurface),color:sr,fontSize:xo.extend("--ft-chip-font-size","",je.fontSize),iconSize:xo.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:xo.extend("--ft-chip-ripple-color","",sr),horizontalPadding:xo.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:xo.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:xo.external(Co.colorOutline,"Design system"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},cr=xo.extend("--ft-chip-highlighted-color","",xo.extend("--ft-chip-color","",Co.colorOnPrimary)),pr={backgroundColor:xo.extend("--ft-chip-highlighted-background-color","",xo.extend("--ft-chip-background-color","",Co.colorPrimary)),color:cr,rippleColor:xo.extend("--ft-chip-highlighted-ripple-color","",cr)},fr={horizontalPadding:xo.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:xo.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},hr=[Zo,bt`
928
932
  :host {
929
933
  display: inline-block;
930
934
  max-width: 100%;
@@ -940,20 +944,20 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
940
944
  box-sizing: border-box;
941
945
  pointer-events: auto;
942
946
 
943
- --ft-chip-internal-font-size: ${sr.fontSize};
947
+ --ft-chip-internal-font-size: ${lr.fontSize};
944
948
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
945
- ${Oo(Ei.size,sr.iconSize)};
946
- --ft-chip-internal-vertical-padding: ${sr.verticalPadding};
947
- --ft-chip-internal-horizontal-padding: ${sr.horizontalPadding};
949
+ ${Oo(Ri.size,lr.iconSize)};
950
+ --ft-chip-internal-vertical-padding: ${lr.verticalPadding};
951
+ --ft-chip-internal-horizontal-padding: ${lr.horizontalPadding};
948
952
  --ft-chip-internal-icon-padding: 3px;
949
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${sr.iconSize});
953
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${lr.iconSize});
950
954
 
951
- border: 1px solid ${sr.colorOutline};
952
- color: ${sr.color};
953
- ${Oo(Yo.color,sr.rippleColor)};
955
+ border: 1px solid ${lr.colorOutline};
956
+ color: ${lr.color};
957
+ ${Oo(Vo.color,lr.rippleColor)};
954
958
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
955
959
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
956
- background-color: ${sr.backgroundColor};
960
+ background-color: ${lr.backgroundColor};
957
961
  line-height: var(--ft-chip-internal-content-height);
958
962
  }
959
963
 
@@ -963,8 +967,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
963
967
 
964
968
  .ft-chip--dense {
965
969
  --ft-chip-internal-icon-padding: 3px;
966
- --ft-chip-internal-vertical-padding: ${pr.verticalPadding};
967
- --ft-chip-internal-horizontal-padding: ${pr.horizontalPadding};
970
+ --ft-chip-internal-vertical-padding: ${fr.verticalPadding};
971
+ --ft-chip-internal-horizontal-padding: ${fr.horizontalPadding};
968
972
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
969
973
  }
970
974
 
@@ -976,15 +980,15 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
976
980
  cursor: default;
977
981
  pointer-events: none;
978
982
  filter: grayscale(1);
979
- opacity: ${sr.opacityDisabled};
983
+ opacity: ${lr.opacityDisabled};
980
984
  }
981
985
 
982
986
  .ft-chip--highlighted {
983
987
  border: none;
984
988
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
985
- background-color: ${cr.backgroundColor};
986
- ${Oo(Yo.color,cr.rippleColor)};
987
- color: ${cr.color};
989
+ background-color: ${pr.backgroundColor};
990
+ ${Oo(Vo.color,pr.rippleColor)};
991
+ color: ${pr.color};
988
992
  }
989
993
 
990
994
  .ft-chip--clickable {
@@ -1014,9 +1018,9 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
1014
1018
  }
1015
1019
 
1016
1020
  .ft-chip--icon-button {
1017
- ${Oo(Ki.iconSize,sr.iconSize)};
1018
- ${Oo(Ki.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1019
- ${Oo(Ki.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1021
+ ${Oo(Zi.iconSize,lr.iconSize)};
1022
+ ${Oo(Zi.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1023
+ ${Oo(Zi.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1020
1024
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
1021
1025
  }
1022
1026
 
@@ -1024,8 +1028,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
1024
1028
  vertical-align: bottom;
1025
1029
  display: block;
1026
1030
  margin: 0 var(--ft-chip-internal-horizontal-padding);
1027
- ${Oo(He.fontSize,"var(--ft-chip-internal-font-size)")};
1028
- ${Oo(He.lineHeight,"var(--ft-chip-internal-content-height)")};
1031
+ ${Oo(je.fontSize,"var(--ft-chip-internal-font-size)")};
1032
+ ${Oo(je.lineHeight,"var(--ft-chip-internal-content-height)")};
1029
1033
  }
1030
1034
 
1031
1035
  .ft-chip--safari-fix .ft-chip--label {
@@ -1061,8 +1065,8 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
1061
1065
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1062
1066
  order: -1;
1063
1067
  }
1064
- `];var hr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class dr extends CustomEvent{constructor(){super("icon-click")}}class yr extends zo{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Mo};return Qt`
1065
- <div class="${_o(t)}"
1068
+ `];var dr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class yr extends CustomEvent{constructor(){super("icon-click")}}class ur extends zo{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Po};return Qt`
1069
+ <div class="${Go(t)}"
1066
1070
  aria-label="${this.getLabel()}"
1067
1071
  tabindex="${this.interactionsOnChip?0:-1}"
1068
1072
  @keyup=${this.onKeyUp}>
@@ -1084,4 +1088,4 @@ class Si extends To{constructor(t){if(super(t),this.et=X,t.type!==Ho)throw Error
1084
1088
  <div class="ft-chip--icon-container ft-no-text-select">
1085
1089
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
1086
1090
  </div>
1087
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new dr))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new dr))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}yr.elementDefinitions={"ft-ripple":ie,"ft-typography":Ni,"ft-icon":Ii,"ft-button":er},yr.styles=fr,hr([C({type:Boolean})],yr.prototype,"highlighted",void 0),hr([C({type:Boolean})],yr.prototype,"removable",void 0),hr([C({type:Boolean})],yr.prototype,"disabled",void 0),hr([C({type:Boolean})],yr.prototype,"clickable",void 0),hr([C({type:Boolean})],yr.prototype,"iconClickable",void 0),hr([C({type:Boolean})],yr.prototype,"dense",void 0),hr([C({type:Boolean})],yr.prototype,"multiLine",void 0),hr([C()],yr.prototype,"label",void 0),hr([C()],yr.prototype,"iconLabel",void 0),hr([C()],yr.prototype,"icon",void 0),hr([C()],yr.prototype,"iconVariant",void 0),hr([C({type:Boolean})],yr.prototype,"trailingIcon",void 0),hr([R("ft-typography slot")],yr.prototype,"slottedContent",void 0),k("ft-chip")(yr),t.FtChip=yr,t.FtChipCssVariables=sr,t.FtChipDenseCssVariables=pr,t.FtChipHighlightedCssVariables=cr,t.IconClickEvent=dr,t.styles=fr}({});
1091
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new yr))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new yr))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ur.elementDefinitions={"ft-ripple":re,"ft-typography":Si,"ft-icon":Wi,"ft-button":ir},ur.styles=hr,dr([C({type:Boolean})],ur.prototype,"highlighted",void 0),dr([C({type:Boolean})],ur.prototype,"removable",void 0),dr([C({type:Boolean})],ur.prototype,"disabled",void 0),dr([C({type:Boolean})],ur.prototype,"clickable",void 0),dr([C({type:Boolean})],ur.prototype,"iconClickable",void 0),dr([C({type:Boolean})],ur.prototype,"dense",void 0),dr([C({type:Boolean})],ur.prototype,"multiLine",void 0),dr([C()],ur.prototype,"label",void 0),dr([C()],ur.prototype,"iconLabel",void 0),dr([C()],ur.prototype,"icon",void 0),dr([C()],ur.prototype,"iconVariant",void 0),dr([C({type:Boolean})],ur.prototype,"trailingIcon",void 0),dr([R("ft-typography slot")],ur.prototype,"slottedContent",void 0),k("ft-chip")(ur),t.FtChip=ur,t.FtChipCssVariables=lr,t.FtChipDenseCssVariables=fr,t.FtChipHighlightedCssVariables=pr,t.IconClickEvent=yr,t.styles=hr}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-chip",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A generic Fluid Topics chip",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "1.1.1",
23
- "@fluid-topics/ft-ripple": "1.1.1",
24
- "@fluid-topics/ft-typography": "1.1.1",
25
- "@fluid-topics/ft-wc-utils": "1.1.1",
22
+ "@fluid-topics/ft-icon": "1.1.2",
23
+ "@fluid-topics/ft-ripple": "1.1.2",
24
+ "@fluid-topics/ft-typography": "1.1.2",
25
+ "@fluid-topics/ft-wc-utils": "1.1.2",
26
26
  "lit": "3.1.0"
27
27
  },
28
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
28
+ "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
29
29
  }