@fluid-topics/ft-snap-scroll 1.0.58 → 1.0.60

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,55 +14,55 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=l.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,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.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){v.push(this),i.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,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ri){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,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,l=new WeakMap;let s;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=i.prototype.attributeChangedCallback,s=new Set(i.observedAttributes||[]);h(i,s,l);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:s};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(a.set(i,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=s;if(o)return s=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=l.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?u(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),s=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0!==i.get(e).formAssociated)throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`);r?.call(this,...o)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(_e){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!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,o)=>"method"===o.kind&&o.descriptor&&!("value"in o.descriptor)?{...o,finisher(e){e.createProperty(o.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:o.key,initializer(){"function"==typeof o.initializer&&(this[o.key]=o.initializer.call(this))},finisher(e){e.createProperty(o.key,t)}};function r(t){return(o,r)=>void 0!==r?((t,o,e)=>{o.constructor.createProperty(e,t)})(t,o,r):e(t,o)
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */}function s(t){return o({...t,state:!0})}
27
+ */}function i(t){return r({...t,state:!0})}
28
28
  /**
29
29
  * @license
30
30
  * Copyright 2017 Google LLC
31
31
  * SPDX-License-Identifier: BSD-3-Clause
32
- */const n=({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(n.finisher=function(e){t(e,o)}),n}{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}}
32
+ */const n=({finisher:t,descriptor:o})=>(e,r)=>{var i;if(void 0===r){const r=null!==(i=e.originalKey)&&void 0!==i?i:e.key,n=null!=o?{kind:"method",placement:"prototype",key:r,descriptor:o(e.key)}:{...e,key:r};return null!=t&&(n.finisher=function(o){t(o,r)}),n}{const i=e.constructor;void 0!==o&&Object.defineProperty(e,r,o(r)),null==t||t(i,r)}}
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 n({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
37
+ */;function a(t,o){return n({descriptor:e=>{const r={get(){var o,e;return null!==(e=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(o){const o="symbol"==typeof e?Symbol():"__"+e;r.get=function(){var e,r;return void 0===this[o]&&(this[o]=null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null),this[o]}}return r}})}
38
38
  /**
39
39
  * @license
40
40
  * Copyright 2021 Google LLC
41
41
  * SPDX-License-Identifier: BSD-3-Clause
42
- */var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));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,s;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=(s=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,s[o]))return!1;for(o=i;0!=o--;){var n=s[o];if(!h(t[n],e[n]))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)};
42
+ */var l;const s=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,o)=>t.assignedElements(o):(t,o)=>t.assignedNodes(o).filter((t=>t.nodeType===Node.ELEMENT_NODE));function c(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,r,i;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(r=e;0!=r--;)if(!c(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!c(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=e;0!=r--;){var n=i[r];if(!c(t[n],o[n]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const p=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),u=new WeakMap;let x=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(f&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=u.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&u.set(e,t))}return t}toString(){return this.cssText}};const v=t=>new x("string"==typeof t?t:t+"",void 0,d),b=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new x(i,t,d)},y=(t,e)=>{f?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},g=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(t):t
48
+ const f=window,h=f.ShadowRoot&&(void 0===f.ShadyCSS||f.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),u=new WeakMap;let y=class{constructor(t,o,e){if(this._$cssResult$=!0,e!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(h&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=u.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&u.set(o,t))}return t}toString(){return this.cssText}};const g=t=>new y("string"==typeof t?t:t+"",void 0,d),b=(t,...o)=>{const e=1===t.length?t[0]:o.reduce(((o,e,r)=>o+(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[r+1]),t[0]);return new y(e,t,d)},m=(t,o)=>{h?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=f.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))},x=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return g(o)})(t):t
49
49
  /**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */;var m;const w=window,$=w.trustedTypes,O=$?$.emptyScript:"",S=w.reactiveElementPolyfillSupport,k={toAttribute(t,e){switch(e){case Boolean:t=t?O:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},N=(t,e)=>e!==t&&(e==e||t==t),E={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:N};let C=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 s=this[t];this[e]=o,this.requestUpdate(t,s,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(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return y(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=E){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:k).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:k;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||N)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
53
+ */;var v;const O=window,N=O.trustedTypes,S=N?N.emptyScript:"",w=O.reactiveElementPolyfillSupport,C={toAttribute(t,o){switch(o){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){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}},$=(t,o)=>o!==t&&(o==o||t==t),R={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:$};let E=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var o;this.finalize(),(null!==(o=this.h)&&void 0!==o?o:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((o,e)=>{const r=this._$Ep(e,o);void 0!==r&&(this._$Ev.set(r,e),t.push(r))})),t}static createProperty(t,o=R){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(t,o),!o.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,e,o);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){return{get(){return this[o]},set(r){const i=this[t];this[o]=r,this.requestUpdate(t,i,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||R}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),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,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of o)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(x(t))}else void 0!==t&&o.push(x(t));return o}static _$Ep(t,o){const e=o.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 o,e;(null!==(o=this._$ES)&&void 0!==o?o:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var o;null===(o=this._$ES)||void 0===o||o.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])}))}createRenderRoot(){var t;const o=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return m(o,this.constructor.elementStyles),o}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 o;return null===(o=t.hostConnected)||void 0===o?void 0:o.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostDisconnected)||void 0===o?void 0:o.call(t)}))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o,e=R){var r;const i=this.constructor._$Ep(t,e);if(void 0!==i&&!0===e.reflect){const n=(void 0!==(null===(r=e.converter)||void 0===r?void 0:r.toAttribute)?e.converter:C).toAttribute(o,e.type);this._$El=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$El=null}}_$AK(t,o){var e;const r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=r.getPropertyOptions(i),n="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=i,this[i]=n.fromAttribute(o,t.type),this._$El=null}}requestUpdate(t,o,e){let r=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||$)(this[t],o)?(this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):r=!1),!this.isUpdatePending&&r&&(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,o)=>this[o]=t)),this._$Ei=void 0);let o=!1;const e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostUpdate)||void 0===o?void 0:o.call(t)})),this.update(e)):this._$Ek()}catch(t){throw o=!1,this._$Ek(),t}o&&this._$AE(e)}willUpdate(t){}_$AE(t){var o;null===(o=this._$ES)||void 0===o||o.forEach((t=>{var o;return null===(o=t.hostUpdated)||void 0===o?void 0:o.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,o)=>this._$EO(o,this[o],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
54
54
  /**
55
55
  * @license
56
56
  * Copyright 2017 Google LLC
57
57
  * SPDX-License-Identifier: BSD-3-Clause
58
58
  */
59
- var R;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:C}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.6.1");const M=window,z=M.trustedTypes,F=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,T="?"+j,B=`<${T}>`,A=document,L=()=>A.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,H=/>/g,K=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),X=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Y=new WeakMap,Q=A.createTreeWalker(A,129,null,!1),tt=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=W;for(let e=0;e<i;e++){const i=t[e];let l,a,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===W?"!--"===a[1]?r=D:void 0!==a[1]?r=H:void 0!==a[2]?(J.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=K):void 0!==a[3]&&(r=K):r===K?">"===a[0]?(r=null!=s?s:W,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?K:'"'===a[3]?V:Z):r===V||r===Z?r=K:r===D||r===H?r=W:(r=K,s=void 0);const p=r===K&&t[e+1].startsWith("/>")?" ":"";n+=r===W?i+B:h>=0?(o.push(l),i.slice(0,h)+U+i.slice(h)+j+p):i+j+(-2===h?(o.push(void 0),e):p)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(l):l,o]};class et{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=tt(t,e);if(this.el=et.createElement(a,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Q.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(U)||e.startsWith(j)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+U).split(j),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?at:"@"===e[1]?ht:nt})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(J.test(o.tagName)){const t=o.textContent.split(j),e=t.length-1;if(e>0){o.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],L()),Q.nextNode(),l.push({type:2,index:++s});o.append(t[e],L())}}}else if(8===o.nodeType)if(o.data===T)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(j,t+1));)l.push({type:7,index:s}),t+=j.length-1}s++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,o){var s,n,r,l;if(e===X)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const h=I(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=it(t,a._$AS(t,e.values),a,o)),e}class ot{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:A).importNode(i,!0);Q.currentNode=s;let n=Q.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new st(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new ct(n,this,t)),this._$AV.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=Q.nextNode(),r++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{constructor(t,e,i,o){var s;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),I(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(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.$(A.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new ot(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new et(t)),e}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new st(this.k(L()),this.k(L()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class nt{constructor(t,e,i,o,s){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=it(this,t,e,0),n=!I(t)||t!==this._$AH&&t!==X,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=it(this,o[i+r],e,r),l===X&&(l=this._$AH[r]),n||(n=!I(l)||l!==this._$AH[r]),l===G?t=G:t!==G&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const lt=z?z.emptyScript:"";class at extends nt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,lt):this.element.removeAttribute(this.name)}}class ht extends nt{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=it(this,t,e,0))&&void 0!==i?i:G)===X)return;const o=this._$AH,s=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==G&&(o===G||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ct{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){it(this,t)}}const pt=M.litHtmlPolyfillSupport;null==pt||pt(et,st),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.7.3");
59
+ var U;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:E}),(null!==(v=O.reactiveElementVersions)&&void 0!==v?v:O.reactiveElementVersions=[]).push("1.6.1");const I=window,k=I.trustedTypes,W=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,K="?"+z,F=`<${K}>`,Z=document,B=()=>Z.createComment(""),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,A="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,P=/>/g,T=RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,_=/"/g,Y=/^(?:script|style|textarea|title)$/i,V=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Q=Z.createTreeWalker(Z,129,null,!1),tt=(t,o)=>{const e=t.length-1,r=[];let i,n=2===o?"<svg>":"",a=H;for(let o=0;o<e;o++){const e=t[o];let l,s,c=-1,p=0;for(;p<e.length&&(a.lastIndex=p,s=a.exec(e),null!==s);)p=a.lastIndex,a===H?"!--"===s[1]?a=j:void 0!==s[1]?a=P:void 0!==s[2]?(Y.test(s[2])&&(i=RegExp("</"+s[2],"g")),a=T):void 0!==s[3]&&(a=T):a===T?">"===s[0]?(a=null!=i?i:H,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,l=s[1],a=void 0===s[3]?T:'"'===s[3]?_:G):a===_||a===G?a=T:a===j||a===P?a=H:(a=T,i=void 0);const f=a===T&&t[o+1].startsWith("/>")?" ":"";n+=a===H?e+F:c>=0?(r.push(l),e.slice(0,c)+L+e.slice(c)+z+f):e+z+(-2===c?(r.push(void 0),o):f)}const l=n+(t[e]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==W?W.createHTML(l):l,r]};class ot{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,n=0;const a=t.length-1,l=this.parts,[s,c]=tt(t,o);if(this.el=ot.createElement(s,e),Q.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(r=Q.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const o of r.getAttributeNames())if(o.endsWith(L)||o.startsWith(z)){const e=c[n++];if(t.push(o),void 0!==e){const t=r.getAttribute(e.toLowerCase()+L).split(z),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:o[2],strings:t,ctor:"."===o[1]?at:"?"===o[1]?st:"@"===o[1]?ct:nt})}else l.push({type:6,index:i})}for(const o of t)r.removeAttribute(o)}if(Y.test(r.tagName)){const t=r.textContent.split(z),o=t.length-1;if(o>0){r.textContent=k?k.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],B()),Q.nextNode(),l.push({type:2,index:++i});r.append(t[o],B())}}}else if(8===r.nodeType)if(r.data===K)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(z,t+1));)l.push({type:7,index:i}),t+=z.length-1}i++}}static createElement(t,o){const e=Z.createElement("template");return e.innerHTML=t,e}}function et(t,o,e=t,r){var i,n,a,l;if(o===J)return o;let s=void 0!==r?null===(i=e._$Co)||void 0===i?void 0:i[r]:e._$Cl;const c=D(o)?void 0:o._$litDirective$;return(null==s?void 0:s.constructor)!==c&&(null===(n=null==s?void 0:s._$AO)||void 0===n||n.call(s,!1),void 0===c?s=void 0:(s=new c(t),s._$AT(t,e,r)),void 0!==r?(null!==(a=(l=e)._$Co)&&void 0!==a?a:l._$Co=[])[r]=s:e._$Cl=s),void 0!==s&&(o=et(t,s._$AS(t,o.values),s,r)),o}class rt{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:r}=this._$AD,i=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:Z).importNode(e,!0);Q.currentNode=i;let n=Q.nextNode(),a=0,l=0,s=r[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new it(n,n.nextSibling,this,t):1===s.type?o=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(o=new pt(n,this,t)),this._$AV.push(o),s=r[++l]}a!==(null==s?void 0:s.index)&&(n=Q.nextNode(),a++)}return i}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class it{constructor(t,o,e,r){var i;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cp=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=et(this,t,o),D(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>M(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!==q&&D(this._$AH)?this._$AA.nextSibling.data=t:this.$(Z.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=ot.createElement(r.h,this.options)),r);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===i)this._$AH.v(e);else{const t=new rt(i,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=X.get(t.strings);return void 0===o&&X.set(t.strings,o=new ot(t)),o}T(t){M(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new it(this.k(B()),this.k(B()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class nt{constructor(t,o,e,r,i){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,r){const i=this.strings;let n=!1;if(void 0===i)t=et(this,t,o,0),n=!D(t)||t!==this._$AH&&t!==J,n&&(this._$AH=t);else{const r=t;let a,l;for(t=i[0],a=0;a<i.length-1;a++)l=et(this,r[e+a],o,a),l===J&&(l=this._$AH[a]),n||(n=!D(l)||l!==this._$AH[a]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+i[a+1]),this._$AH[a]=l}n&&!r&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class at extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const lt=k?k.emptyScript:"";class st extends nt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,lt):this.element.removeAttribute(this.name)}}class ct extends nt{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=et(this,t,o,0))&&void 0!==e?e:q)===J)return;const r=this._$AH,i=t===q&&r!==q||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==q&&(r===q||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class pt{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}}const ft=I.litHtmlPolyfillSupport;null==ft||ft(ot,it),(null!==(U=I.litHtmlVersions)&&void 0!==U?U:I.litHtmlVersions=[]).push("2.7.3");
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
63
63
  * SPDX-License-Identifier: BSD-3-Clause
64
64
  */
65
- var ft,dt;let ut=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new st(e.insertBefore(L(),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 X}};ut.finalized=!0,ut._$litElement$=!0,null===(ft=globalThis.litElementHydrateSupport)||void 0===ft||ft.call(globalThis,{LitElement:ut});const xt=globalThis.litElementPolyfillSupport;null==xt||xt({LitElement:ut}),(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.3.2");class vt{static create(t,e,i){let o=t=>v(null!=t?t:i),s=b`var(${v(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>b`var(${v(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=b`var(${v(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>b`var(${v(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):v(null!=e?e:t.defaultValue),o=b`var(${v(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>b`var(${v(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function bt(t,e){return v(`${t.name}: ${e}`)}const yt={colorPrimary:vt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:vt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:vt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:vt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:vt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:vt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:vt.create("--ft-color-error","COLOR","#B00020"),colorOutline:vt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:vt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:vt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:vt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:vt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:vt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:vt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:vt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:vt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:vt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:vt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:vt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:vt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:vt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:vt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:vt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:vt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:vt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:vt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:vt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:vt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:vt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:vt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:vt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:vt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:vt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:vt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:vt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:vt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:vt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:vt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:vt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:vt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:vt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:vt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:vt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:vt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:vt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:vt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:vt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:vt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:vt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:vt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:vt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:vt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:vt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:vt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:vt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:vt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:vt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:vt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:vt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:vt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:vt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:vt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class gt extends ut{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return y(i,t.elementStyles),i}}var mt,wt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const $t=Symbol("constructorPrototype"),Ot=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class kt extends gt{constructor(){super(),this[mt]=new e(5),this[Ot]=this.constructor.name,this[$t]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ot]&&Object.setPrototypeOf(this,this[$t])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[St].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const 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!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}mt=St,wt([o()],kt.prototype,"exportpartsPrefix",void 0),wt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!h(t,e),...null!=e?e:{}})}([])],kt.prototype,"exportpartsPrefixes",void 0),wt([o()],kt.prototype,"customStylesheet",void 0);const Nt=b`
65
+ var ht,dt;let ut=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const e=super.createRenderRoot();return null!==(t=(o=this.renderOptions).renderBefore)&&void 0!==t||(o.renderBefore=e.firstChild),e}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,e)=>{var r,i;const n=null!==(r=null==e?void 0:e.renderBefore)&&void 0!==r?r:o;let a=n._$litPart$;if(void 0===a){const t=null!==(i=null==e?void 0:e.renderBefore)&&void 0!==i?i:null;n._$litPart$=a=new it(o.insertBefore(B(),t),t,void 0,null!=e?e:{})}return a._$AI(t),a})(o,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}};ut.finalized=!0,ut._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:ut});const yt=globalThis.litElementPolyfillSupport;null==yt||yt({LitElement:ut}),(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.3.2");const gt=t=>"string"==typeof t?g(t):t;class bt{static create(t,o,e,r){const i=t=>gt(null!=t?t:r),n=b`var(${gt(t)}, ${i(r)})`;return n.name=t,n.description=t,n.category=e,n.defaultValue=r,n.defaultCssValue=i,n.get=o=>b`var(${gt(t)}, ${i(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,e,r){const i=t=>e.get(null!=t?t:r),n=b`var(${gt(t)}, ${i(r)})`;return n.name=t,n.description=o,n.category=e.category,n.fallbackVariable=e,n.defaultValue=r,n.defaultCssValue=i,n.get=o=>b`var(${gt(t)}, ${i(o)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:e.lastResortDefaultValue(),n}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):gt(null!=o?o:t.lastResortDefaultValue()),r=b`var(${gt(t.name)}, ${e(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=e,r.get=o=>b`var(${gt(t.name)}, ${e(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}function mt(t,o){return gt(`${t.name}: ${o}`)}const xt={colorWhite:bt.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:bt.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:bt.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:bt.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:bt.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:bt.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:bt.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:bt.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:bt.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:bt.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:bt.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:bt.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:bt.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:bt.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:bt.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:bt.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:bt.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:bt.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:bt.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:bt.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:bt.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:bt.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:bt.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:bt.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:bt.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:bt.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:bt.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:bt.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:bt.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:bt.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:bt.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:bt.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:bt.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:bt.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:bt.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:bt.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:bt.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:bt.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:bt.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:bt.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:bt.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:bt.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:bt.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:bt.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:bt.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:bt.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:bt.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:bt.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:bt.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:bt.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:bt.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:bt.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:bt.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:bt.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:bt.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:bt.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:bt.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:bt.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:bt.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:bt.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:bt.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:bt.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:bt.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:bt.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:bt.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:bt.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:bt.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:bt.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:bt.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:bt.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:bt.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:bt.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:bt.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:bt.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:bt.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:bt.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:bt.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:bt.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:bt.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:bt.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:bt.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:bt.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:bt.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:bt.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:bt.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:bt.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:bt.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:bt.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:bt.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:bt.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:bt.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:bt.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:bt.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:bt.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:bt.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:bt.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:bt.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:bt.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:bt.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:bt.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:bt.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:bt.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:bt.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:bt.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:bt.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:bt.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:bt.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:bt.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:bt.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:bt.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:bt.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:bt.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:bt.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:bt.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:bt.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:bt.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:bt.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:bt.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:bt.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:bt.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:bt.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:bt.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:bt.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:bt.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:bt.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:bt.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:bt.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:bt.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:bt.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:bt.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:bt.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:bt.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:bt.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:bt.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:bt.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:bt.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:bt.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:bt.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:bt.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:bt.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:bt.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:bt.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:bt.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:bt.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:bt.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:bt.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:bt.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:bt.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:bt.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:bt.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:bt.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:bt.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:bt.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:bt.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:bt.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:bt.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:bt.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:bt.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:bt.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:bt.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:bt.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:bt.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:bt.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:bt.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:bt.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:bt.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:bt.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:bt.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),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"),borderRadiusPill:bt.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:bt.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:bt.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:bt.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:bt.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:bt.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:bt.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:bt.create("--ft-icon-size-6","","SIZE","48px"),opacity0:bt.create("--ft-opacity-0","","NUMBER","0"),opacity8:bt.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:bt.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:bt.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:bt.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:bt.create("--ft-opacity-80","","NUMBER","0.8")},vt={display:{fontFamily:bt.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:bt.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:bt.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:bt.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:bt.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:bt.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:bt.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:bt.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:bt.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:bt.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:bt.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:bt.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:bt.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:bt.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:bt.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:bt.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:bt.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:bt.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:bt.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:bt.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:bt.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:bt.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:bt.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:bt.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:bt.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:bt.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:bt.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:bt.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:bt.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:bt.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:bt.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:bt.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:bt.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:bt.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:bt.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:bt.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:bt.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:bt.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:bt.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:bt.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:bt.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:bt.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:bt.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:bt.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:bt.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:bt.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:bt.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:bt.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:bt.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:bt.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:bt.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:bt.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:bt.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:bt.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:bt.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:bt.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:bt.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:bt.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:bt.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:bt.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:bt.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:bt.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:bt.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:bt.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:bt.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:bt.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:bt.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:bt.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:bt.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:bt.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:bt.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:bt.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:bt.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:bt.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:bt.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:bt.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:bt.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:bt.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:bt.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:bt.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:bt.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:bt.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:bt.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:bt.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:bt.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:bt.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:bt.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:bt.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:bt.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:bt.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:bt.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:bt.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:bt.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:bt.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:bt.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:bt.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:bt.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:bt.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:bt.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:bt.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:bt.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:bt.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:bt.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:bt.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:bt.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:bt.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:bt.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:bt.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:bt.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:bt.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:bt.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:bt.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:bt.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:bt.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:bt.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:bt.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:bt.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:bt.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:bt.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:bt.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:bt.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:bt.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:bt.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:bt.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:bt.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:bt.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:bt.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:bt.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:bt.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:bt.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:bt.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:bt.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:bt.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:bt.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:bt.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Ot={backgroundActionPrimary:bt.extend("--ft-background-action-primary","Used as backgorund of primary action components.",xt.colorBrand0),backgroundErrorPrimary:bt.extend("--ft-background-error-primary","Used as background of error components.",xt.colorRed0),backgroundErrorSubtle:bt.extend("--ft-background-error-subtle","Used as background of subtle error components.",xt.colorRed10),backgroundInfoPrimary:bt.extend("--ft-background-info-primary","Used as background of information components.",xt.colorCyan200),backgroundInfoSubtle:bt.extend("--ft-background-info-subtle","Used as background of subtle information components.",xt.colorCyan10),backgroundWarningPrimary:bt.extend("--ft-background-warning-primary","Used as background of warning components.",xt.colorOrange300),backgroundWarningSubtle:bt.extend("--ft-background-warning-subtle","Used as background of subtle information components.",xt.colorOrange10),backgroundSuccessPrimary:bt.extend("--ft-background-success-primary","Used as background of success components.",xt.colorGreen200),backgroundSuccessSubtle:bt.extend("--ft-background-success-subtle","Used as background of subtle success components.",xt.colorGreen10),backgroundGlobalSurface:bt.extend("--ft-background-global-surface","Used as app background.",xt.colorWhite),backgroundGlobalOnSurface:bt.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",xt.colorGray10),backgroundGlobalOnSurfaceDark:bt.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",xt.colorGray30),contentActionPrimary:bt.extend("--ft-content-action-primary","Used on label of primary action on light surface.",xt.colorBrand0),contentWarningPrimary:bt.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",xt.colorOrange300),contentWarningIconOnly:bt.extend("--ft-content-warning-icon-only","Used on warning status icons alone",xt.colorOrange0),contentErrorPrimary:bt.extend("--ft-content-error-primary","Used on label of error messages on light surface.",xt.colorRed0),contentErrorIconOnly:bt.extend("--ft-content-error-icon-only","Used on error status icons alone",xt.colorRed0),contentInfoPrimary:bt.extend("--ft-content-info-primary","Used on label of information messages on light surface.",xt.colorCyan200),contentInfoIconOnly:bt.extend("--ft-content-info-icon-only","Used on info status icons alone",xt.colorCyan0),contentSuccessIconOnly:bt.extend("--ft-content-success-icon-only","Used on success status icons alone",xt.colorGreen0),contentSuccessPrimary:bt.extend("--ft-content-success-primary","Used on label of success messages on light surface.",xt.colorGreen200),contentGlobalPrimary:bt.extend("--ft-content-global-primary","Used for main content on the page.",xt.colorGray500),contentGlobalSecondary:bt.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",xt.colorGray200),contentGlobalSubtle:bt.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",xt.colorGray0),contentGlobalOnColor:bt.extend("--ft-content-global-on-color","Used for content on a dominant color.",xt.colorWhite),borderActionPrimary:bt.extend("--ft-border-action-primary","Used as border for primary action components.",xt.colorBrand0),borderActionFocusRing:bt.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",xt.colorCyan0),borderWarningPrimary:bt.extend("--ft-border-warning-primary","Used as border for warning components.",xt.colorOrange30),borderSuccessPrimary:bt.extend("--ft-border-success-primary","Used as border for success components.",xt.colorGreen30),borderErrorPrimary:bt.extend("--ft-border-error-primary","Used as border for error components.",xt.colorRed30),borderInfoPrimary:bt.extend("--ft-border-info-primary","Used as border for information components.",xt.colorCyan30),borderGlobalSubtle:bt.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",xt.colorGray30),borderGlobalPrimary:bt.extend("--ft-border-global-primary","Used as border for element like input.",xt.colorGray50),borderInputPrimary:bt.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",xt.colorGray80)},Nt={largeHeight:bt.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:bt.extend("--ft-button-large-horizontal-padding","",xt.spacing4),largeGap:bt.extend("--ft-button-large-gap","",xt.spacing2),largeBorderRadius:bt.extend("--ft-button-large-border-radius","",xt.borderRadiusS),largeIconSize:bt.extend("--ft-button-large-icon-size","",xt.iconSize3),largeBorderWidth:bt.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:bt.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:bt.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:bt.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:bt.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:bt.extend("--ft-button-small-horizontal-padding","",xt.spacing3),smallGap:bt.extend("--ft-button-small-gap","",xt.spacing2),smallBorderRadius:bt.extend("--ft-button-small-border-radius","",xt.borderRadiusS),smallIconSize:bt.extend("--ft-button-small-icon-size","",xt.iconSize2),smallBorderWidth:bt.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:bt.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:bt.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:bt.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:bt.extend("--ft-button-primary-background-color","",Ot.backgroundActionPrimary),primaryColor:bt.extend("--ft-button-primary-color","",Ot.contentGlobalOnColor),primaryIconColor:bt.extend("--ft-button-primary-icon-color","",Ot.contentGlobalOnColor),primaryStateLayerColor:bt.extend("--ft-button-primary-state-layer-color","",Ot.contentGlobalOnColor),primaryStateLayerOpacityHover:bt.extend("--ft-button-primary-state-layer-opacity-hover","",xt.opacity16),primaryStateLayerOpacityFocus:bt.extend("--ft-button-primary-state-layer-opacity-focus","",xt.opacity16),primaryStateLayerOpacityActive:bt.extend("--ft-button-primary-state-layer-opacity-active","",xt.opacity24),primaryComponentOpacityDisabled:bt.extend("--ft-button-primary-component-opacity-disabled","",xt.opacity40),focusFocusRingColor:bt.extend("--ft-button-focus-focus-ring-color","",Ot.borderActionFocusRing),tertiaryBackgroundColor:bt.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:bt.extend("--ft-button-tertiary-color","",Ot.contentActionPrimary),tertiaryIconColor:bt.extend("--ft-button-tertiary-icon-color","",Ot.contentActionPrimary),tertiaryStateLayerColor:bt.extend("--ft-button-tertiary-state-layer-color","",Ot.contentActionPrimary),tertiaryStateLayerOpacityHover:bt.extend("--ft-button-tertiary-state-layer-opacity-hover","",xt.opacity8),tertiaryStateLayerOpacityFocus:bt.extend("--ft-button-tertiary-state-layer-opacity-focus","",xt.opacity8),tertiaryStateLayerOpacityActive:bt.extend("--ft-button-tertiary-state-layer-opacity-active","",xt.opacity16),tertiaryComponentOpacityDisabled:bt.extend("--ft-button-tertiary-component-opacity-disabled","",xt.opacity40),secondaryBackgroundColor:bt.extend("--ft-button-secondary-background-color","",xt.colorWhite),secondaryColor:bt.extend("--ft-button-secondary-color","",Ot.contentActionPrimary),secondaryIconColor:bt.extend("--ft-button-secondary-icon-color","",Ot.contentActionPrimary),secondaryStateLayerColor:bt.extend("--ft-button-secondary-state-layer-color","",Ot.contentActionPrimary),secondaryStateLayerOpacityHover:bt.extend("--ft-button-secondary-state-layer-opacity-hover","",xt.opacity8),secondaryStateLayerOpacityFocus:bt.extend("--ft-button-secondary-state-layer-opacity-focus","",xt.opacity8),secondaryStateLayerOpacityActive:bt.extend("--ft-button-secondary-state-layer-opacity-active","",xt.opacity16),secondaryComponentOpacityDisabled:bt.extend("--ft-button-secondary-component-opacity-disabled","",xt.opacity40),secondaryBorderColor:bt.extend("--ft-button-secondary-border-color","",Ot.borderActionPrimary),neutralBackgroundColor:bt.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:bt.extend("--ft-button-neutral-icon-color","",Ot.contentGlobalSecondary),neutralColor:bt.extend("--ft-button-neutral-color","",Ot.contentGlobalSecondary),neutralStateLayerColor:bt.extend("--ft-button-neutral-state-layer-color","",Ot.contentGlobalSecondary),neutralStateLayerOpacityHover:bt.extend("--ft-button-neutral-state-layer-opacity-hover","",xt.opacity8),neutralStateLayerOpacityFocus:bt.extend("--ft-button-neutral-state-layer-opacity-focus","",xt.opacity8),neutralStateLayerOpacityActive:bt.extend("--ft-button-neutral-state-layer-opacity-active","",xt.opacity16),neutralComponentOpacityDisabled:bt.extend("--ft-button-neutral-component-opacity-disabled","",xt.opacity40)};bt.extend("--ft-tabs-top-left-border-radius","",xt.borderRadiusS),bt.extend("--ft-tabs-top-right-border-radius","",xt.borderRadiusS),bt.extend("--ft-tabs-label-horizontal-padding","",xt.spacing4),bt.extend("--ft-tabs-label-vertical-padding","",xt.spacing3),bt.extend("--ft-tabs-label-gap","",xt.spacing1),bt.extend("--ft-switch-group-horizontal-padding","",xt.spacing1),bt.extend("--ft-switch-group-vertical-padding","",xt.spacing1),bt.extend("--ft-switch-group-gap","",xt.spacing1),bt.extend("--ft-switch-group-background-color","",Ot.backgroundGlobalSurface),bt.extend("--ft-switch-group-border-color","",Ot.borderGlobalSubtle),bt.create("--ft-switch-group-border-radius","","SIZE","6px"),bt.extend("--ft-switch-label-horizontal-padding","",xt.spacing2),bt.extend("--ft-switch-label-vertical-padding","",xt.spacing1),bt.extend("--ft-switch-icon-horizontal-padding","",xt.spacing1),bt.extend("--ft-switch-icon-vertical-padding","",xt.spacing1),bt.create("--ft-switch-focus-outline-width","","SIZE","2px"),bt.extend("--ft-switch-focus-focus-ring-color","",Ot.borderActionFocusRing),bt.extend("--ft-switch-option-border-radius","",xt.borderRadiusS),bt.extend("--ft-switch-off-state-layer-opacity-hover","",xt.opacity8),bt.extend("--ft-switch-off-state-layer-opacity-focus","",xt.opacity8),bt.extend("--ft-switch-off-state-layer-opacity-active","",xt.opacity16),bt.extend("--ft-switch-off-component-opacity-disabled","",xt.opacity40),bt.extend("--ft-switch-off-color","",Ot.contentGlobalSubtle),bt.extend("--ft-switch-off-state-layer-color","",Ot.contentGlobalSubtle),bt.extend("--ft-chart-1-light","for area color charts",xt.colorBrand40),bt.extend("--ft-chart-1-base","for line charts",xt.colorBrand0),bt.extend("--ft-chart-2-light","for area color charts",xt.colorYellow60),bt.extend("--ft-chart-2-base","for line charts",xt.colorYellow100),bt.extend("--ft-chart-3-light","",xt.colorUltramarine40),bt.extend("--ft-chart-3-base","",xt.colorUltramarine70),bt.extend("--ft-chart-4-light","",xt.colorCyan50),bt.extend("--ft-chart-4-base","",xt.colorCyan100),bt.extend("--ft-chart-5-light","",xt.colorRed40),bt.extend("--ft-chart-5-base","",xt.colorRed60),bt.extend("--ft-chart-6-light","",xt.colorGreen40),bt.extend("--ft-chart-6-base","",xt.colorGreen70),bt.extend("--ft-chart-7-light","",xt.colorOrange70),bt.extend("--ft-chart-7-base","",xt.colorOrange100),bt.extend("--ft-chart-8-light","",xt.colorAvocado70),bt.extend("--ft-chart-8-base","",xt.colorAvocado200),bt.extend("--ft-chart-9-light","",xt.colorBrown50),bt.extend("--ft-chart-9-base","",xt.colorBrown200),bt.extend("--ft-chart-10-light","",xt.colorGray50),bt.extend("--ft-chart-10-base","",xt.colorGray80),bt.extend("--ft-chart-monochrome-10","",xt.colorBrand10),bt.extend("--ft-chart-monochrome-20","",xt.colorBrand20),bt.extend("--ft-chart-monochrome-30","",xt.colorBrand40),bt.extend("--ft-chart-monochrome-40","",xt.colorBrand60),bt.extend("--ft-chart-monochrome-50","",xt.colorBrand0),bt.extend("--ft-chart-monochrome-60","",xt.colorBrand200),bt.extend("--ft-chip-large-horizontal-padding","",xt.spacing4),bt.extend("--ft-chip-large-vertical-padding","",xt.spacing2),bt.extend("--ft-chip-large-gap","",xt.spacing1),bt.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),bt.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),bt.extend("--ft-chip-large-border-radius","",xt.borderRadiusPill),bt.create("--ft-chip-large-border-width","","SIZE","1px"),bt.extend("--ft-chip-large-icon-size","",xt.iconSize3),bt.extend("--ft-chip-medium-horizontal-padding","",xt.spacing3),bt.extend("--ft-chip-medium-vertical-padding","",xt.spacing1),bt.extend("--ft-chip-medium-gap","",xt.spacing1),bt.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),bt.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),bt.extend("--ft-chip-medium-border-radius","",xt.borderRadiusPill),bt.create("--ft-chip-medium-border-width","","SIZE","1px"),bt.extend("--ft-chip-medium-icon-size","",xt.iconSize2),bt.extend("--ft-chip-small-horizontal-padding","",xt.spacing2),bt.extend("--ft-chip-small-vertical-padding","",xt.spacing05),bt.extend("--ft-chip-small-gap","",xt.spacing1),bt.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),bt.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),bt.extend("--ft-chip-small-border-radius","",xt.borderRadiusPill),bt.create("--ft-chip-small-border-width","","SIZE","1px"),bt.extend("--ft-chip-small-icon-size","",xt.iconSize1),bt.extend("--ft-chip-neutral-background-color","",Ot.backgroundGlobalOnSurface),bt.extend("--ft-chip-neutral-color","",Ot.contentGlobalPrimary),bt.extend("--ft-chip-neutral-border-color","",Ot.borderGlobalSubtle),bt.extend("--ft-chip-info-background-color","",Ot.backgroundInfoSubtle),bt.extend("--ft-chip-info-color","",Ot.contentInfoPrimary),bt.extend("--ft-chip-info-border-color","",Ot.borderInfoPrimary),bt.extend("--ft-chip-success-background-color","",Ot.backgroundSuccessSubtle),bt.extend("--ft-chip-success-color","",Ot.contentSuccessPrimary),bt.extend("--ft-chip-success-border-color","",Ot.borderSuccessPrimary),bt.extend("--ft-chip-warning-background-color","",Ot.backgroundWarningSubtle),bt.extend("--ft-chip-warning-color","",Ot.contentWarningPrimary),bt.extend("--ft-chip-warning-border-color","",Ot.borderWarningPrimary),bt.extend("--ft-chip-error-background-color","",Ot.backgroundErrorSubtle),bt.extend("--ft-chip-error-color","",Ot.contentErrorPrimary),bt.extend("--ft-chip-error-border-color","",Ot.borderErrorPrimary),bt.create("--ft-notice-border-width","","SIZE","1px"),bt.extend("--ft-notice-horizontal-padding","",xt.spacing2),bt.extend("--ft-notice-vertical-padding","",xt.spacing1),bt.extend("--ft-notice-border-radius","",xt.borderRadiusS),bt.extend("--ft-notice-gap","",xt.spacing2),bt.extend("--ft-notice-icon-size","",xt.iconSize3),bt.extend("--ft-notice-info-background-color","",Ot.backgroundInfoSubtle),bt.extend("--ft-notice-info-border-color","",Ot.borderInfoPrimary),bt.extend("--ft-notice-info-color","",Ot.contentInfoPrimary),bt.extend("--ft-notice-warning-background-color","",Ot.backgroundWarningSubtle),bt.extend("--ft-notice-warning-border-color","",Ot.borderWarningPrimary),bt.extend("--ft-notice-warning-color","",Ot.contentWarningPrimary),bt.extend("--ft-checkbox-label-color","",Ot.contentGlobalPrimary),bt.extend("--ft-checkbox-checked-background-color","",Ot.contentActionPrimary),bt.extend("--ft-checkbox-checked-state-layer-color","",Ot.contentActionPrimary),bt.extend("--ft-checkbox-checked-color","",Ot.contentGlobalOnColor),bt.extend("--ft-checkbox-checked-state-layer-opacity-hover","",xt.opacity16),bt.extend("--ft-checkbox-checked-state-layer-opacity-focus","",xt.opacity16),bt.extend("--ft-checkbox-checked-state-layer-opacity-active","",xt.opacity24),bt.extend("--ft-checkbox-checked-component-opacity-disabled","",xt.opacity40),bt.extend("--ft-checkbox-unchecked-border-color","",xt.colorGray80),bt.extend("--ft-checkbox-unchecked-state-layer-color","",xt.colorGray80),bt.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",xt.opacity16),bt.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",xt.opacity16),bt.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",xt.opacity24),bt.extend("--ft-checkbox-unchecked-component-opacity-disabled","",xt.opacity40),bt.extend("--ft-checkbox-focus-focus-ring-color","",Ot.borderActionFocusRing),bt.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),bt.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),bt.extend("--ft-checkbox-gap","",xt.spacing3),bt.extend("--ft-toggle-off-state-layer-opacity-hover","",xt.opacity16),bt.extend("--ft-toggle-off-state-layer-opacity-focus","",xt.opacity16),bt.extend("--ft-toggle-off-state-layer-opacity-active","",xt.opacity24),bt.extend("--ft-toggle-off-component-opacity-disabled","",xt.opacity40),bt.extend("--ft-toggle-off-background-color","",Ot.contentGlobalSubtle),bt.extend("--ft-toggle-off-icon-color","",Ot.contentGlobalSubtle),bt.extend("--ft-toggle-off-state-layer-color","",Ot.contentGlobalSubtle),bt.extend("--ft-toggle-on-state-layer-opacity-hover","",xt.opacity16),bt.extend("--ft-toggle-on-state-layer-opacity-focus","",xt.opacity16),bt.extend("--ft-toggle-on-state-layer-opacity-active","",xt.opacity24),bt.extend("--ft-toggle-on-component-opacity-disabled","",xt.opacity40),bt.extend("--ft-toggle-on-background-color","",Ot.contentActionPrimary),bt.extend("--ft-toggle-on-icon-color","",Ot.contentActionPrimary),bt.extend("--ft-toggle-on-state-layer-color","",Ot.contentActionPrimary),bt.extend("--ft-toggle-label-color","",Ot.contentGlobalPrimary),bt.extend("--ft-toggle-focus-focus-ring-color","",Ot.borderActionFocusRing),bt.extend("--ft-toggle-gap","",xt.spacing3),bt.extend("--ft-radio-label-color","",Ot.contentGlobalPrimary),bt.extend("--ft-radio-selected-color","",Ot.contentActionPrimary),bt.extend("--ft-radio-selected-state-layer-color","",Ot.contentActionPrimary),bt.extend("--ft-radio-selected-state-layer-opacity-hover","",xt.opacity16),bt.extend("--ft-radio-selected-state-layer-opacity-focus","",xt.opacity16),bt.extend("--ft-radio-selected-state-layer-opacity-active","",xt.opacity24),bt.extend("--ft-radio-selected-component-opacity-disabled","",xt.opacity40),bt.extend("--ft-radio-unselected-state-layer-color","",xt.colorGray80),bt.extend("--ft-radio-unselected-state-layer-opacity-hover","",xt.opacity16),bt.extend("--ft-radio-unselected-state-layer-opacity-focus","",xt.opacity16),bt.extend("--ft-radio-unselected-state-layer-opacity-active","",xt.opacity24),bt.extend("--ft-radio-unselected-component-opacity-disabled","",xt.opacity40),bt.extend("--ft-radio-focus-focus-ring-color","",Ot.borderActionFocusRing),bt.create("--ft-radio-focus-outline-offset","","SIZE","3px"),bt.create("--ft-radio-focus-outline-width","","SIZE","2px"),bt.extend("--ft-radio-gap","",xt.spacing3),bt.extend("--ft-notification-icon-size","",xt.iconSize4),bt.extend("--ft-notification-horizontal-padding","",xt.spacing4),bt.extend("--ft-notification-vertical-padding","",xt.spacing4),bt.extend("--ft-notification-info-background-color","",Ot.backgroundInfoSubtle),bt.extend("--ft-notification-info-color","",Ot.contentInfoPrimary),bt.extend("--ft-notification-info-border-color","",Ot.borderInfoPrimary),bt.extend("--ft-notification-success-background-color","",Ot.backgroundSuccessSubtle),bt.extend("--ft-notification-success-color","",Ot.contentSuccessPrimary),bt.extend("--ft-notification-success-border-color","",Ot.borderSuccessPrimary),bt.extend("--ft-notification-warning-background-color","",Ot.backgroundWarningSubtle),bt.extend("--ft-notification-warning-color","",Ot.contentWarningPrimary),bt.extend("--ft-notification-warning-border-color","",Ot.borderWarningPrimary),bt.extend("--ft-notification-error-background-color","",Ot.backgroundErrorSubtle),bt.extend("--ft-notification-error-color","",Ot.contentErrorPrimary),bt.extend("--ft-notification-error-border-color","",Ot.borderErrorPrimary),bt.extend("--ft-notification-border-radius","",xt.borderRadiusPill),bt.create("--ft-notification-border-width","","SIZE","1px"),bt.extend("--ft-notification-gap-leading","",xt.spacing2),bt.extend("--ft-notification-gap-trailing","",xt.spacing8);const St={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 wt extends ut{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return m(e,t.elementStyles),e}}var Ct,$t=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Rt=Symbol("constructorPrototype"),Et=Symbol("constructorName"),Ut=Symbol("exportpartsDebouncer");class It extends wt{constructor(){super(),this[Ct]=new o(5),this[Et]=this.constructor.name,this[Rt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Et]&&Object.setPrototypeOf(this,this[Rt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ut].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,n,a;const l=t=>null!=t&&t.trim().length>0,s=t.filter(l).map((t=>t.trim()));if(0===s.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(l).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>s.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Ct=Ut,$t([r()],It.prototype,"exportpartsPrefix",void 0),$t([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return r({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!c(t,o),...null!=o?o:{}})}([])],It.prototype,"exportpartsPrefixes",void 0),$t([r()],It.prototype,"customStylesheet",void 0);const kt=b`
66
66
  .ft-no-text-select {
67
67
  -webkit-touch-callout: none;
68
68
  -webkit-user-select: none;
@@ -83,7 +83,7 @@ var ft,dt;let ut=class extends C{constructor(){super(...arguments),this.renderOp
83
83
  -webkit-hyphens: auto;
84
84
  hyphens: auto
85
85
  }
86
- `;const Et=b`
86
+ `;const Wt=b`
87
87
  .ft-safari-ellipsis-fix {
88
88
  margin-right: 0;
89
89
 
@@ -94,17 +94,7 @@ var ft,dt;let ut=class extends C{constructor(){super(...arguments),this.renderOp
94
94
  display: inline-block;
95
95
  width: 0;
96
96
  }
97
- `;var Ct,Rt,Mt;window.ftReduxStores||(window.ftReduxStores={});const zt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mt=null===(Rt=null===(Ct=window.safari)||void 0===Ct?void 0:Ct.pushNotification)||void 0===Rt?void 0:Rt.toString())&&void 0!==Mt?Mt:""),Ft=1,Ut=2,jt=t=>(...e)=>({_$litDirective$:t,values:e});
98
- /**
99
- * @license
100
- * Copyright 2017 Google LLC
101
- * SPDX-License-Identifier: BSD-3-Clause
102
- */class Tt{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)}}
103
- /**
104
- * @license
105
- * Copyright 2018 Google LLC
106
- * SPDX-License-Identifier: BSD-3-Clause
107
- */const Bt=jt(class extends Tt{constructor(t){var e;if(super(t),t.type!==Ft||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return X}}),At=vt.extend("--ft-ripple-color",yt.colorContent),Lt={color:At,backgroundColor:vt.extend("--ft-ripple-background-color",At),opacityContentOnSurfacePressed:vt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:vt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:vt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:vt.external(yt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:vt.create("--ft-ripple-border-radius","SIZE","0px")},It=vt.extend("--ft-ripple-color",yt.colorPrimary),Pt=It,_t=vt.extend("--ft-ripple-background-color",It),Wt=vt.extend("--ft-ripple-color",yt.colorSecondary),Dt=Wt,Ht=vt.extend("--ft-ripple-background-color",Wt),Kt=b`
97
+ `;window.ftReduxStores||(window.ftReduxStores={});const Lt=Symbol("elementInternals");var zt,Kt,Ft;const Zt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ft=null===(Kt=null===(zt=window.safari)||void 0===zt?void 0:zt.pushNotification)||void 0===Kt?void 0:Kt.toString())&&void 0!==Ft?Ft:""),Bt=bt.extend("--ft-ripple-color","",St.colorContent),Dt={color:Bt,backgroundColor:bt.extend("--ft-ripple-background-color","",Bt),opacityContentOnSurfacePressed:bt.external(St.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(St.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(St.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(St.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","","SIZE","0px")},Mt=bt.extend("--ft-ripple-color","",St.colorPrimary),At=Mt,Ht=bt.extend("--ft-ripple-background-color","",Mt),jt=bt.extend("--ft-ripple-color","",St.colorSecondary),Pt=jt,Tt=bt.extend("--ft-ripple-background-color","",jt),Gt=b`
108
98
  :host {
109
99
  display: contents;
110
100
  }
@@ -117,7 +107,7 @@ var ft,dt;let ut=class extends C{constructor(){super(...arguments),this.renderOp
117
107
 
118
108
  .ft-ripple:not(.ft-ripple--unbounded) {
119
109
  overflow: hidden;
120
- border-radius: ${Lt.borderRadius};
110
+ border-radius: ${Dt.borderRadius};
121
111
  }
122
112
 
123
113
  .ft-ripple .ft-ripple--background,
@@ -151,27 +141,27 @@ var ft,dt;let ut=class extends C{constructor(){super(...arguments),this.renderOp
151
141
  }
152
142
 
153
143
  .ft-ripple .ft-ripple--background {
154
- background-color: ${Lt.backgroundColor};
144
+ background-color: ${Dt.backgroundColor};
155
145
  }
156
146
 
157
147
  .ft-ripple .ft-ripple--effect {
158
- background-color: ${Lt.color};
148
+ background-color: ${Dt.color};
159
149
  }
160
150
 
161
151
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
162
- background-color: ${Ht};
152
+ background-color: ${Tt};
163
153
  }
164
154
 
165
155
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
166
- background-color: ${Dt};
156
+ background-color: ${Pt};
167
157
  }
168
158
 
169
159
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
170
- background-color: ${_t};
160
+ background-color: ${Ht};
171
161
  }
172
162
 
173
163
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
174
- background-color: ${Pt};
164
+ background-color: ${At};
175
165
  }
176
166
 
177
167
  .ft-ripple .ft-ripple--background {
@@ -201,194 +191,124 @@ var ft,dt;let ut=class extends C{constructor(){super(...arguments),this.renderOp
201
191
  }
202
192
 
203
193
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
204
- opacity: ${Lt.opacityContentOnSurfaceHover};
194
+ opacity: ${Dt.opacityContentOnSurfaceHover};
205
195
  }
206
196
 
207
197
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
208
- opacity: ${Lt.opacityContentOnSurfaceSelected};
198
+ opacity: ${Dt.opacityContentOnSurfaceSelected};
209
199
  }
210
200
 
211
201
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
212
- opacity: ${Lt.opacityContentOnSurfaceFocused};
202
+ opacity: ${Dt.opacityContentOnSurfaceFocused};
213
203
  }
214
204
 
215
205
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
216
- opacity: ${Lt.opacityContentOnSurfacePressed};
206
+ opacity: ${Dt.opacityContentOnSurfacePressed};
217
207
  transform: translate(-50%, -50%) scale(1);
218
208
  }
219
- `;var Zt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Vt extends kt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.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 q`
220
- <style>
221
- .ft-ripple .ft-ripple--effect {
222
- left: ${this.originX}px;
223
- top: ${this.originY}px;
224
- }
225
- </style>
226
- <div class="${Bt(t)}">
227
- <div class="ft-ripple--background"></div>
228
- <div class="ft-ripple--effect"></div>
229
- </div>
230
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}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)}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"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}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.endRipple()}}Vt.elementDefinitions={},Vt.styles=Kt,Zt([o({type:Boolean})],Vt.prototype,"primary",void 0),Zt([o({type:Boolean})],Vt.prototype,"secondary",void 0),Zt([o({type:Boolean})],Vt.prototype,"unbounded",void 0),Zt([o({type:Boolean})],Vt.prototype,"activated",void 0),Zt([o({type:Boolean})],Vt.prototype,"selected",void 0),Zt([o({type:Boolean})],Vt.prototype,"disabled",void 0),Zt([s()],Vt.prototype,"hovered",void 0),Zt([s()],Vt.prototype,"focused",void 0),Zt([s()],Vt.prototype,"pressed",void 0),Zt([s()],Vt.prototype,"rippling",void 0),Zt([s()],Vt.prototype,"originX",void 0),Zt([s()],Vt.prototype,"originY",void 0),Zt([r(".ft-ripple")],Vt.prototype,"ripple",void 0),Zt([r(".ft-ripple--effect")],Vt.prototype,"rippleEffect",void 0),c("ft-ripple")(Vt);
231
- /**
232
- * @license
233
- * Copyright 2020 Google LLC
234
- * SPDX-License-Identifier: BSD-3-Clause
235
- */
236
- const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Xt=t=>({_$litStatic$:t,r:Jt}),Gt=new Map,Yt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=e[h];h<o&&void 0!==(n=i[h],s=qt(n));)a+=s+e[++h],c=!0;h!==o&&l.push(n),r.push(a),h++}if(h===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Gt.get(t))&&(r.raw=r,Gt.set(t,e=r)),i=l}return t(e,...i)})(q);var Qt;!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"}(Qt||(Qt={}));const te=vt.extend("--ft-typography-font-family",yt.titleFont),ee=vt.extend("--ft-typography-font-family",yt.contentFont),ie={fontFamily:ee,fontSize:vt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:vt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:vt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:vt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:vt.create("--ft-typography-text-transform","UNKNOWN","inherit")},oe=vt.extend("--ft-typography-title-font-family",te),se=vt.extend("--ft-typography-title-font-size",ie.fontSize,"20px"),ne=vt.extend("--ft-typography-title-font-weight",ie.fontWeight,"normal"),re=vt.extend("--ft-typography-title-letter-spacing",ie.letterSpacing,"0.15px"),le=vt.extend("--ft-typography-title-line-height",ie.lineHeight,"1.2"),ae=vt.extend("--ft-typography-title-text-transform",ie.textTransform,"inherit"),he=vt.extend("--ft-typography-title-dense-font-family",te),ce=vt.extend("--ft-typography-title-dense-font-size",ie.fontSize,"14px"),pe=vt.extend("--ft-typography-title-dense-font-weight",ie.fontWeight,"normal"),fe=vt.extend("--ft-typography-title-dense-letter-spacing",ie.letterSpacing,"0.105px"),de=vt.extend("--ft-typography-title-dense-line-height",ie.lineHeight,"1.7"),ue=vt.extend("--ft-typography-title-dense-text-transform",ie.textTransform,"inherit"),xe=vt.extend("--ft-typography-subtitle1-font-family",ee),ve=vt.extend("--ft-typography-subtitle1-font-size",ie.fontSize,"16px"),be=vt.extend("--ft-typography-subtitle1-font-weight",ie.fontWeight,"600"),ye=vt.extend("--ft-typography-subtitle1-letter-spacing",ie.letterSpacing,"0.144px"),ge=vt.extend("--ft-typography-subtitle1-line-height",ie.lineHeight,"1.5"),me=vt.extend("--ft-typography-subtitle1-text-transform",ie.textTransform,"inherit"),we=vt.extend("--ft-typography-subtitle2-font-family",ee),$e=vt.extend("--ft-typography-subtitle2-font-size",ie.fontSize,"14px"),Oe=vt.extend("--ft-typography-subtitle2-font-weight",ie.fontWeight,"normal"),Se=vt.extend("--ft-typography-subtitle2-letter-spacing",ie.letterSpacing,"0.098px"),ke=vt.extend("--ft-typography-subtitle2-line-height",ie.lineHeight,"1.7"),Ne=vt.extend("--ft-typography-subtitle2-text-transform",ie.textTransform,"inherit"),Ee=vt.extend("--ft-typography-body1-font-family",ee),Ce=vt.extend("--ft-typography-body1-font-size",ie.fontSize,"16px"),Re=vt.extend("--ft-typography-body1-font-weight",ie.fontWeight,"normal"),Me=vt.extend("--ft-typography-body1-letter-spacing",ie.letterSpacing,"0.496px"),ze=vt.extend("--ft-typography-body1-line-height",ie.lineHeight,"1.5"),Fe=vt.extend("--ft-typography-body1-text-transform",ie.textTransform,"inherit"),Ue=vt.extend("--ft-typography-body2-font-family",ee),je=vt.extend("--ft-typography-body2-font-size",ie.fontSize,"14px"),Te=vt.extend("--ft-typography-body2-font-weight",ie.fontWeight,"normal"),Be=vt.extend("--ft-typography-body2-letter-spacing",ie.letterSpacing,"0.252px"),Ae=vt.extend("--ft-typography-body2-line-height",ie.lineHeight,"1.4"),Le=vt.extend("--ft-typography-body2-text-transform",ie.textTransform,"inherit"),Ie=vt.extend("--ft-typography-caption-font-family",ee),Pe=vt.extend("--ft-typography-caption-font-size",ie.fontSize,"12px"),_e=vt.extend("--ft-typography-caption-font-weight",ie.fontWeight,"normal"),We=vt.extend("--ft-typography-caption-letter-spacing",ie.letterSpacing,"0.396px"),De=vt.extend("--ft-typography-caption-line-height",ie.lineHeight,"1.33"),He=vt.extend("--ft-typography-caption-text-transform",ie.textTransform,"inherit"),Ke=vt.extend("--ft-typography-breadcrumb-font-family",ee),Ze=vt.extend("--ft-typography-breadcrumb-font-size",ie.fontSize,"10px"),Ve=vt.extend("--ft-typography-breadcrumb-font-weight",ie.fontWeight,"normal"),Je=vt.extend("--ft-typography-breadcrumb-letter-spacing",ie.letterSpacing,"0.33px"),qe=vt.extend("--ft-typography-breadcrumb-line-height",ie.lineHeight,"1.6"),Xe=vt.extend("--ft-typography-breadcrumb-text-transform",ie.textTransform,"inherit"),Ge=vt.extend("--ft-typography-overline-font-family",ee),Ye=vt.extend("--ft-typography-overline-font-size",ie.fontSize,"10px"),Qe=vt.extend("--ft-typography-overline-font-weight",ie.fontWeight,"normal"),ti=vt.extend("--ft-typography-overline-letter-spacing",ie.letterSpacing,"1.5px"),ei=vt.extend("--ft-typography-overline-line-height",ie.lineHeight,"1.6"),ii=vt.extend("--ft-typography-overline-text-transform",ie.textTransform,"uppercase"),oi={fontFamily:vt.extend("--ft-typography-button-font-family",ee),fontSize:vt.extend("--ft-typography-button-font-size",ie.fontSize,"14px"),fontWeight:vt.extend("--ft-typography-button-font-weight",ie.fontWeight,"600"),letterSpacing:vt.extend("--ft-typography-button-letter-spacing",ie.letterSpacing,"1.246px"),lineHeight:vt.extend("--ft-typography-button-line-height",ie.lineHeight,"1.15"),textTransform:vt.extend("--ft-typography-button-text-transform",ie.textTransform,"uppercase")},si=b`
209
+ `;const _t=bt.extend("--ft-typography-font-family","",St.titleFont),Yt=bt.extend("--ft-typography-font-family","",St.contentFont),Vt={fontFamily:Yt,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")},Jt=bt.extend("--ft-typography-title-font-family","",_t),qt=bt.extend("--ft-typography-title-font-size","",Vt.fontSize,"20px"),Xt=bt.extend("--ft-typography-title-font-weight","",Vt.fontWeight,"normal"),Qt=bt.extend("--ft-typography-title-letter-spacing","",Vt.letterSpacing,"0.15px"),to=bt.extend("--ft-typography-title-line-height","",Vt.lineHeight,"1.2"),oo=bt.extend("--ft-typography-title-text-transform","",Vt.textTransform,"inherit"),eo=bt.extend("--ft-typography-title-dense-font-family","",_t),ro=bt.extend("--ft-typography-title-dense-font-size","",Vt.fontSize,"14px"),io=bt.extend("--ft-typography-title-dense-font-weight","",Vt.fontWeight,"normal"),no=bt.extend("--ft-typography-title-dense-letter-spacing","",Vt.letterSpacing,"0.105px"),ao=bt.extend("--ft-typography-title-dense-line-height","",Vt.lineHeight,"1.7"),lo=bt.extend("--ft-typography-title-dense-text-transform","",Vt.textTransform,"inherit"),so=bt.extend("--ft-typography-subtitle1-font-family","",Yt),co=bt.extend("--ft-typography-subtitle1-font-size","",Vt.fontSize,"16px"),po=bt.extend("--ft-typography-subtitle1-font-weight","",Vt.fontWeight,"600"),fo=bt.extend("--ft-typography-subtitle1-letter-spacing","",Vt.letterSpacing,"0.144px"),ho=bt.extend("--ft-typography-subtitle1-line-height","",Vt.lineHeight,"1.5"),uo=bt.extend("--ft-typography-subtitle1-text-transform","",Vt.textTransform,"inherit"),yo=bt.extend("--ft-typography-subtitle2-font-family","",Yt),go=bt.extend("--ft-typography-subtitle2-font-size","",Vt.fontSize,"14px"),bo=bt.extend("--ft-typography-subtitle2-font-weight","",Vt.fontWeight,"normal"),mo=bt.extend("--ft-typography-subtitle2-letter-spacing","",Vt.letterSpacing,"0.098px"),xo=bt.extend("--ft-typography-subtitle2-line-height","",Vt.lineHeight,"1.7"),vo=bt.extend("--ft-typography-subtitle2-text-transform","",Vt.textTransform,"inherit"),Oo=bt.extend("--ft-typography-body1-font-family","",Yt),No=bt.extend("--ft-typography-body1-font-size","",Vt.fontSize,"16px"),So=bt.extend("--ft-typography-body1-font-weight","",Vt.fontWeight,"normal"),wo=bt.extend("--ft-typography-body1-letter-spacing","",Vt.letterSpacing,"0.496px"),Co=bt.extend("--ft-typography-body1-line-height","",Vt.lineHeight,"1.5"),$o=bt.extend("--ft-typography-body1-text-transform","",Vt.textTransform,"inherit"),Ro=bt.extend("--ft-typography-body2-font-family","",Yt),Eo=bt.extend("--ft-typography-body2-font-size","",Vt.fontSize,"14px"),Uo=bt.extend("--ft-typography-body2-font-weight","",Vt.fontWeight,"normal"),Io=bt.extend("--ft-typography-body2-letter-spacing","",Vt.letterSpacing,"0.252px"),ko=bt.extend("--ft-typography-body2-line-height","",Vt.lineHeight,"1.4"),Wo=bt.extend("--ft-typography-body2-text-transform","",Vt.textTransform,"inherit"),Lo=bt.extend("--ft-typography-caption-font-family","",Yt),zo=bt.extend("--ft-typography-caption-font-size","",Vt.fontSize,"12px"),Ko=bt.extend("--ft-typography-caption-font-weight","",Vt.fontWeight,"normal"),Fo=bt.extend("--ft-typography-caption-letter-spacing","",Vt.letterSpacing,"0.396px"),Zo=bt.extend("--ft-typography-caption-line-height","",Vt.lineHeight,"1.33"),Bo=bt.extend("--ft-typography-caption-text-transform","",Vt.textTransform,"inherit"),Do=bt.extend("--ft-typography-breadcrumb-font-family","",Yt),Mo=bt.extend("--ft-typography-breadcrumb-font-size","",Vt.fontSize,"10px"),Ao=bt.extend("--ft-typography-breadcrumb-font-weight","",Vt.fontWeight,"normal"),Ho=bt.extend("--ft-typography-breadcrumb-letter-spacing","",Vt.letterSpacing,"0.33px"),jo=bt.extend("--ft-typography-breadcrumb-line-height","",Vt.lineHeight,"1.6"),Po=bt.extend("--ft-typography-breadcrumb-text-transform","",Vt.textTransform,"inherit"),To=bt.extend("--ft-typography-overline-font-family","",Yt),Go=bt.extend("--ft-typography-overline-font-size","",Vt.fontSize,"10px"),_o=bt.extend("--ft-typography-overline-font-weight","",Vt.fontWeight,"normal"),Yo=bt.extend("--ft-typography-overline-letter-spacing","",Vt.letterSpacing,"1.5px"),Vo=bt.extend("--ft-typography-overline-line-height","",Vt.lineHeight,"1.6"),Jo=bt.extend("--ft-typography-overline-text-transform","",Vt.textTransform,"uppercase"),qo={fontFamily:bt.extend("--ft-typography-button-font-family","",Yt),fontSize:bt.extend("--ft-typography-button-font-size","",Vt.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight","",Vt.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing","",Vt.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height","",Vt.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform","",Vt.textTransform,"uppercase")},Xo=b`
237
210
  .ft-typography--title {
238
- font-family: ${oe};
239
- font-size: ${se};
240
- font-weight: ${ne};
241
- letter-spacing: ${re};
242
- line-height: ${le};
243
- text-transform: ${ae};
244
- }
245
- `,ni=b`
211
+ font-family: ${Jt};
212
+ font-size: ${qt};
213
+ font-weight: ${Xt};
214
+ letter-spacing: ${Qt};
215
+ line-height: ${to};
216
+ text-transform: ${oo};
217
+ }
218
+ `,Qo=b`
246
219
  .ft-typography--title-dense {
247
- font-family: ${he};
248
- font-size: ${ce};
249
- font-weight: ${pe};
250
- letter-spacing: ${fe};
251
- line-height: ${de};
252
- text-transform: ${ue};
253
- }
254
- `,ri=b`
220
+ font-family: ${eo};
221
+ font-size: ${ro};
222
+ font-weight: ${io};
223
+ letter-spacing: ${no};
224
+ line-height: ${ao};
225
+ text-transform: ${lo};
226
+ }
227
+ `,te=b`
255
228
  .ft-typography--subtitle1 {
256
- font-family: ${xe};
257
- font-size: ${ve};
258
- font-weight: ${be};
259
- letter-spacing: ${ye};
260
- line-height: ${ge};
261
- text-transform: ${me};
262
- }
263
- `,li=b`
229
+ font-family: ${so};
230
+ font-size: ${co};
231
+ font-weight: ${po};
232
+ letter-spacing: ${fo};
233
+ line-height: ${ho};
234
+ text-transform: ${uo};
235
+ }
236
+ `,oe=b`
264
237
  .ft-typography--subtitle2 {
265
- font-family: ${we};
266
- font-size: ${$e};
267
- font-weight: ${Oe};
268
- letter-spacing: ${Se};
269
- line-height: ${ke};
270
- text-transform: ${Ne};
238
+ font-family: ${yo};
239
+ font-size: ${go};
240
+ font-weight: ${bo};
241
+ letter-spacing: ${mo};
242
+ line-height: ${xo};
243
+ text-transform: ${vo};
271
244
  }
272
245
 
273
- `,ai=b`
246
+ `,ee=b`
274
247
  .ft-typography--body1 {
275
- font-family: ${Ee};
276
- font-size: ${Ce};
277
- font-weight: ${Re};
278
- letter-spacing: ${Me};
279
- line-height: ${ze};
280
- text-transform: ${Fe};
281
- }
282
- `,hi=b`
248
+ font-family: ${Oo};
249
+ font-size: ${No};
250
+ font-weight: ${So};
251
+ letter-spacing: ${wo};
252
+ line-height: ${Co};
253
+ text-transform: ${$o};
254
+ }
255
+ `,re=b`
283
256
  .ft-typography--body2 {
284
- font-family: ${Ue};
285
- font-size: ${je};
286
- font-weight: ${Te};
287
- letter-spacing: ${Be};
288
- line-height: ${Ae};
289
- text-transform: ${Le};
290
- }
291
- `,ci=b`
257
+ font-family: ${Ro};
258
+ font-size: ${Eo};
259
+ font-weight: ${Uo};
260
+ letter-spacing: ${Io};
261
+ line-height: ${ko};
262
+ text-transform: ${Wo};
263
+ }
264
+ `,ie=b`
292
265
  .ft-typography--caption {
293
- font-family: ${Ie};
294
- font-size: ${Pe};
295
- font-weight: ${_e};
296
- letter-spacing: ${We};
297
- line-height: ${De};
298
- text-transform: ${He};
299
- }
300
- `,pi=b`
266
+ font-family: ${Lo};
267
+ font-size: ${zo};
268
+ font-weight: ${Ko};
269
+ letter-spacing: ${Fo};
270
+ line-height: ${Zo};
271
+ text-transform: ${Bo};
272
+ }
273
+ `,ne=b`
301
274
  .ft-typography--breadcrumb {
302
- font-family: ${Ke};
303
- font-size: ${Ze};
304
- font-weight: ${Ve};
305
- letter-spacing: ${Je};
306
- line-height: ${qe};
307
- text-transform: ${Xe};
308
- }
309
- `,fi=b`
275
+ font-family: ${Do};
276
+ font-size: ${Mo};
277
+ font-weight: ${Ao};
278
+ letter-spacing: ${Ho};
279
+ line-height: ${jo};
280
+ text-transform: ${Po};
281
+ }
282
+ `,ae=b`
310
283
  .ft-typography--overline {
311
- font-family: ${Ge};
312
- font-size: ${Ye};
313
- font-weight: ${Qe};
314
- letter-spacing: ${ti};
315
- line-height: ${ei};
316
- text-transform: ${ii};
317
- }
318
- `,di=b`
284
+ font-family: ${To};
285
+ font-size: ${Go};
286
+ font-weight: ${_o};
287
+ letter-spacing: ${Yo};
288
+ line-height: ${Vo};
289
+ text-transform: ${Jo};
290
+ }
291
+ `,le=b`
319
292
  .ft-typography--button {
320
- font-family: ${oi.fontFamily};
321
- font-size: ${oi.fontSize};
322
- font-weight: ${oi.fontWeight};
323
- letter-spacing: ${oi.letterSpacing};
324
- line-height: ${oi.lineHeight};
325
- text-transform: ${oi.textTransform};
326
- }
327
- `,ui=b`
293
+ font-family: ${qo.fontFamily};
294
+ font-size: ${qo.fontSize};
295
+ font-weight: ${qo.fontWeight};
296
+ letter-spacing: ${qo.letterSpacing};
297
+ line-height: ${qo.lineHeight};
298
+ text-transform: ${qo.textTransform};
299
+ }
300
+ `,se=b`
328
301
  .ft-typography {
329
302
  vertical-align: inherit;
330
303
  }
331
- `;var xi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class vi extends kt{constructor(){super(...arguments),this.variant=Qt.body1}render(){return this.element?Yt`
332
- <${Xt(this.element)}
333
- class="ft-typography ft-typography--${this.variant}">
334
- <slot></slot>
335
- </${Xt(this.element)}>
336
- `:Yt`
337
- <slot class="ft-typography ft-typography--${this.variant}"></slot>
338
- `}}vi.styles=[si,ni,ri,li,ai,hi,ci,pi,fi,di,ui],xi([o()],vi.prototype,"element",void 0),xi([o()],vi.prototype,"variant",void 0),c("ft-typography")(vi);const bi=vt.create("--ft-tooltip-distance","SIZE","4px"),yi=vt.create("--ft-tooltip-color","COLOR","#FFFFFF"),gi=vt.create("--ft-tooltip-background-color","COLOR","#666666"),mi=vt.create("--ft-tooltip-z-index","NUMBER","100"),wi=vt.external(yt.borderRadiusS,"Design system"),$i=vt.create("--ft-tooltip-max-width","SIZE","150px"),Oi=b`
339
- .ft-tooltip--container {
340
- display: block;
341
- }
342
-
343
- .ft-tooltip--inline {
344
- display: inline-block;
345
- max-width: 100%;
346
- }
347
-
348
- .ft-tooltip {
349
- position: absolute;
350
- box-sizing: border-box;
351
- overflow: hidden;
352
- width: max-content;
353
- max-width: ${$i};
354
- text-align: center;
355
- padding: ${bi};
356
- z-index: ${mi};
357
- }
358
-
359
- .ft-tooltip--content {
360
- padding: 4px 8px;
361
- border-radius: ${wi};
362
- background-color: ${gi};
363
- color: ${yi};
364
- position: relative;
365
- word-break: break-word;
366
- }
367
- `;var Si=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ki extends kt{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 q`
368
- <div part="container"
369
- class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
370
- @mouseenter=${this.onHover}
371
- @mouseleave=${this.onOut}
372
- @focusin=${this.onHover}
373
- @focusout=${this.onOut}
374
- @touchstart=${this.onTouch}>
375
- <slot></slot>
376
- <div part="tooltip" role="tooltip" inert
377
- class="ft-tooltip ft-tooltip--${this.validPosition}"
378
- ?hidden=${!this.visible}>
379
- <div part="tooltip-content" class="ft-tooltip--content">
380
- <slot name="text"></slot>
381
- <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
382
- </div>
383
- </div>
384
- </div>
385
- `}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,s=(t.offsetWidth-e)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=n+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let h=-a.x,c=a.x+a.width-window.innerWidth;l.left=n+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-a.y,f=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(p,f))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${$i})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ki.elementDefinitions={"ft-typography":vi},ki.styles=Oi,Si([o()],ki.prototype,"text",void 0),Si([o({type:Boolean})],ki.prototype,"manual",void 0),Si([o({type:Boolean})],ki.prototype,"inline",void 0),Si([o({type:Number})],ki.prototype,"delay",void 0),Si([o()],ki.prototype,"position",void 0),Si([
386
- /**
387
- * @license
388
- * Copyright 2017 Google LLC
389
- * SPDX-License-Identifier: BSD-3-Clause
390
- */
391
- function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:e,selector:i}):n({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],ki.prototype,"slotNodes",void 0),Si([r(".ft-tooltip--container")],ki.prototype,"container",void 0),Si([r(".ft-tooltip")],ki.prototype,"tooltip",void 0),Si([r(".ft-tooltip--content")],ki.prototype,"tooltipContent",void 0),Si([s()],ki.prototype,"visible",void 0),c("ft-tooltip")(ki);const Ni={color:vt.extend("--ft-loader-color",yt.colorPrimary),size:vt.create("--ft-loader-size","SIZE","80px")},Ei=b`
304
+ `,ce=[Object.keys(vt).map((t=>function(t){const o=vt[t];return b`
305
+ font-family: ${o.fontFamily};
306
+ font-size: ${o.fontSize};
307
+ font-weight: ${o.fontWeight};
308
+ letter-spacing: ${o.letterSpacing};
309
+ line-height: ${o.lineHeight};
310
+ text-transform: ${o.textCase};
311
+ `}(t)))],pe={color:bt.extend("--ft-loader-color","",St.colorPrimary),size:bt.create("--ft-loader-size","","SIZE","80px")},fe=b`
392
312
  :host {
393
313
  line-height: 0;
394
314
  }
@@ -397,8 +317,8 @@ function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},
397
317
  display: inline-block;
398
318
  position: relative;
399
319
 
400
- width: ${Ni.size};
401
- height: ${Ni.size};
320
+ width: ${pe.size};
321
+ height: ${pe.size};
402
322
  }
403
323
 
404
324
  .ft-loader div {
@@ -407,7 +327,7 @@ function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},
407
327
  width: 25%;
408
328
  height: 25%;
409
329
  border-radius: 50%;
410
- background: ${Ni.color};
330
+ background: ${pe.color};
411
331
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
412
332
  }
413
333
 
@@ -454,23 +374,10 @@ function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},
454
374
  transform: translate(0, 0);
455
375
  }
456
376
  100% {
457
- transform: translate(calc(0.35 * ${Ni.size}), 0);
377
+ transform: translate(calc(0.35 * ${pe.size}), 0);
458
378
  }
459
379
  }
460
- `;class Ci extends kt{render(){return q`
461
- <div class="ft-loader">
462
- <div></div>
463
- <div></div>
464
- <div></div>
465
- <div></div>
466
- </div>
467
- `}}Ci.styles=Ei,c("ft-loader")(Ci);
468
- /**
469
- * @license
470
- * Copyright 2017 Google LLC
471
- * SPDX-License-Identifier: BSD-3-Clause
472
- */
473
- class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)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===X)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:[]}}}Ri.directiveName="unsafeHTML",Ri.resultType=1;const Mi=jt(Ri);var zi,Fi;!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;"}(zi||(zi={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Fi||(Fi={})),new Map([...["abw"].map((t=>[t,Fi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Fi.AUDIO])),...["avi"].map((t=>[t,Fi.AVI])),...["chm","xhs"].map((t=>[t,Fi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Fi.CODE])),...["csv"].map((t=>[t,Fi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Fi.DITA])),...["epub"].map((t=>[t,Fi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Fi.EXCEL])),...["flac"].map((t=>[t,Fi.FLAC])),...["gif"].map((t=>[t,Fi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Fi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Fi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Fi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Fi.JPEG])),...["json"].map((t=>[t,Fi.JSON])),...["m4a","m4p"].map((t=>[t,Fi.M4A])),...["mov","qt"].map((t=>[t,Fi.MOV])),...["mp3"].map((t=>[t,Fi.MP3])),...["mp4","m4v"].map((t=>[t,Fi.MP4])),...["ogg","oga"].map((t=>[t,Fi.OGG])),...["pdf","ps"].map((t=>[t,Fi.PDF])),...["png"].map((t=>[t,Fi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Fi.POWERPOINT])),...["rar"].map((t=>[t,Fi.RAR])),...["stp"].map((t=>[t,Fi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Fi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Fi.VIDEO])),...["wav"].map((t=>[t,Fi.WAV])),...["wma"].map((t=>[t,Fi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Fi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Fi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Fi.YAML])),...["zip"].map((t=>[t,Fi.ZIP]))]);const Ui={size:vt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:vt.extend("--ft-icon-fluid-topics-font-family",vt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:vt.extend("--ft-icon-file-format-font-family",vt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:vt.extend("--ft-icon-material-font-family",vt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:vt.create("--ft-icon-vertical-align","UNKNOWN","unset")},ji=b`
380
+ `,he={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")},de=b`
474
381
  :host, i.ft-icon {
475
382
  display: inline-flex;
476
383
  align-items: center;
@@ -479,14 +386,14 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
479
386
  }
480
387
 
481
388
  :host {
482
- width: ${Ui.size};
483
- height: ${Ui.size};
389
+ width: ${he.size};
390
+ height: ${he.size};
484
391
  }
485
392
 
486
393
  i.ft-icon {
487
394
  width: 100%;
488
395
  height: 100%;
489
- font-size: ${Ui.size};
396
+ font-size: ${he.size};
490
397
  line-height: 1;
491
398
  font-weight: normal;
492
399
  text-transform: none;
@@ -497,33 +404,28 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
497
404
  text-rendering: auto;
498
405
  -webkit-font-smoothing: antialiased;
499
406
  -moz-osx-font-smoothing: grayscale;
500
- vertical-align: ${Ui.verticalAlign};
407
+ vertical-align: ${he.verticalAlign};
501
408
  }
502
409
 
503
410
  i.ft-icon.ft-icon--fluid-topics {
504
- font-family: ${Ui.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
411
+ font-family: ${he.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
505
412
 
506
413
  /* Ugly fix because font is broken */
507
- font-size: calc(0.75 * ${Ui.size});
508
- line-height: ${Ui.size};
414
+ font-size: calc(0.75 * ${he.size});
415
+ line-height: ${he.size};
509
416
  position: relative;
510
417
  top: -4%;
511
418
  justify-content: center;
512
419
  }
513
420
 
514
421
  .ft-icon--file-format {
515
- font-family: ${Ui.fileFormatFontFamily}, ft-mime, sans-serif;
422
+ font-family: ${he.fileFormatFontFamily}, ft-mime, sans-serif;
516
423
  }
517
424
 
518
425
  .ft-icon--material {
519
- font-family: ${Ui.materialFontFamily}, "Material Icons", sans-serif;
426
+ font-family: ${he.materialFontFamily}, "Material Icons", sans-serif;
520
427
  }
521
- `;var Ti;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ti||(Ti={}));var Bi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ai extends kt{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(Ti).includes(this.variant)?this.variant:Ti.fluid_topics,e=t!==Ti.material||!!this.value;return q`
522
- <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
523
- ${Mi(this.resolvedIcon)}
524
- <slot ?hidden=${e}></slot>
525
- </i>
526
- `}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 Ti.file_format:this.resolvedIcon=null!==(t=Fi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ti.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=zi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ai.elementDefinitions={},Ai.styles=ji,Bi([o()],Ai.prototype,"variant",void 0),Bi([o()],Ai.prototype,"value",void 0),Bi([s()],Ai.prototype,"resolvedIcon",void 0),Bi([r("slot")],Ai.prototype,"slottedContent",void 0),c("ft-icon")(Ai);const Li=vt.extend("--ft-button-color",yt.colorPrimary),Ii={backgroundColor:vt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:vt.extend("--ft-button-border-radius",yt.borderRadiusL),color:Li,fontSize:vt.extend("--ft-button-font-size",oi.fontSize),iconSize:vt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:vt.extend("--ft-button-ripple-color",Li),verticalPadding:vt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:vt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:vt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:vt.external(yt.colorOpacityDisabled,"Design system")},Pi=vt.extend("--ft-button-primary-color",vt.extend("--ft-button-color",yt.colorOnPrimary)),_i={backgroundColor:vt.extend("--ft-button-primary-background-color",vt.extend("--ft-button-background-color",yt.colorPrimary)),color:Pi,rippleColor:vt.extend("--ft-button-primary-ripple-color",Pi)},Wi=vt.extend("--ft-button-dense-border-radius",vt.extend("--ft-button-border-radius",yt.borderRadiusM)),Di=vt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Hi=vt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Ki=vt.create("--ft-button-dense-icon-padding","SIZE","4px"),Zi=[b`
428
+ `,ue=bt.extend("--ft-button-color","",St.colorPrimary),ye={backgroundColor:bt.extend("--ft-button-background-color","",St.colorSurface),borderRadius:bt.extend("--ft-button-border-radius","",St.borderRadiusL),color:ue,fontSize:bt.extend("--ft-button-font-size","",qo.fontSize),iconSize:bt.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color","",ue),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(St.colorOpacityDisabled,"Design system")},ge=bt.extend("--ft-button-primary-color","",bt.extend("--ft-button-color","",St.colorOnPrimary)),be={backgroundColor:bt.extend("--ft-button-primary-background-color","",bt.extend("--ft-button-background-color","",St.colorPrimary)),color:ge,rippleColor:bt.extend("--ft-button-primary-ripple-color","",ge)},me=bt.extend("--ft-button-dense-border-radius","",bt.extend("--ft-button-border-radius","",St.borderRadiusM)),xe=bt.create("--ft-button-dense-vertical-padding","","SIZE","2px"),ve=bt.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Oe=bt.create("--ft-button-dense-icon-padding","","SIZE","4px"),Ne=[b`
527
429
  :host {
528
430
  display: inline-block;
529
431
  max-width: 100%;
@@ -534,7 +436,7 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
534
436
  box-shadow: 0px 0px 0px transparent;
535
437
  border: 0px solid transparent;
536
438
  text-shadow: 0px 0px 0px transparent;
537
- font-size: ${Ii.fontSize};
439
+ font-size: ${ye.fontSize};
538
440
  }
539
441
 
540
442
  button:hover {
@@ -563,31 +465,31 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
563
465
  border: none;
564
466
  pointer-events: auto;
565
467
 
566
- --ft-button-internal-line-height: max(calc(${Ii.fontSize} + 2px), ${Ii.iconSize});
567
- --ft-button-internal-color: ${Ii.color};
568
- ${bt(Ui.size,Ii.iconSize)};
569
- ${bt(Lt.color,Ii.rippleColor)};
468
+ --ft-button-internal-line-height: max(calc(${ye.fontSize} + 2px), ${ye.iconSize});
469
+ --ft-button-internal-color: ${ye.color};
470
+ ${mt(he.size,ye.iconSize)};
471
+ ${mt(Dt.color,ye.rippleColor)};
570
472
 
571
- border-radius: ${Ii.borderRadius};
572
- padding: ${Ii.verticalPadding} ${Ii.horizontalPadding};
573
- background-color: ${Ii.backgroundColor};
473
+ border-radius: ${ye.borderRadius};
474
+ padding: ${ye.verticalPadding} ${ye.horizontalPadding};
475
+ background-color: ${ye.backgroundColor};
574
476
  color: var(--ft-button-internal-color);
575
477
  -webkit-mask-image: radial-gradient(white, black);
576
478
  }
577
479
 
578
480
  .ft-button.ft-button--outlined {
579
481
  border: 1px solid var(--ft-button-internal-color);
580
- padding: calc(${Ii.verticalPadding} - 1px) calc(${Ii.horizontalPadding} - 1px);
482
+ padding: calc(${ye.verticalPadding} - 1px) calc(${ye.horizontalPadding} - 1px);
581
483
  }
582
484
 
583
485
  .ft-button.ft-button--dense {
584
- padding: ${Di} ${Hi};
585
- border-radius: ${Wi};
586
- gap: ${Ki};
486
+ padding: ${xe} ${ve};
487
+ border-radius: ${me};
488
+ gap: ${Oe};
587
489
  }
588
490
 
589
491
  .ft-button.ft-button--dense.ft-button--outlined {
590
- padding: calc(${Di} - 1px) calc(${Hi} - 1px);
492
+ padding: calc(${xe} - 1px) calc(${ve} - 1px);
591
493
  }
592
494
 
593
495
  .ft-button:not([disabled]):hover {
@@ -595,22 +497,22 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
595
497
  }
596
498
 
597
499
  .ft-button--round {
598
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ii.verticalPadding});
500
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ye.verticalPadding});
599
501
  }
600
502
 
601
503
  .ft-button--round.ft-button--dense {
602
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Di});
504
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${xe});
603
505
  }
604
506
 
605
507
  .ft-button[disabled] {
606
508
  filter: grayscale(1);
607
- opacity: ${Ii.opacityDisabled};
509
+ opacity: ${ye.opacityDisabled};
608
510
  }
609
511
 
610
512
  .ft-button.ft-button--primary {
611
- background-color: ${_i.backgroundColor};
612
- --ft-button-internal-color: ${_i.color};
613
- ${bt(Lt.color,_i.rippleColor)};
513
+ background-color: ${be.backgroundColor};
514
+ --ft-button-internal-color: ${be.color};
515
+ ${mt(Dt.color,be.rippleColor)};
614
516
  }
615
517
 
616
518
  .ft-button:focus {
@@ -623,13 +525,13 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
623
525
  white-space: nowrap;
624
526
  text-overflow: ellipsis;
625
527
  display: block;
626
- margin: 0 ${Ii.iconPadding};
627
- ${bt(oi.fontSize,"1em")};
628
- ${bt(oi.lineHeight,"var(--ft-button-internal-line-height)")};
528
+ margin: 0 ${ye.iconPadding};
529
+ ${mt(qo.fontSize,"1em")};
530
+ ${mt(qo.lineHeight,"var(--ft-button-internal-line-height)")};
629
531
  }
630
532
 
631
533
  .ft-button--dense .ft-button--label {
632
- margin: 0 ${Ki};
534
+ margin: 0 ${Oe};
633
535
  }
634
536
 
635
537
  .ft-button--label[hidden] {
@@ -642,13 +544,13 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
642
544
  }
643
545
 
644
546
  .ft-button--label[hidden] + ft-icon {
645
- margin: 0 calc(${Ii.horizontalPadding} * -1);
646
- padding: 0 ${Ii.verticalPadding};
547
+ margin: 0 calc(${ye.horizontalPadding} * -1);
548
+ padding: 0 ${ye.verticalPadding};
647
549
  }
648
550
 
649
551
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
650
- margin: 0 calc(${Hi} * -1);
651
- padding: 0 ${Di};
552
+ margin: 0 calc(${ve} * -1);
553
+ padding: 0 ${xe};
652
554
  }
653
555
 
654
556
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -657,33 +559,351 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
657
559
  }
658
560
 
659
561
  ft-loader {
660
- ${bt(Ni.size,Ii.iconSize)};
661
- ${bt(Ni.color,"var(--ft-button-internal-color)")};
562
+ ${mt(pe.size,ye.iconSize)};
563
+ ${mt(pe.color,"var(--ft-button-internal-color)")};
662
564
  }
663
- `,Nt];var Vi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ji extends kt{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(q`
565
+ `,kt],Se=1,we=2,Ce=t=>(...o)=>({_$litDirective$:t,values:o});class $e{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
566
+ /**
567
+ * @license
568
+ * Copyright 2018 Google LLC
569
+ * SPDX-License-Identifier: BSD-3-Clause
570
+ */const Re=Ce(class extends $e{constructor(t){var o;if(super(t),t.type!==Se||"class"!==t.name||(null===(o=t.strings)||void 0===o?void 0:o.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){var e,r;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 o)o[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(o)}const i=t.element.classList;this.it.forEach((t=>{t in o||(i.remove(t),this.it.delete(t))}));for(const t in o){const e=!!o[t];e===this.it.has(t)||(null===(r=this.nt)||void 0===r?void 0:r.has(t))||(e?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return J}});var Ee=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ue extends It{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return V`
571
+ <style>
572
+ .ft-ripple .ft-ripple--effect {
573
+ left: ${this.originX}px;
574
+ top: ${this.originY}px;
575
+ }
576
+ </style>
577
+ <div class="${Re(t)}">
578
+ <div class="ft-ripple--background"></div>
579
+ <div class="ft-ripple--effect"></div>
580
+ </div>
581
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),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",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ue.elementDefinitions={},Ue.styles=Gt,Ee([r({type:Boolean})],Ue.prototype,"primary",void 0),Ee([r({type:Boolean})],Ue.prototype,"secondary",void 0),Ee([r({type:Boolean})],Ue.prototype,"unbounded",void 0),Ee([r({type:Boolean})],Ue.prototype,"activated",void 0),Ee([r({type:Boolean})],Ue.prototype,"selected",void 0),Ee([r({type:Boolean})],Ue.prototype,"disabled",void 0),Ee([i()],Ue.prototype,"hovered",void 0),Ee([i()],Ue.prototype,"focused",void 0),Ee([i()],Ue.prototype,"pressed",void 0),Ee([i()],Ue.prototype,"rippling",void 0),Ee([i()],Ue.prototype,"originX",void 0),Ee([i()],Ue.prototype,"originY",void 0),Ee([a(".ft-ripple")],Ue.prototype,"ripple",void 0),Ee([a(".ft-ripple--effect")],Ue.prototype,"rippleEffect",void 0),p("ft-ripple")(Ue);
582
+ /**
583
+ * @license
584
+ * Copyright 2020 Google LLC
585
+ * SPDX-License-Identifier: BSD-3-Clause
586
+ */
587
+ const Ie=Symbol.for(""),ke=t=>{if((null==t?void 0:t.r)===Ie)return null==t?void 0:t._$litStatic$},We=t=>({_$litStatic$:t,r:Ie}),Le=new Map,ze=(t=>(o,...e)=>{const r=e.length;let i,n;const a=[],l=[];let s,c=0,p=!1;for(;c<r;){for(s=o[c];c<r&&void 0!==(n=e[c],i=ke(n));)s+=i+o[++c],p=!0;c!==r&&l.push(n),a.push(s),c++}if(c===r&&a.push(o[r]),p){const t=a.join("$$lit$$");void 0===(o=Le.get(t))&&(a.raw=a,Le.set(t,o=a)),e=l}return t(o,...e)})(V);var Ke;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Ke||(Ke={}));var Fe=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ze extends It{constructor(){super(...arguments),this.variant=Ke.body1}render(){return this.element?ze`
588
+ <${We(this.element)}
589
+ class="ft-typography ft-typography--${this.variant}">
590
+ <slot></slot>
591
+ </${We(this.element)}>
592
+ `:ze`
593
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
594
+ `}}Ze.styles=[Xo,Qo,te,oe,ee,re,ie,ne,ae,le,se,...ce],Fe([r()],Ze.prototype,"element",void 0),Fe([r()],Ze.prototype,"variant",void 0),p("ft-typography")(Ze);const Be=bt.create("--ft-tooltip-distance","","SIZE","4px"),De=bt.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Me=bt.create("--ft-tooltip-background-color","","COLOR","#666666"),Ae=bt.create("--ft-tooltip-z-index","","NUMBER","100"),He=bt.external(St.borderRadiusS,"Design system"),je=bt.create("--ft-tooltip-max-width","","SIZE","150px"),Pe=b`
595
+ .ft-tooltip--container {
596
+ display: block;
597
+ }
598
+
599
+ .ft-tooltip--inline {
600
+ display: inline-block;
601
+ max-width: 100%;
602
+ }
603
+
604
+ .ft-tooltip {
605
+ position: absolute;
606
+ box-sizing: border-box;
607
+ overflow: hidden;
608
+ width: max-content;
609
+ max-width: ${je};
610
+ text-align: center;
611
+ padding: ${Be};
612
+ z-index: ${Ae};
613
+ }
614
+
615
+ .ft-tooltip--content {
616
+ padding: 4px 8px;
617
+ border-radius: ${He};
618
+ background-color: ${Me};
619
+ color: ${De};
620
+ position: relative;
621
+ word-break: break-word;
622
+ }
623
+ `;var Te=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ge extends It{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return V`
624
+ <div part="container"
625
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
626
+ @mouseenter=${this.onHover}
627
+ @mouseleave=${this.onOut}
628
+ @focusin=${this.onHover}
629
+ @focusout=${this.onOut}
630
+ @touchstart=${this.onTouch}>
631
+ <slot></slot>
632
+ <div part="tooltip" role="tooltip" inert
633
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
634
+ ?hidden=${!this.visible}>
635
+ <div part="tooltip-content" class="ft-tooltip--content">
636
+ <slot name="text"></slot>
637
+ <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
638
+ </div>
639
+ </div>
640
+ </div>
641
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,r=(t.offsetHeight-e)/2,i=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=n+"px",l.top=a+"px";const s=this.tooltip.getBoundingClientRect();let c=-s.x,p=s.x+s.width-window.innerWidth;l.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-s.y,h=s.y+s.height-window.innerHeight;l.top=a+Math.round(this.correctOutOfWindowPixels(f,h))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${je})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Ge.elementDefinitions={"ft-typography":Ze},Ge.styles=Pe,Te([r()],Ge.prototype,"text",void 0),Te([r({type:Boolean})],Ge.prototype,"manual",void 0),Te([r({type:Boolean})],Ge.prototype,"inline",void 0),Te([r({type:Number})],Ge.prototype,"delay",void 0),Te([r()],Ge.prototype,"position",void 0),Te([
642
+ /**
643
+ * @license
644
+ * Copyright 2017 Google LLC
645
+ * SPDX-License-Identifier: BSD-3-Clause
646
+ */
647
+ function(t,o,e){let r,i=t;return"object"==typeof t?(i=t.slot,r=t):r={flatten:o},e?function(t){const{slot:o,selector:e}=null!=t?t:{};return n({descriptor:r=>({get(){var r;const i="slot"+(o?`[name=${o}]`:":not([name])"),n=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(i),a=null!=n?s(n,t):[];return e?a.filter((t=>t.matches(e))):a},enumerable:!0,configurable:!0})})}({slot:i,flatten:o,selector:e}):n({descriptor:t=>({get(){var t,o;const e="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(o=null==n?void 0:n.assignedNodes(r))&&void 0!==o?o:[]},enumerable:!0,configurable:!0})})}("",!0)],Ge.prototype,"slotNodes",void 0),Te([a(".ft-tooltip--container")],Ge.prototype,"container",void 0),Te([a(".ft-tooltip")],Ge.prototype,"tooltip",void 0),Te([a(".ft-tooltip--content")],Ge.prototype,"tooltipContent",void 0),Te([i()],Ge.prototype,"visible",void 0),p("ft-tooltip")(Ge);
648
+ /**
649
+ * @license
650
+ * Copyright 2017 Google LLC
651
+ * SPDX-License-Identifier: BSD-3-Clause
652
+ */
653
+ class _e extends $e{constructor(t){if(super(t),this.et=q,t.type!==we)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this.ft=void 0,this.et=t;if(t===J)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 o=[t];return o.raw=o,this.ft={_$litType$:this.constructor.resultType,strings:o,values:[]}}}_e.directiveName="unsafeHTML",_e.resultType=1;const Ye=Ce(_e);var Ve,Je,qe;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Ve||(Ve={})),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;"}(Je||(Je={})),new Map([...["abw"].map((t=>[t,Je.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,Je.AUDIO])),...["avi"].map((t=>[t,Je.AVI])),...["chm","xhs"].map((t=>[t,Je.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,Je.CODE])),...["csv"].map((t=>[t,Je.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Je.DITA])),...["epub"].map((t=>[t,Je.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Je.EXCEL])),...["flac"].map((t=>[t,Je.FLAC])),...["gif"].map((t=>[t,Je.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Je.GZIP])),...["html","htm","xhtml"].map((t=>[t,Je.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,Je.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Je.JPEG])),...["json"].map((t=>[t,Je.JSON])),...["m4a","m4p"].map((t=>[t,Je.M4A])),...["mov","qt"].map((t=>[t,Je.MOV])),...["mp3"].map((t=>[t,Je.MP3])),...["mp4","m4v"].map((t=>[t,Je.MP4])),...["ogg","oga"].map((t=>[t,Je.OGG])),...["pdf","ps"].map((t=>[t,Je.PDF])),...["png"].map((t=>[t,Je.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Je.POWERPOINT])),...["rar"].map((t=>[t,Je.RAR])),...["stp"].map((t=>[t,Je.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Je.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,Je.VIDEO])),...["wav"].map((t=>[t,Je.WAV])),...["wma"].map((t=>[t,Je.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Je.WORD])),...["xml","xsl","rdf"].map((t=>[t,Je.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Je.YAML])),...["zip"].map((t=>[t,Je.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(qe||(qe={}));var Xe=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Qe extends It{constructor(){super(...arguments),this.resolvedIcon=q}render(){const t=this.variant&&Object.values(qe).includes(this.variant)?this.variant:qe.fluid_topics,o=t!==qe.material||!!this.value;return V`
654
+ <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
655
+ ${Ye(this.resolvedIcon)}
656
+ <slot ?hidden=${o}></slot>
657
+ </i>
658
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case qe.file_format:this.resolvedIcon=null!==(t=Je[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case qe.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(o=Ve[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Qe.elementDefinitions={},Qe.styles=de,Xe([r()],Qe.prototype,"variant",void 0),Xe([r()],Qe.prototype,"value",void 0),Xe([i()],Qe.prototype,"resolvedIcon",void 0),Xe([a("slot")],Qe.prototype,"slottedContent",void 0),p("ft-icon")(Qe);class tr extends It{render(){return V`
659
+ <div class="ft-loader">
660
+ <div></div>
661
+ <div></div>
662
+ <div></div>
663
+ <div></div>
664
+ </div>
665
+ `}}tr.styles=fe,p("ft-loader")(tr);var or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class er extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Lt].form}constructor(...t){super(t),this[Lt]=this.attachInternals(),this[Lt].role=o}setFormValue(t){this[Lt].setFormValue(t)}}}(It,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(V`
664
666
  <button part="button"
665
- class="${Bt(t)}"
667
+ class="${Re(this.buttonClasses)}"
666
668
  aria-label="${this.getLabel()}"
667
669
  ?disabled=${this.isDisabled()}>
668
670
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
669
671
  <ft-typography part="label"
670
- variant="button"
672
+ variant=${this.typographyVariant}
671
673
  element="span"
672
- class="ft-button--label ${zt?"ft-safari-ellipsis-fix":""}"
674
+ class="ft-button--label ${Zt?"ft-safari-ellipsis-fix":""}"
673
675
  ?hidden=${!this.hasTextContent()}>
674
676
  <slot @slotchange=${this.onSlotchange}></slot>
675
677
  </ft-typography>
676
678
  ${this.resolveIcon()}
677
679
  </button>
678
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?q`
679
- <ft-tooltip part="tooltip"
680
- text="${this.getLabel()}"
681
- position="${this.tooltipPosition}">
682
- ${t}
683
- </ft-tooltip>
684
- `:t}resolveIcon(){return this.loading?q`
685
- <ft-loader part="loader icon"></ft-loader> `:this.icon?q`
686
- <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}}Ji.elementDefinitions={"ft-ripple":Vt,"ft-tooltip":ki,"ft-typography":vi,"ft-icon":Ai,"ft-loader":Ci},Ji.styles=[Et,Zi],Vi([o({type:String,reflect:!0})],Ji.prototype,"role",void 0),Vi([o({type:Boolean})],Ji.prototype,"primary",void 0),Vi([o({type:Boolean})],Ji.prototype,"outlined",void 0),Vi([o({type:Boolean})],Ji.prototype,"disabled",void 0),Vi([o({type:Boolean})],Ji.prototype,"dense",void 0),Vi([o({type:Boolean})],Ji.prototype,"round",void 0),Vi([o()],Ji.prototype,"label",void 0),Vi([o()],Ji.prototype,"icon",void 0),Vi([o()],Ji.prototype,"iconVariant",void 0),Vi([o({type:Boolean})],Ji.prototype,"trailingIcon",void 0),Vi([o({type:Boolean})],Ji.prototype,"loading",void 0),Vi([o()],Ji.prototype,"tooltipPosition",void 0),Vi([o({type:Boolean})],Ji.prototype,"hideTooltip",void 0),Vi([o({type:Boolean})],Ji.prototype,"forceTooltip",void 0),Vi([r(".ft-button")],Ji.prototype,"button",void 0),Vi([r(".ft-button--label slot")],Ji.prototype,"slottedContent",void 0),c("ft-button")(Ji);const qi={buttonsColor:vt.extend("--ft-snap-scroll-buttons-color",yt.colorPrimary),buttonsZIndex:vt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:vt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:vt.external(yt.colorSurface,"Design system")},Xi=b`
680
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?V`
681
+ <ft-tooltip part="tooltip"
682
+ text="${this.getLabel()}"
683
+ position="${this.tooltipPosition}">
684
+ ${t}
685
+ </ft-tooltip>
686
+ `:t}resolveIcon(){return this.loading?V`
687
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?V`
688
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}er.elementDefinitions={"ft-ripple":Ue,"ft-tooltip":Ge,"ft-typography":Ze,"ft-icon":Qe,"ft-loader":tr},or([r({type:String,reflect:!0})],er.prototype,"role",void 0),or([r()],er.prototype,"type",void 0),or([r({type:Boolean})],er.prototype,"disabled",void 0),or([r()],er.prototype,"label",void 0),or([r()],er.prototype,"icon",void 0),or([r()],er.prototype,"iconVariant",void 0),or([r({type:Boolean})],er.prototype,"trailingIcon",void 0),or([r({type:Boolean})],er.prototype,"loading",void 0),or([r()],er.prototype,"tooltipPosition",void 0),or([r({type:Boolean})],er.prototype,"hideTooltip",void 0),or([r({type:Boolean})],er.prototype,"forceTooltip",void 0),or([a(".ft-button")],er.prototype,"button",void 0),or([a(".ft-button--label slot")],er.prototype,"slottedContent",void 0);var rr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ir extends er{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ir.styles=[Wt,Ne],rr([r({type:Boolean})],ir.prototype,"primary",void 0),rr([r({type:Boolean})],ir.prototype,"outlined",void 0),rr([r({type:Boolean})],ir.prototype,"disabled",void 0),rr([r({type:Boolean})],ir.prototype,"dense",void 0),rr([r({type:Boolean})],ir.prototype,"round",void 0);const nr=[b`
689
+ :host {
690
+ display: inline-block;
691
+ max-width: 100%;
692
+ pointer-events: none;
693
+ }
694
+
695
+ /** Remove default button styles **/
696
+
697
+ button {
698
+ box-shadow: 0 0 0 transparent;
699
+ border: 0 solid transparent;
700
+ text-shadow: 0 0 0 transparent;
701
+ }
702
+
703
+ button:hover {
704
+ box-shadow: 0 0 0 transparent;
705
+ text-shadow: 0 0 0 transparent;
706
+ }
707
+
708
+ button:active {
709
+ outline: none;
710
+ }
711
+
712
+ button:focus {
713
+ outline: 0;
714
+ }
715
+
716
+ /** Base styles **/
717
+
718
+ .ft-button {
719
+ position: relative;
720
+ display: flex;
721
+ justify-content: center;
722
+ align-items: center;
723
+ width: 100%;
724
+ overflow: hidden;
725
+ box-sizing: border-box;
726
+ pointer-events: auto;
727
+ }
728
+
729
+ .ft-button:not([disabled]):hover {
730
+ cursor: pointer;
731
+ }
732
+
733
+ .ft-button:focus {
734
+ outline: none;
735
+ }
736
+
737
+ .ft-button:focus-visible {
738
+ outline-color: ${Nt.focusFocusRingColor};
739
+ outline-style: solid;
740
+ }
741
+
742
+ ft-icon {
743
+ flex-shrink: 0;
744
+ position: relative;
745
+ }
746
+
747
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
748
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
749
+ order: -1;
750
+ }
751
+
752
+ .ft-button--label {
753
+ position: relative;
754
+ overflow: hidden;
755
+ white-space: nowrap;
756
+ text-overflow: ellipsis;
757
+ display: block;
758
+ }
759
+
760
+ .ft-button--label[hidden] {
761
+ display: none;
762
+ }
763
+
764
+ /** Primary styles **/
765
+
766
+ .ft-button--primary {
767
+ ${mt(pe.color,Nt.primaryIconColor)};
768
+
769
+ ${mt(Dt.color,Nt.primaryStateLayerColor)};
770
+ ${mt(Dt.opacityContentOnSurfaceHover,Nt.primaryStateLayerOpacityHover)};
771
+ ${mt(Dt.opacityContentOnSurfaceFocused,Nt.primaryStateLayerOpacityFocus)};
772
+ ${mt(Dt.opacityContentOnSurfaceSelected,Nt.primaryStateLayerOpacityActive)};
773
+ ${mt(Dt.opacityContentOnSurfacePressed,Nt.primaryStateLayerOpacityActive)};
774
+
775
+ background-color: ${Nt.primaryBackgroundColor};
776
+ color: ${Nt.primaryColor};
777
+ border-style: none;
778
+ }
779
+
780
+ .ft-button--primary[disabled] {
781
+ opacity: ${Nt.primaryComponentOpacityDisabled};
782
+ }
783
+
784
+ .ft-button--primary ft-icon {
785
+ color: ${Nt.primaryIconColor};
786
+ }
787
+
788
+ /** Secondary styles **/
789
+
790
+ .ft-button--secondary {
791
+ ${mt(pe.color,Nt.secondaryIconColor)};
792
+
793
+ ${mt(Dt.color,Nt.secondaryStateLayerColor)};
794
+ ${mt(Dt.opacityContentOnSurfaceHover,Nt.secondaryStateLayerOpacityHover)};
795
+ ${mt(Dt.opacityContentOnSurfaceFocused,Nt.secondaryStateLayerOpacityFocus)};
796
+ ${mt(Dt.opacityContentOnSurfaceSelected,Nt.secondaryStateLayerOpacityActive)};
797
+ ${mt(Dt.opacityContentOnSurfacePressed,Nt.secondaryStateLayerOpacityActive)};
798
+
799
+ background-color: ${Nt.secondaryBackgroundColor};
800
+ color: ${Nt.secondaryColor};
801
+ border-color: ${Nt.secondaryBorderColor};
802
+ border-style: solid;
803
+ }
804
+
805
+ .ft-button--secondary[disabled] {
806
+ opacity: ${Nt.secondaryComponentOpacityDisabled};
807
+ }
808
+
809
+ .ft-button--secondary ft-icon {
810
+ color: ${Nt.secondaryIconColor};
811
+ }
812
+
813
+ /** Tertiary styles **/
814
+
815
+ .ft-button--tertiary {
816
+ ${mt(pe.color,Nt.tertiaryIconColor)};
817
+
818
+ ${mt(Dt.color,Nt.tertiaryStateLayerColor)};
819
+ ${mt(Dt.opacityContentOnSurfaceHover,Nt.tertiaryStateLayerOpacityHover)};
820
+ ${mt(Dt.opacityContentOnSurfaceFocused,Nt.tertiaryStateLayerOpacityFocus)};
821
+ ${mt(Dt.opacityContentOnSurfaceSelected,Nt.tertiaryStateLayerOpacityActive)};
822
+ ${mt(Dt.opacityContentOnSurfacePressed,Nt.tertiaryStateLayerOpacityActive)};
823
+
824
+ background-color: ${Nt.tertiaryBackgroundColor};
825
+ color: ${Nt.tertiaryColor};
826
+ border-style: none;
827
+ }
828
+
829
+ .ft-button--tertiary[disabled] {
830
+ opacity: ${Nt.tertiaryComponentOpacityDisabled};
831
+ }
832
+
833
+ .ft-button--tertiary ft-icon {
834
+ color: ${Nt.tertiaryIconColor};
835
+ }
836
+
837
+ /** Neutral styles **/
838
+
839
+ .ft-button--neutral {
840
+ ${mt(pe.color,Nt.neutralIconColor)};
841
+
842
+ ${mt(Dt.backgroundColor,Nt.neutralStateLayerColor)};
843
+ ${mt(Dt.opacityContentOnSurfaceHover,Nt.neutralStateLayerOpacityHover)};
844
+ ${mt(Dt.opacityContentOnSurfaceFocused,Nt.neutralStateLayerOpacityFocus)};
845
+ ${mt(Dt.opacityContentOnSurfaceSelected,Nt.neutralStateLayerOpacityActive)};
846
+ ${mt(Dt.opacityContentOnSurfacePressed,Nt.neutralStateLayerOpacityActive)};
847
+
848
+ background-color: ${Nt.neutralBackgroundColor};
849
+ color: ${Nt.neutralColor};
850
+ border-style: none;
851
+ }
852
+
853
+ .ft-button--neutral[disabled] {
854
+ opacity: ${Nt.neutralComponentOpacityDisabled};
855
+ }
856
+
857
+ .ft-button--neutral ft-icon {
858
+ color: ${Nt.neutralIconColor};
859
+ }
860
+
861
+ /** Large styles **/
862
+
863
+ .ft-button--large {
864
+ ${mt(he.size,Nt.largeIconSize)};
865
+ ${mt(pe.size,Nt.largeIconSize)};
866
+
867
+ height: ${Nt.largeHeight};
868
+ padding: 0 ${Nt.largeHorizontalPadding};
869
+ gap: ${Nt.largeGap};
870
+ border-radius: ${Nt.largeBorderRadius};
871
+ border-width: ${Nt.largeBorderWidth};
872
+ }
873
+
874
+ .ft-button--large:focus-visible {
875
+ outline-width: ${Nt.largeFocusOutlineWidth};
876
+ outline-offset: ${Nt.largeFocusOutlineOffset};
877
+ }
878
+
879
+ .ft-button--large.ft-button--icon-only {
880
+ width: ${Nt.largeIconOnlyWidth};
881
+ padding: unset;
882
+ }
883
+
884
+ /** Small styles **/
885
+
886
+ .ft-button--small {
887
+ ${mt(he.size,Nt.smallIconSize)};
888
+ ${mt(pe.size,Nt.smallIconSize)};
889
+
890
+ height: ${Nt.smallHeight};
891
+ padding: 0 ${Nt.smallHorizontalPadding};
892
+ gap: ${Nt.smallGap};
893
+ border-radius: ${Nt.smallBorderRadius};
894
+ border-width: ${Nt.smallBorderWidth};
895
+ }
896
+
897
+ .ft-button--small:focus-visible {
898
+ outline-width: ${Nt.smallFocusOutlineWidth};
899
+ outline-offset: ${Nt.smallFocusOutlineOffset};
900
+ }
901
+
902
+ .ft-button--small.ft-button--icon-only {
903
+ width: ${Nt.smallIconOnlyWidth};
904
+ padding: unset;
905
+ }
906
+ `,kt];var ar=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class lr extends er{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Ke.caption1medium:Ke.body2medium}}lr.styles=[Wt,nr],ar([r({type:Boolean})],lr.prototype,"primary",void 0),ar([r({type:Boolean})],lr.prototype,"secondary",void 0),ar([r({type:Boolean})],lr.prototype,"tertiary",void 0),ar([r({type:Boolean})],lr.prototype,"neutral",void 0),ar([r({type:Boolean})],lr.prototype,"small",void 0),p("ft-button")(ir),p("ftds-button")(lr);const sr={buttonsColor:bt.extend("--ft-snap-scroll-buttons-color","",St.colorPrimary),buttonsZIndex:bt.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:bt.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:bt.external(St.colorSurface,"Design system")},cr=b`
687
907
  .ft-snap-scroll {
688
908
  box-sizing: border-box;
689
909
  position: relative;
@@ -718,7 +938,7 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
718
938
  flex-wrap: nowrap;
719
939
  align-items: flex-start;
720
940
  justify-content: flex-start;
721
- gap: ${qi.gap};
941
+ gap: ${sr.gap};
722
942
  }
723
943
 
724
944
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -761,11 +981,11 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
761
981
  .ft-snap-scroll--next {
762
982
  position: absolute;
763
983
  display: flex;
764
- z-index: ${qi.buttonsZIndex};
984
+ z-index: ${sr.buttonsZIndex};
765
985
  opacity: 1;
766
986
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
767
- ${bt(Ii.backgroundColor,"transparent")};
768
- ${bt(Ii.color,qi.buttonsColor)};
987
+ ${mt(ye.backgroundColor,"transparent")};
988
+ ${mt(ye.color,sr.buttonsColor)};
769
989
  }
770
990
 
771
991
  .ft-snap-scroll--previous[hidden],
@@ -778,45 +998,45 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
778
998
  top: 0;
779
999
  left: -1px;
780
1000
  bottom: 0;
781
- background: linear-gradient(to right, ${qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1001
+ background: linear-gradient(to right, ${sr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
782
1002
  }
783
1003
 
784
1004
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
785
1005
  top: -1px;
786
1006
  left: 0;
787
1007
  right: 0;
788
- background: linear-gradient(to bottom, ${qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1008
+ background: linear-gradient(to bottom, ${sr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
789
1009
  }
790
1010
 
791
1011
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
792
1012
  top: 0;
793
1013
  right: -1px;
794
1014
  bottom: 0;
795
- background: linear-gradient(to left, ${qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1015
+ background: linear-gradient(to left, ${sr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
796
1016
  }
797
1017
 
798
1018
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
799
1019
  left: 0;
800
1020
  right: 0;
801
1021
  bottom: -1px;
802
- background: linear-gradient(to top, ${qi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1022
+ background: linear-gradient(to top, ${sr.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
803
1023
  }
804
1024
 
805
1025
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
806
1026
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
807
1027
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
808
1028
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
809
- background-color: ${qi.colorSurface};
1029
+ background-color: ${sr.colorSurface};
810
1030
  }
811
- `;var Gi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Yi extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Qi extends kt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new e(200),this.updateScrollDebouncer=new e(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=Bt({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":zt}),e=this.controls&&this.withScroll;return q`
1031
+ `;var pr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class fr extends CustomEvent{constructor(t,o){super("current-element-change",{detail:{index:t,element:o}})}}class hr extends It{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new o(200),this.updateScrollDebouncer=new o(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let o=this.elements[t];if(o){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(o[this.offsetAttribute]<e||o[this.offsetAttribute]+o[this.sizeAttribute]>t)&&this.scrollToElement(o)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=Re({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Zt}),o=this.controls&&this.withScroll;return V`
812
1032
  <div part="container" class="${t}">
813
1033
  <ft-button
814
1034
  class="ft-snap-scroll--previous"
815
1035
  part="controls"
816
1036
  primary
817
1037
  icon="${this.horizontal?"THIN_ARROW_LEFT":"THIN_ARROW_UP"}"
818
- ?hidden=${!e||this.startReached}
819
- ?disabled=${!e||this.startReached}
1038
+ ?hidden=${!o||this.startReached}
1039
+ ?disabled=${!o||this.startReached}
820
1040
  @click=${this.previous}
821
1041
  ></ft-button>
822
1042
  <slot class="ft-snap-scroll--content"
@@ -827,9 +1047,9 @@ class Ri extends Tt{constructor(t){if(super(t),this.et=G,t.type!==Ut)throw Error
827
1047
  part="controls"
828
1048
  primary
829
1049
  icon="${this.horizontal?"THIN_ARROW_RIGHT":"THIN_ARROW"}"
830
- ?hidden=${!e||this.endReached}
831
- ?disabled=${!e||this.endReached}
1050
+ ?hidden=${!o||this.endReached}
1051
+ ?disabled=${!o||this.endReached}
832
1052
  @click=${this.next}
833
1053
  ></ft-button>
834
1054
  </div>
835
- `}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Yi(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Qi.elementDefinitions={"ft-button":Ji},Qi.styles=Xi,Gi([o({type:Boolean})],Qi.prototype,"horizontal",void 0),Gi([o({type:Boolean})],Qi.prototype,"hideScrollbar",void 0),Gi([o({type:Boolean})],Qi.prototype,"controls",void 0),Gi([o({type:Boolean})],Qi.prototype,"limitSize",void 0),Gi([s()],Qi.prototype,"elements",void 0),Gi([s()],Qi.prototype,"currentElement",void 0),Gi([s()],Qi.prototype,"withScroll",void 0),Gi([s()],Qi.prototype,"startReached",void 0),Gi([s()],Qi.prototype,"endReached",void 0),Gi([r(".ft-snap-scroll--content")],Qi.prototype,"contentSlot",void 0),c("ft-snap-scroll")(Qi),t.CurrentElementChange=Yi,t.FtSnapScroll=Qi,t.FtSnapScrollCssVariables=qi,t.styles=Xi}({});
1055
+ `}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new fr(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var o;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(o=this.listenedContainer)||void 0===o||o.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const o=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<o&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var o,e;t&&(this.horizontal?null===(o=this.contentSlot)||void 0===o||o.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,o;this.elements=null!==(o=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==o?o:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let o=0;o<this.elements.length;o++)(t<0||this.getDistanceFromStart(this.elements[o])<this.getDistanceFromStart(this.elements[t]))&&(t=o);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const o=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-o)}}hr.elementDefinitions={"ft-button":ir},hr.styles=cr,pr([r({type:Boolean})],hr.prototype,"horizontal",void 0),pr([r({type:Boolean})],hr.prototype,"hideScrollbar",void 0),pr([r({type:Boolean})],hr.prototype,"controls",void 0),pr([r({type:Boolean})],hr.prototype,"limitSize",void 0),pr([i()],hr.prototype,"elements",void 0),pr([i()],hr.prototype,"currentElement",void 0),pr([i()],hr.prototype,"withScroll",void 0),pr([i()],hr.prototype,"startReached",void 0),pr([i()],hr.prototype,"endReached",void 0),pr([a(".ft-snap-scroll--content")],hr.prototype,"contentSlot",void 0),p("ft-snap-scroll")(hr),t.CurrentElementChange=fr,t.FtSnapScroll=hr,t.FtSnapScrollCssVariables=sr,t.styles=cr}({});