@fluid-topics/ft-filterable-table 0.3.36 → 0.3.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);f(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,p),p.standInClass=c);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)s.delete(t),u(t,p,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},h=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):h(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=t;try{new e.elementClass}catch(t){h(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const y=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Pt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)n.delete(t),u(t,p,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},h=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):h(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){h(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ht){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -24,54 +24,59 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */}function n(t){return o({...t,state:!0})}
27
+ */}function s(t){return o({...t,state:!0})}
28
28
  /**
29
29
  * @license
30
30
  * Copyright 2017 Google LLC
31
31
  * SPDX-License-Identifier: BSD-3-Clause
32
- */const s=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,s=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(s.finisher=function(e){t(e,o)}),s}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
32
+ */const n=({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(n.finisher=function(e){t(e,o)}),n}{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}}
33
33
  /**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */;function r(t,e){return s({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
37
+ */;function r(t,e){return n({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
38
38
  /**
39
39
  * @license
40
40
  * Copyright 2021 Google LLC
41
41
  * SPDX-License-Identifier: BSD-3-Clause
42
- */var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const p=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function c(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!c(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!c(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var s=n[o];if(!c(t[s],e[s]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}
42
+ */var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function p(t){const{slot:e,selector:i}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}
43
+ /**
44
+ * @license
45
+ * Copyright 2017 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */function c(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?p({slot:s,flatten:e,selector:i}):n({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}const d=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function f(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,s;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!f(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!f(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(s=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,s[o]))return!1;for(o=i;0!=o--;){var n=s[o];if(!f(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}
43
48
  /**
44
49
  * @license
45
50
  * Copyright 2019 Google LLC
46
51
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const d=window,f=d.ShadowRoot&&(void 0===d.ShadyCSS||d.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),u=new WeakMap;class v{constructor(t,e,i){if(this._$cssResult$=!0,i!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(f&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}}const b=t=>new v("string"==typeof t?t:t+"",void 0,h),x=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new v(i,t,h)},y=(t,e)=>{f?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=d.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},g=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return b(e)})(t):t
52
+ */const h=window,u=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),x=new WeakMap;class b{constructor(t,e,i){if(this._$cssResult$=!0,i!==v)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(u&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=x.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&x.set(e,t))}return t}toString(){return this.cssText}}const g=t=>new b("string"==typeof t?t:t+"",void 0,v),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new b(i,t,v)},m=(t,e)=>{u?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=h.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},$=u?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return g(e)})(t):t
48
53
  /**
49
54
  * @license
50
55
  * Copyright 2017 Google LLC
51
56
  * SPDX-License-Identifier: BSD-3-Clause
52
- */;var m;const $=window,w=$.trustedTypes,O=w?w.emptyScript:"",k=$.reactiveElementPolyfillSupport,S={toAttribute(t,e){switch(e){case Boolean:t=t?O:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},C=(t,e)=>e!==t&&(e==e||t==t),E={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:C};class N extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=E){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||E}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return y(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=E){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const s=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:S).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:S;this._$El=n,this[n]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||C)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
57
+ */;var w;const O=window,k=O.trustedTypes,S=k?k.emptyScript:"",C=O.reactiveElementPolyfillSupport,E={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},N=(t,e)=>e!==t&&(e==e||t==t),R={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:N};class z extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=R){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||R}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift($(t))}else void 0!==t&&e.push($(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return m(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=R){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:E).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:E;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||N)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
53
58
  /**
54
59
  * @license
55
60
  * Copyright 2017 Google LLC
56
61
  * SPDX-License-Identifier: BSD-3-Clause
57
62
  */
58
- var R;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:N}),(null!==(m=$.reactiveElementVersions)&&void 0!==m?m:$.reactiveElementVersions=[]).push("1.4.1");const z=window,M=z.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,j="?"+U,B=`<${j}>`,D=document,A=(t="")=>D.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,I=t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,H=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Z=/'/g,K=/"/g,V=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Y=new WeakMap,G=D.createTreeWalker(D,129,null,!1),Q=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=P;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===P?"!--"===a[1]?r=_:void 0!==a[1]?r=H:void 0!==a[2]?(V.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=W):void 0!==a[3]&&(r=W):r===W?">"===a[0]?(r=null!=n?n:P,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?W:'"'===a[3]?K:Z):r===K||r===Z?r=W:r===_||r===H?r=P:(r=W,n=void 0);const d=r===W&&t[e+1].startsWith("/>")?" ":"";s+=r===P?i+B:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+U+d):i+U+(-2===p?(o.push(void 0),e):d)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(l):l,o]};class tt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=Q(t,e);if(this.el=tt.createElement(a,i),G.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=G.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?st:"?"===e[1]?lt:"@"===e[1]?at:nt})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(V.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),G.nextNode(),l.push({type:2,index:++n});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===j)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)l.push({type:7,index:n}),t+=U.length-1}n++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function et(t,e,i=t,o){var n,s,r,l;if(e===q)return e;let a=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const p=L(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=et(t,a._$AS(t,e.values),a,o)),e}class it{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:D).importNode(i,!0);G.currentNode=n;let s=G.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new ot(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new pt(s,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=G.nextNode(),r++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class ot{constructor(t,e,i,o){var n;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),L(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==q&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):I(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==X&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=tt.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new it(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new tt(t)),e}k(t){T(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new ot(this.O(A()),this.O(A()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class nt{constructor(t,e,i,o,n){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=et(this,t,e,0),s=!L(t)||t!==this._$AH&&t!==q,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=et(this,o[i+r],e,r),l===q&&(l=this._$AH[r]),s||(s=!L(l)||l!==this._$AH[r]),l===X?t=X:t!==X&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===X?void 0:t}}const rt=M?M.emptyScript:"";class lt extends nt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==X?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class at extends nt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=et(this,t,e,0))&&void 0!==i?i:X)===q)return;const o=this._$AH,n=t===X&&o!==X||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==X&&(o===X||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class pt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}}const ct={P:"$lit$",A:U,M:j,C:1,L:Q,R:it,D:I,V:et,I:ot,H:nt,N:lt,U:at,B:st,F:pt},dt=z.litHtmlPolyfillSupport;null==dt||dt(tt,ot),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.4.0");
63
+ var M;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:z}),(null!==(w=O.reactiveElementVersions)&&void 0!==w?w:O.reactiveElementVersions=[]).push("1.4.1");const F=window,U=F.trustedTypes,j=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,D=`lit$${(Math.random()+"").slice(9)}$`,B="?"+D,A=`<${B}>`,T=document,I=(t="")=>T.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_=t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,Z=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),V=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Q=new WeakMap,tt=T.createTreeWalker(T,129,null,!1),et=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=H;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===H?"!--"===a[1]?r=W:void 0!==a[1]?r=Z:void 0!==a[2]?(q.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=K):void 0!==a[3]&&(r=K):r===K?">"===a[0]?(r=null!=s?s:H,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?K:'"'===a[3]?J:V):r===J||r===V?r=K:r===W||r===Z?r=H:(r=K,s=void 0);const d=r===K&&t[e+1].startsWith("/>")?" ":"";n+=r===H?i+A:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+D+d):i+D+(-2===p?(o.push(void 0),e):d)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(l):l,o]};class it{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=et(t,e);if(this.el=it.createElement(a,i),tt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=tt.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(D)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(D),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?pt:"@"===e[1]?ct:rt})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(D),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],I()),tt.nextNode(),l.push({type:2,index:++s});o.append(t[e],I())}}}else if(8===o.nodeType)if(o.data===B)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(D,t+1));)l.push({type:7,index:s}),t+=D.length-1}s++}}static createElement(t,e){const i=T.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,o){var s,n,r,l;if(e===Y)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=L(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=ot(t,a._$AS(t,e.values),a,o)),e}class st{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:T).importNode(i,!0);tt.currentNode=s;let n=tt.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new nt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new dt(n,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=tt.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{constructor(t,e,i,o){var s;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),L(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==Y&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==G&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new st(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new it(t)),e}k(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new nt(this.O(I()),this.O(I()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class rt{constructor(t,e,i,o,s){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=ot(this,t,e,0),n=!L(t)||t!==this._$AH&&t!==Y,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=ot(this,o[i+r],e,r),l===Y&&(l=this._$AH[r]),n||(n=!L(l)||l!==this._$AH[r]),l===G?t=G:t!==G&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const at=U?U.emptyScript:"";class pt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ct extends rt{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ot(this,t,e,0))&&void 0!==i?i:G)===Y)return;const o=this._$AH,s=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==G&&(o===G||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class dt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ot(this,t)}}const ft={P:"$lit$",A:D,M:B,C:1,L:et,R:st,D:_,V:ot,I:nt,H:rt,N:pt,U:ct,B:lt,F:dt},ht=F.litHtmlPolyfillSupport;null==ht||ht(it,nt),(null!==(M=F.litHtmlVersions)&&void 0!==M?M:F.litHtmlVersions=[]).push("2.4.0");
59
64
  /**
60
65
  * @license
61
66
  * Copyright 2017 Google LLC
62
67
  * SPDX-License-Identifier: BSD-3-Clause
63
68
  */
64
- var ft,ht;class ut extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new ot(e.insertBefore(A(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return q}}ut.finalized=!0,ut._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:ut});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:ut}),(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.2.2");class bt{static create(t,e,i){let o=t=>b(null!=t?t:i),n=x`var(${b(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>x`var(${b(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=x`var(${b(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>x`var(${b(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):b(null!=e?e:t.defaultValue),o=x`var(${b(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>x`var(${b(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function xt(t,e){return b(`${t.name}: ${e}`)}const yt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
69
+ var ut,vt;class xt extends z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new nt(e.insertBefore(I(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}}xt.finalized=!0,xt._$litElement$=!0,null===(ut=globalThis.litElementHydrateSupport)||void 0===ut||ut.call(globalThis,{LitElement:xt});const bt=globalThis.litElementPolyfillSupport;null==bt||bt({LitElement:xt}),(null!==(vt=globalThis.litElementVersions)&&void 0!==vt?vt:globalThis.litElementVersions=[]).push("3.2.2");class gt{static create(t,e,i){let o=t=>g(null!=t?t:i),s=y`var(${g(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${g(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=y`var(${g(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${g(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):g(null!=e?e:t.defaultValue),o=y`var(${g(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${g(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function yt(t,e){return g(`${t.name}: ${e}`)}const mt={colorPrimary:gt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:gt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:gt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:gt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:gt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:gt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:gt.create("--ft-color-error","COLOR","#B00020"),colorOutline:gt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:gt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:gt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:gt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:gt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:gt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:gt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:gt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:gt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:gt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:gt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:gt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:gt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:gt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:gt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:gt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:gt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:gt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:gt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:gt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:gt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:gt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:gt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:gt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:gt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:gt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:gt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:gt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:gt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:gt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:gt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:gt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:gt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:gt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:gt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:gt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:gt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:gt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:gt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:gt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:gt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:gt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:gt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:gt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:gt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:gt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:gt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:gt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:gt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:gt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:gt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:gt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:gt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:gt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:gt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
65
70
  /**
66
71
  * @license
67
72
  * Copyright 2021 Google LLC
68
73
  * SPDX-License-Identifier: BSD-3-Clause
69
- */var gt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class mt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return y(n,this.constructor.elementStyles),n}}}(ut)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),J`
70
- ${t.map((t=>J`
74
+ */var $t=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class wt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return m(s,this.constructor.elementStyles),s}}}(xt)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),X`
75
+ ${t.map((t=>X`
71
76
  <style>${t}</style>
72
77
  `))}
73
78
  ${this.getTemplate()}
74
- `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,s,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}gt([o()],mt.prototype,"exportpartsPrefix",void 0),gt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],mt.prototype,"exportpartsPrefixes",void 0);const $t=x`
79
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const c=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}$t([o()],wt.prototype,"exportpartsPrefix",void 0),$t([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],wt.prototype,"exportpartsPrefixes",void 0);const Ot=y`
75
80
  .ft-no-text-select {
76
81
  -webkit-touch-callout: none;
77
82
  -webkit-user-select: none;
@@ -80,7 +85,7 @@ var ft,ht;class ut extends N{constructor(){super(...arguments),this.renderOption
80
85
  -ms-user-select: none;
81
86
  user-select: none;
82
87
  }
83
- `;var wt,Ot,kt;x`
88
+ `;var kt,St,Ct;y`
84
89
  .ft-word-wrap {
85
90
  white-space: normal;
86
91
  word-wrap: break-word;
@@ -92,17 +97,17 @@ var ft,ht;class ut extends N{constructor(){super(...arguments),this.renderOption
92
97
  -webkit-hyphens: auto;
93
98
  hyphens: auto
94
99
  }
95
- `;const St=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(kt=null===(Ot=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===Ot?void 0:Ot.toString())&&void 0!==kt?kt:""),Ct=1,Et=2,Nt=t=>(...e)=>({_$litDirective$:t,values:e});
100
+ `;const Et=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ct=null===(St=null===(kt=window.safari)||void 0===kt?void 0:kt.pushNotification)||void 0===St?void 0:St.toString())&&void 0!==Ct?Ct:""),Nt=1,Rt=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});
96
101
  /**
97
102
  * @license
98
103
  * Copyright 2017 Google LLC
99
104
  * SPDX-License-Identifier: BSD-3-Clause
100
- */class Rt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
105
+ */class Mt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
101
106
  /**
102
107
  * @license
103
108
  * Copyright 2020 Google LLC
104
109
  * SPDX-License-Identifier: BSD-3-Clause
105
- */const{I:zt}=ct,Mt=()=>document.createComment(""),Ft=(t,e,i)=>{var o;const n=t._$AA.parentNode,s=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Mt(),s),o=n.insertBefore(Mt(),s);i=new zt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==s||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,s),t=e}}}return i},Ut=(t,e,i=t)=>(t._$AI(e,i),t),jt={},Bt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Dt=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},At=Nt(class extends Rt{constructor(t){if(super(t),t.type!==Et)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],s=[];let r=0;for(const e of t)n[r]=o?o(e,r):r,s[r]=i(e,r),r++;return{values:s,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const s=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(s))return this.ut=l,r;const a=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],p=[];let c,d,f=0,h=s.length-1,u=0,v=r.length-1;for(;f<=h&&u<=v;)if(null===s[f])f++;else if(null===s[h])h--;else if(a[f]===l[u])p[u]=Ut(s[f],r[u]),f++,u++;else if(a[h]===l[v])p[v]=Ut(s[h],r[v]),h--,v--;else if(a[f]===l[v])p[v]=Ut(s[f],r[v]),Ft(t,p[v+1],s[f]),f++,v--;else if(a[h]===l[u])p[u]=Ut(s[h],r[u]),Ft(t,s[f],s[h]),h--,u++;else if(void 0===c&&(c=Dt(l,u,v),d=Dt(a,f,h)),c.has(a[f]))if(c.has(a[h])){const e=d.get(l[u]),i=void 0!==e?s[e]:null;if(null===i){const e=Ft(t,s[f]);Ut(e,r[u]),p[u]=e}else p[u]=Ut(i,r[u]),Ft(t,s[f],i),s[e]=null;u++}else Bt(s[h]),h--;else Bt(s[f]),f++;for(;u<=v;){const e=Ft(t,p[v+1]);Ut(e,r[u]),p[u++]=e}for(;f<=h;){const t=s[f++];null!==t&&Bt(t)}return this.ut=l,((t,e=jt)=>{t._$AH=e})(t,p),q}});
110
+ */const{I:Ft}=ft,Ut=()=>document.createComment(""),jt=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Ut(),n),o=s.insertBefore(Ut(),n);i=new Ft(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Dt=(t,e,i=t)=>(t._$AI(e,i),t),Bt={},At=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Tt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},It=zt(class extends Mt{constructor(t){if(super(t),t.type!==Rt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],p=[];let c,d,f=0,h=n.length-1,u=0,v=r.length-1;for(;f<=h&&u<=v;)if(null===n[f])f++;else if(null===n[h])h--;else if(a[f]===l[u])p[u]=Dt(n[f],r[u]),f++,u++;else if(a[h]===l[v])p[v]=Dt(n[h],r[v]),h--,v--;else if(a[f]===l[v])p[v]=Dt(n[f],r[v]),jt(t,p[v+1],n[f]),f++,v--;else if(a[h]===l[u])p[u]=Dt(n[h],r[u]),jt(t,n[f],n[h]),h--,u++;else if(void 0===c&&(c=Tt(l,u,v),d=Tt(a,f,h)),c.has(a[f]))if(c.has(a[h])){const e=d.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=jt(t,n[f]);Dt(e,r[u]),p[u]=e}else p[u]=Dt(i,r[u]),jt(t,n[f],i),n[e]=null;u++}else At(n[h]),h--;else At(n[f]),f++;for(;u<=v;){const e=jt(t,p[v+1]);Dt(e,r[u]),p[u++]=e}for(;f<=h;){const t=n[f++];null!==t&&At(t)}return this.ut=l,((t,e=Bt)=>{t._$AH=e})(t,p),Y}});
106
111
  /**
107
112
  * @license
108
113
  * Copyright 2017 Google LLC
@@ -113,132 +118,132 @@ var ft,ht;class ut extends N{constructor(){super(...arguments),this.renderOption
113
118
  * Copyright 2017 Google LLC
114
119
  * SPDX-License-Identifier: BSD-3-Clause
115
120
  */
116
- class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this._t=void 0,this.it=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Lt.directiveName="unsafeHTML",Lt.resultType=1;const Tt=Nt(Lt),It=Nt(class extends Rt{constructor(t){var e;if(super(t),t.type!==Ct||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return q}}),Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void 0:t._$litStatic$},Ht=t=>({_$litStatic$:t,r:Pt}),Wt=new Map,Zt=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(s=i[p],n=_t(s));)a+=n+e[++p],c=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Wt.get(t))&&(r.raw=r,Wt.set(t,e=r)),i=l}return t(e,...i)})(J);
121
+ class Lt extends Mt{constructor(t){if(super(t),this.it=G,t.type!==Rt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this._t=void 0,this.it=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Lt.directiveName="unsafeHTML",Lt.resultType=1;const Pt=zt(Lt),_t=zt(class extends Mt{constructor(t){var e;if(super(t),t.type!==Nt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return Y}}),Ht=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===Ht)return null==t?void 0:t._$litStatic$},Zt=t=>({_$litStatic$:t,r:Ht}),Kt=new Map,Vt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=Wt(n));)a+=s+e[++p],c=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Kt.get(t))&&(r.raw=r,Kt.set(t,e=r)),i=l}return t(e,...i)})(X);
117
122
  /**
118
123
  * @license
119
124
  * Copyright 2018 Google LLC
120
125
  * SPDX-License-Identifier: BSD-3-Clause
121
- */var Kt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Kt||(Kt={}));const Vt=bt.extend("--ft-typography-font-family",yt.titleFont),Jt=bt.extend("--ft-typography-font-family",yt.contentFont),qt={fontFamily:Jt,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=bt.extend("--ft-typography-title-font-family",Vt),Yt=bt.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=bt.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=bt.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),te=bt.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ee=bt.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ie=bt.extend("--ft-typography-title-dense-font-family",Vt),oe=bt.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),ne=bt.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),se=bt.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),re=bt.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),le=bt.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),ae=bt.extend("--ft-typography-subtitle1-font-family",Jt),pe=bt.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),ce=bt.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),de=bt.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fe=bt.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),he=bt.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ue=bt.extend("--ft-typography-subtitle2-font-family",Jt),ve=bt.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),be=bt.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),xe=bt.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),ye=bt.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),ge=bt.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),me={fontFamily:bt.extend("--ft-typography-body1-font-family",Jt),fontSize:bt.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),fontWeight:bt.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),lineHeight:bt.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),textTransform:bt.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit")},$e=bt.extend("--ft-typography-body2-font-family",Jt),we=bt.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Oe=bt.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),ke=bt.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),Se=bt.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),Ce=bt.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),Ee={fontFamily:bt.extend("--ft-typography-caption-font-family",Jt),fontSize:bt.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),fontWeight:bt.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),lineHeight:bt.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),textTransform:bt.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit")},Ne=bt.extend("--ft-typography-breadcrumb-font-family",Jt),Re=bt.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),ze=bt.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),Me=bt.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),Fe=bt.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),Ue=bt.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),je=bt.extend("--ft-typography-overline-font-family",Jt),Be=bt.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),De=bt.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Ae=bt.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Le=bt.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),Te=bt.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),Ie={fontFamily:bt.extend("--ft-typography-button-font-family",Jt),fontSize:bt.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase")},Pe=x`
126
+ */var Jt;!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"}(Jt||(Jt={}));const qt=gt.extend("--ft-typography-font-family",mt.titleFont),Xt=gt.extend("--ft-typography-font-family",mt.contentFont),Yt={fontFamily:Xt,fontSize:gt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:gt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:gt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:gt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:gt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Gt=gt.extend("--ft-typography-title-font-family",qt),Qt=gt.extend("--ft-typography-title-font-size",Yt.fontSize,"20px"),te=gt.extend("--ft-typography-title-font-weight",Yt.fontWeight,"normal"),ee=gt.extend("--ft-typography-title-letter-spacing",Yt.letterSpacing,"0.15px"),ie=gt.extend("--ft-typography-title-line-height",Yt.lineHeight,"1.2"),oe=gt.extend("--ft-typography-title-text-transform",Yt.textTransform,"inherit"),se=gt.extend("--ft-typography-title-dense-font-family",qt),ne=gt.extend("--ft-typography-title-dense-font-size",Yt.fontSize,"14px"),re=gt.extend("--ft-typography-title-dense-font-weight",Yt.fontWeight,"normal"),le=gt.extend("--ft-typography-title-dense-letter-spacing",Yt.letterSpacing,"0.105px"),ae=gt.extend("--ft-typography-title-dense-line-height",Yt.lineHeight,"1.7"),pe=gt.extend("--ft-typography-title-dense-text-transform",Yt.textTransform,"inherit"),ce=gt.extend("--ft-typography-subtitle1-font-family",Xt),de=gt.extend("--ft-typography-subtitle1-font-size",Yt.fontSize,"16px"),fe=gt.extend("--ft-typography-subtitle1-font-weight",Yt.fontWeight,"600"),he=gt.extend("--ft-typography-subtitle1-letter-spacing",Yt.letterSpacing,"0.144px"),ue=gt.extend("--ft-typography-subtitle1-line-height",Yt.lineHeight,"1.5"),ve=gt.extend("--ft-typography-subtitle1-text-transform",Yt.textTransform,"inherit"),xe=gt.extend("--ft-typography-subtitle2-font-family",Xt),be=gt.extend("--ft-typography-subtitle2-font-size",Yt.fontSize,"14px"),ge=gt.extend("--ft-typography-subtitle2-font-weight",Yt.fontWeight,"normal"),ye=gt.extend("--ft-typography-subtitle2-letter-spacing",Yt.letterSpacing,"0.098px"),me=gt.extend("--ft-typography-subtitle2-line-height",Yt.lineHeight,"1.7"),$e=gt.extend("--ft-typography-subtitle2-text-transform",Yt.textTransform,"inherit"),we={fontFamily:gt.extend("--ft-typography-body1-font-family",Xt),fontSize:gt.extend("--ft-typography-body1-font-size",Yt.fontSize,"16px"),fontWeight:gt.extend("--ft-typography-body1-font-weight",Yt.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-body1-letter-spacing",Yt.letterSpacing,"0.496px"),lineHeight:gt.extend("--ft-typography-body1-line-height",Yt.lineHeight,"1.5"),textTransform:gt.extend("--ft-typography-body1-text-transform",Yt.textTransform,"inherit")},Oe=gt.extend("--ft-typography-body2-font-family",Xt),ke=gt.extend("--ft-typography-body2-font-size",Yt.fontSize,"14px"),Se=gt.extend("--ft-typography-body2-font-weight",Yt.fontWeight,"normal"),Ce=gt.extend("--ft-typography-body2-letter-spacing",Yt.letterSpacing,"0.252px"),Ee=gt.extend("--ft-typography-body2-line-height",Yt.lineHeight,"1.4"),Ne=gt.extend("--ft-typography-body2-text-transform",Yt.textTransform,"inherit"),Re={fontFamily:gt.extend("--ft-typography-caption-font-family",Xt),fontSize:gt.extend("--ft-typography-caption-font-size",Yt.fontSize,"12px"),fontWeight:gt.extend("--ft-typography-caption-font-weight",Yt.fontWeight,"normal"),letterSpacing:gt.extend("--ft-typography-caption-letter-spacing",Yt.letterSpacing,"0.396px"),lineHeight:gt.extend("--ft-typography-caption-line-height",Yt.lineHeight,"1.33"),textTransform:gt.extend("--ft-typography-caption-text-transform",Yt.textTransform,"inherit")},ze=gt.extend("--ft-typography-breadcrumb-font-family",Xt),Me=gt.extend("--ft-typography-breadcrumb-font-size",Yt.fontSize,"10px"),Fe=gt.extend("--ft-typography-breadcrumb-font-weight",Yt.fontWeight,"normal"),Ue=gt.extend("--ft-typography-breadcrumb-letter-spacing",Yt.letterSpacing,"0.33px"),je=gt.extend("--ft-typography-breadcrumb-line-height",Yt.lineHeight,"1.6"),De=gt.extend("--ft-typography-breadcrumb-text-transform",Yt.textTransform,"inherit"),Be=gt.extend("--ft-typography-overline-font-family",Xt),Ae=gt.extend("--ft-typography-overline-font-size",Yt.fontSize,"10px"),Te=gt.extend("--ft-typography-overline-font-weight",Yt.fontWeight,"normal"),Ie=gt.extend("--ft-typography-overline-letter-spacing",Yt.letterSpacing,"1.5px"),Le=gt.extend("--ft-typography-overline-line-height",Yt.lineHeight,"1.6"),Pe=gt.extend("--ft-typography-overline-text-transform",Yt.textTransform,"uppercase"),_e={fontFamily:gt.extend("--ft-typography-button-font-family",Xt),fontSize:gt.extend("--ft-typography-button-font-size",Yt.fontSize,"14px"),fontWeight:gt.extend("--ft-typography-button-font-weight",Yt.fontWeight,"600"),letterSpacing:gt.extend("--ft-typography-button-letter-spacing",Yt.letterSpacing,"1.246px"),lineHeight:gt.extend("--ft-typography-button-line-height",Yt.lineHeight,"1.15"),textTransform:gt.extend("--ft-typography-button-text-transform",Yt.textTransform,"uppercase")},He=y`
122
127
  .ft-typography--title {
123
- font-family: ${Xt};
124
- font-size: ${Yt};
125
- font-weight: ${Gt};
126
- letter-spacing: ${Qt};
127
- line-height: ${te};
128
- text-transform: ${ee};
129
- }
130
- `,_e=x`
128
+ font-family: ${Gt};
129
+ font-size: ${Qt};
130
+ font-weight: ${te};
131
+ letter-spacing: ${ee};
132
+ line-height: ${ie};
133
+ text-transform: ${oe};
134
+ }
135
+ `,We=y`
131
136
  .ft-typography--title-dense {
132
- font-family: ${ie};
133
- font-size: ${oe};
134
- font-weight: ${ne};
135
- letter-spacing: ${se};
136
- line-height: ${re};
137
- text-transform: ${le};
138
- }
139
- `,He=x`
137
+ font-family: ${se};
138
+ font-size: ${ne};
139
+ font-weight: ${re};
140
+ letter-spacing: ${le};
141
+ line-height: ${ae};
142
+ text-transform: ${pe};
143
+ }
144
+ `,Ze=y`
140
145
  .ft-typography--subtitle1 {
141
- font-family: ${ae};
142
- font-size: ${pe};
143
- font-weight: ${ce};
144
- letter-spacing: ${de};
145
- line-height: ${fe};
146
- text-transform: ${he};
147
- }
148
- `,We=x`
146
+ font-family: ${ce};
147
+ font-size: ${de};
148
+ font-weight: ${fe};
149
+ letter-spacing: ${he};
150
+ line-height: ${ue};
151
+ text-transform: ${ve};
152
+ }
153
+ `,Ke=y`
149
154
  .ft-typography--subtitle2 {
150
- font-family: ${ue};
151
- font-size: ${ve};
152
- font-weight: ${be};
153
- letter-spacing: ${xe};
154
- line-height: ${ye};
155
- text-transform: ${ge};
155
+ font-family: ${xe};
156
+ font-size: ${be};
157
+ font-weight: ${ge};
158
+ letter-spacing: ${ye};
159
+ line-height: ${me};
160
+ text-transform: ${$e};
156
161
  }
157
162
 
158
- `,Ze=x`
163
+ `,Ve=y`
159
164
  .ft-typography--body1 {
160
- font-family: ${me.fontFamily};
161
- font-size: ${me.fontSize};
162
- font-weight: ${me.fontWeight};
163
- letter-spacing: ${me.letterSpacing};
164
- line-height: ${me.lineHeight};
165
- text-transform: ${me.textTransform};
166
- }
167
- `,Ke=x`
165
+ font-family: ${we.fontFamily};
166
+ font-size: ${we.fontSize};
167
+ font-weight: ${we.fontWeight};
168
+ letter-spacing: ${we.letterSpacing};
169
+ line-height: ${we.lineHeight};
170
+ text-transform: ${we.textTransform};
171
+ }
172
+ `,Je=y`
168
173
  .ft-typography--body2 {
169
- font-family: ${$e};
170
- font-size: ${we};
171
- font-weight: ${Oe};
172
- letter-spacing: ${ke};
173
- line-height: ${Se};
174
- text-transform: ${Ce};
175
- }
176
- `,Ve=x`
174
+ font-family: ${Oe};
175
+ font-size: ${ke};
176
+ font-weight: ${Se};
177
+ letter-spacing: ${Ce};
178
+ line-height: ${Ee};
179
+ text-transform: ${Ne};
180
+ }
181
+ `,qe=y`
177
182
  .ft-typography--caption {
178
- font-family: ${Ee.fontFamily};
179
- font-size: ${Ee.fontSize};
180
- font-weight: ${Ee.fontWeight};
181
- letter-spacing: ${Ee.letterSpacing};
182
- line-height: ${Ee.lineHeight};
183
- text-transform: ${Ee.textTransform};
184
- }
185
- `,Je=x`
183
+ font-family: ${Re.fontFamily};
184
+ font-size: ${Re.fontSize};
185
+ font-weight: ${Re.fontWeight};
186
+ letter-spacing: ${Re.letterSpacing};
187
+ line-height: ${Re.lineHeight};
188
+ text-transform: ${Re.textTransform};
189
+ }
190
+ `,Xe=y`
186
191
  .ft-typography--breadcrumb {
187
- font-family: ${Ne};
188
- font-size: ${Re};
189
- font-weight: ${ze};
190
- letter-spacing: ${Me};
191
- line-height: ${Fe};
192
- text-transform: ${Ue};
193
- }
194
- `,qe=x`
192
+ font-family: ${ze};
193
+ font-size: ${Me};
194
+ font-weight: ${Fe};
195
+ letter-spacing: ${Ue};
196
+ line-height: ${je};
197
+ text-transform: ${De};
198
+ }
199
+ `,Ye=y`
195
200
  .ft-typography--overline {
196
- font-family: ${je};
197
- font-size: ${Be};
198
- font-weight: ${De};
199
- letter-spacing: ${Ae};
201
+ font-family: ${Be};
202
+ font-size: ${Ae};
203
+ font-weight: ${Te};
204
+ letter-spacing: ${Ie};
200
205
  line-height: ${Le};
201
- text-transform: ${Te};
206
+ text-transform: ${Pe};
202
207
  }
203
- `,Xe=x`
208
+ `,Ge=y`
204
209
  .ft-typography--button {
205
- font-family: ${Ie.fontFamily};
206
- font-size: ${Ie.fontSize};
207
- font-weight: ${Ie.fontWeight};
208
- letter-spacing: ${Ie.letterSpacing};
209
- line-height: ${Ie.lineHeight};
210
- text-transform: ${Ie.textTransform};
211
- }
212
- `,Ye=x`
210
+ font-family: ${_e.fontFamily};
211
+ font-size: ${_e.fontSize};
212
+ font-weight: ${_e.fontWeight};
213
+ letter-spacing: ${_e.letterSpacing};
214
+ line-height: ${_e.lineHeight};
215
+ text-transform: ${_e.textTransform};
216
+ }
217
+ `,Qe=y`
213
218
  .ft-typography {
214
219
  vertical-align: inherit;
215
220
  }
216
- `;var Ge=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Qe extends mt{constructor(){super(...arguments),this.variant=Kt.body1}render(){return this.element?Zt`
217
- <${Ht(this.element)}
221
+ `;var ti=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ei extends wt{constructor(){super(...arguments),this.variant=Jt.body1}render(){return this.element?Vt`
222
+ <${Zt(this.element)}
218
223
  class="ft-typography ft-typography--${this.variant}">
219
224
  <slot></slot>
220
- </${Ht(this.element)}>
221
- `:Zt`
225
+ </${Zt(this.element)}>
226
+ `:Vt`
222
227
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
223
- `}}Qe.styles=[Pe,_e,He,We,Ze,Ke,Ve,Je,qe,Xe,Ye],Ge([o()],Qe.prototype,"element",void 0),Ge([o()],Qe.prototype,"variant",void 0),p("ft-typography")(Qe);const ti={fontSize:bt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:bt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:bt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:bt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:bt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:bt.extend("--ft-input-label-border-color",yt.colorOutline),textColor:bt.extend("--ft-input-label-text-color",yt.colorOnSurfaceMedium),disabledTextColor:bt.extend("--ft-input-label-disabled-text-color",yt.colorOnSurfaceDisabled),colorSurface:bt.external(yt.colorSurface,"Design system"),borderRadiusS:bt.external(yt.borderRadiusS,"Design system"),colorError:bt.external(yt.colorError,"Design system")},ei=x`
228
+ `}}ei.styles=[He,We,Ze,Ke,Ve,Je,qe,Xe,Ye,Ge,Qe],ti([o()],ei.prototype,"element",void 0),ti([o()],ei.prototype,"variant",void 0),d("ft-typography")(ei);const ii={fontSize:gt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:gt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:gt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:gt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:gt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:gt.extend("--ft-input-label-border-color",mt.colorOutline),textColor:gt.extend("--ft-input-label-text-color",mt.colorOnSurfaceMedium),disabledTextColor:gt.extend("--ft-input-label-disabled-text-color",mt.colorOnSurfaceDisabled),colorSurface:gt.external(mt.colorSurface,"Design system"),borderRadiusS:gt.external(mt.borderRadiusS,"Design system"),colorError:gt.external(mt.colorError,"Design system")},oi=y`
224
229
  .ft-input-label {
225
230
  position: absolute;
226
231
  inset: 0;
227
232
  display: flex;
228
- background-color: ${ti.colorSurface};
229
- border-radius: ${ti.borderRadiusS} ${ti.borderRadiusS} 0 0;
233
+ background-color: ${ii.colorSurface};
234
+ border-radius: ${ii.borderRadiusS} ${ii.borderRadiusS} 0 0;
230
235
  }
231
236
 
232
237
  .ft-input-label--outlined {
233
- border-radius: ${ti.borderRadiusS};
238
+ border-radius: ${ii.borderRadiusS};
234
239
  }
235
240
 
236
241
  .ft-input-label {
237
- border-color: ${ti.borderColor};
242
+ border-color: ${ii.borderColor};
238
243
  }
239
244
 
240
245
  .ft-input-label.ft-input-label--in-error {
241
- border-color: ${ti.colorError}
246
+ border-color: ${ii.colorError}
242
247
  }
243
248
 
244
249
  .ft-input-label:before,
@@ -251,7 +256,7 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
251
256
  }
252
257
 
253
258
  .ft-input-label:before {
254
- width: ${ti.horizontalSpacing};
259
+ width: ${ii.horizontalSpacing};
255
260
  flex-shrink: 0;
256
261
  }
257
262
 
@@ -267,18 +272,18 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
267
272
  border-bottom-width: 1px;
268
273
  border-bottom-style: solid;
269
274
  border-color: inherit;
270
- color: ${ti.textColor};
275
+ color: ${ii.textColor};
271
276
  transition: font-size 250ms, line-height 250ms, color 250ms;
272
- ${xt(Ee.fontSize,ti.fontSize)};
273
- ${xt(Ee.lineHeight,ti.fontSize)};
277
+ ${yt(Re.fontSize,ii.fontSize)};
278
+ ${yt(Re.lineHeight,ii.fontSize)};
274
279
  }
275
280
 
276
281
  .ft-input-label--in-error .ft-input-label--text {
277
- color: ${ti.colorError}
282
+ color: ${ii.colorError}
278
283
  }
279
284
 
280
285
  .ft-input-label--disabled .ft-input-label--text {
281
- color: ${ti.disabledTextColor};
286
+ color: ${ii.disabledTextColor};
282
287
  }
283
288
 
284
289
  .ft-input-label--hidden-text {
@@ -293,17 +298,17 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
293
298
  overflow: hidden;
294
299
  white-space: nowrap;
295
300
  text-overflow: ellipsis;
296
- padding: ${ti.verticalSpacing} 4px;
297
- margin: calc(${ti.verticalSpacing} * -1) 0;
301
+ padding: ${ii.verticalSpacing} 4px;
302
+ margin: calc(${ii.verticalSpacing} * -1) 0;
298
303
  }
299
304
 
300
305
  .ft-input-label--raised .ft-input-label--text {
301
- ${xt(Ee.fontSize,ti.raisedFontSize)};
302
- ${xt(Ee.lineHeight,ti.raisedFontSize)};
306
+ ${yt(Re.fontSize,ii.raisedFontSize)};
307
+ ${yt(Re.lineHeight,ii.raisedFontSize)};
303
308
  }
304
309
 
305
310
  .ft-input-label--raised .ft-input-label--floating-text {
306
- top: ${ti.verticalSpacing};
311
+ top: ${ii.verticalSpacing};
307
312
  }
308
313
 
309
314
  .ft-input-label--outlined .ft-input-label--text,
@@ -316,36 +321,36 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
316
321
  .ft-input-label--outlined:before {
317
322
  border-left-width: 1px;
318
323
  border-left-style: solid;
319
- border-radius: ${ti.borderRadiusS} 0 0 ${ti.borderRadiusS};
324
+ border-radius: ${ii.borderRadiusS} 0 0 ${ii.borderRadiusS};
320
325
  }
321
326
 
322
327
  .ft-input-label--outlined:after {
323
328
  border-right-width: 1px;
324
329
  border-right-style: solid;
325
- border-radius: 0 ${ti.borderRadiusS} ${ti.borderRadiusS} 0;
330
+ border-radius: 0 ${ii.borderRadiusS} ${ii.borderRadiusS} 0;
326
331
  }
327
332
 
328
333
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
329
334
  padding: 2px 4px;
330
- z-index: ${ti.raisedZIndex};
331
- background-color: ${ti.colorSurface};
332
- border-radius: ${ti.borderRadiusS};
335
+ z-index: ${ii.raisedZIndex};
336
+ background-color: ${ii.colorSurface};
337
+ border-radius: ${ii.borderRadiusS};
333
338
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
334
339
  }
335
340
 
336
341
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
337
342
  border-top: none;
338
343
  }
339
- `;var ii=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class oi extends mt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return J`
340
- <div class="${It(t)}">
341
- ${this.text?J`
344
+ `;var si=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ni extends wt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return X`
345
+ <div class="${_t(t)}">
346
+ ${this.text?X`
342
347
  <div class="ft-input-label--text ft-typography--caption">
343
348
  <span class="ft-input-label--floating-text">${this.text}</span>
344
349
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
345
350
  </div>
346
351
  `:null}
347
352
  </div>
348
- `}}oi.elementDefinitions={},oi.styles=[Ve,ei],ii([o({type:String})],oi.prototype,"text",void 0),ii([o({type:Boolean})],oi.prototype,"raised",void 0),ii([o({type:Boolean})],oi.prototype,"outlined",void 0),ii([o({type:Boolean})],oi.prototype,"disabled",void 0),ii([o({type:Boolean})],oi.prototype,"error",void 0),p("ft-input-label")(oi);const ni=bt.extend("--ft-ripple-color",yt.colorContent),si={color:ni,backgroundColor:bt.extend("--ft-ripple-background-color",ni),opacityContentOnSurfacePressed:bt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(yt.opacityContentOnSurfaceSelected,"Design system")},ri=bt.extend("--ft-ripple-color",yt.colorPrimary),li=ri,ai=bt.extend("--ft-ripple-background-color",ri),pi=bt.extend("--ft-ripple-color",yt.colorSecondary),ci=pi,di=bt.extend("--ft-ripple-background-color",pi),fi=x`
353
+ `}}ni.elementDefinitions={},ni.styles=[qe,oi],si([o({type:String})],ni.prototype,"text",void 0),si([o({type:Boolean})],ni.prototype,"raised",void 0),si([o({type:Boolean})],ni.prototype,"outlined",void 0),si([o({type:Boolean})],ni.prototype,"disabled",void 0),si([o({type:Boolean})],ni.prototype,"error",void 0),d("ft-input-label")(ni);const ri=gt.extend("--ft-ripple-color",mt.colorContent),li={color:ri,backgroundColor:gt.extend("--ft-ripple-background-color",ri),opacityContentOnSurfacePressed:gt.external(mt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:gt.external(mt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:gt.external(mt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:gt.external(mt.opacityContentOnSurfaceSelected,"Design system")},ai=gt.extend("--ft-ripple-color",mt.colorPrimary),pi=ai,ci=gt.extend("--ft-ripple-background-color",ai),di=gt.extend("--ft-ripple-color",mt.colorSecondary),fi=di,hi=gt.extend("--ft-ripple-background-color",di),ui=y`
349
354
  :host {
350
355
  display: contents;
351
356
  }
@@ -367,27 +372,27 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
367
372
  }
368
373
 
369
374
  .ft-ripple .ft-ripple--background {
370
- background-color: ${si.backgroundColor};
375
+ background-color: ${li.backgroundColor};
371
376
  }
372
377
 
373
378
  .ft-ripple .ft-ripple--effect {
374
- background-color: ${si.color};
379
+ background-color: ${li.color};
375
380
  }
376
381
 
377
382
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
378
- background-color: ${di};
383
+ background-color: ${hi};
379
384
  }
380
385
 
381
386
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
382
- background-color: ${ci};
387
+ background-color: ${fi};
383
388
  }
384
389
 
385
390
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
386
- background-color: ${ai};
391
+ background-color: ${ci};
387
392
  }
388
393
 
389
394
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
390
- background-color: ${li};
395
+ background-color: ${pi};
391
396
  }
392
397
 
393
398
  .ft-ripple .ft-ripple--background {
@@ -419,22 +424,22 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
419
424
  }
420
425
 
421
426
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
422
- opacity: ${si.opacityContentOnSurfaceHover};
427
+ opacity: ${li.opacityContentOnSurfaceHover};
423
428
  }
424
429
 
425
430
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
426
- opacity: ${si.opacityContentOnSurfaceSelected};
431
+ opacity: ${li.opacityContentOnSurfaceSelected};
427
432
  }
428
433
 
429
434
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
430
- opacity: ${si.opacityContentOnSurfaceFocused};
435
+ opacity: ${li.opacityContentOnSurfaceFocused};
431
436
  }
432
437
 
433
438
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
434
- opacity: ${si.opacityContentOnSurfacePressed};
439
+ opacity: ${li.opacityContentOnSurfacePressed};
435
440
  transform: translate(-50%, -50%) scale(1);
436
441
  }
437
- `;var hi,ui,vi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class bi extends mt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return J`
442
+ `;var vi,xi,bi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class gi extends wt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return X`
438
443
  <style>
439
444
  .ft-ripple .ft-ripple--effect,
440
445
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -447,23 +452,23 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
447
452
  top: ${this.originY}px;
448
453
  }
449
454
  </style>
450
- <div class="${It(t)}">
455
+ <div class="${_t(t)}">
451
456
  <div class="ft-ripple--background"></div>
452
457
  <div class="ft-ripple--effect"></div>
453
458
  </div>
454
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}bi.elementDefinitions={},bi.styles=fi,vi([o({type:Boolean})],bi.prototype,"primary",void 0),vi([o({type:Boolean})],bi.prototype,"secondary",void 0),vi([o({type:Boolean})],bi.prototype,"unbounded",void 0),vi([o({type:Boolean})],bi.prototype,"activated",void 0),vi([o({type:Boolean})],bi.prototype,"selected",void 0),vi([o({type:Boolean})],bi.prototype,"disabled",void 0),vi([n()],bi.prototype,"hovered",void 0),vi([n()],bi.prototype,"focused",void 0),vi([n()],bi.prototype,"pressed",void 0),vi([n()],bi.prototype,"rippling",void 0),vi([n()],bi.prototype,"rippleSize",void 0),vi([n()],bi.prototype,"originX",void 0),vi([n()],bi.prototype,"originY",void 0),vi([r(".ft-ripple")],bi.prototype,"ripple",void 0),vi([r(".ft-ripple--effect")],bi.prototype,"rippleEffect",void 0),p("ft-ripple")(bi),function(t){t.DESKTOP="&#xe95e",t.MOBILE_LANDSCAPE="&#xe95f",t.MOBILE_PORTRAIT="&#xe960",t.TABLET_LANDSCAPE="&#xe961",t.TABLET_PORTRAIT="&#xe962",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="&#xf06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(hi||(hi={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(ui||(ui={})),new Map([...["abw"].map((t=>[t,ui.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ui.AUDIO])),...["avi"].map((t=>[t,ui.AVI])),...["chm","xhs"].map((t=>[t,ui.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ui.CODE])),...["csv"].map((t=>[t,ui.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ui.DITA])),...["epub"].map((t=>[t,ui.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ui.EXCEL])),...["flac"].map((t=>[t,ui.FLAC])),...["gif"].map((t=>[t,ui.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ui.GZIP])),...["html","htm","xhtml"].map((t=>[t,ui.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ui.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ui.JPEG])),...["json"].map((t=>[t,ui.JSON])),...["m4a","m4p"].map((t=>[t,ui.M4A])),...["mov","qt"].map((t=>[t,ui.MOV])),...["mp3"].map((t=>[t,ui.MP3])),...["mp4","m4v"].map((t=>[t,ui.MP4])),...["ogg","oga"].map((t=>[t,ui.OGG])),...["pdf","ps"].map((t=>[t,ui.PDF])),...["png"].map((t=>[t,ui.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ui.POWERPOINT])),...["rar"].map((t=>[t,ui.RAR])),...["stp"].map((t=>[t,ui.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ui.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ui.VIDEO])),...["wav"].map((t=>[t,ui.WAV])),...["wma"].map((t=>[t,ui.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ui.WORD])),...["xml","xsl","rdf"].map((t=>[t,ui.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ui.YAML])),...["zip"].map((t=>[t,ui.ZIP]))]);const xi={size:bt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:bt.create("--ft-icon-vertical-align","UNKNOWN","unset")},yi=x`
459
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}gi.elementDefinitions={},gi.styles=ui,bi([o({type:Boolean})],gi.prototype,"primary",void 0),bi([o({type:Boolean})],gi.prototype,"secondary",void 0),bi([o({type:Boolean})],gi.prototype,"unbounded",void 0),bi([o({type:Boolean})],gi.prototype,"activated",void 0),bi([o({type:Boolean})],gi.prototype,"selected",void 0),bi([o({type:Boolean})],gi.prototype,"disabled",void 0),bi([s()],gi.prototype,"hovered",void 0),bi([s()],gi.prototype,"focused",void 0),bi([s()],gi.prototype,"pressed",void 0),bi([s()],gi.prototype,"rippling",void 0),bi([s()],gi.prototype,"rippleSize",void 0),bi([s()],gi.prototype,"originX",void 0),bi([s()],gi.prototype,"originY",void 0),bi([r(".ft-ripple")],gi.prototype,"ripple",void 0),bi([r(".ft-ripple--effect")],gi.prototype,"rippleEffect",void 0),d("ft-ripple")(gi),function(t){t.DESKTOP="&#xe95e",t.TABLET_LANDSCAPE="&#xe95f",t.TABLET_PORTRAIT="&#xe960",t.MOBILE_LANDSCAPE="&#xe961",t.MOBILE_PORTRAIT="&#xe962",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="&#xf06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(vi||(vi={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(xi||(xi={})),new Map([...["abw"].map((t=>[t,xi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,xi.AUDIO])),...["avi"].map((t=>[t,xi.AVI])),...["chm","xhs"].map((t=>[t,xi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,xi.CODE])),...["csv"].map((t=>[t,xi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xi.DITA])),...["epub"].map((t=>[t,xi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xi.EXCEL])),...["flac"].map((t=>[t,xi.FLAC])),...["gif"].map((t=>[t,xi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xi.GZIP])),...["html","htm","xhtml"].map((t=>[t,xi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,xi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xi.JPEG])),...["json"].map((t=>[t,xi.JSON])),...["m4a","m4p"].map((t=>[t,xi.M4A])),...["mov","qt"].map((t=>[t,xi.MOV])),...["mp3"].map((t=>[t,xi.MP3])),...["mp4","m4v"].map((t=>[t,xi.MP4])),...["ogg","oga"].map((t=>[t,xi.OGG])),...["pdf","ps"].map((t=>[t,xi.PDF])),...["png"].map((t=>[t,xi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xi.POWERPOINT])),...["rar"].map((t=>[t,xi.RAR])),...["stp"].map((t=>[t,xi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,xi.VIDEO])),...["wav"].map((t=>[t,xi.WAV])),...["wma"].map((t=>[t,xi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xi.WORD])),...["xml","xsl","rdf"].map((t=>[t,xi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xi.YAML])),...["zip"].map((t=>[t,xi.ZIP]))]);const yi={size:gt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:gt.extend("--ft-icon-fluid-topics-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:gt.extend("--ft-icon-file-format-font-family",gt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:gt.extend("--ft-icon-material-font-family",gt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:gt.create("--ft-icon-vertical-align","UNKNOWN","unset")},mi=y`
455
460
  :host {
456
461
  display: inline-block;
457
462
  }
458
463
 
459
464
  :host, i.ft-icon {
460
- width: ${xi.size};
461
- height: ${xi.size};
465
+ width: ${yi.size};
466
+ height: ${yi.size};
462
467
  text-align: center;
463
468
  }
464
469
 
465
470
  i.ft-icon {
466
- font-size: ${xi.size};
471
+ font-size: ${yi.size};
467
472
  line-height: 1;
468
473
  font-weight: normal;
469
474
  text-transform: none;
@@ -474,26 +479,26 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
474
479
  text-rendering: auto;
475
480
  -webkit-font-smoothing: antialiased;
476
481
  -moz-osx-font-smoothing: grayscale;
477
- vertical-align: ${xi.verticalAlign};
482
+ vertical-align: ${yi.verticalAlign};
478
483
  }
479
484
 
480
485
  .ft-icon--fluid-topics {
481
- font-family: ${xi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
486
+ font-family: ${yi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
482
487
  }
483
488
 
484
489
  .ft-icon--file-format {
485
- font-family: ${xi.fileFormatFontFamily}, ft-mime, sans-serif;
490
+ font-family: ${yi.fileFormatFontFamily}, ft-mime, sans-serif;
486
491
  }
487
492
 
488
493
  .ft-icon--material {
489
- font-family: ${xi.materialFontFamily}, "Material Icons", sans-serif;
494
+ font-family: ${yi.materialFontFamily}, "Material Icons", sans-serif;
490
495
  }
491
- `;var gi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(gi||(gi={}));var mi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class $i extends mt{constructor(){super(...arguments),this.variant=gi.fluid_topics,this.resolvedIcon=X}render(){const t="material"!==this.variant||this.value;return J`
496
+ `;var $i;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}($i||($i={}));var wi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Oi extends wt{constructor(){super(...arguments),this.variant=$i.fluid_topics,this.resolvedIcon=G}render(){const t="material"!==this.variant||this.value;return X`
492
497
  <i class="ft-icon ${"ft-icon--"+this.variant}">
493
- ${Tt(this.resolvedIcon)}
498
+ ${Pt(this.resolvedIcon)}
494
499
  <slot ?hidden=${t}></slot>
495
500
  </i>
496
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case gi.file_format:this.resolvedIcon=null!==(t=ui[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case gi.fluid_topics:this.resolvedIcon=null!==(e=hi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||X}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}$i.elementDefinitions={},$i.styles=yi,mi([o()],$i.prototype,"variant",void 0),mi([o()],$i.prototype,"value",void 0),mi([n()],$i.prototype,"resolvedIcon",void 0),mi([r("slot")],$i.prototype,"slottedContent",void 0),p("ft-icon")($i);const wi={labelSize:bt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:bt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:bt.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:bt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:bt.extend("--ft-select-selected-option-color",yt.colorOnSurface),helperColor:bt.extend("--ft-select-helper-color",yt.colorOnSurfaceMedium),optionsColor:bt.extend("--ft-select-options-color",yt.colorOnSurface),optionsZIndex:bt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:bt.external(yt.colorSurface,"Design system"),colorOnSurfaceDisabled:bt.external(yt.colorOnSurfaceDisabled,"Design system"),colorPrimary:bt.external(yt.colorPrimary,"Design system"),borderRadiusS:bt.external(yt.borderRadiusS,"Design system"),elevation02:bt.external(yt.elevation02,"Design system"),colorError:bt.external(yt.colorError,"Design system")},Oi=x`
501
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case $i.file_format:this.resolvedIcon=null!==(t=xi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case $i.fluid_topics:this.resolvedIcon=null!==(e=vi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||G}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Oi.elementDefinitions={},Oi.styles=mi,wi([o()],Oi.prototype,"variant",void 0),wi([o()],Oi.prototype,"value",void 0),wi([s()],Oi.prototype,"resolvedIcon",void 0),wi([r("slot")],Oi.prototype,"slottedContent",void 0),d("ft-icon")(Oi);const ki={labelSize:gt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:gt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:gt.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:gt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:gt.extend("--ft-select-selected-option-color",mt.colorOnSurface),helperColor:gt.extend("--ft-select-helper-color",mt.colorOnSurfaceMedium),optionsColor:gt.extend("--ft-select-options-color",mt.colorOnSurface),optionsZIndex:gt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:gt.external(mt.colorSurface,"Design system"),colorOnSurfaceDisabled:gt.external(mt.colorOnSurfaceDisabled,"Design system"),colorPrimary:gt.external(mt.colorPrimary,"Design system"),borderRadiusS:gt.external(mt.borderRadiusS,"Design system"),elevation02:gt.external(mt.elevation02,"Design system"),colorError:gt.external(mt.colorError,"Design system")},Si=y`
497
502
  *:focus {
498
503
  outline: none;
499
504
  }
@@ -507,7 +512,7 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
507
512
  .ft-select--main-panel {
508
513
  position: relative;
509
514
  display: flex;
510
- height: calc(4 * ${wi.verticalSpacing} + ${wi.labelSize} + ${wi.selectedOptionSize});
515
+ height: calc(4 * ${ki.verticalSpacing} + ${ki.labelSize} + ${ki.selectedOptionSize});
511
516
  }
512
517
 
513
518
  .ft-select--input-panel {
@@ -519,14 +524,14 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
519
524
  padding-left: 16px;
520
525
  padding-right: 8px;
521
526
  gap: 8px;
522
- color: ${wi.selectedOptionColor};
523
- ${xt(si.color,wi.selectedOptionColor)};
527
+ color: ${ki.selectedOptionColor};
528
+ ${yt(li.color,ki.selectedOptionColor)};
524
529
  }
525
530
 
526
531
  .ft-select--input-panel,
527
532
  .ft-select--option {
528
- ${xt(si.opacityContentOnSurfaceHover,"0.08")};
529
- ${xt(si.opacityContentOnSurfacePressed,"0.04")};
533
+ ${yt(li.opacityContentOnSurfaceHover,"0.08")};
534
+ ${yt(li.opacityContentOnSurfacePressed,"0.04")};
530
535
  }
531
536
 
532
537
  .ft-select--input-panel > *:not(ft-ripple),
@@ -536,7 +541,7 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
536
541
 
537
542
  .ft-select--disabled .ft-select--input-panel,
538
543
  .ft-select--disabled .ft-select--option {
539
- color: ${wi.colorOnSurfaceDisabled};
544
+ color: ${ki.colorOnSurfaceDisabled};
540
545
  }
541
546
 
542
547
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -545,18 +550,18 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
545
550
  }
546
551
 
547
552
  ft-input-label {
548
- ${xt(ti.fontSize,wi.selectedOptionSize)};
549
- ${xt(ti.raisedFontSize,wi.labelSize)};
550
- ${xt(ti.verticalSpacing,wi.verticalSpacing)};
553
+ ${yt(ii.fontSize,ki.selectedOptionSize)};
554
+ ${yt(ii.raisedFontSize,ki.labelSize)};
555
+ ${yt(ii.verticalSpacing,ki.verticalSpacing)};
551
556
  }
552
557
 
553
558
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
554
- color: ${wi.colorPrimary};
559
+ color: ${ki.colorPrimary};
555
560
  }
556
561
 
557
562
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
558
- ${xt(ti.borderColor,wi.colorPrimary)};
559
- ${xt(ti.textColor,wi.colorPrimary)};
563
+ ${yt(ii.borderColor,ki.colorPrimary)};
564
+ ${yt(ii.textColor,ki.colorPrimary)};
560
565
  }
561
566
 
562
567
  .ft-select--selected-option {
@@ -566,12 +571,12 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
566
571
  overflow: hidden;
567
572
  white-space: nowrap;
568
573
  text-overflow: ellipsis;
569
- ${xt(me.fontSize,wi.selectedOptionSize)};
570
- ${xt(me.lineHeight,wi.selectedOptionSize)};
574
+ ${yt(we.fontSize,ki.selectedOptionSize)};
575
+ ${yt(we.lineHeight,ki.selectedOptionSize)};
571
576
  }
572
577
 
573
578
  .ft-select--in-error .ft-select--selected-option {
574
- color: ${wi.colorError};
579
+ color: ${ki.colorError};
575
580
  }
576
581
 
577
582
  ft-icon {
@@ -583,16 +588,16 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
583
588
  }
584
589
 
585
590
  .ft-select--filled .ft-select--input-panel {
586
- border-radius: ${wi.borderRadiusS} ${wi.borderRadiusS} 0 0;
591
+ border-radius: ${ki.borderRadiusS} ${ki.borderRadiusS} 0 0;
587
592
  }
588
593
 
589
594
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
590
595
  align-self: stretch;
591
- padding-top: calc(${wi.labelSize} + 2 * ${wi.verticalSpacing});
596
+ padding-top: calc(${ki.labelSize} + 2 * ${ki.verticalSpacing});
592
597
  }
593
598
 
594
599
  .ft-select--outlined .ft-select--input-panel {
595
- border-radius: ${wi.borderRadiusS};
600
+ border-radius: ${ki.borderRadiusS};
596
601
  }
597
602
 
598
603
  .ft-select--options {
@@ -601,10 +606,10 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
601
606
  top: 100%;
602
607
  left: 0;
603
608
  right: 0;
604
- color: ${wi.optionsColor};
605
- background: ${wi.colorSurface};
606
- z-index: ${wi.optionsZIndex};
607
- box-shadow: ${wi.elevation02};
609
+ color: ${ki.optionsColor};
610
+ background: ${ki.colorSurface};
611
+ z-index: ${ki.optionsZIndex};
612
+ box-shadow: ${ki.elevation02};
608
613
  }
609
614
 
610
615
  .ft-select--fixed .ft-select--options {
@@ -615,7 +620,7 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
615
620
 
616
621
  .ft-select--options-displayed .ft-select--options {
617
622
  display: block;
618
- max-height: ${wi.optionsHeight};
623
+ max-height: ${ki.optionsHeight};
619
624
  overflow-y: auto;
620
625
  }
621
626
 
@@ -634,20 +639,20 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
634
639
 
635
640
  .ft-select--helper-text {
636
641
  padding: 0 12px 0 16px;
637
- color: ${wi.helperColor};
642
+ color: ${ki.helperColor};
638
643
  }
639
644
 
640
645
  .ft-select--in-error .ft-select--helper-text {
641
- color: ${wi.colorError};
646
+ color: ${ki.colorError};
642
647
  }
643
- `;var ki=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Si extends mt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return J``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Si.elementDefinitions={},ki([o({type:String})],Si.prototype,"label",void 0),ki([o({type:Object,converter:t=>t})],Si.prototype,"value",void 0),ki([o({type:Boolean,reflect:!0})],Si.prototype,"selected",void 0);class Ci extends mt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,n;let s=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return J`
644
- <div class="${It(a)}" part="container">
648
+ `;var Ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ei extends wt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return X``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ei.elementDefinitions={},Ci([o({type:String})],Ei.prototype,"label",void 0),Ci([o({type:Object,converter:t=>t})],Ei.prototype,"value",void 0),Ci([o({type:Boolean,reflect:!0})],Ei.prototype,"selected",void 0);class Ni extends wt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return X`
649
+ <div class="${_t(a)}" part="container">
645
650
  <div class="ft-select--main-panel" part="main-panel">
646
651
  <ft-input-label text="${this.label}"
647
652
  part="label"
648
653
  ?disabled=${r}
649
654
  ?outlined=${this.outlined}
650
- ?raised=${l||s}
655
+ ?raised=${l||n}
651
656
  ?error=${this.error}
652
657
  ></ft-input-label>
653
658
  <div class="ft-select--input-panel"
@@ -657,29 +662,29 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
657
662
  @keydown=${this.onMainPanelKeyDown}
658
663
  aria-label="${this.label}"
659
664
  aria-haspopup="listbox"
660
- aria-expanded="${s}">
665
+ aria-expanded="${n}">
661
666
  <ft-ripple ?disabled=${r} ?activated=${!this.outlined}></ft-ripple>
662
667
  <ft-typography variant="body1" class="ft-select--selected-option">
663
- ${null!==(n=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==n?n:""}
668
+ ${null!==(s=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==s?s:""}
664
669
  </ft-typography>
665
- <ft-icon variant="material">${s?"expand_less":"expand_more"}</ft-icon>
670
+ <ft-icon variant="material">${n?"expand_less":"expand_more"}</ft-icon>
666
671
  </div>
667
672
  <div class="ft-select--options"
668
673
  part="options"
669
674
  @keydown=${this.onOptionsKeyDown}
670
675
  innerrole="listbox">
671
- ${At(this.options,(t=>t.value),(t=>this.renderOption(t)))}
676
+ ${It(this.options,(t=>t.value),(t=>this.renderOption(t)))}
672
677
  </div>
673
678
  </div>
674
- ${this.helper?J`
679
+ ${this.helper?X`
675
680
  <ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
676
681
  </ft-typography>`:void 0}
677
682
  </div>
678
683
  <slot @slotchange=${this.updateOptionsFromSlot}
679
684
  @option-change=${this.updateOptionsFromSlot}
680
685
  ></slot>
681
- `}renderOption(t){let e=this.selectedOption===t;return J`
682
- <div class="${It({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
686
+ `}renderOption(t){let e=this.selectedOption===t;return X`
687
+ <div class="${_t({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
683
688
  part="option"
684
689
  tabindex="0"
685
690
  data-value="${t.value}"
@@ -688,7 +693,7 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
688
693
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
689
694
  <span>${t.label}</span>
690
695
  </div>
691
- `}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,n,s;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var e,i;if(!c(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ci.elementDefinitions={"ft-input-label":oi,"ft-typography":Qe,"ft-ripple":bi,"ft-icon":$i},Ci.styles=[Ke,Ve,Oi],ki([o({type:String})],Ci.prototype,"label",void 0),ki([o({type:String})],Ci.prototype,"helper",void 0),ki([o({type:Boolean})],Ci.prototype,"outlined",void 0),ki([o({type:Boolean})],Ci.prototype,"disabled",void 0),ki([o({type:Boolean})],Ci.prototype,"error",void 0),ki([o({type:Boolean})],Ci.prototype,"fixedMenuPosition",void 0),ki([o({type:Array})],Ci.prototype,"options",void 0),ki([n()],Ci.prototype,"selectedOption",void 0),ki([n()],Ci.prototype,"optionsDisplayed",void 0),ki([n()],Ci.prototype,"focusOptions",void 0),ki([r(".ft-select")],Ci.prototype,"container",void 0),ki([r(".ft-select--options")],Ci.prototype,"optionsMenu",void 0),ki([r(".ft-select--input-panel")],Ci.prototype,"mainPanel",void 0),ki([r(".ft-select--option:first-child")],Ci.prototype,"firstOption",void 0),ki([r(".ft-select--option:focus")],Ci.prototype,"focusedOption",void 0),ki([r(".ft-select--option.ft-select--option-selected")],Ci.prototype,"selectedOptionElement",void 0),ki([r(".ft-select--option:last-child")],Ci.prototype,"lastOption",void 0),ki([r("slot")],Ci.prototype,"optionsSlot",void 0),p("ft-select")(Ci),p("ft-select-option")(Si);const Ei={fontSize:bt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:bt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:bt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:bt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:bt.extend("--ft-text-field-helper-color",yt.colorOnSurfaceMedium),colorPrimary:bt.external(yt.colorPrimary,"Design system"),colorOnSurface:bt.external(yt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:bt.external(yt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:bt.external(yt.borderRadiusS,"Design system"),colorError:bt.external(yt.colorError,"Design system"),prefixColor:bt.extend("--ft-text-field-prefix-color",yt.colorOnSurfaceMedium),iconColor:bt.extend("--ft-text-field-icon-color",yt.colorOnSurfaceMedium)},Ni=x`
696
+ `}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,n;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){var e,i;if(!f(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ni.elementDefinitions={"ft-input-label":ni,"ft-typography":ei,"ft-ripple":gi,"ft-icon":Oi},Ni.styles=[Je,qe,Si],Ci([o({type:String})],Ni.prototype,"label",void 0),Ci([o({type:String})],Ni.prototype,"helper",void 0),Ci([o({type:Boolean})],Ni.prototype,"outlined",void 0),Ci([o({type:Boolean})],Ni.prototype,"disabled",void 0),Ci([o({type:Boolean})],Ni.prototype,"error",void 0),Ci([o({type:Boolean})],Ni.prototype,"fixedMenuPosition",void 0),Ci([o({type:Array})],Ni.prototype,"options",void 0),Ci([s()],Ni.prototype,"selectedOption",void 0),Ci([s()],Ni.prototype,"optionsDisplayed",void 0),Ci([s()],Ni.prototype,"focusOptions",void 0),Ci([r(".ft-select")],Ni.prototype,"container",void 0),Ci([r(".ft-select--options")],Ni.prototype,"optionsMenu",void 0),Ci([r(".ft-select--input-panel")],Ni.prototype,"mainPanel",void 0),Ci([r(".ft-select--option:first-child")],Ni.prototype,"firstOption",void 0),Ci([r(".ft-select--option:focus")],Ni.prototype,"focusedOption",void 0),Ci([r(".ft-select--option.ft-select--option-selected")],Ni.prototype,"selectedOptionElement",void 0),Ci([r(".ft-select--option:last-child")],Ni.prototype,"lastOption",void 0),Ci([r("slot")],Ni.prototype,"optionsSlot",void 0),d("ft-select")(Ni),d("ft-select-option")(Ei);const Ri={fontSize:gt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:gt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:gt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:gt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:gt.extend("--ft-text-field-helper-color",mt.colorOnSurfaceMedium),colorPrimary:gt.external(mt.colorPrimary,"Design system"),colorOnSurface:gt.external(mt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:gt.external(mt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:gt.external(mt.borderRadiusS,"Design system"),colorError:gt.external(mt.colorError,"Design system"),prefixColor:gt.extend("--ft-text-field-prefix-color",mt.colorOnSurfaceMedium),iconColor:gt.extend("--ft-text-field-icon-color",mt.colorOnSurfaceMedium),floatingZIndex:gt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:gt.external(mt.colorSurface,"Design system"),colorOutline:gt.external(mt.colorOutline,"Design system"),elevation02:gt.external(mt.elevation02,"Design system"),suggestSize:gt.create("--ft-text-field-suggest-size","SIZE","300px")},zi=y`
692
697
  *:focus {
693
698
  outline: none;
694
699
  }
@@ -697,19 +702,20 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
697
702
  display: flex;
698
703
  flex-direction: column;
699
704
  align-items: stretch;
705
+ position: relative;
700
706
  }
701
707
 
702
708
  ft-input-label {
703
- ${xt(ti.fontSize,Ei.fontSize)};
704
- ${xt(ti.raisedFontSize,Ei.labelSize)};
705
- ${xt(ti.verticalSpacing,Ei.verticalSpacing)};
706
- ${xt(ti.horizontalSpacing,x`calc(${Ei.horizontalSpacing} - 4px)`)};
709
+ ${yt(ii.fontSize,Ri.fontSize)};
710
+ ${yt(ii.raisedFontSize,Ri.labelSize)};
711
+ ${yt(ii.verticalSpacing,Ri.verticalSpacing)};
712
+ ${yt(ii.horizontalSpacing,y`calc(${Ri.horizontalSpacing} - 4px)`)};
707
713
  }
708
714
 
709
715
  .ft-text-field--main-panel {
710
716
  position: relative;
711
717
  display: flex;
712
- height: calc(4 * ${Ei.verticalSpacing} + ${Ei.labelSize} + ${Ei.fontSize});
718
+ height: calc(4 * ${Ri.verticalSpacing} + ${Ri.labelSize} + ${Ri.fontSize});
713
719
  }
714
720
 
715
721
  .ft-text-field--input-panel {
@@ -718,38 +724,33 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
718
724
  display: flex;
719
725
  align-items: center;
720
726
  overflow: hidden;
721
- }
727
+ padding: 0 ${Ri.horizontalSpacing};
722
728
 
723
- .ft-text-field--input-panel ft-ripple {
724
- ${xt(si.opacityContentOnSurfaceHover,"0.08")};
725
- ${xt(si.opacityContentOnSurfacePressed,"0.04")};
729
+ ${yt(we.fontSize,Ri.fontSize)};
730
+ ${yt(we.lineHeight,Ri.fontSize)};
726
731
  }
727
732
 
728
- .ft-text-field--input-wrapper {
729
- flex-grow: 1;
730
- flex-shrink: 1;
731
-
732
- display: flex;
733
- align-items: center;
734
-
735
- ${xt(me.fontSize,Ei.fontSize)};
736
- ${xt(me.lineHeight,Ei.fontSize)};
737
-
738
- padding: 0 ${Ei.horizontalSpacing};
733
+ .ft-text-field--input-panel ft-ripple {
734
+ ${yt(li.opacityContentOnSurfaceHover,"0.08")};
735
+ ${yt(li.opacityContentOnSurfacePressed,"0.04")};
739
736
  }
740
737
 
741
- .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
738
+ .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
742
739
  align-items: flex-end;
743
- padding: 0 ${Ei.horizontalSpacing} ${Ei.verticalSpacing} ${Ei.horizontalSpacing};
740
+ padding: 0 ${Ri.horizontalSpacing} ${Ri.verticalSpacing} ${Ri.horizontalSpacing};
744
741
  }
745
742
 
746
743
  .ft-text-field--prefix {
747
- display: none;
748
- color: ${Ei.prefixColor}
744
+ color: ${Ri.prefixColor};
745
+ margin-right: 2px;
746
+ flex-shrink: 1;
747
+ overflow: hidden;
748
+ white-space: nowrap;
749
+ text-overflow: ellipsis;
749
750
  }
750
751
 
751
- .ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
752
- display: block;
752
+ .ft-text-field--with-label:not(.ft-text-field--raised-label) .ft-text-field--prefix {
753
+ display: none;
753
754
  }
754
755
 
755
756
  .ft-text-field--input {
@@ -759,15 +760,15 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
759
760
  flex-shrink: 1;
760
761
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
761
762
 
762
- color: ${Ei.colorOnSurface};
763
- padding: calc(2 * ${Ei.verticalSpacing}) 0;
763
+ color: ${Ri.colorOnSurface};
764
+ padding: calc(2 * ${Ri.verticalSpacing}) 0;
764
765
  border: none;
765
766
  background: none;
766
767
  }
767
768
 
768
- .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
769
+ .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
769
770
  padding-bottom: 0;
770
- padding-top: calc(${Ei.labelSize} + 2 * ${Ei.verticalSpacing});
771
+ padding-top: calc(${Ri.labelSize} + 2 * ${Ri.verticalSpacing});
771
772
  }
772
773
 
773
774
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -776,77 +777,149 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
776
777
  }
777
778
 
778
779
  .ft-text-field--disabled .ft-text-field--input {
779
- color: ${Ei.colorOnSurfaceDisabled};
780
- }
781
-
782
- .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
783
- cursor: pointer;
780
+ color: ${Ri.colorOnSurfaceDisabled};
784
781
  }
785
782
 
786
783
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
787
- ${xt(ti.borderColor,Ei.colorPrimary)};
788
- ${xt(ti.textColor,Ei.colorPrimary)};
784
+ ${yt(ii.borderColor,Ri.colorPrimary)};
785
+ ${yt(ii.textColor,Ri.colorPrimary)};
789
786
  }
790
787
 
791
788
  .ft-text-field--filled .ft-text-field--input-panel {
792
- border-radius: ${Ei.borderRadiusS} ${Ei.borderRadiusS} 0 0;
789
+ border-radius: ${Ri.borderRadiusS} ${Ri.borderRadiusS} 0 0;
793
790
  }
794
791
 
795
792
  .ft-text-field--outlined .ft-text-field--input-panel {
796
- border-radius: ${Ei.borderRadiusS};
793
+ border-radius: ${Ri.borderRadiusS};
797
794
  }
798
795
 
799
796
  .ft-text-field--helper-text {
800
- padding: 0 12px 0 ${Ei.horizontalSpacing};
801
- color: ${Ei.helperColor};
797
+ padding: 0 12px 0 ${Ri.horizontalSpacing};
798
+ color: ${Ri.helperColor};
802
799
  }
803
800
 
804
801
  .ft-text-field--in-error .ft-text-field--input,
805
802
  .ft-text-field--in-error .ft-text-field--helper-text,
806
803
  .ft-text-field--in-error .ft-text-field--prefix {
807
- color: ${Ei.colorError};
804
+ color: ${Ri.colorError};
808
805
  }
809
806
 
810
807
  .ft-text-field--icon {
811
- padding-right: ${Ei.horizontalSpacing};
812
- color: ${Ei.iconColor};
808
+ align-self: center;
809
+ margin-left: 8px;
810
+ color: ${Ri.iconColor};
811
+ }
812
+
813
+ .ft-text-field--container {
814
+ position: relative;
815
+ }
816
+
817
+ .ft-text-field--suggestions {
818
+ display: none;
819
+ flex-direction: column;
820
+ position: absolute;
821
+ left: 0;
822
+ right: 0;
823
+ z-index: ${Ri.floatingZIndex};
824
+ background: ${Ri.colorSurface};
825
+ border: 1px solid ${Ri.colorOutline};
826
+ border-radius: 0 0 ${Ri.borderRadiusS} ${Ri.borderRadiusS};
827
+ box-shadow: ${Ri.elevation02};
828
+ outline: none;
829
+ max-height: ${Ri.suggestSize};
830
+ overflow-y: auto;
813
831
  }
814
- `;var Ri=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class zi extends mt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return J`
815
- <div class="${It(t)}">
816
- <div class="ft-text-field--main-panel">
832
+
833
+ .ft-text-field--suggestions:not(.ft-text-field--suggestions-on-top) {
834
+ top: 100%;
835
+ }
836
+
837
+ .ft-text-field--suggestions.ft-text-field--suggestions-on-top {
838
+ bottom: 100%;
839
+ }
840
+
841
+ .ft-text-field--suggestions-displayed .ft-text-field--suggestions {
842
+ display: flex;
843
+ }
844
+ `;var Mi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Fi extends wt{constructor(){super(...arguments),this.value="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.filterSuggestions=!1,this.focused=!1,this.suggestionsOnTop=!1,this.displaySuggestions=!1,this.visibleSuggestions=0}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--suggestions-displayed":this.visibleSuggestions>0&&this.displaySuggestions,"ft-text-field--raised-label":this.focused||""!=this.value};return X`
845
+ <div class="${_t(t)}">
846
+ <div class="ft-text-field--main-panel"
847
+ @keydown=${this.handleKeyboardNavigation}
848
+ @focusout=${this.onFocusOut}>
817
849
  <ft-input-label text="${this.label}"
818
850
  ?disabled=${this.disabled}
819
851
  ?outlined=${this.outlined}
820
852
  ?raised=${this.focused||""!=this.value}
821
- ?error=${this.error}
822
- ></ft-input-label>
823
- <div class="ft-text-field--input-panel"
824
- aria-label="${this.label}">
825
- ${this.outlined?null:J`
853
+ ?error=${this.error}></ft-input-label>
854
+ <div class="ft-text-field--input-panel">
855
+ ${this.outlined?G:X`
826
856
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
827
857
  `}
828
- <div class="ft-text-field--input-wrapper">
829
- <ft-typography class="ft-text-field--prefix" vaiant="body1">${this.prefix}</ft-typography>
830
- <input type="text"
831
- class="ft-typography--body1 ft-text-field--input"
832
- ?disabled=${this.disabled}
833
- .value=${this.value}
834
- @change=${this.updateValueFromInputField}
835
- @keyup=${this.liveUpdateValueFromInputField}
836
- @focus=${()=>this.focused=!0}
837
- @focusout=${()=>this.focused=!1}
838
- />
839
- </div>
840
- ${this.icon?J`
841
- <ft-icon class="ft-text-field--icon" variant="${this.iconVariant}">${this.icon}
842
- </ft-icon>`:void 0}
858
+ <ft-typography class="ft-text-field--prefix" vaiant="body1">${this.prefix}</ft-typography>
859
+ <input type="text"
860
+ aria-label="${this.label}"
861
+ class="ft-typography--body1 ft-text-field--input"
862
+ ?disabled=${this.disabled}
863
+ .value=${this.value}
864
+ @change=${this.updateValueFromInputField}
865
+ @keyup=${this.handleInput}
866
+ @focus=${this.onFocus}/>
867
+ ${this.icon?X`
868
+ <ft-icon class="ft-text-field--icon"
869
+ .variant=${this.iconVariant}
870
+ .value=${this.icon}
871
+ @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
872
+ `:G}
873
+ </div>
874
+ <div class="ft-text-field--suggestions ${this.suggestionsOnTop?"ft-text-field--suggestions-on-top":""}"
875
+ @suggestion-selected=${this.onSuggestionSelected}>
876
+ <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
843
877
  </div>
844
878
  </div>
845
- ${this.helper?J`
846
- <ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
847
- </ft-typography>`:void 0}
879
+ ${this.helper?X`
880
+ <ft-typography class="ft-text-field--helper-text" variant="caption">
881
+ ${this.helper}
882
+ </ft-typography>
883
+ `:G}
884
+ </div>
885
+ `}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden)).length):this.visibleSuggestions=this.suggestions.length}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),this.suggestions.length&&t.has("suggestionsDisplayed")&&this.displaySuggestions){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}updateValueFromInputField(){var t;this.setValue((null===(t=this.input)||void 0===t?void 0:t.value)||"",!0),this.displaySuggestions=!1}handleInput(){var t;const e=(null===(t=this.input)||void 0===t?void 0:t.value)||"";this.value!==e&&(this.value=e,this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})))}setValue(t,e){this.value=t,e&&this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}handleKeyboardNavigation(t){var e;if(this.suggestions.length&&("ArrowDown"===t.key||"ArrowUp"===t.key)){t.preventDefault(),t.stopPropagation(),this.displaySuggestions=!0;const i=this.suggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.suggestions.length-1?i+1:0:i>0?i-1:this.suggestions.length-1,null===(e=this.suggestions[o])||void 0===e||e.focus()}}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.displaySuggestions=!1),0)}onFocus(){this.focused=!0,this.displaySuggestions=!0}onFocusOut(){this.focused=!1,setTimeout((()=>{var t,e;return this.displaySuggestions=this.focused||null!==(e=null===(t=this.suggestionsContainer)||void 0===t?void 0:t.matches(":focus-within"))&&void 0!==e&&e}),0)}}Fi.elementDefinitions={"ft-input-label":ni,"ft-ripple":gi,"ft-typography":ei,"ft-icon":Oi},Fi.styles=[Ve,zi],Mi([o()],Fi.prototype,"label",void 0),Mi([o()],Fi.prototype,"value",void 0),Mi([o()],Fi.prototype,"helper",void 0),Mi([o({type:Boolean})],Fi.prototype,"outlined",void 0),Mi([o({type:Boolean})],Fi.prototype,"disabled",void 0),Mi([o({type:Boolean})],Fi.prototype,"error",void 0),Mi([o()],Fi.prototype,"prefix",void 0),Mi([o()],Fi.prototype,"icon",void 0),Mi([o()],Fi.prototype,"iconVariant",void 0),Mi([o({type:Boolean})],Fi.prototype,"filterSuggestions",void 0),Mi([s()],Fi.prototype,"focused",void 0),Mi([s()],Fi.prototype,"suggestionsOnTop",void 0),Mi([s()],Fi.prototype,"displaySuggestions",void 0),Mi([s()],Fi.prototype,"visibleSuggestions",void 0),Mi([r(".ft-text-field--input")],Fi.prototype,"input",void 0),Mi([r(".ft-text-field--suggestions")],Fi.prototype,"suggestionsContainer",void 0),Mi([p({selector:"ft-text-field-suggestion"})],Fi.prototype,"suggestions",void 0);const Ui=y`
886
+ .ft-text-field-suggestion {
887
+ position: relative;
888
+ padding: 8px 16px;
889
+ cursor: pointer;
890
+ min-height: 44px;
891
+ box-sizing: border-box;
892
+ outline: none;
893
+ }
894
+
895
+ .ft-text-field-suggestion,
896
+ .ft-text-field-suggestion--label {
897
+ display: flex;
898
+ align-items: center;
899
+ gap: 8px;
900
+ }
901
+
902
+ .ft-text-field-suggestion--label {
903
+ flex-grow: 1;
904
+ flex-shrink: 1;
905
+ }
906
+
907
+ slot {
908
+ pointer-events: none;
909
+ }
910
+ `;var ji=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Di extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Bi extends wt{render(){return X`
911
+ <div class="ft-text-field-suggestion"
912
+ tabindex="-1"
913
+ @keydown=${this.onKeyDown}
914
+ @click=${this.confirmSuggestion}>
915
+ <ft-ripple></ft-ripple>
916
+ <ft-typography part="label"
917
+ variant="body1"
918
+ class="ft-text-field-suggestion--label">
919
+ <slot></slot>
920
+ </ft-typography>
848
921
  </div>
849
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}zi.elementDefinitions={"ft-input-label":oi,"ft-ripple":bi,"ft-typography":Qe,"ft-icon":$i},zi.styles=[Ze,Ni],Ri([o({type:String})],zi.prototype,"label",void 0),Ri([o({reflect:!0})],zi.prototype,"value",void 0),Ri([o({type:String})],zi.prototype,"helper",void 0),Ri([o({type:Boolean})],zi.prototype,"outlined",void 0),Ri([o({type:Boolean})],zi.prototype,"disabled",void 0),Ri([o({type:Boolean})],zi.prototype,"error",void 0),Ri([r(".ft-text-field--input")],zi.prototype,"input",void 0),Ri([o({type:String})],zi.prototype,"prefix",void 0),Ri([o({type:String})],zi.prototype,"icon",void 0),Ri([o({type:String})],zi.prototype,"iconVariant",void 0),Ri([n()],zi.prototype,"focused",void 0),p("ft-text-field")(zi);const Mi=bt.create("--ft-tooltip-distance","SIZE","4px"),Fi=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ui=bt.create("--ft-tooltip-background-color","COLOR","#666666"),ji=bt.create("--ft-tooltip-z-index","NUMBER","1"),Bi=bt.external(yt.borderRadiusS,"Design system"),Di=bt.create("--ft-tooltip-max-width","SIZE","150px"),Ai=x`
922
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Di(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Bi.elementDefinitions={"ft-ripple":gi,"ft-typography":ei,"ft-icon":Oi},Bi.styles=Ui,ji([o()],Bi.prototype,"value",void 0),ji([r(".ft-text-field-suggestion")],Bi.prototype,"container",void 0),ji([c()],Bi.prototype,"assignedNodes",void 0),d("ft-text-field")(Fi),d("ft-text-field-suggestion")(Bi);const Ai=gt.create("--ft-tooltip-distance","SIZE","4px"),Ti=gt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ii=gt.create("--ft-tooltip-background-color","COLOR","#666666"),Li=gt.create("--ft-tooltip-z-index","NUMBER","1"),Pi=gt.external(mt.borderRadiusS,"Design system"),_i=gt.create("--ft-tooltip-max-width","SIZE","150px"),Hi=y`
850
923
  .ft-tooltip--container {
851
924
  display: block;
852
925
  position: relative;
@@ -862,23 +935,23 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
862
935
  box-sizing: border-box;
863
936
  overflow: hidden;
864
937
  width: max-content;
865
- max-width: ${Di};
938
+ max-width: ${_i};
866
939
  text-align: center;
867
- padding: ${Mi};
868
- z-index: ${ji};
940
+ padding: ${Ai};
941
+ z-index: ${Li};
869
942
  }
870
943
 
871
944
  .ft-tooltip--content {
872
945
  padding: 4px 8px;
873
- border-radius: ${Bi};
874
- background-color: ${Ui};
875
- color: ${Fi};
946
+ border-radius: ${Pi};
947
+ background-color: ${Ii};
948
+ color: ${Ti};
876
949
  top: -500px;
877
950
  left: -500px;
878
951
  position: relative;
879
952
  word-break: break-word;
880
953
  }
881
- `;var Li=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ti extends mt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return J`
954
+ `;var Wi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Zi extends wt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return X`
882
955
  <div part="container"
883
956
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
884
957
  @mouseenter=${this.onHover}
@@ -896,13 +969,7 @@ class Lt extends Rt{constructor(t){if(super(t),this.it=X,t.type!==Et)throw Error
896
969
  </div>
897
970
  </div>
898
971
  </div>
899
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${Di})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ti.elementDefinitions={"ft-typography":Qe},Ti.styles=Ai,Li([o()],Ti.prototype,"text",void 0),Li([o({type:Boolean})],Ti.prototype,"manual",void 0),Li([o({type:Boolean})],Ti.prototype,"inline",void 0),Li([o({type:Number})],Ti.prototype,"delay",void 0),Li([o()],Ti.prototype,"position",void 0),Li([
900
- /**
901
- * @license
902
- * Copyright 2017 Google LLC
903
- * SPDX-License-Identifier: BSD-3-Clause
904
- */
905
- function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ti.prototype,"slotNodes",void 0),Li([r(".ft-tooltip--container")],Ti.prototype,"container",void 0),Li([r("slot")],Ti.prototype,"target",void 0),Li([r(".ft-tooltip")],Ti.prototype,"tooltip",void 0),Li([r(".ft-tooltip--content")],Ti.prototype,"tooltipContent",void 0),Li([n()],Ti.prototype,"visible",void 0),p("ft-tooltip")(Ti);const Ii={color:bt.extend("--ft-loader-color",yt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},Pi=x`
972
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=e.height,s=o;break;case"left":n=i,s=-this.tooltip.clientWidth;break;case"right":n=i,s=e.width}e.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${e.width}px, ${_i})`}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())}}Zi.elementDefinitions={"ft-typography":ei},Zi.styles=Hi,Wi([o()],Zi.prototype,"text",void 0),Wi([o({type:Boolean})],Zi.prototype,"manual",void 0),Wi([o({type:Boolean})],Zi.prototype,"inline",void 0),Wi([o({type:Number})],Zi.prototype,"delay",void 0),Wi([o()],Zi.prototype,"position",void 0),Wi([c("",!0)],Zi.prototype,"slotNodes",void 0),Wi([r(".ft-tooltip--container")],Zi.prototype,"container",void 0),Wi([r("slot")],Zi.prototype,"target",void 0),Wi([r(".ft-tooltip")],Zi.prototype,"tooltip",void 0),Wi([r(".ft-tooltip--content")],Zi.prototype,"tooltipContent",void 0),Wi([s()],Zi.prototype,"visible",void 0),d("ft-tooltip")(Zi);const Ki={color:gt.extend("--ft-loader-color",mt.colorPrimary),size:gt.create("--ft-loader-size","SIZE","80px")},Vi=y`
906
973
  :host {
907
974
  line-height: 0;
908
975
  }
@@ -911,8 +978,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
911
978
  display: inline-block;
912
979
  position: relative;
913
980
 
914
- width: ${Ii.size};
915
- height: ${Ii.size};
981
+ width: ${Ki.size};
982
+ height: ${Ki.size};
916
983
  }
917
984
 
918
985
  .ft-loader div {
@@ -921,7 +988,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
921
988
  width: 25%;
922
989
  height: 25%;
923
990
  border-radius: 50%;
924
- background: ${Ii.color};
991
+ background: ${Ki.color};
925
992
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
926
993
  }
927
994
 
@@ -968,17 +1035,17 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
968
1035
  transform: translate(0, 0);
969
1036
  }
970
1037
  100% {
971
- transform: translate(calc(0.35 * ${Ii.size}), 0);
1038
+ transform: translate(calc(0.35 * ${Ki.size}), 0);
972
1039
  }
973
1040
  }
974
- `;class _i extends mt{render(){return J`
1041
+ `;class Ji extends wt{render(){return X`
975
1042
  <div class="ft-loader">
976
1043
  <div></div>
977
1044
  <div></div>
978
1045
  <div></div>
979
1046
  <div></div>
980
1047
  </div>
981
- `}}_i.styles=Pi,p("ft-loader")(_i);const Hi=bt.extend("--ft-button-color",yt.colorPrimary),Wi={backgroundColor:bt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",yt.borderRadiusL),color:Hi,fontSize:bt.extend("--ft-button-font-size",Ie.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",Hi),opacityDisabled:bt.external(yt.colorOpacityDisabled,"Design system")},Zi=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",yt.colorOnPrimary)),Ki={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",yt.colorPrimary)),color:Zi,rippleColor:bt.extend("--ft-button-primary-ripple-color",Zi)},Vi=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",yt.borderRadiusM)),Ji=[$t,x`
1048
+ `}}Ji.styles=Vi,d("ft-loader")(Ji);const qi=gt.extend("--ft-button-color",mt.colorPrimary),Xi={backgroundColor:gt.extend("--ft-button-background-color",mt.colorSurface),borderRadius:gt.extend("--ft-button-border-radius",mt.borderRadiusL),color:qi,fontSize:gt.extend("--ft-button-font-size",_e.fontSize),iconSize:gt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:gt.extend("--ft-button-ripple-color",qi),opacityDisabled:gt.external(mt.colorOpacityDisabled,"Design system")},Yi=gt.extend("--ft-button-primary-color",gt.extend("--ft-button-color",mt.colorOnPrimary)),Gi={backgroundColor:gt.extend("--ft-button-primary-background-color",gt.extend("--ft-button-background-color",mt.colorPrimary)),color:Yi,rippleColor:gt.extend("--ft-button-primary-ripple-color",Yi)},Qi=gt.extend("--ft-button-dense-border-radius",gt.extend("--ft-button-border-radius",mt.borderRadiusM)),to=[Ot,y`
982
1049
  :host {
983
1050
  display: inline-block;
984
1051
  max-width: 100%;
@@ -989,7 +1056,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
989
1056
  box-shadow: 0px 0px 0px transparent;
990
1057
  border: 0px solid transparent;
991
1058
  text-shadow: 0px 0px 0px transparent;
992
- font-size: ${Wi.fontSize};
1059
+ font-size: ${Xi.fontSize};
993
1060
  }
994
1061
 
995
1062
  button:hover {
@@ -1018,17 +1085,17 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1018
1085
  border: none;
1019
1086
  pointer-events: auto;
1020
1087
 
1021
- --ft-button-internal-line-height: calc(${Wi.fontSize} + 2px);
1022
- --ft-button-internal-color: ${Wi.color};
1023
- ${xt(xi.size,Wi.iconSize)};
1088
+ --ft-button-internal-line-height: calc(${Xi.fontSize} + 2px);
1089
+ --ft-button-internal-color: ${Xi.color};
1090
+ ${yt(yi.size,Xi.iconSize)};
1024
1091
  --ft-button-internal-vertical-padding: 6px;
1025
1092
  --ft-button-internal-horizontal-padding: 8px;
1026
- ${xt(si.color,Wi.rippleColor)};
1027
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Wi.iconSize});
1093
+ ${yt(li.color,Xi.rippleColor)};
1094
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Xi.iconSize});
1028
1095
 
1029
- border-radius: ${Wi.borderRadius};
1096
+ border-radius: ${Xi.borderRadius};
1030
1097
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
1031
- background-color: ${Wi.backgroundColor};
1098
+ background-color: ${Xi.backgroundColor};
1032
1099
  color: var(--ft-button-internal-color);
1033
1100
  -webkit-mask-image: radial-gradient(white, black);
1034
1101
  }
@@ -1040,7 +1107,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1040
1107
  .ft-button--dense {
1041
1108
  --ft-button-internal-vertical-padding: 2px;
1042
1109
  --ft-button-internal-horizontal-padding: 4px;
1043
- border-radius: ${Vi};
1110
+ border-radius: ${Qi};
1044
1111
  }
1045
1112
 
1046
1113
  .ft-button--round {
@@ -1049,13 +1116,13 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1049
1116
 
1050
1117
  .ft-button[disabled] {
1051
1118
  filter: grayscale(1);
1052
- opacity: ${Wi.opacityDisabled};
1119
+ opacity: ${Xi.opacityDisabled};
1053
1120
  }
1054
1121
 
1055
1122
  .ft-button.ft-button--primary {
1056
- background-color: ${Ki.backgroundColor};
1057
- --ft-button-internal-color: ${Ki.color};
1058
- ${xt(si.color,Ki.rippleColor)};
1123
+ background-color: ${Gi.backgroundColor};
1124
+ --ft-button-internal-color: ${Gi.color};
1125
+ ${yt(li.color,Gi.rippleColor)};
1059
1126
  }
1060
1127
 
1061
1128
  .ft-button.ft-button--outlined {
@@ -1074,8 +1141,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1074
1141
  text-overflow: ellipsis;
1075
1142
  display: block;
1076
1143
  margin: 0 var(--ft-button-internal-horizontal-padding);
1077
- ${xt(Ie.fontSize,"1em")};
1078
- ${xt(Ie.lineHeight,"var(--ft-button-internal-content-height)")};
1144
+ ${yt(_e.fontSize,"1em")};
1145
+ ${yt(_e.lineHeight,"var(--ft-button-internal-content-height)")};
1079
1146
  }
1080
1147
 
1081
1148
  .ft-button--safari-fix .ft-button--label {
@@ -1108,12 +1175,12 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1108
1175
  }
1109
1176
 
1110
1177
  ft-loader {
1111
- ${xt(Ii.size,Wi.iconSize)};
1112
- ${xt(Ii.color,"var(--ft-button-internal-color)")};
1178
+ ${yt(Ki.size,Xi.iconSize)};
1179
+ ${yt(Ki.color,"var(--ft-button-internal-color)")};
1113
1180
  }
1114
- `];var qi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Xi extends mt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=gi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":St,"ft-no-text-select":!0};return this.addTooltipIfNeeded(J`
1181
+ `];var eo=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class io extends wt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=$i.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":Et,"ft-no-text-select":!0};return this.addTooltipIfNeeded(X`
1115
1182
  <button part="button"
1116
- class="${It(t)}"
1183
+ class="${_t(t)}"
1117
1184
  aria-label="${this.getLabel()}"
1118
1185
  ?disabled=${this.isDisabled()}>
1119
1186
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -1125,15 +1192,15 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1125
1192
  </ft-typography>
1126
1193
  ${this.resolveIcon()}
1127
1194
  </button>
1128
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?J`
1195
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?X`
1129
1196
  <ft-tooltip part="tooltip"
1130
1197
  text="${this.getLabel()}"
1131
1198
  position="${this.tooltipPosition}">
1132
1199
  ${t}
1133
1200
  </ft-tooltip>
1134
- `:t}resolveIcon(){return this.loading?J`
1135
- <ft-loader></ft-loader> `:this.icon?J`
1136
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:X}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Xi.elementDefinitions={"ft-ripple":bi,"ft-tooltip":Ti,"ft-typography":Qe,"ft-icon":$i,"ft-loader":_i},Xi.styles=Ji,qi([o({type:Boolean})],Xi.prototype,"primary",void 0),qi([o({type:Boolean})],Xi.prototype,"outlined",void 0),qi([o({type:Boolean})],Xi.prototype,"disabled",void 0),qi([o({type:Boolean})],Xi.prototype,"dense",void 0),qi([o({type:Boolean})],Xi.prototype,"round",void 0),qi([o({type:String})],Xi.prototype,"label",void 0),qi([o({type:String})],Xi.prototype,"icon",void 0),qi([o({type:String})],Xi.prototype,"iconVariant",void 0),qi([o({type:Boolean})],Xi.prototype,"trailingIcon",void 0),qi([o({type:Boolean})],Xi.prototype,"loading",void 0),qi([o({type:String})],Xi.prototype,"tooltipPosition",void 0),qi([o({type:Boolean})],Xi.prototype,"hideTooltip",void 0),qi([o({type:Boolean})],Xi.prototype,"forceTooltip",void 0),qi([r(".ft-button")],Xi.prototype,"button",void 0),qi([r(".ft-button--label slot")],Xi.prototype,"slottedContent",void 0),p("ft-button")(Xi);class Yi extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Gi={headerBackground:bt.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:bt.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:bt.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:bt.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:bt.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:bt.external(yt.colorOnSurfaceHigh,"Design system"),titleFont:bt.external(yt.titleFont,"Design system"),contentFont:bt.external(yt.contentFont,"Design system")},Qi=x`
1201
+ `:t}resolveIcon(){return this.loading?X`
1202
+ <ft-loader></ft-loader> `:this.icon?X`
1203
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:G}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}}io.elementDefinitions={"ft-ripple":gi,"ft-tooltip":Zi,"ft-typography":ei,"ft-icon":Oi,"ft-loader":Ji},io.styles=to,eo([o({type:Boolean})],io.prototype,"primary",void 0),eo([o({type:Boolean})],io.prototype,"outlined",void 0),eo([o({type:Boolean})],io.prototype,"disabled",void 0),eo([o({type:Boolean})],io.prototype,"dense",void 0),eo([o({type:Boolean})],io.prototype,"round",void 0),eo([o({type:String})],io.prototype,"label",void 0),eo([o({type:String})],io.prototype,"icon",void 0),eo([o({type:String})],io.prototype,"iconVariant",void 0),eo([o({type:Boolean})],io.prototype,"trailingIcon",void 0),eo([o({type:Boolean})],io.prototype,"loading",void 0),eo([o({type:String})],io.prototype,"tooltipPosition",void 0),eo([o({type:Boolean})],io.prototype,"hideTooltip",void 0),eo([o({type:Boolean})],io.prototype,"forceTooltip",void 0),eo([r(".ft-button")],io.prototype,"button",void 0),eo([r(".ft-button--label slot")],io.prototype,"slottedContent",void 0),d("ft-button")(io);class oo extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const so={headerBackground:gt.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:gt.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:gt.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:gt.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),stickyHeaderZIndex:gt.create("--ft-filterable-table-sticky-header-zindex","NUMBER","100"),colorOnSurfaceHigh:gt.external(mt.colorOnSurfaceHigh,"Design system"),titleFont:gt.external(mt.titleFont,"Design system"),contentFont:gt.external(mt.contentFont,"Design system")},no=y`
1137
1204
  :host {
1138
1205
  display: block;
1139
1206
  }
@@ -1149,15 +1216,15 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1149
1216
  .header-cell {
1150
1217
  display: flex;
1151
1218
  flex-direction: column;
1152
- background: ${Gi.headerBackground};
1153
- color: ${Gi.colorOnSurfaceHigh};
1219
+ background: ${so.headerBackground};
1220
+ color: ${so.colorOnSurfaceHigh};
1154
1221
  padding: .5rem 1rem;
1155
- font-family: ${Gi.titleFont};
1222
+ font-family: ${so.titleFont};
1156
1223
  }
1157
1224
 
1158
1225
  .header-cell--sticky {
1159
1226
  top: 0;
1160
- z-index: ${Gi.stickyHeaderZIndex};
1227
+ z-index: ${so.stickyHeaderZIndex};
1161
1228
  position: sticky;
1162
1229
  }
1163
1230
 
@@ -1175,8 +1242,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1175
1242
  }
1176
1243
 
1177
1244
  .column-title-container ft-button {
1178
- ${xt(Wi.backgroundColor,Gi.headerBackground)};
1179
- ${xt(Wi.color,Gi.colorOnSurfaceHigh)};
1245
+ ${yt(Xi.backgroundColor,so.headerBackground)};
1246
+ ${yt(Xi.color,so.colorOnSurfaceHigh)};
1180
1247
  }
1181
1248
 
1182
1249
  .column-title {
@@ -1205,29 +1272,29 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1205
1272
 
1206
1273
  .cell {
1207
1274
  padding: 1rem;
1208
- border-left: 1px solid ${Gi.headerBackground};
1209
- border-bottom: 1px solid ${Gi.headerBackground};
1275
+ border-left: 1px solid ${so.headerBackground};
1276
+ border-bottom: 1px solid ${so.headerBackground};
1210
1277
  overflow-x: auto;
1211
1278
  display: flex;
1212
1279
  align-items: center;
1213
- font-family: ${Gi.contentFont};
1280
+ font-family: ${so.contentFont};
1214
1281
  }
1215
1282
 
1216
1283
  /* Even is 2n+1 and odd is 2n because of the header */
1217
1284
  .row:nth-child(2n) > .cell {
1218
- background: ${Gi.oddRowBackground};
1285
+ background: ${so.oddRowBackground};
1219
1286
  }
1220
1287
 
1221
1288
  .row:nth-child(2n + 1) > .cell {
1222
- background: ${Gi.evenRowBackground};
1289
+ background: ${so.evenRowBackground};
1223
1290
  }
1224
1291
 
1225
1292
  .row:hover > .cell {
1226
- background: ${Gi.rowHoverBackground};
1293
+ background: ${so.rowHoverBackground};
1227
1294
  }
1228
1295
 
1229
1296
  .cell:last-of-type {
1230
- border-right: 1px solid ${Gi.headerBackground};
1297
+ border-right: 1px solid ${so.headerBackground};
1231
1298
  }
1232
1299
 
1233
1300
  .row:last-of-type .cell:first-of-type {
@@ -1241,7 +1308,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1241
1308
  .hidden {
1242
1309
  visibility: hidden;
1243
1310
  }
1244
- `;var to=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const eo=t=>J`${t}`,io=(t,e)=>t-e;class oo extends mt{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return J`
1311
+ `;var ro=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const lo=t=>X`${t}`,ao=(t,e)=>t-e;class po extends wt{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return X`
1245
1312
  <style>
1246
1313
  .table {
1247
1314
  grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
@@ -1249,47 +1316,47 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
1249
1316
  </style>
1250
1317
  <div class="table">
1251
1318
  <div class="header">
1252
- ${At(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
1319
+ ${It(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
1253
1320
  </div>
1254
- ${At(t,((t,e)=>"row-"+e),((t,e)=>J`
1321
+ ${It(t,((t,e)=>"row-"+e),((t,e)=>X`
1255
1322
  <div class="row"
1256
- @click=${()=>this.dispatchEvent(new Yi(t))}>
1257
- ${At(this.columns,((t,i)=>"cell-"+e+" "+i),(i=>this.renderCell(i,t,e)))}
1323
+ @click=${()=>this.dispatchEvent(new oo(t))}>
1324
+ ${It(this.columns,((t,i)=>"cell-"+e+" "+i),(i=>this.renderCell(i,t,e)))}
1258
1325
  </div>
1259
1326
  `))}
1260
1327
  </div>
1261
- `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:io,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){const i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return J`
1262
- <div class="${It(i)}">
1328
+ `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const s=this.columns[i];if(e)switch(null!==(o=s.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(s,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(s,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:ao,s="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>s(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){const i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return X`
1329
+ <div class="${_t(i)}">
1263
1330
  <div class="column-title-container">
1264
1331
  <span class="column-title">${t.title}</span>
1265
1332
  ${this.renderColumnSort(t,e)}
1266
1333
  </div>
1267
- ${t.filter?J`
1334
+ ${t.filter?X`
1268
1335
  <div class="column-filter">
1269
1336
  ${this.renderColumnFilter(t,e)}
1270
1337
  </div>`:null}
1271
1338
  </div>
1272
- `}renderColumnSort(t,e){var i;const o=this.currentSort&&this.currentSort.column===e,n=o?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return J`
1339
+ `}renderColumnSort(t,e){var i;const o=this.currentSort&&this.currentSort.column===e,s=o?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return X`
1273
1340
  <ft-button
1274
1341
  round
1275
1342
  dense
1276
1343
  class="${null===(i=t.sortable)||void 0===i||i?"":"hidden"}"
1277
- icon="${n}"
1344
+ icon="${s}"
1278
1345
  label="Sort ${t.title}"
1279
1346
  @click=${()=>{var t;o?"asc"===(null===(t=this.currentSort)||void 0===t?void 0:t.order)?this.currentSort={column:e,order:"desc"}:this.currentSort=void 0:this.currentSort={column:e,order:"asc"}}}
1280
1347
  ></ft-button>
1281
- `}renderColumnFilter(t,e){var i,o;const n=t=>{this.filters[e]={value:t.detail},this.requestUpdate()};switch(null!==(i=t.filter)&&void 0!==i?i:"text"){case"text":return J`
1348
+ `}renderColumnFilter(t,e){var i,o;const s=t=>{this.filters[e]={value:t.detail},this.requestUpdate()};switch(null!==(i=t.filter)&&void 0!==i?i:"text"){case"text":return X`
1282
1349
  <ft-text-field
1283
1350
  label="Search ${t.title}"
1284
- @live-change="${n}"
1351
+ @live-change="${s}"
1285
1352
  ></ft-text-field>
1286
- `;case"select":const i=null!==(o=this.selectData[e])&&void 0!==o?o:[];return i.length?J`
1287
- <ft-select label="Filter ${t.title}" @change=${n}>
1353
+ `;case"select":const i=null!==(o=this.selectData[e])&&void 0!==o?o:[];return i.length?X`
1354
+ <ft-select label="Filter ${t.title}" @change=${s}>
1288
1355
  <ft-select-option></ft-select-option>
1289
- ${i.map((t=>J`
1356
+ ${i.map((t=>X`
1290
1357
  <ft-select-option value="${t}" label="${t}"></ft-select-option>
1291
1358
  `))}
1292
1359
  </ft-select>
1293
- `:null}return null}renderCell(t,e,i){var o;const n=null!==(o=t.render)&&void 0!==o?o:eo;return J`
1294
- <div class="cell">${(t=>{const e=n(t,i);return"string"==typeof e?Tt(e):e})(this.getValue(t,e))}</div>
1295
- `}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}oo.styles=Qi,to([o({attribute:!1})],oo.prototype,"data",void 0),to([o({attribute:!1})],oo.prototype,"columns",void 0),to([o({attribute:!1})],oo.prototype,"sort",void 0),to([o()],oo.prototype,"stickyHeaders",void 0),to([n()],oo.prototype,"currentSort",void 0),p("ft-filterable-table")(oo),t.FtFilterableTable=oo,t.FtFilterableTableCssVariables=Gi,t.RowClickEvent=Yi,t.styles=Qi,Object.defineProperty(t,"i",{value:!0})}({});
1360
+ `:null}return null}renderCell(t,e,i){var o;const s=null!==(o=t.render)&&void 0!==o?o:lo;return X`
1361
+ <div class="cell">${(t=>{const e=s(t,i);return"string"==typeof e?Pt(e):e})(this.getValue(t,e))}</div>
1362
+ `}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}po.styles=no,ro([o({attribute:!1})],po.prototype,"data",void 0),ro([o({attribute:!1})],po.prototype,"columns",void 0),ro([o({attribute:!1})],po.prototype,"sort",void 0),ro([o()],po.prototype,"stickyHeaders",void 0),ro([s()],po.prototype,"currentSort",void 0),d("ft-filterable-table")(po),t.FtFilterableTable=po,t.FtFilterableTableCssVariables=so,t.RowClickEvent=oo,t.styles=no,Object.defineProperty(t,"i",{value:!0})}({});