@fluid-topics/ft-snap-scroll 0.3.11 → 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=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=e.call(o,t);c||(c=p(t),i.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 v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=l.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,s=o._getDefinition(i);return s?u(e,s):n.set(e,o),e}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.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(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let x=[document];const b=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){x.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const y=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){x.push(this),e.set.call(this,t),x.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(de){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=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 p=e.call(o,t);p||(p=c(t),i.call(o,t,p)),this===window.customElements&&(r.set(s,h),h.standInClass=p);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 v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let i=t.getRootNode();if(!h(i)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=l.get(i)?.getRootNode()||document)}return i.customElements},c=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=p(e)||window.customElements,s=o._getDefinition(i);return s?u(e,s):n.set(e,o),e}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.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(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let x=[document];const b=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){x.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const y=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){x.push(this),e.set.call(this,t),x.pop()}})};if(y(Element,"innerHTML"),y(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(be){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -45,7 +45,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,p=Symbol(),f=new WeakMap;class d{constructor(t,i,e){if(this._$cssResult$=!0,e!==p)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(c&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=f.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&f.set(i,t))}return t}toString(){return this.cssText}}const u=t=>new d("string"==typeof t?t:t+"",void 0,p),v=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new d(e,t,p)},x=(t,i)=>{c?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},b=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return u(i)})(t):t
48
+ const p=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),f=new WeakMap;class d{constructor(t,i,e){if(this._$cssResult$=!0,e!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(p&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=f.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&f.set(i,t))}return t}toString(){return this.cssText}}const u=t=>new d("string"==typeof t?t:t+"",void 0,c),v=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new d(e,t,c)},x=(t,i)=>{p?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},b=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return u(i)})(t):t
49
49
  /**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
@@ -56,13 +56,13 @@ const c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad
56
56
  * Copyright 2017 Google LLC
57
57
  * SPDX-License-Identifier: BSD-3-Clause
58
58
  */
59
- var N;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:k}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.4");const C=globalThis.trustedTypes,E=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,z="?"+R,M=`<${z}>`,F=document,U=(t="")=>F.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,A=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),P=/'/g,D=/"/g,I=/^(?:script|style|textarea|title)$/i,W=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),H=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,V=F.createTreeWalker(F,129,null,!1),J=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=B;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,c=0;for(;c<e.length&&(r.lastIndex=c,a=r.exec(e),null!==a);)c=r.lastIndex,r===B?"!--"===a[1]?r=L:void 0!==a[1]?r=A:void 0!==a[2]?(I.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=_):void 0!==a[3]&&(r=_):r===_?">"===a[0]?(r=null!=s?s:B,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?_:'"'===a[3]?D:P):r===D||r===P?r=_:r===L||r===A?r=B:(r=_,s=void 0);const p=r===_&&t[i+1].startsWith("/>")?" ":"";n+=r===B?e+M:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+R+p):e+R+(-2===h?(o.push(void 0),i):p)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(l):l,o]};class q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=J(t,i);if(this.el=q.createElement(a,e),V.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=V.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(R)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(R),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(I.test(o.tagName)){const t=o.textContent.split(R),i=t.length-1;if(i>0){o.textContent=C?C.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],U()),V.nextNode(),l.push({type:2,index:++s});o.append(t[i],U())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)l.push({type:7,index:s}),t+=R.length-1}s++}}static createElement(t,i){const e=F.createElement("template");return e.innerHTML=t,e}}function X(t,i,e=t,o){var s,n,r,l;if(i===H)return i;let a=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const h=j(i)?void 0:i._$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,e,o)),void 0!==o?(null!==(r=(l=e)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=X(t,a._$AS(t,i.values),a,o)),i}class Y{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:F).importNode(e,!0);V.currentNode=s;let n=V.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new G(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new st(n,this,t)),this.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=V.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var s;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$C_}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=X(this,t,i),j(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==H&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==K&&j(this._$AH)?this._$AA.nextSibling.data=t:this.k(F.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new Y(s,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=Z.get(t.strings);return void 0===i&&Z.set(t.strings,i=new q(t)),i}S(t){T(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new G(this.j(U()),this.j(U()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Q{constructor(t,i,e,o,s){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=X(this,t,i,0),n=!j(t)||t!==this._$AH&&t!==H,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=X(this,o[e+r],i,r),l===H&&(l=this._$AH[r]),n||(n=!j(l)||l!==this._$AH[r]),l===K?t=K:t!==K&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.P(t)}P(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===K?void 0:t}}const it=C?C.emptyScript:"";class et extends Q{constructor(){super(...arguments),this.type=4}P(t){t&&t!==K?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class ot extends Q{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=X(this,t,i,0))&&void 0!==e?e:K)===H)return;const o=this._$AH,s=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==K&&(o===K||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const nt=window.litHtmlPolyfillSupport;
59
+ var N;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:k}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.4");const C=globalThis.trustedTypes,E=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,z="?"+R,M=`<${z}>`,F=document,U=(t="")=>F.createComment(t),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,A=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),P=/'/g,D=/"/g,I=/^(?:script|style|textarea|title)$/i,W=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),H=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,V=F.createTreeWalker(F,129,null,!1),J=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=B;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,a=r.exec(e),null!==a);)p=r.lastIndex,r===B?"!--"===a[1]?r=L:void 0!==a[1]?r=A:void 0!==a[2]?(I.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=_):void 0!==a[3]&&(r=_):r===_?">"===a[0]?(r=null!=s?s:B,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?_:'"'===a[3]?D:P):r===D||r===P?r=_:r===L||r===A?r=B:(r=_,s=void 0);const c=r===_&&t[i+1].startsWith("/>")?" ":"";n+=r===B?e+M:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+R+c):e+R+(-2===h?(o.push(void 0),i):c)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(l):l,o]};class q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=J(t,i);if(this.el=q.createElement(a,e),V.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=V.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(R)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(R),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(I.test(o.tagName)){const t=o.textContent.split(R),i=t.length-1;if(i>0){o.textContent=C?C.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],U()),V.nextNode(),l.push({type:2,index:++s});o.append(t[i],U())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)l.push({type:7,index:s}),t+=R.length-1}s++}}static createElement(t,i){const e=F.createElement("template");return e.innerHTML=t,e}}function X(t,i,e=t,o){var s,n,r,l;if(i===H)return i;let a=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const h=j(i)?void 0:i._$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,e,o)),void 0!==o?(null!==(r=(l=e)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=X(t,a._$AS(t,i.values),a,o)),i}class Y{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:F).importNode(e,!0);V.currentNode=s;let n=V.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new G(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new st(n,this,t)),this.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=V.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var s;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$C_}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=X(this,t,i),j(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==H&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==K&&j(this._$AH)?this._$AA.nextSibling.data=t:this.k(F.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new Y(s,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=Z.get(t.strings);return void 0===i&&Z.set(t.strings,i=new q(t)),i}S(t){T(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new G(this.j(U()),this.j(U()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Q{constructor(t,i,e,o,s){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=X(this,t,i,0),n=!j(t)||t!==this._$AH&&t!==H,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=X(this,o[e+r],i,r),l===H&&(l=this._$AH[r]),n||(n=!j(l)||l!==this._$AH[r]),l===K?t=K:t!==K&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.P(t)}P(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===K?void 0:t}}const it=C?C.emptyScript:"";class et extends Q{constructor(){super(...arguments),this.type=4}P(t){t&&t!==K?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class ot extends Q{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=X(this,t,i,0))&&void 0!==e?e:K)===H)return;const o=this._$AH,s=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==K&&(o===K||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const nt=window.litHtmlPolyfillSupport;
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
63
63
  * SPDX-License-Identifier: BSD-3-Clause
64
64
  */
65
- var rt,lt;null==nt||nt(q,G),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N:globalThis.litHtmlVersions=[]).push("2.2.7");class at extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,s;const n=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new G(i.insertBefore(U(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}at.finalized=!0,at._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:at});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:at}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class ct{static create(t,i,e){let o=t=>u(null!=t?t:e),s=v`var(${u(t)}, ${o(e)})`;return s.name=t,s.category=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>v`var(${u(t)}, ${o(i)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>e,s}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),s=v`var(${u(t)}, ${o(e)})`;return s.name=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>v`var(${u(t)}, ${o(i)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>e,s}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):u(null!=i?i:t.defaultValue),o=v`var(${u(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>v`var(${u(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function pt(t,i){return u(`${t.name}: ${i}`)}const ft={colorPrimary:ct.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ct.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ct.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ct.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ct.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ct.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ct.create("--ft-color-error","COLOR","#B00020"),colorOutline:ct.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ct.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ct.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ct.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ct.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ct.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ct.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ct.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ct.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ct.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ct.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ct.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ct.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ct.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ct.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ct.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ct.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ct.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ct.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ct.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ct.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ct.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ct.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ct.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ct.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ct.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ct.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ct.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ct.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ct.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ct.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ct.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ct.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ct.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ct.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ct.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ct.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.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:ct.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ct.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ct.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ct.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ct.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ct.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ct.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ct.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
65
+ var rt,lt;null==nt||nt(q,G),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N:globalThis.litHtmlVersions=[]).push("2.2.7");class at extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,s;const n=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new G(i.insertBefore(U(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}at.finalized=!0,at._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:at});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:at}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class pt{static create(t,i,e){let o=t=>u(null!=t?t:e),s=v`var(${u(t)}, ${o(e)})`;return s.name=t,s.category=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>v`var(${u(t)}, ${o(i)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>e,s}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),s=v`var(${u(t)}, ${o(e)})`;return s.name=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>v`var(${u(t)}, ${o(i)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>e,s}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):u(null!=i?i:t.defaultValue),o=v`var(${u(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>v`var(${u(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function ct(t,i){return u(`${t.name}: ${i}`)}const ft={colorPrimary:pt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:pt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:pt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:pt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:pt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:pt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:pt.create("--ft-color-error","COLOR","#B00020"),colorOutline:pt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:pt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:pt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:pt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:pt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:pt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:pt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:pt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:pt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:pt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:pt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:pt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:pt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:pt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:pt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:pt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:pt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:pt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:pt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:pt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:pt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:pt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:pt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:pt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:pt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:pt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:pt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:pt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:pt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:pt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:pt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:pt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:pt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:pt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:pt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:pt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:pt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:pt.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:pt.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:pt.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:pt.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:pt.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:pt.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:pt.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:pt.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:pt.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:pt.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:pt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:pt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:pt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:pt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:pt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:pt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:pt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:pt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
66
66
  /**
67
67
  * @license
68
68
  * Copyright 2021 Google LLC
@@ -72,7 +72,7 @@ var rt,lt;null==nt||nt(q,G),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N
72
72
  <style>${t}</style>
73
73
  `))}
74
74
  ${this.getTemplate()}
75
- `}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,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!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],e=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(...i,...e).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((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}dt([o()],ut.prototype,"exportpartsPrefix",void 0),dt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],ut.prototype,"exportpartsPrefixes",void 0);const vt=v`
75
+ `}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,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!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],e=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(...i,...e).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const p=[...h.values()].flatMap((t=>a.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}contentAvailableCallback(t){}}dt([o()],ut.prototype,"exportpartsPrefix",void 0),dt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],ut.prototype,"exportpartsPrefixes",void 0);const vt=v`
76
76
  .ft-no-text-select {
77
77
  -webkit-touch-callout: none;
78
78
  -webkit-user-select: none;
@@ -91,119 +91,119 @@ var rt,lt;null==nt||nt(q,G),(null!==(N=globalThis.litHtmlVersions)&&void 0!==N?N
91
91
  * @license
92
92
  * Copyright 2018 Google LLC
93
93
  * SPDX-License-Identifier: BSD-3-Clause
94
- */const St=$t(class extends Ot{constructor(t){var i;if(super(t),t.type!==mt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const s=t.element.classList;this.nt.forEach((t=>{t in i||(s.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return H}});var kt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const Nt=ct.extend("--ft-ripple-color",ft.colorContent),Ct={color:Nt,backgroundColor:ct.extend("--ft-ripple-background-color",Nt),opacityContentOnSurfacePressed:ct.external(ft.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ct.external(ft.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ct.external(ft.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ct.external(ft.opacityContentOnSurfaceSelected,"Design system")},Et=ct.extend("--ft-ripple-color",ft.colorPrimary),Rt=Et,zt=ct.extend("--ft-ripple-background-color",Et),Mt=ct.extend("--ft-ripple-color",ft.colorSecondary),Ft=Mt,Ut=ct.extend("--ft-ripple-background-color",Mt);class jt extends ut{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return W`
95
- <style>
96
- .ft-ripple .ft-ripple--effect,
97
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
98
- width: ${this.rippleSize}px;
99
- height: ${this.rippleSize}px;
100
- }
94
+ */const St=$t(class extends Ot{constructor(t){var i;if(super(t),t.type!==mt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const s=t.element.classList;this.nt.forEach((t=>{t in i||(s.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return H}}),kt=pt.extend("--ft-ripple-color",ft.colorContent),Nt={color:kt,backgroundColor:pt.extend("--ft-ripple-background-color",kt),opacityContentOnSurfacePressed:pt.external(ft.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:pt.external(ft.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:pt.external(ft.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:pt.external(ft.opacityContentOnSurfaceSelected,"Design system")},Ct=pt.extend("--ft-ripple-color",ft.colorPrimary),Et=Ct,Rt=pt.extend("--ft-ripple-background-color",Ct),zt=pt.extend("--ft-ripple-color",ft.colorSecondary),Mt=zt,Ft=pt.extend("--ft-ripple-background-color",zt),Ut=v`
95
+ :host {
96
+ display: contents;
97
+ }
101
98
 
102
- .ft-ripple .ft-ripple--effect {
103
- left: ${this.originX}px;
104
- top: ${this.originY}px;
105
- }
106
- </style>
107
- <div class="${St(t)}">
108
- <div class="ft-ripple--background"></div>
109
- <div class="ft-ripple--effect"></div>
110
- </div>
111
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",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",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}jt.elementDefinitions={},jt.styles=v`
112
- :host {
113
- display: contents;
114
- }
99
+ .ft-ripple {
100
+ position: absolute;
101
+ inset: 0;
102
+ pointer-events: none;
103
+ }
115
104
 
116
- .ft-ripple {
117
- position: absolute;
118
- inset: 0;
119
- pointer-events: none;
120
- }
105
+ .ft-ripple:not(.ft-ripple--unbounded) {
106
+ overflow: hidden;
107
+ }
121
108
 
122
- .ft-ripple:not(.ft-ripple--unbounded) {
123
- overflow: hidden;
124
- }
109
+ .ft-ripple .ft-ripple--background,
110
+ .ft-ripple .ft-ripple--effect {
111
+ position: absolute;
112
+ opacity: 0;
113
+ }
125
114
 
126
- .ft-ripple .ft-ripple--background,
127
- .ft-ripple .ft-ripple--effect {
128
- position: absolute;
129
- opacity: 0;
130
- }
115
+ .ft-ripple .ft-ripple--background {
116
+ background-color: ${Nt.backgroundColor};
117
+ }
131
118
 
132
- .ft-ripple .ft-ripple--background {
133
- background-color: ${Ct.backgroundColor};
134
- }
119
+ .ft-ripple .ft-ripple--effect {
120
+ background-color: ${Nt.color};
121
+ }
135
122
 
136
- .ft-ripple .ft-ripple--effect {
137
- background-color: ${Ct.color};
138
- }
123
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
124
+ background-color: ${Ft};
125
+ }
139
126
 
140
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
141
- background-color: ${Ut};
142
- }
127
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
128
+ background-color: ${Mt};
129
+ }
143
130
 
144
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
145
- background-color: ${Ft};
146
- }
131
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
132
+ background-color: ${Rt};
133
+ }
147
134
 
148
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
149
- background-color: ${zt};
150
- }
135
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
136
+ background-color: ${Et};
137
+ }
151
138
 
152
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
153
- background-color: ${Rt};
154
- }
139
+ .ft-ripple .ft-ripple--background {
140
+ top: 0;
141
+ left: 0;
142
+ height: 100%;
143
+ width: 100%;
144
+ transition: opacity 75ms linear;
145
+ }
155
146
 
156
- .ft-ripple .ft-ripple--background {
157
- top: 0;
158
- left: 0;
159
- height: 100%;
160
- width: 100%;
161
- transition: opacity 75ms linear;
162
- }
147
+ .ft-ripple .ft-ripple--effect,
148
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
149
+ border-radius: 50%;
150
+ }
163
151
 
164
- .ft-ripple .ft-ripple--effect,
165
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
166
- border-radius: 50%;
167
- }
152
+ .ft-ripple .ft-ripple--effect {
153
+ transform: translate(-50%, -50%) scale(0.15);
154
+ transition: transform 300ms ease, opacity 75ms linear;
155
+ }
168
156
 
169
- .ft-ripple .ft-ripple--effect {
170
- transform: translate(-50%, -50%) scale(0.15);
171
- transition: transform 300ms ease, opacity 75ms linear;
172
- }
157
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
158
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
159
+ left: 50%;
160
+ top: 50%;
161
+ }
173
162
 
174
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
175
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
176
- left: 50%;
177
- top: 50%;
178
- }
163
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
164
+ transform: translate(-50%, -50%);
165
+ }
179
166
 
180
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
181
- transform: translate(-50%, -50%);
182
- }
167
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
168
+ opacity: ${Nt.opacityContentOnSurfaceHover};
169
+ }
183
170
 
184
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
185
- opacity: ${Ct.opacityContentOnSurfaceHover};
186
- }
171
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
172
+ opacity: ${Nt.opacityContentOnSurfaceSelected};
173
+ }
187
174
 
188
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
189
- opacity: ${Ct.opacityContentOnSurfaceSelected};
190
- }
175
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
176
+ opacity: ${Nt.opacityContentOnSurfaceFocused};
177
+ }
191
178
 
192
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
193
- opacity: ${Ct.opacityContentOnSurfaceFocused};
194
- }
179
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
180
+ opacity: ${Nt.opacityContentOnSurfacePressed};
181
+ transform: translate(-50%, -50%) scale(1);
182
+ }
183
+ `;var jt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Tt extends ut{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return W`
184
+ <style>
185
+ .ft-ripple .ft-ripple--effect,
186
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
187
+ width: ${this.rippleSize}px;
188
+ height: ${this.rippleSize}px;
189
+ }
195
190
 
196
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
197
- opacity: ${Ct.opacityContentOnSurfacePressed};
198
- transform: translate(-50%, -50%) scale(1);
199
- }
200
- `,kt([o({type:Boolean})],jt.prototype,"primary",void 0),kt([o({type:Boolean})],jt.prototype,"secondary",void 0),kt([o({type:Boolean})],jt.prototype,"unbounded",void 0),kt([o({type:Boolean})],jt.prototype,"activated",void 0),kt([o({type:Boolean})],jt.prototype,"selected",void 0),kt([o({type:Boolean})],jt.prototype,"disabled",void 0),kt([s()],jt.prototype,"hovered",void 0),kt([s()],jt.prototype,"focused",void 0),kt([s()],jt.prototype,"pressed",void 0),kt([s()],jt.prototype,"rippling",void 0),kt([s()],jt.prototype,"rippleSize",void 0),kt([s()],jt.prototype,"originX",void 0),kt([s()],jt.prototype,"originY",void 0),kt([r(".ft-ripple")],jt.prototype,"ripple",void 0),kt([r(".ft-ripple--effect")],jt.prototype,"rippleEffect",void 0),h("ft-ripple")(jt);
191
+ .ft-ripple .ft-ripple--effect {
192
+ left: ${this.originX}px;
193
+ top: ${this.originY}px;
194
+ }
195
+ </style>
196
+ <div class="${St(t)}">
197
+ <div class="ft-ripple--background"></div>
198
+ <div class="ft-ripple--effect"></div>
199
+ </div>
200
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",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",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Tt.elementDefinitions={},Tt.styles=Ut,jt([o({type:Boolean})],Tt.prototype,"primary",void 0),jt([o({type:Boolean})],Tt.prototype,"secondary",void 0),jt([o({type:Boolean})],Tt.prototype,"unbounded",void 0),jt([o({type:Boolean})],Tt.prototype,"activated",void 0),jt([o({type:Boolean})],Tt.prototype,"selected",void 0),jt([o({type:Boolean})],Tt.prototype,"disabled",void 0),jt([s()],Tt.prototype,"hovered",void 0),jt([s()],Tt.prototype,"focused",void 0),jt([s()],Tt.prototype,"pressed",void 0),jt([s()],Tt.prototype,"rippling",void 0),jt([s()],Tt.prototype,"rippleSize",void 0),jt([s()],Tt.prototype,"originX",void 0),jt([s()],Tt.prototype,"originY",void 0),jt([r(".ft-ripple")],Tt.prototype,"ripple",void 0),jt([r(".ft-ripple--effect")],Tt.prototype,"rippleEffect",void 0),h("ft-ripple")(Tt);
201
201
  /**
202
202
  * @license
203
203
  * Copyright 2020 Google LLC
204
204
  * SPDX-License-Identifier: BSD-3-Clause
205
205
  */
206
- const Tt=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===Tt)return null==t?void 0:t._$litStatic$},Lt=t=>({_$litStatic$:t,r:Tt}),At=new Map,_t=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=Bt(n));)a+=s+i[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=At.get(t))&&(r.raw=r,At.set(t,i=r)),e=l}return t(i,...e)})(W);var Pt,Dt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!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"}(Pt||(Pt={}));const It=ct.extend("--ft-typography-font-family",ft.titleFont),Wt=ct.extend("--ft-typography-font-family",ft.contentFont),Ht={fontFamily:Wt,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},Kt=ct.extend("--ft-typography-title-font-family",It),Zt=ct.extend("--ft-typography-title-font-size",Ht.fontSize,"20px"),Vt=ct.extend("--ft-typography-title-font-weight",Ht.fontWeight,"normal"),Jt=ct.extend("--ft-typography-title-letter-spacing",Ht.letterSpacing,"0.15px"),qt=ct.extend("--ft-typography-title-line-height",Ht.lineHeight,"1.2"),Xt=ct.extend("--ft-typography-title-text-transform",Ht.textTransform,"inherit"),Yt=ct.extend("--ft-typography-title-dense-font-family",It),Gt=ct.extend("--ft-typography-title-dense-font-size",Ht.fontSize,"14px"),Qt=ct.extend("--ft-typography-title-dense-font-weight",Ht.fontWeight,"normal"),ti=ct.extend("--ft-typography-title-dense-letter-spacing",Ht.letterSpacing,"0.105px"),ii=ct.extend("--ft-typography-title-dense-line-height",Ht.lineHeight,"1.7"),ei=ct.extend("--ft-typography-title-dense-text-transform",Ht.textTransform,"inherit"),oi=ct.extend("--ft-typography-subtitle1-font-family",Wt),si=ct.extend("--ft-typography-subtitle1-font-size",Ht.fontSize,"16px"),ni=ct.extend("--ft-typography-subtitle1-font-weight",Ht.fontWeight,"600"),ri=ct.extend("--ft-typography-subtitle1-letter-spacing",Ht.letterSpacing,"0.144px"),li=ct.extend("--ft-typography-subtitle1-line-height",Ht.lineHeight,"1.5"),ai=ct.extend("--ft-typography-subtitle1-text-transform",Ht.textTransform,"inherit"),hi=ct.extend("--ft-typography-subtitle2-font-family",Wt),ci=ct.extend("--ft-typography-subtitle2-font-size",Ht.fontSize,"14px"),pi=ct.extend("--ft-typography-subtitle2-font-weight",Ht.fontWeight,"normal"),fi=ct.extend("--ft-typography-subtitle2-letter-spacing",Ht.letterSpacing,"0.098px"),di=ct.extend("--ft-typography-subtitle2-line-height",Ht.lineHeight,"1.7"),ui=ct.extend("--ft-typography-subtitle2-text-transform",Ht.textTransform,"inherit"),vi=ct.extend("--ft-typography-body1-font-family",Wt),xi=ct.extend("--ft-typography-body1-font-size",Ht.fontSize,"16px"),bi=ct.extend("--ft-typography-body1-font-weight",Ht.fontWeight,"normal"),yi=ct.extend("--ft-typography-body1-letter-spacing",Ht.letterSpacing,"0.496px"),gi=ct.extend("--ft-typography-body1-line-height",Ht.lineHeight,"1.5"),mi=ct.extend("--ft-typography-body1-text-transform",Ht.textTransform,"inherit"),wi=ct.extend("--ft-typography-body2-font-family",Wt),$i=ct.extend("--ft-typography-body2-font-size",Ht.fontSize,"14px"),Oi=ct.extend("--ft-typography-body2-font-weight",Ht.fontWeight,"normal"),Si=ct.extend("--ft-typography-body2-letter-spacing",Ht.letterSpacing,"0.252px"),ki=ct.extend("--ft-typography-body2-line-height",Ht.lineHeight,"1.4"),Ni=ct.extend("--ft-typography-body2-text-transform",Ht.textTransform,"inherit"),Ci=ct.extend("--ft-typography-caption-font-family",Wt),Ei=ct.extend("--ft-typography-caption-font-size",Ht.fontSize,"12px"),Ri=ct.extend("--ft-typography-caption-font-weight",Ht.fontWeight,"normal"),zi=ct.extend("--ft-typography-caption-letter-spacing",Ht.letterSpacing,"0.396px"),Mi=ct.extend("--ft-typography-caption-line-height",Ht.lineHeight,"1.33"),Fi=ct.extend("--ft-typography-caption-text-transform",Ht.textTransform,"inherit"),Ui=ct.extend("--ft-typography-breadcrumb-font-family",Wt),ji=ct.extend("--ft-typography-breadcrumb-font-size",Ht.fontSize,"10px"),Ti=ct.extend("--ft-typography-breadcrumb-font-weight",Ht.fontWeight,"normal"),Bi=ct.extend("--ft-typography-breadcrumb-letter-spacing",Ht.letterSpacing,"0.33px"),Li=ct.extend("--ft-typography-breadcrumb-line-height",Ht.lineHeight,"1.6"),Ai=ct.extend("--ft-typography-breadcrumb-text-transform",Ht.textTransform,"inherit"),_i=ct.extend("--ft-typography-overline-font-family",Wt),Pi=ct.extend("--ft-typography-overline-font-size",Ht.fontSize,"10px"),Di=ct.extend("--ft-typography-overline-font-weight",Ht.fontWeight,"normal"),Ii=ct.extend("--ft-typography-overline-letter-spacing",Ht.letterSpacing,"1.5px"),Wi=ct.extend("--ft-typography-overline-line-height",Ht.lineHeight,"1.6"),Hi=ct.extend("--ft-typography-overline-text-transform",Ht.textTransform,"uppercase"),Ki={fontFamily:ct.extend("--ft-typography-button-font-family",Wt),fontSize:ct.extend("--ft-typography-button-font-size",Ht.fontSize,"14px"),fontWeight:ct.extend("--ft-typography-button-font-weight",Ht.fontWeight,"600"),letterSpacing:ct.extend("--ft-typography-button-letter-spacing",Ht.letterSpacing,"1.246px"),lineHeight:ct.extend("--ft-typography-button-line-height",Ht.lineHeight,"1.15"),textTransform:ct.extend("--ft-typography-button-text-transform",Ht.textTransform,"uppercase")},Zi=v`
206
+ const Bt=Symbol.for(""),Lt=t=>{if((null==t?void 0:t.r)===Bt)return null==t?void 0:t._$litStatic$},At=t=>({_$litStatic$:t,r:Bt}),_t=new Map,Pt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=Lt(n));)a+=s+i[++h],p=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=_t.get(t))&&(r.raw=r,_t.set(t,i=r)),e=l}return t(i,...e)})(W);var Dt;!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"}(Dt||(Dt={}));const It=pt.extend("--ft-typography-font-family",ft.titleFont),Wt=pt.extend("--ft-typography-font-family",ft.contentFont),Ht={fontFamily:Wt,fontSize:pt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:pt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:pt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:pt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:pt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Kt=pt.extend("--ft-typography-title-font-family",It),Zt=pt.extend("--ft-typography-title-font-size",Ht.fontSize,"20px"),Vt=pt.extend("--ft-typography-title-font-weight",Ht.fontWeight,"normal"),Jt=pt.extend("--ft-typography-title-letter-spacing",Ht.letterSpacing,"0.15px"),qt=pt.extend("--ft-typography-title-line-height",Ht.lineHeight,"1.2"),Xt=pt.extend("--ft-typography-title-text-transform",Ht.textTransform,"inherit"),Yt=pt.extend("--ft-typography-title-dense-font-family",It),Gt=pt.extend("--ft-typography-title-dense-font-size",Ht.fontSize,"14px"),Qt=pt.extend("--ft-typography-title-dense-font-weight",Ht.fontWeight,"normal"),ti=pt.extend("--ft-typography-title-dense-letter-spacing",Ht.letterSpacing,"0.105px"),ii=pt.extend("--ft-typography-title-dense-line-height",Ht.lineHeight,"1.7"),ei=pt.extend("--ft-typography-title-dense-text-transform",Ht.textTransform,"inherit"),oi=pt.extend("--ft-typography-subtitle1-font-family",Wt),si=pt.extend("--ft-typography-subtitle1-font-size",Ht.fontSize,"16px"),ni=pt.extend("--ft-typography-subtitle1-font-weight",Ht.fontWeight,"600"),ri=pt.extend("--ft-typography-subtitle1-letter-spacing",Ht.letterSpacing,"0.144px"),li=pt.extend("--ft-typography-subtitle1-line-height",Ht.lineHeight,"1.5"),ai=pt.extend("--ft-typography-subtitle1-text-transform",Ht.textTransform,"inherit"),hi=pt.extend("--ft-typography-subtitle2-font-family",Wt),pi=pt.extend("--ft-typography-subtitle2-font-size",Ht.fontSize,"14px"),ci=pt.extend("--ft-typography-subtitle2-font-weight",Ht.fontWeight,"normal"),fi=pt.extend("--ft-typography-subtitle2-letter-spacing",Ht.letterSpacing,"0.098px"),di=pt.extend("--ft-typography-subtitle2-line-height",Ht.lineHeight,"1.7"),ui=pt.extend("--ft-typography-subtitle2-text-transform",Ht.textTransform,"inherit"),vi=pt.extend("--ft-typography-body1-font-family",Wt),xi=pt.extend("--ft-typography-body1-font-size",Ht.fontSize,"16px"),bi=pt.extend("--ft-typography-body1-font-weight",Ht.fontWeight,"normal"),yi=pt.extend("--ft-typography-body1-letter-spacing",Ht.letterSpacing,"0.496px"),gi=pt.extend("--ft-typography-body1-line-height",Ht.lineHeight,"1.5"),mi=pt.extend("--ft-typography-body1-text-transform",Ht.textTransform,"inherit"),wi=pt.extend("--ft-typography-body2-font-family",Wt),$i=pt.extend("--ft-typography-body2-font-size",Ht.fontSize,"14px"),Oi=pt.extend("--ft-typography-body2-font-weight",Ht.fontWeight,"normal"),Si=pt.extend("--ft-typography-body2-letter-spacing",Ht.letterSpacing,"0.252px"),ki=pt.extend("--ft-typography-body2-line-height",Ht.lineHeight,"1.4"),Ni=pt.extend("--ft-typography-body2-text-transform",Ht.textTransform,"inherit"),Ci=pt.extend("--ft-typography-caption-font-family",Wt),Ei=pt.extend("--ft-typography-caption-font-size",Ht.fontSize,"12px"),Ri=pt.extend("--ft-typography-caption-font-weight",Ht.fontWeight,"normal"),zi=pt.extend("--ft-typography-caption-letter-spacing",Ht.letterSpacing,"0.396px"),Mi=pt.extend("--ft-typography-caption-line-height",Ht.lineHeight,"1.33"),Fi=pt.extend("--ft-typography-caption-text-transform",Ht.textTransform,"inherit"),Ui=pt.extend("--ft-typography-breadcrumb-font-family",Wt),ji=pt.extend("--ft-typography-breadcrumb-font-size",Ht.fontSize,"10px"),Ti=pt.extend("--ft-typography-breadcrumb-font-weight",Ht.fontWeight,"normal"),Bi=pt.extend("--ft-typography-breadcrumb-letter-spacing",Ht.letterSpacing,"0.33px"),Li=pt.extend("--ft-typography-breadcrumb-line-height",Ht.lineHeight,"1.6"),Ai=pt.extend("--ft-typography-breadcrumb-text-transform",Ht.textTransform,"inherit"),_i=pt.extend("--ft-typography-overline-font-family",Wt),Pi=pt.extend("--ft-typography-overline-font-size",Ht.fontSize,"10px"),Di=pt.extend("--ft-typography-overline-font-weight",Ht.fontWeight,"normal"),Ii=pt.extend("--ft-typography-overline-letter-spacing",Ht.letterSpacing,"1.5px"),Wi=pt.extend("--ft-typography-overline-line-height",Ht.lineHeight,"1.6"),Hi=pt.extend("--ft-typography-overline-text-transform",Ht.textTransform,"uppercase"),Ki={fontFamily:pt.extend("--ft-typography-button-font-family",Wt),fontSize:pt.extend("--ft-typography-button-font-size",Ht.fontSize,"14px"),fontWeight:pt.extend("--ft-typography-button-font-weight",Ht.fontWeight,"600"),letterSpacing:pt.extend("--ft-typography-button-letter-spacing",Ht.letterSpacing,"1.246px"),lineHeight:pt.extend("--ft-typography-button-line-height",Ht.lineHeight,"1.15"),textTransform:pt.extend("--ft-typography-button-text-transform",Ht.textTransform,"uppercase")},Zi=v`
207
207
  .ft-typography--title {
208
208
  font-family: ${Kt};
209
209
  font-size: ${Zt};
@@ -233,8 +233,8 @@ const Tt=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===Tt)return null==t?void
233
233
  `,qi=v`
234
234
  .ft-typography--subtitle2 {
235
235
  font-family: ${hi};
236
- font-size: ${ci};
237
- font-weight: ${pi};
236
+ font-size: ${pi};
237
+ font-weight: ${ci};
238
238
  letter-spacing: ${fi};
239
239
  line-height: ${di};
240
240
  text-transform: ${ui};
@@ -294,18 +294,50 @@ const Tt=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===Tt)return null==t?void
294
294
  line-height: ${Ki.lineHeight};
295
295
  text-transform: ${Ki.textTransform};
296
296
  }
297
- `;class ee extends ut{constructor(){super(...arguments),this.variant=Pt.body1}render(){return this.element?_t`
298
- <${Lt(this.element)}
297
+ `,ee=v`
298
+ .ft-typography {
299
+ vertical-align: inherit;
300
+ }
301
+ `;var oe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class se extends ut{constructor(){super(...arguments),this.variant=Dt.body1}render(){return this.element?Pt`
302
+ <${At(this.element)}
299
303
  class="ft-typography ft-typography--${this.variant}">
300
304
  <slot></slot>
301
- </${Lt(this.element)}>
302
- `:_t`
305
+ </${At(this.element)}>
306
+ `:Pt`
303
307
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
304
- `}}ee.styles=[Zi,Vi,Ji,qi,Xi,Yi,Gi,Qi,te,ie,v`
305
- .ft-typography {
306
- vertical-align: inherit;
307
- }
308
- `],Dt([o()],ee.prototype,"element",void 0),Dt([o()],ee.prototype,"variant",void 0),h("ft-typography")(ee);var oe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const se=ct.create("--ft-tooltip-distance","SIZE","4px"),ne=ct.create("--ft-tooltip-color","COLOR","#FFFFFF"),re=ct.create("--ft-tooltip-background-color","COLOR","#666666"),le=ct.create("--ft-tooltip-z-index","NUMBER","1"),ae=ct.external(ft.borderRadiusS,"Design system"),he=ct.create("--ft-tooltip-max-width","SIZE","150px");class ce extends ut{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return W`
308
+ `}}se.styles=[Zi,Vi,Ji,qi,Xi,Yi,Gi,Qi,te,ie,ee],oe([o()],se.prototype,"element",void 0),oe([o()],se.prototype,"variant",void 0),h("ft-typography")(se);const ne=pt.create("--ft-tooltip-distance","SIZE","4px"),re=pt.create("--ft-tooltip-color","COLOR","#FFFFFF"),le=pt.create("--ft-tooltip-background-color","COLOR","#666666"),ae=pt.create("--ft-tooltip-z-index","NUMBER","1"),he=pt.external(ft.borderRadiusS,"Design system"),pe=pt.create("--ft-tooltip-max-width","SIZE","150px"),ce=v`
309
+ .ft-tooltip--container {
310
+ display: block;
311
+ position: relative;
312
+ }
313
+
314
+ .ft-tooltip--inline {
315
+ display: inline-block;
316
+ max-width: 100%;
317
+ }
318
+
319
+ .ft-tooltip {
320
+ position: absolute;
321
+ box-sizing: border-box;
322
+ overflow: hidden;
323
+ width: max-content;
324
+ max-width: ${pe};
325
+ text-align: center;
326
+ padding: ${ne};
327
+ z-index: ${ae};
328
+ }
329
+
330
+ .ft-tooltip--content {
331
+ padding: 4px 8px;
332
+ border-radius: ${he};
333
+ background-color: ${le};
334
+ color: ${re};
335
+ top: -500px;
336
+ left: -500px;
337
+ position: relative;
338
+ word-break: break-word;
339
+ }
340
+ `;var fe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class de extends ut{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return W`
309
341
  <div part="container"
310
342
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
311
343
  @mouseenter=${this.onHover}
@@ -321,302 +353,270 @@ const Tt=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===Tt)return null==t?void
321
353
  </div>
322
354
  <slot></slot>
323
355
  </div>
324
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.position){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${he})`}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())}}ce.elementDefinitions={"ft-typography":ee},ce.styles=v`
325
- .ft-tooltip--container {
326
- display: block;
327
- position: relative;
328
- }
329
-
330
- .ft-tooltip--inline {
331
- display: inline-block;
332
- max-width: 100%;
333
- }
334
-
335
- .ft-tooltip {
336
- position: absolute;
337
- box-sizing: border-box;
338
- overflow: hidden;
339
- width: max-content;
340
- max-width: ${he};
341
- text-align: center;
342
- padding: ${se};
343
- z-index: ${le};
344
- }
345
-
346
- .ft-tooltip--content {
347
- padding: 4px 8px;
348
- border-radius: ${ae};
349
- background-color: ${re};
350
- color: ${ne};
351
- top: -500px;
352
- left: -500px;
353
- position: relative;
354
- word-break: break-word;
355
- }
356
- `,oe([o()],ce.prototype,"text",void 0),oe([o({type:Boolean})],ce.prototype,"manual",void 0),oe([o({type:Boolean})],ce.prototype,"inline",void 0),oe([o({type:Number})],ce.prototype,"delay",void 0),oe([o()],ce.prototype,"position",void 0),oe([
356
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.position){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${pe})`}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())}}de.elementDefinitions={"ft-typography":se},de.styles=ce,fe([o()],de.prototype,"text",void 0),fe([o({type:Boolean})],de.prototype,"manual",void 0),fe([o({type:Boolean})],de.prototype,"inline",void 0),fe([o({type:Number})],de.prototype,"delay",void 0),fe([o()],de.prototype,"position",void 0),fe([
357
357
  /**
358
358
  * @license
359
359
  * Copyright 2017 Google LLC
360
360
  * SPDX-License-Identifier: BSD-3-Clause
361
361
  */
362
- function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],ce.prototype,"slotNodes",void 0),oe([r(".ft-tooltip--container")],ce.prototype,"container",void 0),oe([r("slot")],ce.prototype,"target",void 0),oe([r(".ft-tooltip")],ce.prototype,"tooltip",void 0),oe([r(".ft-tooltip--content")],ce.prototype,"tooltipContent",void 0),oe([s()],ce.prototype,"visible",void 0),h("ft-tooltip")(ce);const pe={color:ct.extend("--ft-loader-color",ft.colorPrimary),size:ct.create("--ft-loader-size","SIZE","80px")};class fe extends ut{static get styles(){return v`
363
- :host {
364
- line-height: 0;
365
- }
366
-
367
- .ft-loader {
368
- display: inline-block;
369
- position: relative;
370
-
371
- width: ${pe.size};
372
- height: ${pe.size};
373
- }
374
-
375
- .ft-loader div {
376
- position: absolute;
377
- top: 37.5%;
378
- width: 25%;
379
- height: 25%;
380
- border-radius: 50%;
381
- background: ${pe.color};
382
- animation-timing-function: cubic-bezier(0, 1, 1, 0);
383
- }
384
-
385
- .ft-loader div:nth-child(1) {
386
- left: 2.5%;
387
- animation: appear 0.6s infinite;
388
- }
389
-
390
- .ft-loader div:nth-child(2) {
391
- left: 2.5%;
392
- animation: move 0.6s infinite;
393
- }
394
-
395
- .ft-loader div:nth-child(3) {
396
- left: 37.5%;
397
- animation: move 0.6s infinite;
398
- }
399
-
400
- .ft-loader div:nth-child(4) {
401
- left: 72.5%;
402
- animation: disappear 0.6s infinite;
403
- }
404
-
405
- @keyframes appear {
406
- 0% {
407
- transform: scale(0);
408
- }
409
- 100% {
410
- transform: scale(1);
411
- }
412
- }
362
+ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],de.prototype,"slotNodes",void 0),fe([r(".ft-tooltip--container")],de.prototype,"container",void 0),fe([r("slot")],de.prototype,"target",void 0),fe([r(".ft-tooltip")],de.prototype,"tooltip",void 0),fe([r(".ft-tooltip--content")],de.prototype,"tooltipContent",void 0),fe([s()],de.prototype,"visible",void 0),h("ft-tooltip")(de);const ue={color:pt.extend("--ft-loader-color",ft.colorPrimary),size:pt.create("--ft-loader-size","SIZE","80px")},ve=v`
363
+ :host {
364
+ line-height: 0;
365
+ }
413
366
 
414
- @keyframes disappear {
415
- 0% {
416
- transform: scale(1);
417
- }
418
- 100% {
419
- transform: scale(0);
420
- }
421
- }
367
+ .ft-loader {
368
+ display: inline-block;
369
+ position: relative;
422
370
 
423
- @keyframes move {
424
- 0% {
425
- transform: translate(0, 0);
426
- }
427
- 100% {
428
- transform: translate(calc(0.35 * ${pe.size}), 0);
429
- }
430
- }
431
- `}render(){return W`
371
+ width: ${ue.size};
372
+ height: ${ue.size};
373
+ }
374
+
375
+ .ft-loader div {
376
+ position: absolute;
377
+ top: 37.5%;
378
+ width: 25%;
379
+ height: 25%;
380
+ border-radius: 50%;
381
+ background: ${ue.color};
382
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
383
+ }
384
+
385
+ .ft-loader div:nth-child(1) {
386
+ left: 2.5%;
387
+ animation: appear 0.6s infinite;
388
+ }
389
+
390
+ .ft-loader div:nth-child(2) {
391
+ left: 2.5%;
392
+ animation: move 0.6s infinite;
393
+ }
394
+
395
+ .ft-loader div:nth-child(3) {
396
+ left: 37.5%;
397
+ animation: move 0.6s infinite;
398
+ }
399
+
400
+ .ft-loader div:nth-child(4) {
401
+ left: 72.5%;
402
+ animation: disappear 0.6s infinite;
403
+ }
404
+
405
+ @keyframes appear {
406
+ 0% {
407
+ transform: scale(0);
408
+ }
409
+ 100% {
410
+ transform: scale(1);
411
+ }
412
+ }
413
+
414
+ @keyframes disappear {
415
+ 0% {
416
+ transform: scale(1);
417
+ }
418
+ 100% {
419
+ transform: scale(0);
420
+ }
421
+ }
422
+
423
+ @keyframes move {
424
+ 0% {
425
+ transform: translate(0, 0);
426
+ }
427
+ 100% {
428
+ transform: translate(calc(0.35 * ${ue.size}), 0);
429
+ }
430
+ }
431
+ `;class xe extends ut{render(){return W`
432
432
  <div class="ft-loader">
433
433
  <div></div>
434
434
  <div></div>
435
435
  <div></div>
436
436
  <div></div>
437
437
  </div>
438
- `}}h("ft-loader")(fe);
438
+ `}}xe.styles=ve,h("ft-loader")(xe);
439
439
  /**
440
440
  * @license
441
441
  * Copyright 2017 Google LLC
442
442
  * SPDX-License-Identifier: BSD-3-Clause
443
443
  */
444
- class de extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}de.directiveName="unsafeHTML",de.resultType=1;const ue=$t(de);var ve,xe;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(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;"}(xe||(xe={})),new Map([...["abw"].map((t=>[t,xe.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,xe.AUDIO])),...["avi"].map((t=>[t,xe.AVI])),...["chm","xhs"].map((t=>[t,xe.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,xe.CODE])),...["csv"].map((t=>[t,xe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xe.DITA])),...["epub"].map((t=>[t,xe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xe.EXCEL])),...["flac"].map((t=>[t,xe.FLAC])),...["gif"].map((t=>[t,xe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xe.GZIP])),...["html","htm","xhtml"].map((t=>[t,xe.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,xe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xe.JPEG])),...["json"].map((t=>[t,xe.JSON])),...["m4a","m4p"].map((t=>[t,xe.M4A])),...["mov","qt"].map((t=>[t,xe.MOV])),...["mp3"].map((t=>[t,xe.MP3])),...["mp4","m4v"].map((t=>[t,xe.MP4])),...["ogg","oga"].map((t=>[t,xe.OGG])),...["pdf","ps"].map((t=>[t,xe.PDF])),...["png"].map((t=>[t,xe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xe.POWERPOINT])),...["rar"].map((t=>[t,xe.RAR])),...["stp"].map((t=>[t,xe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xe.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,xe.VIDEO])),...["wav"].map((t=>[t,xe.WAV])),...["wma"].map((t=>[t,xe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xe.WORD])),...["xml","xsl","rdf"].map((t=>[t,xe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xe.YAML])),...["zip"].map((t=>[t,xe.ZIP]))]);var be,ye=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(be||(be={}));const ge={size:ct.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ct.create("--ft-icon-vertical-align","UNKNOWN","unset")};class me extends ut{constructor(){super(...arguments),this.variant=be.fluid_topics,this.resolvedIcon=K}render(){return W`
444
+ class be extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}be.directiveName="unsafeHTML",be.resultType=1;const ye=$t(be);var ge,me;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(ge||(ge={})),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;"}(me||(me={})),new Map([...["abw"].map((t=>[t,me.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,me.AUDIO])),...["avi"].map((t=>[t,me.AVI])),...["chm","xhs"].map((t=>[t,me.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,me.CODE])),...["csv"].map((t=>[t,me.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,me.DITA])),...["epub"].map((t=>[t,me.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,me.EXCEL])),...["flac"].map((t=>[t,me.FLAC])),...["gif"].map((t=>[t,me.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,me.GZIP])),...["html","htm","xhtml"].map((t=>[t,me.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,me.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,me.JPEG])),...["json"].map((t=>[t,me.JSON])),...["m4a","m4p"].map((t=>[t,me.M4A])),...["mov","qt"].map((t=>[t,me.MOV])),...["mp3"].map((t=>[t,me.MP3])),...["mp4","m4v"].map((t=>[t,me.MP4])),...["ogg","oga"].map((t=>[t,me.OGG])),...["pdf","ps"].map((t=>[t,me.PDF])),...["png"].map((t=>[t,me.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,me.POWERPOINT])),...["rar"].map((t=>[t,me.RAR])),...["stp"].map((t=>[t,me.STP])),...["txt","rtf","md","mdown"].map((t=>[t,me.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,me.VIDEO])),...["wav"].map((t=>[t,me.WAV])),...["wma"].map((t=>[t,me.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,me.WORD])),...["xml","xsl","rdf"].map((t=>[t,me.XML])),...["yaml","yml","x-yaml"].map((t=>[t,me.YAML])),...["zip"].map((t=>[t,me.ZIP]))]);const we={size:pt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:pt.extend("--ft-icon-fluid-topics-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:pt.extend("--ft-icon-file-format-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:pt.extend("--ft-icon-material-font-family",pt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:pt.create("--ft-icon-vertical-align","UNKNOWN","unset")},$e=v`
445
+ :host {
446
+ display: inline-block;
447
+ }
448
+
449
+ :host, i.ft-icon {
450
+ width: ${we.size};
451
+ height: ${we.size};
452
+ text-align: center;
453
+ }
454
+
455
+ i.ft-icon {
456
+ font-size: ${we.size};
457
+ line-height: 1;
458
+ font-weight: normal;
459
+ text-transform: none;
460
+ font-style: normal;
461
+ font-variant: normal;
462
+ speak: none;
463
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
464
+ text-rendering: auto;
465
+ -webkit-font-smoothing: antialiased;
466
+ -moz-osx-font-smoothing: grayscale;
467
+ vertical-align: ${we.verticalAlign};
468
+ }
469
+
470
+ .ft-icon--fluid-topics {
471
+ font-family: ${we.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
472
+ }
473
+
474
+ .ft-icon--file-format {
475
+ font-family: ${we.fileFormatFontFamily}, ft-mime, sans-serif;
476
+ }
477
+
478
+ .ft-icon--material {
479
+ font-family: ${we.materialFontFamily}, "Material Icons", sans-serif;
480
+ }
481
+ `;var Oe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oe||(Oe={}));var Se=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ke extends ut{constructor(){super(...arguments),this.variant=Oe.fluid_topics,this.resolvedIcon=K}render(){const t="material"!==this.variant||this.value;return W`
445
482
  <i class="ft-icon ${"ft-icon--"+this.variant}">
446
- ${ue(this.resolvedIcon)}
447
- <slot ?hidden=${"material"!==this.variant}></slot>
483
+ ${ye(this.resolvedIcon)}
484
+ <slot ?hidden=${t}></slot>
448
485
  </i>
449
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case be.file_format:this.resolvedIcon=null!==(t=xe[e.toUpperCase()])&&void 0!==t?t:e;break;case be.fluid_topics:this.resolvedIcon=null!==(i=ve[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=K}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}me.elementDefinitions={},me.styles=v`
486
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Oe.file_format:this.resolvedIcon=null!==(t=me[e.toUpperCase()])&&void 0!==t?t:e;break;case Oe.fluid_topics:this.resolvedIcon=null!==(i=ge[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||K}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}ke.elementDefinitions={},ke.styles=$e,Se([o()],ke.prototype,"variant",void 0),Se([o()],ke.prototype,"value",void 0),Se([s()],ke.prototype,"resolvedIcon",void 0),Se([r("slot")],ke.prototype,"slottedContent",void 0),h("ft-icon")(ke);const Ne=pt.extend("--ft-button-color",ft.colorPrimary),Ce={backgroundColor:pt.extend("--ft-button-background-color",ft.colorSurface),borderRadius:pt.extend("--ft-button-border-radius",ft.borderRadiusL),color:Ne,fontSize:pt.extend("--ft-button-font-size",Ki.fontSize),iconSize:pt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:pt.extend("--ft-button-ripple-color",Ne),opacityDisabled:pt.external(ft.colorOpacityDisabled,"Design system")},Ee=pt.extend("--ft-button-primary-color",pt.extend("--ft-button-color",ft.colorOnPrimary)),Re={backgroundColor:pt.extend("--ft-button-primary-background-color",pt.extend("--ft-button-background-color",ft.colorPrimary)),color:Ee,rippleColor:pt.extend("--ft-button-primary-ripple-color",Ee)},ze=pt.extend("--ft-button-dense-border-radius",pt.extend("--ft-button-border-radius",ft.borderRadiusM)),Me=[vt,v`
450
487
  :host {
451
488
  display: inline-block;
489
+ max-width: 100%;
490
+ pointer-events: none;
452
491
  }
453
492
 
454
- :host, i.ft-icon {
455
- width: ${ge.size};
456
- height: ${ge.size};
457
- text-align: center;
458
- }
459
-
460
- i.ft-icon {
461
- font-size: ${ge.size};
462
- line-height: 1;
463
- font-weight: normal;
464
- text-transform: none;
465
- font-style: normal;
466
- font-variant: normal;
467
- speak: none;
468
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
469
- text-rendering: auto;
470
- -webkit-font-smoothing: antialiased;
471
- -moz-osx-font-smoothing: grayscale;
472
- vertical-align: ${ge.verticalAlign};
493
+ button {
494
+ box-shadow: 0px 0px 0px transparent;
495
+ border: 0px solid transparent;
496
+ text-shadow: 0px 0px 0px transparent;
497
+ font-size: ${Ce.fontSize};
473
498
  }
474
499
 
475
- .ft-icon--fluid-topics {
476
- font-family: ${ge.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
500
+ button:hover {
501
+ box-shadow: 0px 0px 0px transparent;
502
+ border: 0px solid transparent;
503
+ text-shadow: 0px 0px 0px transparent;
477
504
  }
478
505
 
479
- .ft-icon--file-format {
480
- font-family: ${ge.fileFormatFontFamily}, ft-mime, sans-serif;
506
+ button:active {
507
+ outline: none;
508
+ border: none;
481
509
  }
482
510
 
483
- .ft-icon--material {
484
- font-family: ${ge.materialFontFamily}, "Material Icons", sans-serif;
511
+ button:focus {
512
+ outline: 0;
485
513
  }
486
- `,ye([o()],me.prototype,"variant",void 0),ye([o()],me.prototype,"value",void 0),ye([s()],me.prototype,"resolvedIcon",void 0),ye([r("slot")],me.prototype,"slottedContent",void 0),h("ft-icon")(me);var we=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const $e=ct.extend("--ft-button-color",ft.colorPrimary),Oe={backgroundColor:ct.extend("--ft-button-background-color",ft.colorSurface),borderRadius:ct.extend("--ft-button-border-radius",ft.borderRadiusL),color:$e,fontSize:ct.extend("--ft-button-font-size",Ki.fontSize),iconSize:ct.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ct.extend("--ft-button-ripple-color",$e),opacityDisabled:ct.external(ft.colorOpacityDisabled,"Design system")},Se=ct.extend("--ft-button-primary-color",ct.extend("--ft-button-color",ft.colorOnPrimary)),ke={backgroundColor:ct.extend("--ft-button-primary-background-color",ct.extend("--ft-button-background-color",ft.colorPrimary)),color:Se,rippleColor:ct.extend("--ft-button-primary-ripple-color",Se)},Ne=ct.extend("--ft-button-dense-border-radius",ct.extend("--ft-button-border-radius",ft.borderRadiusM));class Ce extends ut{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=be.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[vt,v`
487
- :host {
488
- display: inline-block;
489
- max-width: 100%;
490
- pointer-events: none;
491
- }
492
-
493
- button {
494
- box-shadow: 0px 0px 0px transparent;
495
- border: 0px solid transparent;
496
- text-shadow: 0px 0px 0px transparent;
497
- font-size: ${Oe.fontSize};
498
- }
499
-
500
- button:hover {
501
- box-shadow: 0px 0px 0px transparent;
502
- border: 0px solid transparent;
503
- text-shadow: 0px 0px 0px transparent;
504
- }
505
514
 
506
- button:active {
507
- outline: none;
508
- border: none;
509
- }
515
+ .ft-button {
516
+ position: relative;
517
+ display: flex;
518
+ justify-content: center;
519
+ align-items: center;
520
+ width: 100%;
521
+ overflow: hidden;
522
+ box-sizing: border-box;
523
+ border: none;
524
+ pointer-events: auto;
510
525
 
511
- button:focus {
512
- outline: 0;
513
- }
526
+ --ft-button-internal-line-height: calc(${Ce.fontSize} + 2px);
527
+ --ft-button-internal-color: ${Ce.color};
528
+ ${ct(we.size,Ce.iconSize)};
529
+ --ft-button-internal-vertical-padding: 6px;
530
+ --ft-button-internal-horizontal-padding: 8px;
531
+ ${ct(Nt.color,Ce.rippleColor)};
532
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ce.iconSize});
514
533
 
515
- .ft-button {
516
- position: relative;
517
- display: flex;
518
- justify-content: center;
519
- align-items: center;
520
- width: 100%;
521
- overflow: hidden;
522
- box-sizing: border-box;
523
- border: none;
524
- pointer-events: auto;
525
-
526
- --ft-button-internal-line-height: calc(${Oe.fontSize} + 2px);
527
- --ft-button-internal-color: ${Oe.color};
528
- ${pt(ge.size,Oe.iconSize)};
529
- --ft-button-internal-vertical-padding: 6px;
530
- --ft-button-internal-horizontal-padding: 8px;
531
- ${pt(Ct.color,Oe.rippleColor)};
532
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Oe.iconSize});
533
-
534
- border-radius: ${Oe.borderRadius};
535
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
536
- background-color: ${Oe.backgroundColor};
537
- color: var(--ft-button-internal-color);
538
- -webkit-mask-image: radial-gradient(white, black);
539
- }
534
+ border-radius: ${Ce.borderRadius};
535
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
536
+ background-color: ${Ce.backgroundColor};
537
+ color: var(--ft-button-internal-color);
538
+ -webkit-mask-image: radial-gradient(white, black);
539
+ }
540
540
 
541
- .ft-button:not([disabled]):hover {
542
- cursor: pointer;
543
- }
541
+ .ft-button:not([disabled]):hover {
542
+ cursor: pointer;
543
+ }
544
544
 
545
- .ft-button--dense {
546
- --ft-button-internal-vertical-padding: 2px;
547
- --ft-button-internal-horizontal-padding: 4px;
548
- border-radius: ${Ne};
549
- }
545
+ .ft-button--dense {
546
+ --ft-button-internal-vertical-padding: 2px;
547
+ --ft-button-internal-horizontal-padding: 4px;
548
+ border-radius: ${ze};
549
+ }
550
550
 
551
- .ft-button--round {
552
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
553
- }
551
+ .ft-button--round {
552
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
553
+ }
554
554
 
555
- .ft-button[disabled] {
556
- filter: grayscale(1);
557
- opacity: ${Oe.opacityDisabled};
558
- }
555
+ .ft-button[disabled] {
556
+ filter: grayscale(1);
557
+ opacity: ${Ce.opacityDisabled};
558
+ }
559
559
 
560
- .ft-button.ft-button--primary {
561
- background-color: ${ke.backgroundColor};
562
- --ft-button-internal-color: ${ke.color};
563
- ${pt(Ct.color,ke.rippleColor)};
564
- }
560
+ .ft-button.ft-button--primary {
561
+ background-color: ${Re.backgroundColor};
562
+ --ft-button-internal-color: ${Re.color};
563
+ ${ct(Nt.color,Re.rippleColor)};
564
+ }
565
565
 
566
- .ft-button.ft-button--outlined {
567
- border: 1px solid var(--ft-button-internal-color);
568
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
569
- }
566
+ .ft-button.ft-button--outlined {
567
+ border: 1px solid var(--ft-button-internal-color);
568
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
569
+ }
570
570
 
571
- .ft-button:focus {
572
- outline: none;
573
- }
571
+ .ft-button:focus {
572
+ outline: none;
573
+ }
574
574
 
575
- .ft-button--label {
576
- position: relative;
577
- overflow: hidden;
578
- white-space: nowrap;
579
- text-overflow: ellipsis;
580
- display: block;
581
- margin: 0 var(--ft-button-internal-horizontal-padding);
582
- ${pt(Ki.fontSize,"1em")};
583
- ${pt(Ki.lineHeight,"var(--ft-button-internal-content-height)")};
584
- }
575
+ .ft-button--label {
576
+ position: relative;
577
+ overflow: hidden;
578
+ white-space: nowrap;
579
+ text-overflow: ellipsis;
580
+ display: block;
581
+ margin: 0 var(--ft-button-internal-horizontal-padding);
582
+ ${ct(Ki.fontSize,"1em")};
583
+ ${ct(Ki.lineHeight,"var(--ft-button-internal-content-height)")};
584
+ }
585
585
 
586
- .ft-button--safari-fix .ft-button--label {
587
- margin-right: 0;
588
- }
586
+ .ft-button--safari-fix .ft-button--label {
587
+ margin-right: 0;
588
+ }
589
589
 
590
- .ft-button--safari-fix .ft-button--label:after {
591
- content: "\\0000a0";
592
- display: inline-block;
593
- width: 0;
594
- }
590
+ .ft-button--safari-fix .ft-button--label:after {
591
+ content: "\\0000a0";
592
+ display: inline-block;
593
+ width: 0;
594
+ }
595
595
 
596
- .ft-button--label[hidden] {
597
- display: none;
598
- }
596
+ .ft-button--label[hidden] {
597
+ display: none;
598
+ }
599
599
 
600
- ft-icon {
601
- flex-shrink: 0;
602
- position: relative;
603
- }
600
+ ft-icon {
601
+ flex-shrink: 0;
602
+ position: relative;
603
+ }
604
604
 
605
- .ft-button--label[hidden] + ft-icon {
606
- margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
607
- padding: 0 var(--ft-button-internal-vertical-padding);
608
- }
605
+ .ft-button--label[hidden] + ft-icon {
606
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
607
+ padding: 0 var(--ft-button-internal-vertical-padding);
608
+ }
609
609
 
610
- .ft-button:not(.ft-button--trailing-icon) ft-icon,
611
- .ft-button:not(.ft-button--trailing-icon) ft-loader {
612
- order: -1;
613
- }
610
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
611
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
612
+ order: -1;
613
+ }
614
614
 
615
- ft-loader {
616
- ${pt(pe.size,Oe.iconSize)};
617
- ${pt(pe.color,"var(--ft-button-internal-color)")};
618
- }
619
- `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":gt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
615
+ ft-loader {
616
+ ${ct(ue.size,Ce.iconSize)};
617
+ ${ct(ue.color,"var(--ft-button-internal-color)")};
618
+ }
619
+ `];var Fe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ue extends ut{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Oe.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":gt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(W`
620
620
  <button part="button"
621
621
  class="${St(t)}"
622
622
  aria-label="${this.getLabel()}"
@@ -638,7 +638,132 @@ class de extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error
638
638
  </ft-tooltip>
639
639
  `}resolveIcon(){return this.loading?W`
640
640
  <ft-loader></ft-loader> `:this.icon?W`
641
- <ft-icon .variant=${this.iconVariant} value=${this.icon}></ft-icon> `:K}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}}Ce.elementDefinitions={"ft-ripple":jt,"ft-tooltip":ce,"ft-typography":ee,"ft-icon":me,"ft-loader":fe},we([o({type:Boolean})],Ce.prototype,"primary",void 0),we([o({type:Boolean})],Ce.prototype,"outlined",void 0),we([o({type:Boolean})],Ce.prototype,"disabled",void 0),we([o({type:Boolean})],Ce.prototype,"dense",void 0),we([o({type:Boolean})],Ce.prototype,"round",void 0),we([o({type:String})],Ce.prototype,"label",void 0),we([o({type:String})],Ce.prototype,"icon",void 0),we([o({type:String})],Ce.prototype,"iconVariant",void 0),we([o({type:Boolean})],Ce.prototype,"trailingIcon",void 0),we([o({type:Boolean})],Ce.prototype,"loading",void 0),we([o({type:String})],Ce.prototype,"tooltipPosition",void 0),we([o({type:Boolean})],Ce.prototype,"hideTooltip",void 0),we([r(".ft-button")],Ce.prototype,"button",void 0),we([r(".ft-button--label slot")],Ce.prototype,"slottedContent",void 0),h("ft-button")(Ce);var Ee=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const Re={buttonsColor:ct.extend("--ft-snap-scroll-buttons-color",ft.colorPrimary),buttonsZIndex:ct.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:ct.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:ct.external(ft.colorSurface,"Design system")};class ze extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class Me extends ut{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 i(200),this.updateScrollDebouncer=new i(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}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=St({"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":gt}),i=this.controls&&this.withScroll;return W`
641
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:K}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}}Ue.elementDefinitions={"ft-ripple":Tt,"ft-tooltip":de,"ft-typography":se,"ft-icon":ke,"ft-loader":xe},Ue.styles=Me,Fe([o({type:Boolean})],Ue.prototype,"primary",void 0),Fe([o({type:Boolean})],Ue.prototype,"outlined",void 0),Fe([o({type:Boolean})],Ue.prototype,"disabled",void 0),Fe([o({type:Boolean})],Ue.prototype,"dense",void 0),Fe([o({type:Boolean})],Ue.prototype,"round",void 0),Fe([o({type:String})],Ue.prototype,"label",void 0),Fe([o({type:String})],Ue.prototype,"icon",void 0),Fe([o({type:String})],Ue.prototype,"iconVariant",void 0),Fe([o({type:Boolean})],Ue.prototype,"trailingIcon",void 0),Fe([o({type:Boolean})],Ue.prototype,"loading",void 0),Fe([o({type:String})],Ue.prototype,"tooltipPosition",void 0),Fe([o({type:Boolean})],Ue.prototype,"hideTooltip",void 0),Fe([r(".ft-button")],Ue.prototype,"button",void 0),Fe([r(".ft-button--label slot")],Ue.prototype,"slottedContent",void 0),h("ft-button")(Ue);const je={buttonsColor:pt.extend("--ft-snap-scroll-buttons-color",ft.colorPrimary),buttonsZIndex:pt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:pt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:pt.external(ft.colorSurface,"Design system")},Te=v`
642
+ .ft-snap-scroll {
643
+ box-sizing: border-box;
644
+ position: relative;
645
+ display: flex;
646
+
647
+ --ft-snap-scroll-transparent-color: transparent;
648
+ }
649
+
650
+ .ft-snap-scroll.ft-snap-scroll--safari-fix {
651
+ /* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
652
+ /* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
653
+ --ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
654
+ }
655
+
656
+ .ft-snap-scroll,
657
+ .ft-snap-scroll--content {
658
+ overflow: hidden;
659
+ }
660
+
661
+ .ft-snap-scroll--limit-size,
662
+ .ft-snap-scroll--limit-size .ft-snap-scroll--content {
663
+ width: 100%;
664
+ height: 100%;
665
+ }
666
+
667
+ .ft-snap-scroll--content {
668
+ flex-grow: 1;
669
+ flex-shrink: 1;
670
+ box-sizing: border-box;
671
+ scroll-snap-align: start;
672
+ display: flex;
673
+ flex-wrap: nowrap;
674
+ align-items: flex-start;
675
+ justify-content: flex-start;
676
+ gap: ${je.gap};
677
+ }
678
+
679
+ .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
680
+ display: none;
681
+ }
682
+
683
+ .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
684
+ -ms-overflow-style: none;
685
+ scrollbar-width: none;
686
+ }
687
+
688
+ .ft-snap-scroll--content::slotted(*) {
689
+ flex-shrink: 0;
690
+ flex-grow: 1;
691
+ max-height: 100%;
692
+ max-width: 100%;
693
+ }
694
+
695
+ .ft-snap-scroll--horizontal,
696
+ .ft-snap-scroll--horizontal .ft-snap-scroll--content {
697
+ width: 100%;
698
+ }
699
+
700
+ .ft-snap-scroll--vertical,
701
+ .ft-snap-scroll--vertical .ft-snap-scroll--content {
702
+ height: 100%;
703
+ }
704
+
705
+ .ft-snap-scroll--horizontal .ft-snap-scroll--content {
706
+ flex-direction: row;
707
+ overflow-x: auto;
708
+ }
709
+
710
+ .ft-snap-scroll--vertical .ft-snap-scroll--content {
711
+ flex-direction: column;
712
+ overflow-y: auto;
713
+ }
714
+
715
+ .ft-snap-scroll--previous,
716
+ .ft-snap-scroll--next {
717
+ position: absolute;
718
+ display: flex;
719
+ z-index: ${je.buttonsZIndex};
720
+ opacity: 1;
721
+ transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
722
+ ${ct(Ce.backgroundColor,"transparent")};
723
+ ${ct(Ce.color,je.buttonsColor)};
724
+ }
725
+
726
+ .ft-snap-scroll--previous[hidden],
727
+ .ft-snap-scroll--next[hidden] {
728
+ z-index: -1;
729
+ opacity: 0;
730
+ }
731
+
732
+ .ft-snap-scroll--horizontal .ft-snap-scroll--previous {
733
+ top: 0;
734
+ left: -1px;
735
+ bottom: 0;
736
+ background: linear-gradient(to right, ${je.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
737
+ }
738
+
739
+ .ft-snap-scroll--vertical .ft-snap-scroll--previous {
740
+ top: -1px;
741
+ left: 0;
742
+ right: 0;
743
+ background: linear-gradient(to bottom, ${je.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
744
+ }
745
+
746
+ .ft-snap-scroll--horizontal .ft-snap-scroll--next {
747
+ top: 0;
748
+ right: -1px;
749
+ bottom: 0;
750
+ background: linear-gradient(to left, ${je.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
751
+ }
752
+
753
+ .ft-snap-scroll--vertical .ft-snap-scroll--next {
754
+ left: 0;
755
+ right: 0;
756
+ bottom: -1px;
757
+ background: linear-gradient(to top, ${je.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
758
+ }
759
+
760
+ .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
761
+ .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
762
+ .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
763
+ .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
764
+ background-color: ${je.colorSurface};
765
+ }
766
+ `;var Be=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Le extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class Ae extends ut{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 i(200),this.updateScrollDebouncer=new i(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}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=St({"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":gt}),i=this.controls&&this.withScroll;return W`
642
767
  <div part="container" class="${t}">
643
768
  <ft-button
644
769
  class="ft-snap-scroll--previous"
@@ -662,129 +787,4 @@ class de extends Ot{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error
662
787
  @click=${this.next}
663
788
  ></ft-button>
664
789
  </div>
665
- `}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),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 ze(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.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,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);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 i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}Me.elementDefinitions={"ft-button":Ce},Me.styles=v`
666
- .ft-snap-scroll {
667
- box-sizing: border-box;
668
- position: relative;
669
- display: flex;
670
-
671
- --ft-snap-scroll-transparent-color: transparent;
672
- }
673
-
674
- .ft-snap-scroll.ft-snap-scroll--safari-fix {
675
- /* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
676
- /* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
677
- --ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
678
- }
679
-
680
- .ft-snap-scroll,
681
- .ft-snap-scroll--content {
682
- overflow: hidden;
683
- }
684
-
685
- .ft-snap-scroll--limit-size,
686
- .ft-snap-scroll--limit-size .ft-snap-scroll--content {
687
- width: 100%;
688
- height: 100%;
689
- }
690
-
691
- .ft-snap-scroll--content {
692
- flex-grow: 1;
693
- flex-shrink: 1;
694
- box-sizing: border-box;
695
- scroll-snap-align: start;
696
- display: flex;
697
- flex-wrap: nowrap;
698
- align-items: flex-start;
699
- justify-content: flex-start;
700
- gap: ${Re.gap};
701
- }
702
-
703
- .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
704
- display: none;
705
- }
706
-
707
- .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
708
- -ms-overflow-style: none;
709
- scrollbar-width: none;
710
- }
711
-
712
- .ft-snap-scroll--content::slotted(*) {
713
- flex-shrink: 0;
714
- flex-grow: 1;
715
- max-height: 100%;
716
- max-width: 100%;
717
- }
718
-
719
- .ft-snap-scroll--horizontal,
720
- .ft-snap-scroll--horizontal .ft-snap-scroll--content {
721
- width: 100%;
722
- }
723
-
724
- .ft-snap-scroll--vertical,
725
- .ft-snap-scroll--vertical .ft-snap-scroll--content {
726
- height: 100%;
727
- }
728
-
729
- .ft-snap-scroll--horizontal .ft-snap-scroll--content {
730
- flex-direction: row;
731
- overflow-x: auto;
732
- }
733
-
734
- .ft-snap-scroll--vertical .ft-snap-scroll--content {
735
- flex-direction: column;
736
- overflow-y: auto;
737
- }
738
-
739
- .ft-snap-scroll--previous,
740
- .ft-snap-scroll--next {
741
- position: absolute;
742
- display: flex;
743
- z-index: ${Re.buttonsZIndex};
744
- opacity: 1;
745
- transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
746
- ${pt(Oe.backgroundColor,"transparent")};
747
- ${pt(Oe.color,Re.buttonsColor)};
748
- }
749
-
750
- .ft-snap-scroll--previous[hidden],
751
- .ft-snap-scroll--next[hidden] {
752
- z-index: -1;
753
- opacity: 0;
754
- }
755
-
756
- .ft-snap-scroll--horizontal .ft-snap-scroll--previous {
757
- top: 0;
758
- left: -1px;
759
- bottom: 0;
760
- background: linear-gradient(to right, ${Re.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
761
- }
762
-
763
- .ft-snap-scroll--vertical .ft-snap-scroll--previous {
764
- top: -1px;
765
- left: 0;
766
- right: 0;
767
- background: linear-gradient(to bottom, ${Re.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
768
- }
769
-
770
- .ft-snap-scroll--horizontal .ft-snap-scroll--next {
771
- top: 0;
772
- right: -1px;
773
- bottom: 0;
774
- background: linear-gradient(to left, ${Re.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
775
- }
776
-
777
- .ft-snap-scroll--vertical .ft-snap-scroll--next {
778
- left: 0;
779
- right: 0;
780
- bottom: -1px;
781
- background: linear-gradient(to top, ${Re.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
782
- }
783
-
784
- .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
785
- .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
786
- .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
787
- .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
788
- background-color: ${Re.colorSurface};
789
- }
790
- `,Ee([o({type:Boolean})],Me.prototype,"horizontal",void 0),Ee([o({type:Boolean})],Me.prototype,"hideScrollbar",void 0),Ee([o({type:Boolean})],Me.prototype,"controls",void 0),Ee([o({type:Boolean})],Me.prototype,"limitSize",void 0),Ee([s()],Me.prototype,"elements",void 0),Ee([s()],Me.prototype,"currentElement",void 0),Ee([s()],Me.prototype,"withScroll",void 0),Ee([s()],Me.prototype,"startReached",void 0),Ee([s()],Me.prototype,"endReached",void 0),Ee([r(".ft-snap-scroll--content")],Me.prototype,"contentSlot",void 0),h("ft-snap-scroll")(Me),t.CurrentElementChange=ze,t.FtSnapScroll=Me,t.FtSnapScrollCssVariables=Re,Object.defineProperty(t,"i",{value:!0})}({});
790
+ `}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),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 Le(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.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,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);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 i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}Ae.elementDefinitions={"ft-button":Ue},Ae.styles=Te,Be([o({type:Boolean})],Ae.prototype,"horizontal",void 0),Be([o({type:Boolean})],Ae.prototype,"hideScrollbar",void 0),Be([o({type:Boolean})],Ae.prototype,"controls",void 0),Be([o({type:Boolean})],Ae.prototype,"limitSize",void 0),Be([s()],Ae.prototype,"elements",void 0),Be([s()],Ae.prototype,"currentElement",void 0),Be([s()],Ae.prototype,"withScroll",void 0),Be([s()],Ae.prototype,"startReached",void 0),Be([s()],Ae.prototype,"endReached",void 0),Be([r(".ft-snap-scroll--content")],Ae.prototype,"contentSlot",void 0),h("ft-snap-scroll")(Ae),t.CurrentElementChange=Le,t.FtSnapScroll=Ae,t.FtSnapScrollCssVariables=je,t.styles=Te,Object.defineProperty(t,"i",{value:!0})}({});