@fluid-topics/ft-floating-menu 1.0.52 → 1.0.54

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,12 +14,12 @@
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,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,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 a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=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 h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,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(){const t=n.get(this);t?.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)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const y=(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(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(ji){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,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,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,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 a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,h,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const i=this._definitionsByTag.get(t);return i?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){const t=n.get(this);t?.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,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.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(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=x.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let v=[document];const b=(t,i,e=void 0)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){v.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),v.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const y=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){v.push(this),e.set.call(this,t),v.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,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));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 i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=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,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(je){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{if(null!==e)try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)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}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
22
+ */const e=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};function o(t){return(i,o)=>void 0!==o?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,i,o):e(t,i)
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
@@ -29,39 +29,39 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
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 s=({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o){const o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,s=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(s.finisher=function(i){t(i,o)}),s}{const n=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(o)),null==t||t(n,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,i){return s({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
38
38
  /**
39
39
  * @license
40
40
  * Copyright 2021 Google LLC
41
41
  * SPDX-License-Identifier: BSD-3-Clause
42
- */var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(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(!h(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(!h(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(!h(t[s],e[s]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const c=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function p(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}
42
+ */var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(t,i){try{return function(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var e,o,n;if(Array.isArray(t)){if((e=t.length)!=i.length)return!1;for(o=e;0!=o--;)if(!h(t[o],i[o]))return!1;return!0}if(t instanceof Map&&i instanceof Map){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;for(o of t.entries())if(!h(o[1],i.get(o[0])))return!1;return!0}if(t instanceof Set&&i instanceof Set){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if((e=(n=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(o=e;0!=o--;)if(!Object.prototype.hasOwnProperty.call(i,n[o]))return!1;for(o=e;0!=o--;){var s=n[o];if(!h(t[s],i[s]))return!1}return!0}return t!=t&&i!=i}(t,i)}catch(t){return!1}}const c=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};function p(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,i)=>!h(t,i),...null!=i?i:{}})}
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const f=window,d=f.ShadowRoot&&(void 0===f.ShadyCSS||f.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),v=new WeakMap;let x=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=v.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&v.set(e,t))}return t}toString(){return this.cssText}};const b=t=>new x("string"==typeof t?t:t+"",void 0,u),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 x(i,t,u)},g=(t,e)=>{d?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=f.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},m=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return b(e)})(t):t
47
+ */const f=window,d=f.ShadowRoot&&(void 0===f.ShadyCSS||f.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),x=new WeakMap;let v=class{constructor(t,i,e){if(this._$cssResult$=!0,e!==u)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(d&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=x.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&x.set(i,t))}return t}toString(){return this.cssText}};const b=t=>new v("string"==typeof t?t:t+"",void 0,u),y=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(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.")})(e)+t[o+1]),t[0]);return new v(e,t,u)},g=(t,i)=>{d?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=f.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},m=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return b(i)})(t):t
48
48
  /**
49
49
  * @license
50
50
  * Copyright 2017 Google LLC
51
51
  * SPDX-License-Identifier: BSD-3-Clause
52
- */;var w;const $=window,O=$.trustedTypes,k=O?O.emptyScript:"",S=$.reactiveElementPolyfillSupport,C={toAttribute(t,e){switch(e){case Boolean:t=t?k: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),E={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:N};let M=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=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(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(m(t))}else void 0!==t&&e.push(m(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 g(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:C).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:C;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||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){}};
52
+ */;var w;const $=window,O=$.trustedTypes,k=O?O.emptyScript:"",S=$.reactiveElementPolyfillSupport,C={toAttribute(t,i){switch(i){case Boolean:t=t?k:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},N=(t,i)=>i!==t&&(i==i||t==t),E={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:N};let M=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=E){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},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(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(m(t))}else void 0!==t&&i.push(m(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"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 i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return g(i,this.constructor.elementStyles),i}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 i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=E){var o;const n=this.constructor._$Ep(t,e);if(void 0!==n&&!0===e.reflect){const s=(void 0!==(null===(o=e.converter)||void 0===o?void 0:o.toAttribute)?e.converter:C).toAttribute(i,e.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,i){var e;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===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:C;this._$El=n,this[n]=s.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||N)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):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,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.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,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
53
53
  /**
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
57
  */
58
- var R;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:M}),(null!==(w=$.reactiveElementVersions)&&void 0!==w?w:$.reactiveElementVersions=[]).push("1.6.1");const U=window,j=U.trustedTypes,z=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,A="?"+B,T=`<${A}>`,L=document,P=()=>L.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,D="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,K=/>/g,Z=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \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=L.createTreeWalker(L,129,null,!1),et=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=W;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===W?"!--"===l[1]?r=H:void 0!==l[1]?r=K:void 0!==l[2]?(q.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=Z):void 0!==l[3]&&(r=Z):r===Z?">"===l[0]?(r=null!=n?n:W,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Z:'"'===l[3]?J:V):r===J||r===V?r=Z:r===H||r===K?r=W:(r=Z,n=void 0);const p=r===Z&&t[e+1].startsWith("/>")?" ":"";s+=r===W?i+T:h>=0?(o.push(a),i.slice(0,h)+F+i.slice(h)+B+p):i+B+(-2===h?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=et(t,e);if(this.el=it.createElement(l,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())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(F)||e.startsWith(B)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+F).split(B),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?at:"?"===e[1]?ht:"@"===e[1]?ct:rt})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(B),e=t.length-1;if(e>0){o.textContent=j?j.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],P()),tt.nextNode(),a.push({type:2,index:++n});o.append(t[e],P())}}}else if(8===o.nodeType)if(o.data===A)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(B,t+1));)a.push({type:7,index:n}),t+=B.length-1}n++}}static createElement(t,e){const i=L.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,o){var n,s,r,a;if(e===Y)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=I(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=ot(t,l._$AS(t,e.values),l,o)),e}class nt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:L).importNode(i,!0);tt.currentNode=n;let s=tt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new st(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new pt(s,this,t)),this._$AV.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=tt.nextNode(),r++)}return n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{constructor(t,e,i,o){var n;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),I(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==Y&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="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)===n)this._$AH.v(i);else{const t=new nt(n,this),e=t.u(this.options);t.v(i),this.$(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}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 st(this.k(P()),this.k(P()),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class rt{constructor(t,e,i,o,n){this.type=1,this._$AH=G,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=G}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=ot(this,t,e,0),s=!I(t)||t!==this._$AH&&t!==Y,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=ot(this,o[i+r],e,r),a===Y&&(a=this._$AH[r]),s||(s=!I(a)||a!==this._$AH[r]),a===G?t=G:t!==G&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class at extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const lt=j?j.emptyScript:"";class ht extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,lt):this.element.removeAttribute(this.name)}}class ct extends rt{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=ot(this,t,e,0))&&void 0!==i?i:G)===Y)return;const o=this._$AH,n=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==G&&(o===G||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){ot(this,t)}}const ft=U.litHtmlPolyfillSupport;null==ft||ft(it,st),(null!==(R=U.litHtmlVersions)&&void 0!==R?R:U.litHtmlVersions=[]).push("2.7.3");
58
+ var R;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:M}),(null!==(w=$.reactiveElementVersions)&&void 0!==w?w:$.reactiveElementVersions=[]).push("1.6.1");const U=window,j=U.trustedTypes,z=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,A="?"+B,T=`<${A}>`,P=document,L=()=>P.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,D="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,K=/>/g,Z=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),Y=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Q=new WeakMap,tt=P.createTreeWalker(P,129,null,!1),it=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=W;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(r.lastIndex=c,l=r.exec(e),null!==l);)c=r.lastIndex,r===W?"!--"===l[1]?r=H:void 0!==l[1]?r=K:void 0!==l[2]?(q.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=Z):void 0!==l[3]&&(r=Z):r===Z?">"===l[0]?(r=null!=n?n:W,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Z:'"'===l[3]?J:V):r===J||r===V?r=Z:r===H||r===K?r=W:(r=Z,n=void 0);const p=r===Z&&t[i+1].startsWith("/>")?" ":"";s+=r===W?e+T:h>=0?(o.push(a),e.slice(0,h)+F+e.slice(h)+B+p):e+B+(-2===h?(o.push(void 0),i):p)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(a):a,o]};class et{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=it(t,i);if(this.el=et.createElement(l,e),tt.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=tt.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(F)||i.startsWith(B)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+F).split(B),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?at:"?"===i[1]?ht:"@"===i[1]?ct:rt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(q.test(o.tagName)){const t=o.textContent.split(B),i=t.length-1;if(i>0){o.textContent=j?j.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],L()),tt.nextNode(),a.push({type:2,index:++n});o.append(t[i],L())}}}else if(8===o.nodeType)if(o.data===A)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(B,t+1));)a.push({type:7,index:n}),t+=B.length-1}n++}}static createElement(t,i){const e=P.createElement("template");return e.innerHTML=t,e}}function ot(t,i,e=t,o){var n,s,r,a;if(i===Y)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=I(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=ot(t,l._$AS(t,i.values),l,o)),i}class nt{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:P).importNode(e,!0);tt.currentNode=n;let s=tt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new st(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new pt(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=tt.nextNode(),r++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class st{constructor(t,i,e,o){var n;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=ot(this,t,i),I(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==Y&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new nt(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=Q.get(t.strings);return void 0===i&&Q.set(t.strings,i=new et(t)),i}T(t){_(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new st(this.k(L()),this.k(L()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class rt{constructor(t,i,e,o,n){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=ot(this,t,i,0),s=!I(t)||t!==this._$AH&&t!==Y,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=ot(this,o[e+r],i,r),a===Y&&(a=this._$AH[r]),s||(s=!I(a)||a!==this._$AH[r]),a===G?t=G:t!==G&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class at extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const lt=j?j.emptyScript:"";class ht extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,lt):this.element.removeAttribute(this.name)}}class ct extends rt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=ot(this,t,i,0))&&void 0!==e?e:G)===Y)return;const o=this._$AH,n=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==G&&(o===G||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class pt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){ot(this,t)}}const ft=U.litHtmlPolyfillSupport;null==ft||ft(et,st),(null!==(R=U.litHtmlVersions)&&void 0!==R?R:U.litHtmlVersions=[]).push("2.7.3");
59
59
  /**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
63
  */
64
- var dt,ut;let vt=class extends M{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 st(e.insertBefore(P(),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}};vt.finalized=!0,vt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:vt});const xt=globalThis.litElementPolyfillSupport;null==xt||xt({LitElement:vt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,e,i){let o=t=>b(null!=t?t:i),n=y`var(${b(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`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=y`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=>y`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=y`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=>y`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 yt(t,e){return b(`${t.name}: ${e}`)}const gt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends vt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return g(i,t.elementStyles),i}}var wt,$t=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 Ot=Symbol("constructorPrototype"),kt=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class Ct extends mt{constructor(){super(),this[wt]=new e(5),this[kt]=this.constructor.name,this[Ot]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[kt]&&Object.setPrototypeOf(this,this[Ot])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[St].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(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(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}wt=St,$t([o()],Ct.prototype,"exportpartsPrefix",void 0),$t([p([])],Ct.prototype,"exportpartsPrefixes",void 0),$t([o()],Ct.prototype,"customStylesheet",void 0);const Nt=y`
64
+ var dt,ut;let xt=class extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,n;const s=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new st(i.insertBefore(L(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,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===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:xt});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:xt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,i,e){let o=t=>b(null!=t?t:e),n=y`var(${b(t)}, ${o(e)})`;return n.name=t,n.category=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>y`var(${b(t)}, ${o(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>e,n}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),n=y`var(${b(t)}, ${o(e)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>y`var(${b(t)}, ${o(i)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>e,n}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):b(null!=i?i:t.defaultValue),o=y`var(${b(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>y`var(${b(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function yt(t,i){return b(`${t.name}: ${i}`)}const gt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([i,e])=>t.registry.define(i,e))));const i={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(i);return g(e,t.elementStyles),e}}var wt,$t=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Ot=Symbol("constructorPrototype"),kt=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class Ct extends mt{constructor(){super(),this[wt]=new i(5),this[kt]=this.constructor.name,this[Ot]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[kt]&&Object.setPrototypeOf(this,this[Ot])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[St].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=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(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}wt=St,$t([o()],Ct.prototype,"exportpartsPrefix",void 0),$t([p([])],Ct.prototype,"exportpartsPrefixes",void 0),$t([o()],Ct.prototype,"customStylesheet",void 0);const Nt=y`
65
65
  .ft-no-text-select {
66
66
  -webkit-touch-callout: none;
67
67
  -webkit-user-select: none;
@@ -129,12 +129,12 @@ var dt,ut;let vt=class extends M{constructor(){super(...arguments),this.renderOp
129
129
  * @license
130
130
  * Copyright 2017 Google LLC
131
131
  * SPDX-License-Identifier: BSD-3-Clause
132
- */,Bt=1,At=2,Tt=t=>(...e)=>({_$litDirective$:t,values:e});class Lt{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)}}
132
+ */,Bt=1,At=2,Tt=t=>(...i)=>({_$litDirective$:t,values:i});class Pt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
133
133
  /**
134
134
  * @license
135
135
  * Copyright 2018 Google LLC
136
136
  * SPDX-License-Identifier: BSD-3-Clause
137
- */const Pt=Tt(class extends Lt{constructor(t){var e;if(super(t),t.type!==Bt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return Y}}),It=bt.extend("--ft-ripple-color",gt.colorContent),_t={color:It,backgroundColor:bt.extend("--ft-ripple-background-color",It),opacityContentOnSurfacePressed:bt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(gt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Dt=bt.extend("--ft-ripple-color",gt.colorPrimary),Wt=Dt,Ht=bt.extend("--ft-ripple-background-color",Dt),Kt=bt.extend("--ft-ripple-color",gt.colorSecondary),Zt=Kt,Vt=bt.extend("--ft-ripple-background-color",Kt),Jt=y`
137
+ */const Lt=Tt(class extends Pt{constructor(t){var i;if(super(t),t.type!==Bt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return Y}}),It=bt.extend("--ft-ripple-color",gt.colorContent),_t={color:It,backgroundColor:bt.extend("--ft-ripple-background-color",It),opacityContentOnSurfacePressed:bt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(gt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Dt=bt.extend("--ft-ripple-color",gt.colorPrimary),Wt=Dt,Ht=bt.extend("--ft-ripple-background-color",Dt),Kt=bt.extend("--ft-ripple-color",gt.colorSecondary),Zt=Kt,Vt=bt.extend("--ft-ripple-background-color",Kt),Jt=y`
138
138
  :host {
139
139
  display: contents;
140
140
  }
@@ -224,7 +224,7 @@ var dt,ut;let vt=class extends M{constructor(){super(...arguments),this.renderOp
224
224
  opacity: ${_t.opacityContentOnSurfacePressed};
225
225
  transform: translate(-50%, -50%) scale(1);
226
226
  }
227
- `;var qt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 Xt extends Ct{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y: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.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return X`
227
+ `;var qt=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Xt extends Ct{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 i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{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.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return X`
228
228
  <style>
229
229
  .ft-ripple .ft-ripple--effect,
230
230
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -237,119 +237,119 @@ var dt,ut;let vt=class extends M{constructor(){super(...arguments),this.renderOp
237
237
  top: ${this.originY}px;
238
238
  }
239
239
  </style>
240
- <div class="${Pt(t)}">
240
+ <div class="${Lt(t)}">
241
241
  <div class="ft-ripple--background"></div>
242
242
  <div class="ft-ripple--effect"></div>
243
243
  </div>
244
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),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,this.target=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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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()}}Xt.elementDefinitions={},Xt.styles=Jt,qt([o({type:Boolean})],Xt.prototype,"primary",void 0),qt([o({type:Boolean})],Xt.prototype,"secondary",void 0),qt([o({type:Boolean})],Xt.prototype,"unbounded",void 0),qt([o({type:Boolean})],Xt.prototype,"activated",void 0),qt([o({type:Boolean})],Xt.prototype,"selected",void 0),qt([o({type:Boolean})],Xt.prototype,"disabled",void 0),qt([n()],Xt.prototype,"hovered",void 0),qt([n()],Xt.prototype,"focused",void 0),qt([n()],Xt.prototype,"pressed",void 0),qt([n()],Xt.prototype,"rippling",void 0),qt([n()],Xt.prototype,"rippleSize",void 0),qt([n()],Xt.prototype,"originX",void 0),qt([n()],Xt.prototype,"originY",void 0),qt([r(".ft-ripple")],Xt.prototype,"ripple",void 0),qt([r(".ft-ripple--effect")],Xt.prototype,"rippleEffect",void 0),c("ft-ripple")(Xt);
244
+ `}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 i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),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",e),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,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Xt.elementDefinitions={},Xt.styles=Jt,qt([o({type:Boolean})],Xt.prototype,"primary",void 0),qt([o({type:Boolean})],Xt.prototype,"secondary",void 0),qt([o({type:Boolean})],Xt.prototype,"unbounded",void 0),qt([o({type:Boolean})],Xt.prototype,"activated",void 0),qt([o({type:Boolean})],Xt.prototype,"selected",void 0),qt([o({type:Boolean})],Xt.prototype,"disabled",void 0),qt([n()],Xt.prototype,"hovered",void 0),qt([n()],Xt.prototype,"focused",void 0),qt([n()],Xt.prototype,"pressed",void 0),qt([n()],Xt.prototype,"rippling",void 0),qt([n()],Xt.prototype,"rippleSize",void 0),qt([n()],Xt.prototype,"originX",void 0),qt([n()],Xt.prototype,"originY",void 0),qt([r(".ft-ripple")],Xt.prototype,"ripple",void 0),qt([r(".ft-ripple--effect")],Xt.prototype,"rippleEffect",void 0),c("ft-ripple")(Xt);
245
245
  /**
246
246
  * @license
247
247
  * Copyright 2020 Google LLC
248
248
  * SPDX-License-Identifier: BSD-3-Clause
249
249
  */
250
- const Yt=Symbol.for(""),Gt=t=>{if((null==t?void 0:t.r)===Yt)return null==t?void 0:t._$litStatic$},Qt=t=>({_$litStatic$:t,r:Yt}),te=new Map,ee=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(s=i[h],n=Gt(s));)l+=n+e[++h],c=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=te.get(t))&&(r.raw=r,te.set(t,e=r)),i=a}return t(e,...i)})(X);var ie;!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"}(ie||(ie={}));const oe=bt.extend("--ft-typography-font-family",gt.titleFont),ne=bt.extend("--ft-typography-font-family",gt.contentFont),se={fontFamily:ne,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")},re=bt.extend("--ft-typography-title-font-family",oe),ae=bt.extend("--ft-typography-title-font-size",se.fontSize,"20px"),le=bt.extend("--ft-typography-title-font-weight",se.fontWeight,"normal"),he=bt.extend("--ft-typography-title-letter-spacing",se.letterSpacing,"0.15px"),ce=bt.extend("--ft-typography-title-line-height",se.lineHeight,"1.2"),pe=bt.extend("--ft-typography-title-text-transform",se.textTransform,"inherit"),fe=bt.extend("--ft-typography-title-dense-font-family",oe),de=bt.extend("--ft-typography-title-dense-font-size",se.fontSize,"14px"),ue=bt.extend("--ft-typography-title-dense-font-weight",se.fontWeight,"normal"),ve=bt.extend("--ft-typography-title-dense-letter-spacing",se.letterSpacing,"0.105px"),xe=bt.extend("--ft-typography-title-dense-line-height",se.lineHeight,"1.7"),be=bt.extend("--ft-typography-title-dense-text-transform",se.textTransform,"inherit"),ye=bt.extend("--ft-typography-subtitle1-font-family",ne),ge=bt.extend("--ft-typography-subtitle1-font-size",se.fontSize,"16px"),me=bt.extend("--ft-typography-subtitle1-font-weight",se.fontWeight,"600"),we=bt.extend("--ft-typography-subtitle1-letter-spacing",se.letterSpacing,"0.144px"),$e=bt.extend("--ft-typography-subtitle1-line-height",se.lineHeight,"1.5"),Oe=bt.extend("--ft-typography-subtitle1-text-transform",se.textTransform,"inherit"),ke=bt.extend("--ft-typography-subtitle2-font-family",ne),Se=bt.extend("--ft-typography-subtitle2-font-size",se.fontSize,"14px"),Ce=bt.extend("--ft-typography-subtitle2-font-weight",se.fontWeight,"normal"),Ne=bt.extend("--ft-typography-subtitle2-letter-spacing",se.letterSpacing,"0.098px"),Ee=bt.extend("--ft-typography-subtitle2-line-height",se.lineHeight,"1.7"),Me=bt.extend("--ft-typography-subtitle2-text-transform",se.textTransform,"inherit"),Re=bt.extend("--ft-typography-body1-font-family",ne),Ue=bt.extend("--ft-typography-body1-font-size",se.fontSize,"16px"),je=bt.extend("--ft-typography-body1-font-weight",se.fontWeight,"normal"),ze=bt.extend("--ft-typography-body1-letter-spacing",se.letterSpacing,"0.496px"),Fe=bt.extend("--ft-typography-body1-line-height",se.lineHeight,"1.5"),Be=bt.extend("--ft-typography-body1-text-transform",se.textTransform,"inherit"),Ae=bt.extend("--ft-typography-body2-font-family",ne),Te=bt.extend("--ft-typography-body2-font-size",se.fontSize,"14px"),Le=bt.extend("--ft-typography-body2-font-weight",se.fontWeight,"normal"),Pe=bt.extend("--ft-typography-body2-letter-spacing",se.letterSpacing,"0.252px"),Ie=bt.extend("--ft-typography-body2-line-height",se.lineHeight,"1.4"),_e=bt.extend("--ft-typography-body2-text-transform",se.textTransform,"inherit"),De=bt.extend("--ft-typography-caption-font-family",ne),We=bt.extend("--ft-typography-caption-font-size",se.fontSize,"12px"),He=bt.extend("--ft-typography-caption-font-weight",se.fontWeight,"normal"),Ke=bt.extend("--ft-typography-caption-letter-spacing",se.letterSpacing,"0.396px"),Ze=bt.extend("--ft-typography-caption-line-height",se.lineHeight,"1.33"),Ve=bt.extend("--ft-typography-caption-text-transform",se.textTransform,"inherit"),Je=bt.extend("--ft-typography-breadcrumb-font-family",ne),qe=bt.extend("--ft-typography-breadcrumb-font-size",se.fontSize,"10px"),Xe=bt.extend("--ft-typography-breadcrumb-font-weight",se.fontWeight,"normal"),Ye=bt.extend("--ft-typography-breadcrumb-letter-spacing",se.letterSpacing,"0.33px"),Ge=bt.extend("--ft-typography-breadcrumb-line-height",se.lineHeight,"1.6"),Qe=bt.extend("--ft-typography-breadcrumb-text-transform",se.textTransform,"inherit"),ti=bt.extend("--ft-typography-overline-font-family",ne),ei=bt.extend("--ft-typography-overline-font-size",se.fontSize,"10px"),ii=bt.extend("--ft-typography-overline-font-weight",se.fontWeight,"normal"),oi=bt.extend("--ft-typography-overline-letter-spacing",se.letterSpacing,"1.5px"),ni=bt.extend("--ft-typography-overline-line-height",se.lineHeight,"1.6"),si=bt.extend("--ft-typography-overline-text-transform",se.textTransform,"uppercase"),ri={fontFamily:bt.extend("--ft-typography-button-font-family",ne),fontSize:bt.extend("--ft-typography-button-font-size",se.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",se.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",se.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",se.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",se.textTransform,"uppercase")},ai=y`
250
+ const Yt=Symbol.for(""),Gt=t=>{if((null==t?void 0:t.r)===Yt)return null==t?void 0:t._$litStatic$},Qt=t=>({_$litStatic$:t,r:Yt}),ti=new Map,ii=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=Gt(s));)l+=n+i[++h],c=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=ti.get(t))&&(r.raw=r,ti.set(t,i=r)),e=a}return t(i,...e)})(X);var ei;!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"}(ei||(ei={}));const oi=bt.extend("--ft-typography-font-family",gt.titleFont),ni=bt.extend("--ft-typography-font-family",gt.contentFont),si={fontFamily:ni,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")},ri=bt.extend("--ft-typography-title-font-family",oi),ai=bt.extend("--ft-typography-title-font-size",si.fontSize,"20px"),li=bt.extend("--ft-typography-title-font-weight",si.fontWeight,"normal"),hi=bt.extend("--ft-typography-title-letter-spacing",si.letterSpacing,"0.15px"),ci=bt.extend("--ft-typography-title-line-height",si.lineHeight,"1.2"),pi=bt.extend("--ft-typography-title-text-transform",si.textTransform,"inherit"),fi=bt.extend("--ft-typography-title-dense-font-family",oi),di=bt.extend("--ft-typography-title-dense-font-size",si.fontSize,"14px"),ui=bt.extend("--ft-typography-title-dense-font-weight",si.fontWeight,"normal"),xi=bt.extend("--ft-typography-title-dense-letter-spacing",si.letterSpacing,"0.105px"),vi=bt.extend("--ft-typography-title-dense-line-height",si.lineHeight,"1.7"),bi=bt.extend("--ft-typography-title-dense-text-transform",si.textTransform,"inherit"),yi=bt.extend("--ft-typography-subtitle1-font-family",ni),gi=bt.extend("--ft-typography-subtitle1-font-size",si.fontSize,"16px"),mi=bt.extend("--ft-typography-subtitle1-font-weight",si.fontWeight,"600"),wi=bt.extend("--ft-typography-subtitle1-letter-spacing",si.letterSpacing,"0.144px"),$i=bt.extend("--ft-typography-subtitle1-line-height",si.lineHeight,"1.5"),Oi=bt.extend("--ft-typography-subtitle1-text-transform",si.textTransform,"inherit"),ki=bt.extend("--ft-typography-subtitle2-font-family",ni),Si=bt.extend("--ft-typography-subtitle2-font-size",si.fontSize,"14px"),Ci=bt.extend("--ft-typography-subtitle2-font-weight",si.fontWeight,"normal"),Ni=bt.extend("--ft-typography-subtitle2-letter-spacing",si.letterSpacing,"0.098px"),Ei=bt.extend("--ft-typography-subtitle2-line-height",si.lineHeight,"1.7"),Mi=bt.extend("--ft-typography-subtitle2-text-transform",si.textTransform,"inherit"),Ri=bt.extend("--ft-typography-body1-font-family",ni),Ui=bt.extend("--ft-typography-body1-font-size",si.fontSize,"16px"),ji=bt.extend("--ft-typography-body1-font-weight",si.fontWeight,"normal"),zi=bt.extend("--ft-typography-body1-letter-spacing",si.letterSpacing,"0.496px"),Fi=bt.extend("--ft-typography-body1-line-height",si.lineHeight,"1.5"),Bi=bt.extend("--ft-typography-body1-text-transform",si.textTransform,"inherit"),Ai=bt.extend("--ft-typography-body2-font-family",ni),Ti=bt.extend("--ft-typography-body2-font-size",si.fontSize,"14px"),Pi=bt.extend("--ft-typography-body2-font-weight",si.fontWeight,"normal"),Li=bt.extend("--ft-typography-body2-letter-spacing",si.letterSpacing,"0.252px"),Ii=bt.extend("--ft-typography-body2-line-height",si.lineHeight,"1.4"),_i=bt.extend("--ft-typography-body2-text-transform",si.textTransform,"inherit"),Di=bt.extend("--ft-typography-caption-font-family",ni),Wi=bt.extend("--ft-typography-caption-font-size",si.fontSize,"12px"),Hi=bt.extend("--ft-typography-caption-font-weight",si.fontWeight,"normal"),Ki=bt.extend("--ft-typography-caption-letter-spacing",si.letterSpacing,"0.396px"),Zi=bt.extend("--ft-typography-caption-line-height",si.lineHeight,"1.33"),Vi=bt.extend("--ft-typography-caption-text-transform",si.textTransform,"inherit"),Ji=bt.extend("--ft-typography-breadcrumb-font-family",ni),qi=bt.extend("--ft-typography-breadcrumb-font-size",si.fontSize,"10px"),Xi=bt.extend("--ft-typography-breadcrumb-font-weight",si.fontWeight,"normal"),Yi=bt.extend("--ft-typography-breadcrumb-letter-spacing",si.letterSpacing,"0.33px"),Gi=bt.extend("--ft-typography-breadcrumb-line-height",si.lineHeight,"1.6"),Qi=bt.extend("--ft-typography-breadcrumb-text-transform",si.textTransform,"inherit"),te=bt.extend("--ft-typography-overline-font-family",ni),ie=bt.extend("--ft-typography-overline-font-size",si.fontSize,"10px"),ee=bt.extend("--ft-typography-overline-font-weight",si.fontWeight,"normal"),oe=bt.extend("--ft-typography-overline-letter-spacing",si.letterSpacing,"1.5px"),ne=bt.extend("--ft-typography-overline-line-height",si.lineHeight,"1.6"),se=bt.extend("--ft-typography-overline-text-transform",si.textTransform,"uppercase"),re={fontFamily:bt.extend("--ft-typography-button-font-family",ni),fontSize:bt.extend("--ft-typography-button-font-size",si.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",si.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",si.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",si.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",si.textTransform,"uppercase")},ae=y`
251
251
  .ft-typography--title {
252
- font-family: ${re};
253
- font-size: ${ae};
254
- font-weight: ${le};
255
- letter-spacing: ${he};
256
- line-height: ${ce};
257
- text-transform: ${pe};
258
- }
259
- `,li=y`
252
+ font-family: ${ri};
253
+ font-size: ${ai};
254
+ font-weight: ${li};
255
+ letter-spacing: ${hi};
256
+ line-height: ${ci};
257
+ text-transform: ${pi};
258
+ }
259
+ `,le=y`
260
260
  .ft-typography--title-dense {
261
- font-family: ${fe};
262
- font-size: ${de};
263
- font-weight: ${ue};
264
- letter-spacing: ${ve};
265
- line-height: ${xe};
266
- text-transform: ${be};
267
- }
268
- `,hi=y`
261
+ font-family: ${fi};
262
+ font-size: ${di};
263
+ font-weight: ${ui};
264
+ letter-spacing: ${xi};
265
+ line-height: ${vi};
266
+ text-transform: ${bi};
267
+ }
268
+ `,he=y`
269
269
  .ft-typography--subtitle1 {
270
- font-family: ${ye};
271
- font-size: ${ge};
272
- font-weight: ${me};
273
- letter-spacing: ${we};
274
- line-height: ${$e};
275
- text-transform: ${Oe};
276
- }
277
- `,ci=y`
270
+ font-family: ${yi};
271
+ font-size: ${gi};
272
+ font-weight: ${mi};
273
+ letter-spacing: ${wi};
274
+ line-height: ${$i};
275
+ text-transform: ${Oi};
276
+ }
277
+ `,ce=y`
278
278
  .ft-typography--subtitle2 {
279
- font-family: ${ke};
280
- font-size: ${Se};
281
- font-weight: ${Ce};
282
- letter-spacing: ${Ne};
283
- line-height: ${Ee};
284
- text-transform: ${Me};
279
+ font-family: ${ki};
280
+ font-size: ${Si};
281
+ font-weight: ${Ci};
282
+ letter-spacing: ${Ni};
283
+ line-height: ${Ei};
284
+ text-transform: ${Mi};
285
285
  }
286
286
 
287
- `,pi=y`
287
+ `,pe=y`
288
288
  .ft-typography--body1 {
289
- font-family: ${Re};
290
- font-size: ${Ue};
291
- font-weight: ${je};
292
- letter-spacing: ${ze};
293
- line-height: ${Fe};
294
- text-transform: ${Be};
295
- }
296
- `,fi=y`
289
+ font-family: ${Ri};
290
+ font-size: ${Ui};
291
+ font-weight: ${ji};
292
+ letter-spacing: ${zi};
293
+ line-height: ${Fi};
294
+ text-transform: ${Bi};
295
+ }
296
+ `,fe=y`
297
297
  .ft-typography--body2 {
298
- font-family: ${Ae};
299
- font-size: ${Te};
300
- font-weight: ${Le};
301
- letter-spacing: ${Pe};
302
- line-height: ${Ie};
303
- text-transform: ${_e};
304
- }
305
- `,di=y`
298
+ font-family: ${Ai};
299
+ font-size: ${Ti};
300
+ font-weight: ${Pi};
301
+ letter-spacing: ${Li};
302
+ line-height: ${Ii};
303
+ text-transform: ${_i};
304
+ }
305
+ `,de=y`
306
306
  .ft-typography--caption {
307
- font-family: ${De};
308
- font-size: ${We};
309
- font-weight: ${He};
310
- letter-spacing: ${Ke};
311
- line-height: ${Ze};
312
- text-transform: ${Ve};
313
- }
314
- `,ui=y`
307
+ font-family: ${Di};
308
+ font-size: ${Wi};
309
+ font-weight: ${Hi};
310
+ letter-spacing: ${Ki};
311
+ line-height: ${Zi};
312
+ text-transform: ${Vi};
313
+ }
314
+ `,ue=y`
315
315
  .ft-typography--breadcrumb {
316
- font-family: ${Je};
317
- font-size: ${qe};
318
- font-weight: ${Xe};
319
- letter-spacing: ${Ye};
320
- line-height: ${Ge};
321
- text-transform: ${Qe};
322
- }
323
- `,vi=y`
316
+ font-family: ${Ji};
317
+ font-size: ${qi};
318
+ font-weight: ${Xi};
319
+ letter-spacing: ${Yi};
320
+ line-height: ${Gi};
321
+ text-transform: ${Qi};
322
+ }
323
+ `,xe=y`
324
324
  .ft-typography--overline {
325
- font-family: ${ti};
326
- font-size: ${ei};
327
- font-weight: ${ii};
328
- letter-spacing: ${oi};
329
- line-height: ${ni};
330
- text-transform: ${si};
331
- }
332
- `,xi=y`
325
+ font-family: ${te};
326
+ font-size: ${ie};
327
+ font-weight: ${ee};
328
+ letter-spacing: ${oe};
329
+ line-height: ${ne};
330
+ text-transform: ${se};
331
+ }
332
+ `,ve=y`
333
333
  .ft-typography--button {
334
- font-family: ${ri.fontFamily};
335
- font-size: ${ri.fontSize};
336
- font-weight: ${ri.fontWeight};
337
- letter-spacing: ${ri.letterSpacing};
338
- line-height: ${ri.lineHeight};
339
- text-transform: ${ri.textTransform};
340
- }
341
- `,bi=y`
334
+ font-family: ${re.fontFamily};
335
+ font-size: ${re.fontSize};
336
+ font-weight: ${re.fontWeight};
337
+ letter-spacing: ${re.letterSpacing};
338
+ line-height: ${re.lineHeight};
339
+ text-transform: ${re.textTransform};
340
+ }
341
+ `,be=y`
342
342
  .ft-typography {
343
343
  vertical-align: inherit;
344
344
  }
345
- `;var yi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 gi extends Ct{constructor(){super(...arguments),this.variant=ie.body1}render(){return this.element?ee`
345
+ `;var ye=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ge extends Ct{constructor(){super(...arguments),this.variant=ei.body1}render(){return this.element?ii`
346
346
  <${Qt(this.element)}
347
347
  class="ft-typography ft-typography--${this.variant}">
348
348
  <slot></slot>
349
349
  </${Qt(this.element)}>
350
- `:ee`
350
+ `:ii`
351
351
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
352
- `}}gi.styles=[ai,li,hi,ci,pi,fi,di,ui,vi,xi,bi],yi([o()],gi.prototype,"element",void 0),yi([o()],gi.prototype,"variant",void 0),c("ft-typography")(gi);const mi=bt.create("--ft-tooltip-distance","SIZE","4px"),wi=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),$i=bt.create("--ft-tooltip-background-color","COLOR","#666666"),Oi=bt.create("--ft-tooltip-z-index","NUMBER","1"),ki=bt.external(gt.borderRadiusS,"Design system"),Si=bt.create("--ft-tooltip-max-width","SIZE","150px"),Ci=y`
352
+ `}}ge.styles=[ae,le,he,ce,pe,fe,de,ue,xe,ve,be],ye([o()],ge.prototype,"element",void 0),ye([o()],ge.prototype,"variant",void 0),c("ft-typography")(ge);const me=bt.create("--ft-tooltip-distance","SIZE","4px"),we=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),$e=bt.create("--ft-tooltip-background-color","COLOR","#666666"),Oe=bt.create("--ft-tooltip-z-index","NUMBER","100"),ke=bt.external(gt.borderRadiusS,"Design system"),Se=bt.create("--ft-tooltip-max-width","SIZE","150px"),Ce=y`
353
353
  .ft-tooltip--container {
354
354
  display: block;
355
355
  }
@@ -364,21 +364,21 @@ const Yt=Symbol.for(""),Gt=t=>{if((null==t?void 0:t.r)===Yt)return null==t?void
364
364
  box-sizing: border-box;
365
365
  overflow: hidden;
366
366
  width: max-content;
367
- max-width: ${Si};
367
+ max-width: ${Se};
368
368
  text-align: center;
369
- padding: ${mi};
370
- z-index: ${Oi};
369
+ padding: ${me};
370
+ z-index: ${Oe};
371
371
  }
372
372
 
373
373
  .ft-tooltip--content {
374
374
  padding: 4px 8px;
375
- border-radius: ${ki};
376
- background-color: ${$i};
377
- color: ${wi};
375
+ border-radius: ${ke};
376
+ background-color: ${$e};
377
+ color: ${we};
378
378
  position: relative;
379
379
  word-break: break-word;
380
380
  }
381
- `;var Ni=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 Ei extends Ct{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`
381
+ `;var Ne=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ee extends Ct{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 i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return X`
382
382
  <div part="container"
383
383
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
384
384
  @mouseenter=${this.onHover}
@@ -396,13 +396,13 @@ const Yt=Symbol.for(""),Gt=t=>{if((null==t?void 0:t.r)===Yt)return null==t?void
396
396
  </div>
397
397
  </div>
398
398
  </div>
399
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,n=(t.offsetWidth-e)/2;let s=0,r=0;switch(this.validPosition){case"top":r=t.offsetTop-i,s=t.offsetLeft+n;break;case"bottom":r=t.offsetTop+t.offsetHeight,s=t.offsetLeft+n;break;case"left":r=t.offsetTop+o,s=t.offsetLeft-e;break;case"right":r=t.offsetTop+o,s=t.offsetLeft+t.offsetWidth}const a=this.tooltip.style;a.left=this.limitValueBetween(s,0,window.innerWidth-e)+"px",a.top=this.limitValueBetween(r,0,window.innerHeight-i)+"px",a.maxWidth=`max(${t.offsetWidth}px, ${Si})`}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())}limitValueBetween(t,e,i){return Math.max(e,Math.min(t,i))}}Ei.elementDefinitions={"ft-typography":gi},Ei.styles=Ci,Ni([o()],Ei.prototype,"text",void 0),Ni([o({type:Boolean})],Ei.prototype,"manual",void 0),Ni([o({type:Boolean})],Ei.prototype,"inline",void 0),Ni([o({type:Number})],Ei.prototype,"delay",void 0),Ni([o()],Ei.prototype,"position",void 0),Ni([
399
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let s=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=s+"px",a.top=r+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=s+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-l.y,f=l.y+l.height-window.innerHeight;a.top=r+Math.round(this.correctOutOfWindowPixels(p,f))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${Se})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}Ee.elementDefinitions={"ft-typography":ge},Ee.styles=Ce,Ne([o()],Ee.prototype,"text",void 0),Ne([o({type:Boolean})],Ee.prototype,"manual",void 0),Ne([o({type:Boolean})],Ee.prototype,"inline",void 0),Ne([o({type:Number})],Ee.prototype,"delay",void 0),Ne([o()],Ee.prototype,"position",void 0),Ne([
400
400
  /**
401
401
  * @license
402
402
  * Copyright 2017 Google LLC
403
403
  * SPDX-License-Identifier: BSD-3-Clause
404
404
  */
405
- 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?l(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)],Ei.prototype,"slotNodes",void 0),Ni([r(".ft-tooltip--container")],Ei.prototype,"container",void 0),Ni([r(".ft-tooltip")],Ei.prototype,"tooltip",void 0),Ni([r(".ft-tooltip--content")],Ei.prototype,"tooltipContent",void 0),Ni([n()],Ei.prototype,"visible",void 0),c("ft-tooltip")(Ei);const Mi={color:bt.extend("--ft-loader-color",gt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},Ri=y`
405
+ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],Ee.prototype,"slotNodes",void 0),Ne([r(".ft-tooltip--container")],Ee.prototype,"container",void 0),Ne([r(".ft-tooltip")],Ee.prototype,"tooltip",void 0),Ne([r(".ft-tooltip--content")],Ee.prototype,"tooltipContent",void 0),Ne([n()],Ee.prototype,"visible",void 0),c("ft-tooltip")(Ee);const Me={color:bt.extend("--ft-loader-color",gt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},Re=y`
406
406
  :host {
407
407
  line-height: 0;
408
408
  }
@@ -411,8 +411,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
411
411
  display: inline-block;
412
412
  position: relative;
413
413
 
414
- width: ${Mi.size};
415
- height: ${Mi.size};
414
+ width: ${Me.size};
415
+ height: ${Me.size};
416
416
  }
417
417
 
418
418
  .ft-loader div {
@@ -421,7 +421,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
421
421
  width: 25%;
422
422
  height: 25%;
423
423
  border-radius: 50%;
424
- background: ${Mi.color};
424
+ background: ${Me.color};
425
425
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
426
426
  }
427
427
 
@@ -468,23 +468,23 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
468
468
  transform: translate(0, 0);
469
469
  }
470
470
  100% {
471
- transform: translate(calc(0.35 * ${Mi.size}), 0);
471
+ transform: translate(calc(0.35 * ${Me.size}), 0);
472
472
  }
473
473
  }
474
- `;class Ui extends Ct{render(){return X`
474
+ `;class Ue extends Ct{render(){return X`
475
475
  <div class="ft-loader">
476
476
  <div></div>
477
477
  <div></div>
478
478
  <div></div>
479
479
  <div></div>
480
480
  </div>
481
- `}}Ui.styles=Ri,c("ft-loader")(Ui);
481
+ `}}Ue.styles=Re,c("ft-loader")(Ue);
482
482
  /**
483
483
  * @license
484
484
  * Copyright 2017 Google LLC
485
485
  * SPDX-License-Identifier: BSD-3-Clause
486
486
  */
487
- class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ji.directiveName="unsafeHTML",ji.resultType=1;const zi=Tt(ji);var Fi,Bi;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Fi||(Fi={})),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;"}(Bi||(Bi={})),new Map([...["abw"].map((t=>[t,Bi.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,Bi.AUDIO])),...["avi"].map((t=>[t,Bi.AVI])),...["chm","xhs"].map((t=>[t,Bi.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,Bi.CODE])),...["csv"].map((t=>[t,Bi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Bi.DITA])),...["epub"].map((t=>[t,Bi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Bi.EXCEL])),...["flac"].map((t=>[t,Bi.FLAC])),...["gif"].map((t=>[t,Bi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Bi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Bi.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,Bi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Bi.JPEG])),...["json"].map((t=>[t,Bi.JSON])),...["m4a","m4p"].map((t=>[t,Bi.M4A])),...["mov","qt"].map((t=>[t,Bi.MOV])),...["mp3"].map((t=>[t,Bi.MP3])),...["mp4","m4v"].map((t=>[t,Bi.MP4])),...["ogg","oga"].map((t=>[t,Bi.OGG])),...["pdf","ps"].map((t=>[t,Bi.PDF])),...["png"].map((t=>[t,Bi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Bi.POWERPOINT])),...["rar"].map((t=>[t,Bi.RAR])),...["stp"].map((t=>[t,Bi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Bi.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,Bi.VIDEO])),...["wav"].map((t=>[t,Bi.WAV])),...["wma"].map((t=>[t,Bi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Bi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Bi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Bi.YAML])),...["zip"].map((t=>[t,Bi.ZIP]))]);const Ai={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")},Ti=y`
487
+ class je extends Pt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}je.directiveName="unsafeHTML",je.resultType=1;const ze=Tt(je);var Fe,Be;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Fe||(Fe={})),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;"}(Be||(Be={})),new Map([...["abw"].map((t=>[t,Be.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,Be.AUDIO])),...["avi"].map((t=>[t,Be.AVI])),...["chm","xhs"].map((t=>[t,Be.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,Be.CODE])),...["csv"].map((t=>[t,Be.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Be.DITA])),...["epub"].map((t=>[t,Be.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Be.EXCEL])),...["flac"].map((t=>[t,Be.FLAC])),...["gif"].map((t=>[t,Be.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Be.GZIP])),...["html","htm","xhtml"].map((t=>[t,Be.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,Be.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Be.JPEG])),...["json"].map((t=>[t,Be.JSON])),...["m4a","m4p"].map((t=>[t,Be.M4A])),...["mov","qt"].map((t=>[t,Be.MOV])),...["mp3"].map((t=>[t,Be.MP3])),...["mp4","m4v"].map((t=>[t,Be.MP4])),...["ogg","oga"].map((t=>[t,Be.OGG])),...["pdf","ps"].map((t=>[t,Be.PDF])),...["png"].map((t=>[t,Be.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Be.POWERPOINT])),...["rar"].map((t=>[t,Be.RAR])),...["stp"].map((t=>[t,Be.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Be.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,Be.VIDEO])),...["wav"].map((t=>[t,Be.WAV])),...["wma"].map((t=>[t,Be.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Be.WORD])),...["xml","xsl","rdf"].map((t=>[t,Be.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Be.YAML])),...["zip"].map((t=>[t,Be.ZIP]))]);const Ae={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")},Te=y`
488
488
  :host, i.ft-icon {
489
489
  display: inline-flex;
490
490
  align-items: center;
@@ -493,14 +493,14 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
493
493
  }
494
494
 
495
495
  :host {
496
- width: ${Ai.size};
497
- height: ${Ai.size};
496
+ width: ${Ae.size};
497
+ height: ${Ae.size};
498
498
  }
499
499
 
500
500
  i.ft-icon {
501
501
  width: 100%;
502
502
  height: 100%;
503
- font-size: ${Ai.size};
503
+ font-size: ${Ae.size};
504
504
  line-height: 1;
505
505
  font-weight: normal;
506
506
  text-transform: none;
@@ -511,33 +511,33 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
511
511
  text-rendering: auto;
512
512
  -webkit-font-smoothing: antialiased;
513
513
  -moz-osx-font-smoothing: grayscale;
514
- vertical-align: ${Ai.verticalAlign};
514
+ vertical-align: ${Ae.verticalAlign};
515
515
  }
516
516
 
517
517
  i.ft-icon.ft-icon--fluid-topics {
518
- font-family: ${Ai.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
518
+ font-family: ${Ae.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
519
519
 
520
520
  /* Ugly fix because font is broken */
521
- font-size: calc(0.75 * ${Ai.size});
522
- line-height: ${Ai.size};
521
+ font-size: calc(0.75 * ${Ae.size});
522
+ line-height: ${Ae.size};
523
523
  position: relative;
524
524
  top: -4%;
525
525
  justify-content: center;
526
526
  }
527
527
 
528
528
  .ft-icon--file-format {
529
- font-family: ${Ai.fileFormatFontFamily}, ft-mime, sans-serif;
529
+ font-family: ${Ae.fileFormatFontFamily}, ft-mime, sans-serif;
530
530
  }
531
531
 
532
532
  .ft-icon--material {
533
- font-family: ${Ai.materialFontFamily}, "Material Icons", sans-serif;
533
+ font-family: ${Ae.materialFontFamily}, "Material Icons", sans-serif;
534
534
  }
535
- `;var Li;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Li||(Li={}));var Pi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ii extends Ct{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(Li).includes(this.variant)?this.variant:Li.fluid_topics,e=t!==Li.material||!!this.value;return X`
535
+ `;var Pe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Pe||(Pe={}));var Le=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ie extends Ct{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(Pe).includes(this.variant)?this.variant:Pe.fluid_topics,i=t!==Pe.material||!!this.value;return X`
536
536
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
537
- ${zi(this.resolvedIcon)}
538
- <slot ?hidden=${e}></slot>
537
+ ${ze(this.resolvedIcon)}
538
+ <slot ?hidden=${i}></slot>
539
539
  </i>
540
- `}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 Li.file_format:this.resolvedIcon=null!==(t=Bi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Li.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=Fi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ii.elementDefinitions={},Ii.styles=Ti,Pi([o()],Ii.prototype,"variant",void 0),Pi([o()],Ii.prototype,"value",void 0),Pi([n()],Ii.prototype,"resolvedIcon",void 0),Pi([r("slot")],Ii.prototype,"slottedContent",void 0),c("ft-icon")(Ii);const _i=bt.extend("--ft-button-color",gt.colorPrimary),Di={backgroundColor:bt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",gt.borderRadiusL),color:_i,fontSize:bt.extend("--ft-button-font-size",ri.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",_i),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},Wi=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",gt.colorOnPrimary)),Hi={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",gt.colorPrimary)),color:Wi,rippleColor:bt.extend("--ft-button-primary-ripple-color",Wi)},Ki=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",gt.borderRadiusM)),Zi=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Vi=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Ji=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),qi=[y`
540
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Pe.file_format:this.resolvedIcon=null!==(t=Be[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Pe.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(i=Fe[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ie.elementDefinitions={},Ie.styles=Te,Le([o()],Ie.prototype,"variant",void 0),Le([o()],Ie.prototype,"value",void 0),Le([n()],Ie.prototype,"resolvedIcon",void 0),Le([r("slot")],Ie.prototype,"slottedContent",void 0),c("ft-icon")(Ie);const _e=bt.extend("--ft-button-color",gt.colorPrimary),De={backgroundColor:bt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",gt.borderRadiusL),color:_e,fontSize:bt.extend("--ft-button-font-size",re.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",_e),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},We=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",gt.colorOnPrimary)),He={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",gt.colorPrimary)),color:We,rippleColor:bt.extend("--ft-button-primary-ripple-color",We)},Ke=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",gt.borderRadiusM)),Ze=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Ve=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Je=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),qe=[y`
541
541
  :host {
542
542
  display: inline-block;
543
543
  max-width: 100%;
@@ -548,7 +548,7 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
548
548
  box-shadow: 0px 0px 0px transparent;
549
549
  border: 0px solid transparent;
550
550
  text-shadow: 0px 0px 0px transparent;
551
- font-size: ${Di.fontSize};
551
+ font-size: ${De.fontSize};
552
552
  }
553
553
 
554
554
  button:hover {
@@ -577,31 +577,31 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
577
577
  border: none;
578
578
  pointer-events: auto;
579
579
 
580
- --ft-button-internal-line-height: max(calc(${Di.fontSize} + 2px), ${Di.iconSize});
581
- --ft-button-internal-color: ${Di.color};
582
- ${yt(Ai.size,Di.iconSize)};
583
- ${yt(_t.color,Di.rippleColor)};
580
+ --ft-button-internal-line-height: max(calc(${De.fontSize} + 2px), ${De.iconSize});
581
+ --ft-button-internal-color: ${De.color};
582
+ ${yt(Ae.size,De.iconSize)};
583
+ ${yt(_t.color,De.rippleColor)};
584
584
 
585
- border-radius: ${Di.borderRadius};
586
- padding: ${Di.verticalPadding} ${Di.horizontalPadding};
587
- background-color: ${Di.backgroundColor};
585
+ border-radius: ${De.borderRadius};
586
+ padding: ${De.verticalPadding} ${De.horizontalPadding};
587
+ background-color: ${De.backgroundColor};
588
588
  color: var(--ft-button-internal-color);
589
589
  -webkit-mask-image: radial-gradient(white, black);
590
590
  }
591
591
 
592
592
  .ft-button.ft-button--outlined {
593
593
  border: 1px solid var(--ft-button-internal-color);
594
- padding: calc(${Di.verticalPadding} - 1px) calc(${Di.horizontalPadding} - 1px);
594
+ padding: calc(${De.verticalPadding} - 1px) calc(${De.horizontalPadding} - 1px);
595
595
  }
596
596
 
597
597
  .ft-button.ft-button--dense {
598
- padding: ${Zi} ${Vi};
599
- border-radius: ${Ki};
600
- gap: ${Ji};
598
+ padding: ${Ze} ${Ve};
599
+ border-radius: ${Ke};
600
+ gap: ${Je};
601
601
  }
602
602
 
603
603
  .ft-button.ft-button--dense.ft-button--outlined {
604
- padding: calc(${Zi} - 1px) calc(${Vi} - 1px);
604
+ padding: calc(${Ze} - 1px) calc(${Ve} - 1px);
605
605
  }
606
606
 
607
607
  .ft-button:not([disabled]):hover {
@@ -609,22 +609,22 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
609
609
  }
610
610
 
611
611
  .ft-button--round {
612
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Di.verticalPadding});
612
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${De.verticalPadding});
613
613
  }
614
614
 
615
615
  .ft-button--round.ft-button--dense {
616
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Zi});
616
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ze});
617
617
  }
618
618
 
619
619
  .ft-button[disabled] {
620
620
  filter: grayscale(1);
621
- opacity: ${Di.opacityDisabled};
621
+ opacity: ${De.opacityDisabled};
622
622
  }
623
623
 
624
624
  .ft-button.ft-button--primary {
625
- background-color: ${Hi.backgroundColor};
626
- --ft-button-internal-color: ${Hi.color};
627
- ${yt(_t.color,Hi.rippleColor)};
625
+ background-color: ${He.backgroundColor};
626
+ --ft-button-internal-color: ${He.color};
627
+ ${yt(_t.color,He.rippleColor)};
628
628
  }
629
629
 
630
630
  .ft-button:focus {
@@ -637,13 +637,13 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
637
637
  white-space: nowrap;
638
638
  text-overflow: ellipsis;
639
639
  display: block;
640
- margin: 0 ${Di.iconPadding};
641
- ${yt(ri.fontSize,"1em")};
642
- ${yt(ri.lineHeight,"var(--ft-button-internal-line-height)")};
640
+ margin: 0 ${De.iconPadding};
641
+ ${yt(re.fontSize,"1em")};
642
+ ${yt(re.lineHeight,"var(--ft-button-internal-line-height)")};
643
643
  }
644
644
 
645
645
  .ft-button--dense .ft-button--label {
646
- margin: 0 ${Ji};
646
+ margin: 0 ${Je};
647
647
  }
648
648
 
649
649
  .ft-button--label[hidden] {
@@ -656,13 +656,13 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
656
656
  }
657
657
 
658
658
  .ft-button--label[hidden] + ft-icon {
659
- margin: 0 calc(${Di.horizontalPadding} * -1);
660
- padding: 0 ${Di.verticalPadding};
659
+ margin: 0 calc(${De.horizontalPadding} * -1);
660
+ padding: 0 ${De.verticalPadding};
661
661
  }
662
662
 
663
663
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
664
- margin: 0 calc(${Vi} * -1);
665
- padding: 0 ${Zi};
664
+ margin: 0 calc(${Ve} * -1);
665
+ padding: 0 ${Ze};
666
666
  }
667
667
 
668
668
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -671,12 +671,12 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
671
671
  }
672
672
 
673
673
  ft-loader {
674
- ${yt(Mi.size,Di.iconSize)};
675
- ${yt(Mi.color,"var(--ft-button-internal-color)")};
674
+ ${yt(Me.size,De.iconSize)};
675
+ ${yt(Me.color,"var(--ft-button-internal-color)")};
676
676
  }
677
- `,Nt];var Xi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 Yi extends Ct{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{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-no-text-select":!0};return this.addTooltipIfNeeded(X`
677
+ `,Nt];var Xe=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ye extends Ct{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{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-no-text-select":!0};return this.addTooltipIfNeeded(X`
678
678
  <button part="button"
679
- class="${Pt(t)}"
679
+ class="${Lt(t)}"
680
680
  aria-label="${this.getLabel()}"
681
681
  ?disabled=${this.isDisabled()}>
682
682
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -697,7 +697,7 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
697
697
  </ft-tooltip>
698
698
  `:t}resolveIcon(){return this.loading?X`
699
699
  <ft-loader part="loader icon"></ft-loader> `:this.icon?X`
700
- <ft-icon part="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}}Yi.elementDefinitions={"ft-ripple":Xt,"ft-tooltip":Ei,"ft-typography":gi,"ft-icon":Ii,"ft-loader":Ui},Yi.styles=[Et,qi],Xi([o({type:String,reflect:!0})],Yi.prototype,"role",void 0),Xi([o({type:Boolean})],Yi.prototype,"primary",void 0),Xi([o({type:Boolean})],Yi.prototype,"outlined",void 0),Xi([o({type:Boolean})],Yi.prototype,"disabled",void 0),Xi([o({type:Boolean})],Yi.prototype,"dense",void 0),Xi([o({type:Boolean})],Yi.prototype,"round",void 0),Xi([o()],Yi.prototype,"label",void 0),Xi([o()],Yi.prototype,"icon",void 0),Xi([o()],Yi.prototype,"iconVariant",void 0),Xi([o({type:Boolean})],Yi.prototype,"trailingIcon",void 0),Xi([o({type:Boolean})],Yi.prototype,"loading",void 0),Xi([o()],Yi.prototype,"tooltipPosition",void 0),Xi([o({type:Boolean})],Yi.prototype,"hideTooltip",void 0),Xi([o({type:Boolean})],Yi.prototype,"forceTooltip",void 0),Xi([r(".ft-button")],Yi.prototype,"button",void 0),Xi([r(".ft-button--label slot")],Yi.prototype,"slottedContent",void 0),c("ft-button")(Yi);const Gi={iconColor:bt.extend("--ft-floating-menu-icon-color",gt.colorOnSurfaceMedium)},Qi=y`
700
+ <ft-icon part="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}}Ye.elementDefinitions={"ft-ripple":Xt,"ft-tooltip":Ee,"ft-typography":ge,"ft-icon":Ie,"ft-loader":Ue},Ye.styles=[Et,qe],Xe([o({type:String,reflect:!0})],Ye.prototype,"role",void 0),Xe([o({type:Boolean})],Ye.prototype,"primary",void 0),Xe([o({type:Boolean})],Ye.prototype,"outlined",void 0),Xe([o({type:Boolean})],Ye.prototype,"disabled",void 0),Xe([o({type:Boolean})],Ye.prototype,"dense",void 0),Xe([o({type:Boolean})],Ye.prototype,"round",void 0),Xe([o()],Ye.prototype,"label",void 0),Xe([o()],Ye.prototype,"icon",void 0),Xe([o()],Ye.prototype,"iconVariant",void 0),Xe([o({type:Boolean})],Ye.prototype,"trailingIcon",void 0),Xe([o({type:Boolean})],Ye.prototype,"loading",void 0),Xe([o()],Ye.prototype,"tooltipPosition",void 0),Xe([o({type:Boolean})],Ye.prototype,"hideTooltip",void 0),Xe([o({type:Boolean})],Ye.prototype,"forceTooltip",void 0),Xe([r(".ft-button")],Ye.prototype,"button",void 0),Xe([r(".ft-button--label slot")],Ye.prototype,"slottedContent",void 0),c("ft-button")(Ye);const Ge={iconColor:bt.extend("--ft-floating-menu-icon-color",gt.colorOnSurfaceMedium)},Qe=y`
701
701
  .ft-floating-menu-item {
702
702
  cursor: pointer;
703
703
  display: flex;
@@ -712,7 +712,7 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
712
712
  }
713
713
 
714
714
  .ft-floating-menu-item ft-icon {
715
- color: ${Gi.iconColor};
715
+ color: ${Ge.iconColor};
716
716
  margin-left: 0;
717
717
  flex-shrink: 0;
718
718
  flex-grow: 0;
@@ -727,7 +727,7 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
727
727
  word-break: break-word;
728
728
  hyphens: auto;
729
729
  }
730
- `;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,a=t.length-1;a>=0;a--)(n=t[a])&&(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 eo extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class io extends Ct{constructor(){super(...arguments),this.value=""}render(){return X`
730
+ `;var to=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class io extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class eo extends Ct{constructor(){super(...arguments),this.value=""}render(){return X`
731
731
  <div class="ft-floating-menu-item"
732
732
  @click=${this.onClick}>
733
733
  <ft-ripple></ft-ripple>
@@ -738,8 +738,8 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
738
738
  <slot></slot>
739
739
  </ft-typography>
740
740
  </div>
741
- `}onClick(t){this.dispatchEvent(new eo(this.value))}}io.elementDefinitions={"ft-icon":Ii,"ft-ripple":Xt,"ft-typography":gi},io.styles=Qi,to([o()],io.prototype,"iconVariant",void 0),to([o()],io.prototype,"icon",void 0),to([o()],io.prototype,"value",void 0);var oo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(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 no extends CustomEvent{constructor(){super("close-ft-floating-menu")}}class so extends Ct{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.iconVariant=Li.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return X`
742
- <div class="${Pt(t)}">
741
+ `}onClick(t){this.dispatchEvent(new io(this.value))}}eo.elementDefinitions={"ft-icon":Ie,"ft-ripple":Xt,"ft-typography":ge},eo.styles=Qe,to([o()],eo.prototype,"iconVariant",void 0),to([o()],eo.prototype,"icon",void 0),to([o()],eo.prototype,"value",void 0);var oo=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class no extends CustomEvent{constructor(){super("close-ft-floating-menu")}}class so extends Ct{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.iconVariant=Pe.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return X`
742
+ <div class="${Lt(t)}">
743
743
  <ft-button id="actions-button"
744
744
  part="button"
745
745
  dense round
@@ -764,4 +764,4 @@ class ji extends Lt{constructor(t){if(super(t),this.et=G,t.type!==At)throw Error
764
764
  </div>
765
765
  </div>
766
766
  </div>
767
- `}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){(function(t,e,i){if(e.length>0){const o=t.composedPath();for(let t of o){if(t===i)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1})(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((e=>t.has(e)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){const t=this.menuContent.offsetWidth,e=this.menuContent.offsetHeight,i=this.actionButton.offsetWidth,o=this.actionButton.offsetHeight;let n=0,s=0;switch(this.horizontalAlignment){case"left":n=this.actionButton.offsetLeft;break;case"right":n=this.actionButton.offsetLeft+i-t;break;case"center":n=this.actionButton.offsetLeft+i/2-t/2}switch(this.verticalAlignment){case"bottom":s=this.actionButton.offsetTop+o+4;break;case"top":s=this.actionButton.offsetTop-e-4}const r=this.menuWrapper.style;r.left=this.limitValueBetween(n,0,window.innerWidth-t)+"px",r.top=this.limitValueBetween(s,0,window.innerHeight-e)+"px",this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}limitValueBetween(t,e,i){return Math.max(e,Math.min(t,i))}}so.elementDefinitions={"ft-button":Yi,"ft-floating-menu-item":io},so.styles=Ft,oo([n()],so.prototype,"menuOpen",void 0),oo([n()],so.prototype,"forceMenuOpen",void 0),oo([r(".ft-floating-menu")],so.prototype,"container",void 0),oo([r(".ft-floating-menu--wrapper")],so.prototype,"menuWrapper",void 0),oo([r("#ft-floating-menu-options")],so.prototype,"menuContent",void 0),oo([r("#actions-button")],so.prototype,"actionButton",void 0),oo([o()],so.prototype,"label",void 0),oo([o()],so.prototype,"tooltipPosition",void 0),oo([o()],so.prototype,"iconVariant",void 0),oo([o()],so.prototype,"icon",void 0),oo([o()],so.prototype,"text",void 0),oo([o()],so.prototype,"horizontalAlignment",void 0),oo([o()],so.prototype,"verticalAlignment",void 0),oo([o({type:Boolean})],so.prototype,"disabled",void 0),oo([p([])],so.prototype,"closeMenuMatchers",void 0),c("ft-floating-menu")(so),c("ft-floating-menu-item")(io),t.FloatingMenuCloseEvent=no,t.FtFloatingMenu=so,t.FtFloatingMenuCssVariables=zt,t.FtFloatingMenuItem=io,t.FtFloatingMenuItemCssVariables=Gi,t.FtFloatingMenuItemSelect=eo,t.itemStyles=Qi,t.styles=Ft}({});
767
+ `}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){(function(t,i,e){if(i.length>0){const o=t.composedPath();for(let t of o){if(t===e)return!1;if(t.matches&&i.some((i=>t.matches(i))))return!0}}return!1})(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((i=>t.has(i)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){const t=this.menuContent.offsetWidth,i=this.menuContent.offsetHeight,e=this.actionButton.offsetWidth,o=this.actionButton.offsetHeight;let n=0,s=0;switch(this.menuWrapper.style.left="0",this.menuWrapper.style.top="0",this.horizontalAlignment){case"left":n=this.actionButton.offsetLeft-this.menuWrapper.offsetLeft;break;case"right":n=this.actionButton.offsetLeft+e-t-this.menuWrapper.offsetLeft;break;case"center":n=this.actionButton.offsetLeft+e/2-t/2-this.menuWrapper.offsetLeft}switch(this.verticalAlignment){case"bottom":s=this.actionButton.offsetTop+o+4-this.menuWrapper.offsetTop;break;case"top":s=this.actionButton.offsetTop-i-4-this.menuWrapper.offsetTop}const r=this.menuWrapper.style;r.left=n+"px",r.top=s+"px";const a=this.menuWrapper.getBoundingClientRect();let l=-a.x,h=a.x+a.width-window.innerWidth;r.left=n+Math.round(this.correctOutOfWindowPixels(l,h))+"px";let c=-a.y,p=a.y+a.height-window.innerHeight;r.top=s+Math.round(this.correctOutOfWindowPixels(c,p))+"px",this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}so.elementDefinitions={"ft-button":Ye,"ft-floating-menu-item":eo},so.styles=Ft,oo([n()],so.prototype,"menuOpen",void 0),oo([n()],so.prototype,"forceMenuOpen",void 0),oo([r(".ft-floating-menu")],so.prototype,"container",void 0),oo([r(".ft-floating-menu--wrapper")],so.prototype,"menuWrapper",void 0),oo([r("#ft-floating-menu-options")],so.prototype,"menuContent",void 0),oo([r("#actions-button")],so.prototype,"actionButton",void 0),oo([o()],so.prototype,"label",void 0),oo([o()],so.prototype,"tooltipPosition",void 0),oo([o()],so.prototype,"iconVariant",void 0),oo([o()],so.prototype,"icon",void 0),oo([o()],so.prototype,"text",void 0),oo([o()],so.prototype,"horizontalAlignment",void 0),oo([o()],so.prototype,"verticalAlignment",void 0),oo([o({type:Boolean})],so.prototype,"disabled",void 0),oo([p([])],so.prototype,"closeMenuMatchers",void 0),c("ft-floating-menu")(so),c("ft-floating-menu-item")(eo),t.FloatingMenuCloseEvent=no,t.FtFloatingMenu=so,t.FtFloatingMenuCssVariables=zt,t.FtFloatingMenuItem=eo,t.FtFloatingMenuItemCssVariables=Ge,t.FtFloatingMenuItemSelect=io,t.itemStyles=Qe,t.styles=Ft}({});