@fluid-topics/ft-reader-topic-metadata 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=h(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},h=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(Ji){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=h(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},h=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(qi){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -48,13 +48,13 @@ const S={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:v},w=(t=S,o,
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */function U(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,i,r;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(i=e;0!=i--;)if(!U(t[i],o[i]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;for(i of t.entries())if(!U(i[1],o.get(i[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(r=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(i=e;0!=i--;)if(!Object.prototype.hasOwnProperty.call(o,r[i]))return!1;for(i=e;0!=i--;){var n=r[i];if(!U(t[n],o[n]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const k=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
51
+ */function k(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,i,r;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(i=e;0!=i--;)if(!k(t[i],o[i]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;for(i of t.entries())if(!k(i[1],o.get(i[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(r=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(i=e;0!=i--;)if(!Object.prototype.hasOwnProperty.call(o,r[i]))return!1;for(i=e;0!=i--;){var n=r[i];if(!k(t[n],o[n]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const U=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2017 Google LLC
55
55
  * SPDX-License-Identifier: BSD-3-Clause
56
56
  */
57
- const I=globalThis,L=I.trustedTypes,W=L?L.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",K=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+K,F=`<${Z}>`,B=document,A=()=>B.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,P="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,T=/>/g,_=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,Y=/"/g,V=/^(?:script|style|textarea|title)$/i,J=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Q=new WeakMap,tt=B.createTreeWalker(B,129);function ot(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==W?W.createHTML(o):o}let et=class t{constructor({strings:o,_$litType$:e},i){let r;this.parts=[];let n=0,a=0;const s=o.length-1,l=this.parts,[c,p]=((t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",a=H;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,p=0;for(;p<e.length&&(a.lastIndex=p,l=a.exec(e),null!==l);)p=a.lastIndex,a===H?"!--"===l[1]?a=j:void 0!==l[1]?a=T:void 0!==l[2]?(V.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=_):void 0!==l[3]&&(a=_):a===_?">"===l[0]?(a=r??H,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?_:'"'===l[3]?Y:G):a===Y||a===G?a=_:a===j||a===T?a=H:(a=_,r=void 0);const h=a===_&&t[o+1].startsWith("/>")?" ":"";n+=a===H?e+F:c>=0?(i.push(s),e.slice(0,c)+z+e.slice(c)+K+h):e+K+(-2===c?o:h)}return[ot(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]})(o,e);if(this.el=t.createElement(c,i),tt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=tt.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(z)){const o=p[a++],e=r.getAttribute(t).split(K),i=/([.?@])?(.*)/.exec(o);l.push({type:1,index:n,name:i[2],strings:e,ctor:"."===i[1]?at:"?"===i[1]?st:"@"===i[1]?lt:nt}),r.removeAttribute(t)}else t.startsWith(K)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(V.test(r.tagName)){const t=r.textContent.split(K),o=t.length-1;if(o>0){r.textContent=L?L.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],A()),tt.nextNode(),l.push({type:2,index:++n});r.append(t[o],A())}}}else if(8===r.nodeType)if(r.data===Z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(K,t+1));)l.push({type:7,index:n}),t+=K.length-1}n++}}static createElement(t,o){const e=B.createElement("template");return e.innerHTML=t,e}};function it(t,o,e=t,i){if(o===q)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const n=M(o)?void 0:o._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(o=it(t,r._$AS(t,o.values),r,i)),o}let rt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=it(this,t,o),M(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>D(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==X&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=et.createElement(ot(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,i=(t?.creationScope??B).importNode(o,!0);tt.currentNode=i;let r=tt.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new rt(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new ct(r,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(r=tt.nextNode(),n++)}return tt.currentNode=B,i}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(i,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=Q.get(t.strings);return void 0===o&&Q.set(t.strings,o=new et(t)),o}T(o){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of o)r===e.length?e.push(i=new t(this.k(A()),this.k(A()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=X}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=it(this,t,o,0),n=!M(t)||t!==this._$AH&&t!==q,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=it(this,i[e+a],o,a),s===q&&(s=this._$AH[a]),n||=!M(s)||s!==this._$AH[a],s===X?t=X:t!==X&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},at=class extends nt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===X?void 0:t}},st=class extends nt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==X)}},lt=class extends nt{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=it(this,t,o,0)??X)===q)return;const e=this._$AH,i=t===X&&e!==X||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==X&&(e===X||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ct=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const pt=I.litHtmlPolyfillSupport;pt?.(et,rt),(I.litHtmlVersions??=[]).push("3.1.0");
57
+ const I=globalThis,L=I.trustedTypes,W=L?L.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",K=`lit$${(Math.random()+"").slice(9)}$`,F="?"+K,Z=`<${F}>`,B=document,A=()=>B.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,P="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,T=/>/g,_=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,Y=/"/g,V=/^(?:script|style|textarea|title)$/i,J=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Q=new WeakMap,tt=B.createTreeWalker(B,129);function ot(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==W?W.createHTML(o):o}let et=class t{constructor({strings:o,_$litType$:e},i){let r;this.parts=[];let n=0,a=0;const s=o.length-1,l=this.parts,[c,p]=((t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",a=H;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,p=0;for(;p<e.length&&(a.lastIndex=p,l=a.exec(e),null!==l);)p=a.lastIndex,a===H?"!--"===l[1]?a=j:void 0!==l[1]?a=T:void 0!==l[2]?(V.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=_):void 0!==l[3]&&(a=_):a===_?">"===l[0]?(a=r??H,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?_:'"'===l[3]?Y:G):a===Y||a===G?a=_:a===j||a===T?a=H:(a=_,r=void 0);const h=a===_&&t[o+1].startsWith("/>")?" ":"";n+=a===H?e+Z:c>=0?(i.push(s),e.slice(0,c)+z+e.slice(c)+K+h):e+K+(-2===c?o:h)}return[ot(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]})(o,e);if(this.el=t.createElement(c,i),tt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=tt.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(z)){const o=p[a++],e=r.getAttribute(t).split(K),i=/([.?@])?(.*)/.exec(o);l.push({type:1,index:n,name:i[2],strings:e,ctor:"."===i[1]?at:"?"===i[1]?st:"@"===i[1]?lt:nt}),r.removeAttribute(t)}else t.startsWith(K)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(V.test(r.tagName)){const t=r.textContent.split(K),o=t.length-1;if(o>0){r.textContent=L?L.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],A()),tt.nextNode(),l.push({type:2,index:++n});r.append(t[o],A())}}}else if(8===r.nodeType)if(r.data===F)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(K,t+1));)l.push({type:7,index:n}),t+=K.length-1}n++}}static createElement(t,o){const e=B.createElement("template");return e.innerHTML=t,e}};function it(t,o,e=t,i){if(o===q)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const n=M(o)?void 0:o._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(o=it(t,r._$AS(t,o.values),r,i)),o}let rt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=it(this,t,o),M(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>D(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==X&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=et.createElement(ot(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,i=(t?.creationScope??B).importNode(o,!0);tt.currentNode=i;let r=tt.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new rt(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new ct(r,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(r=tt.nextNode(),n++)}return tt.currentNode=B,i}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(i,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=Q.get(t.strings);return void 0===o&&Q.set(t.strings,o=new et(t)),o}T(o){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of o)r===e.length?e.push(i=new t(this.k(A()),this.k(A()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},nt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=X}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=it(this,t,o,0),n=!M(t)||t!==this._$AH&&t!==q,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=it(this,i[e+a],o,a),s===q&&(s=this._$AH[a]),n||=!M(s)||s!==this._$AH[a],s===X?t=X:t!==X&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},at=class extends nt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===X?void 0:t}},st=class extends nt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==X)}},lt=class extends nt{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=it(this,t,o,0)??X)===q)return;const e=this._$AH,i=t===X&&e!==X||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==X&&(e===X||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ct=class{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const pt=I.litHtmlPolyfillSupport;pt?.(et,rt),(I.litHtmlVersions??=[]).push("3.1.0");
58
58
  /**
59
59
  * @license
60
60
  * Copyright 2019 Google LLC
@@ -65,13 +65,13 @@ const ht=globalThis,ft=ht.ShadowRoot&&(void 0===ht.ShadyCSS||ht.ShadyCSS.nativeS
65
65
  * @license
66
66
  * Copyright 2017 Google LLC
67
67
  * SPDX-License-Identifier: BSD-3-Clause
68
- */,{is:xt,defineProperty:vt,getOwnPropertyDescriptor:Ot,getOwnPropertyNames:Nt,getOwnPropertySymbols:St,getPrototypeOf:wt}=Object,Ct=globalThis,$t=Ct.trustedTypes,Et=$t?$t.emptyScript:"",Rt=Ct.reactiveElementPolyfillSupport,Ut=(t,o)=>t,kt={toAttribute(t,o){switch(o){case Boolean:t=t?Et:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},It=(t,o)=>!xt(t,o),Lt={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:It};Symbol.metadata??=Symbol("metadata"),Ct.litPropertyMetadata??=new WeakMap;class Wt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=Lt){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),i=this.getPropertyDescriptor(t,e,o);void 0!==i&&vt(this.prototype,t,i)}}static getPropertyDescriptor(t,o,e){const{get:i,set:r}=Ot(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return i?.call(this)},set(o){const n=i?.call(this);r.call(this,o),this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Lt}static _$Ei(){if(this.hasOwnProperty(Ut("elementProperties")))return;const t=wt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ut("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ut("properties"))){const t=this.properties,o=[...Nt(t),...St(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(mt(t))}else void 0!==t&&o.push(mt(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(ft)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),i=ht.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,e);if(void 0!==i&&!0===e.reflect){const r=(void 0!==e.converter?.toAttribute?e.converter:kt).toAttribute(o,e.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,o){const e=this.constructor,i=e._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=e.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:kt;this._$Em=i,this[i]=r.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,i=!1,r){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??It)(i?r:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}Wt.elementStyles=[],Wt.shadowRootOptions={mode:"open"},Wt[Ut("elementProperties")]=new Map,Wt[Ut("finalized")]=new Map,Rt?.({ReactiveElement:Wt}),(Ct.reactiveElementVersions??=[]).push("2.0.2");
68
+ */,{is:xt,defineProperty:vt,getOwnPropertyDescriptor:Ot,getOwnPropertyNames:Nt,getOwnPropertySymbols:St,getPrototypeOf:wt}=Object,Ct=globalThis,$t=Ct.trustedTypes,Et=$t?$t.emptyScript:"",Rt=Ct.reactiveElementPolyfillSupport,kt=(t,o)=>t,Ut={toAttribute(t,o){switch(o){case Boolean:t=t?Et:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},It=(t,o)=>!xt(t,o),Lt={attribute:!0,type:String,converter:Ut,reflect:!1,hasChanged:It};Symbol.metadata??=Symbol("metadata"),Ct.litPropertyMetadata??=new WeakMap;class Wt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=Lt){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),i=this.getPropertyDescriptor(t,e,o);void 0!==i&&vt(this.prototype,t,i)}}static getPropertyDescriptor(t,o,e){const{get:i,set:r}=Ot(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return i?.call(this)},set(o){const n=i?.call(this);r.call(this,o),this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Lt}static _$Ei(){if(this.hasOwnProperty(kt("elementProperties")))return;const t=wt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(kt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(kt("properties"))){const t=this.properties,o=[...Nt(t),...St(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(mt(t))}else void 0!==t&&o.push(mt(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(ft)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),i=ht.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,e);if(void 0!==i&&!0===e.reflect){const r=(void 0!==e.converter?.toAttribute?e.converter:Ut).toAttribute(o,e.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,o){const e=this.constructor,i=e._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=e.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Ut;this._$Em=i,this[i]=r.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,i=!1,r){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??It)(i?r:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}Wt.elementStyles=[],Wt.shadowRootOptions={mode:"open"},Wt[kt("elementProperties")]=new Map,Wt[kt("finalized")]=new Map,Rt?.({ReactiveElement:Wt}),(Ct.reactiveElementVersions??=[]).push("2.0.2");
69
69
  /**
70
70
  * @license
71
71
  * Copyright 2017 Google LLC
72
72
  * SPDX-License-Identifier: BSD-3-Clause
73
73
  */
74
- const zt=globalThis,Kt=zt.trustedTypes,Zt=Kt?Kt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ft="$lit$",Bt=`lit$${(Math.random()+"").slice(9)}$`,At="?"+Bt,Mt=`<${At}>`,Dt=document,Pt=()=>Dt.createComment(""),Ht=t=>null===t||"object"!=typeof t&&"function"!=typeof t,jt=Array.isArray,Tt="[ \t\n\f\r]",_t=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gt=/-->/g,Yt=/>/g,Vt=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Jt=/'/g,qt=/"/g,Xt=/^(?:script|style|textarea|title)$/i,Qt=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),to=Symbol.for("lit-noChange"),oo=Symbol.for("lit-nothing"),eo=new WeakMap,io=Dt.createTreeWalker(Dt,129);function ro(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Zt?Zt.createHTML(o):o}const no=(t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",a=_t;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,p=0;for(;p<e.length&&(a.lastIndex=p,l=a.exec(e),null!==l);)p=a.lastIndex,a===_t?"!--"===l[1]?a=Gt:void 0!==l[1]?a=Yt:void 0!==l[2]?(Xt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Vt):void 0!==l[3]&&(a=Vt):a===Vt?">"===l[0]?(a=r??_t,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Vt:'"'===l[3]?qt:Jt):a===qt||a===Jt?a=Vt:a===Gt||a===Yt?a=_t:(a=Vt,r=void 0);const h=a===Vt&&t[o+1].startsWith("/>")?" ":"";n+=a===_t?e+Mt:c>=0?(i.push(s),e.slice(0,c)+Ft+e.slice(c)+Bt+h):e+Bt+(-2===c?o:h)}return[ro(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]};class ao{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=no(t,o);if(this.el=ao.createElement(l,e),io.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=io.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Ft)){const o=c[n++],e=i.getAttribute(t).split(Bt),a=/([.?@])?(.*)/.exec(o);s.push({type:1,index:r,name:a[2],strings:e,ctor:"."===a[1]?po:"?"===a[1]?ho:"@"===a[1]?fo:co}),i.removeAttribute(t)}else t.startsWith(Bt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(Xt.test(i.tagName)){const t=i.textContent.split(Bt),o=t.length-1;if(o>0){i.textContent=Kt?Kt.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],Pt()),io.nextNode(),s.push({type:2,index:++r});i.append(t[o],Pt())}}}else if(8===i.nodeType)if(i.data===At)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Bt,t+1));)s.push({type:7,index:r}),t+=Bt.length-1}r++}}static createElement(t,o){const e=Dt.createElement("template");return e.innerHTML=t,e}}function so(t,o,e=t,i){if(o===to)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const n=Ht(o)?void 0:o._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(o=so(t,r._$AS(t,o.values),r,i)),o}class lo{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=oo,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=so(this,t,o),Ht(t)?t===oo||null==t||""===t?(this._$AH!==oo&&this._$AR(),this._$AH=oo):t!==this._$AH&&t!==to&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>jt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==oo&&Ht(this._$AH)?this._$AA.nextSibling.data=t:this.$(Dt.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=ao.createElement(ro(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,i=(t?.creationScope??Dt).importNode(o,!0);io.currentNode=i;let r=io.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new lo(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new uo(r,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(r=io.nextNode(),n++)}return io.currentNode=Dt,i}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(i,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=eo.get(t.strings);return void 0===o&&eo.set(t.strings,o=new ao(t)),o}T(t){jt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new lo(this.k(Pt()),this.k(Pt()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class co{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=oo,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=oo}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=so(this,t,o,0),n=!Ht(t)||t!==this._$AH&&t!==to,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=so(this,i[e+a],o,a),s===to&&(s=this._$AH[a]),n||=!Ht(s)||s!==this._$AH[a],s===oo?t=oo:t!==oo&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===oo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class po extends co{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===oo?void 0:t}}class ho extends co{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==oo)}}class fo extends co{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=so(this,t,o,0)??oo)===to)return;const e=this._$AH,i=t===oo&&e!==oo||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==oo&&(e===oo||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class uo{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){so(this,t)}}const yo=zt.litHtmlPolyfillSupport;yo?.(ao,lo),(zt.litHtmlVersions??=[]).push("3.1.0");
74
+ const zt=globalThis,Kt=zt.trustedTypes,Ft=Kt?Kt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Zt="$lit$",Bt=`lit$${(Math.random()+"").slice(9)}$`,At="?"+Bt,Mt=`<${At}>`,Dt=document,Pt=()=>Dt.createComment(""),Ht=t=>null===t||"object"!=typeof t&&"function"!=typeof t,jt=Array.isArray,Tt="[ \t\n\f\r]",_t=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gt=/-->/g,Yt=/>/g,Vt=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Jt=/'/g,qt=/"/g,Xt=/^(?:script|style|textarea|title)$/i,Qt=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),to=Symbol.for("lit-noChange"),oo=Symbol.for("lit-nothing"),eo=new WeakMap,io=Dt.createTreeWalker(Dt,129);function ro(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ft?Ft.createHTML(o):o}const no=(t,o)=>{const e=t.length-1,i=[];let r,n=2===o?"<svg>":"",a=_t;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,p=0;for(;p<e.length&&(a.lastIndex=p,l=a.exec(e),null!==l);)p=a.lastIndex,a===_t?"!--"===l[1]?a=Gt:void 0!==l[1]?a=Yt:void 0!==l[2]?(Xt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Vt):void 0!==l[3]&&(a=Vt):a===Vt?">"===l[0]?(a=r??_t,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Vt:'"'===l[3]?qt:Jt):a===qt||a===Jt?a=Vt:a===Gt||a===Yt?a=_t:(a=Vt,r=void 0);const h=a===Vt&&t[o+1].startsWith("/>")?" ":"";n+=a===_t?e+Mt:c>=0?(i.push(s),e.slice(0,c)+Zt+e.slice(c)+Bt+h):e+Bt+(-2===c?o:h)}return[ro(t,n+(t[e]||"<?>")+(2===o?"</svg>":"")),i]};class ao{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=no(t,o);if(this.el=ao.createElement(l,e),io.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=io.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Zt)){const o=c[n++],e=i.getAttribute(t).split(Bt),a=/([.?@])?(.*)/.exec(o);s.push({type:1,index:r,name:a[2],strings:e,ctor:"."===a[1]?po:"?"===a[1]?ho:"@"===a[1]?fo:co}),i.removeAttribute(t)}else t.startsWith(Bt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(Xt.test(i.tagName)){const t=i.textContent.split(Bt),o=t.length-1;if(o>0){i.textContent=Kt?Kt.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],Pt()),io.nextNode(),s.push({type:2,index:++r});i.append(t[o],Pt())}}}else if(8===i.nodeType)if(i.data===At)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Bt,t+1));)s.push({type:7,index:r}),t+=Bt.length-1}r++}}static createElement(t,o){const e=Dt.createElement("template");return e.innerHTML=t,e}}function so(t,o,e=t,i){if(o===to)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const n=Ht(o)?void 0:o._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(o=so(t,r._$AS(t,o.values),r,i)),o}class lo{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=oo,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=so(this,t,o),Ht(t)?t===oo||null==t||""===t?(this._$AH!==oo&&this._$AR(),this._$AH=oo):t!==this._$AH&&t!==to&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>jt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==oo&&Ht(this._$AH)?this._$AA.nextSibling.data=t:this.$(Dt.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=ao.createElement(ro(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(o);else{const t=new class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,i=(t?.creationScope??Dt).importNode(o,!0);io.currentNode=i;let r=io.nextNode(),n=0,a=0,s=e[0];for(;void 0!==s;){if(n===s.index){let o;2===s.type?o=new lo(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new uo(r,this,t)),this._$AV.push(o),s=e[++a]}n!==s?.index&&(r=io.nextNode(),n++)}return io.currentNode=Dt,i}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}(i,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=eo.get(t.strings);return void 0===o&&eo.set(t.strings,o=new ao(t)),o}T(t){jt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new lo(this.k(Pt()),this.k(Pt()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class co{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=oo,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=oo}_$AI(t,o=this,e,i){const r=this.strings;let n=!1;if(void 0===r)t=so(this,t,o,0),n=!Ht(t)||t!==this._$AH&&t!==to,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=so(this,i[e+a],o,a),s===to&&(s=this._$AH[a]),n||=!Ht(s)||s!==this._$AH[a],s===oo?t=oo:t!==oo&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===oo?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class po extends co{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===oo?void 0:t}}class ho extends co{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==oo)}}class fo extends co{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=so(this,t,o,0)??oo)===to)return;const e=this._$AH,i=t===oo&&e!==oo||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==oo&&(e===oo||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class uo{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){so(this,t)}}const yo=zt.litHtmlPolyfillSupport;yo?.(ao,lo),(zt.litHtmlVersions??=[]).push("3.1.0");
75
75
  /**
76
76
  * @license
77
77
  * Copyright 2017 Google LLC
@@ -82,7 +82,11 @@ class go extends Wt{constructor(){super(...arguments),this.renderOptions={host:t
82
82
  * @license
83
83
  * Copyright 2019 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */class Ro extends go{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=$o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,ko=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Io=Symbol("constructorPrototype"),Lo=Symbol("constructorName"),Wo=Symbol("exportpartsDebouncer");class zo extends Ro{constructor(){super(),this[Uo]=new o(5),this[Lo]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Lo]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Wo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Uo=Wo,ko([C()],zo.prototype,"exportpartsPrefix",void 0),ko([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],zo.prototype,"exportpartsPrefixes",void 0),ko([C()],zo.prototype,"customStylesheet",void 0);const Ko=bt`
85
+ */class Ro extends go{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=$o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var ko,Uo=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Io=Symbol("constructorPrototype"),Lo=Symbol("constructorName"),Wo=Symbol("exportpartsDebouncer");class zo extends Ro{constructor(){super(),this[ko]=new o(5),this[Lo]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Lo]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Wo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}ko=Wo,Uo([C()],zo.prototype,"exportpartsPrefix",void 0),Uo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!k(t,o),...null!=o?o:{}})}([])],zo.prototype,"exportpartsPrefixes",void 0),Uo([C()],zo.prototype,"customStylesheet",void 0);const Ko=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");bt`
86
+ .highlight-html-match {
87
+ background: ${Ko};
88
+ }
89
+ `;const Fo=bt`
86
90
  .ft-no-text-select {
87
91
  -webkit-touch-callout: none;
88
92
  -webkit-user-select: none;
@@ -114,111 +118,111 @@ class go extends Wt{constructor(){super(...arguments),this.renderOptions={host:t
114
118
  display: inline-block;
115
119
  width: 0;
116
120
  }
117
- `;function Fo(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Bo,Ao,Mo;const Do=Symbol("internalReduxEventsUnsubscribers"),Po=Symbol("internalStoresUnsubscribers"),Ho=Symbol("internalStores");class jo extends zo{constructor(){super(...arguments),this[Bo]=new Map,this[Ao]=new Map,this[Mo]=[]}update(t){var o;super.update(t),(null===(o=this.reduxReactiveProperties)||void 0===o?void 0:o.some((o=>t.has(o))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ho].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ho].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ho].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Fo(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Ho].delete(o)}setupStore(t,o){this[Ho].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ho].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Po].has(t.store):this[Po].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Po].set(t,o.subscribe((()=>this.updateFromStores()))),Fo(o)&&o.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const i=t=>this[e](t);o.eventBus.addEventListener(t.eventName,i),this[Do].push((()=>o.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Po].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Do].forEach((t=>t())),this[Do]=[]}unsubscribeFromStore(t){this[Po].has(t)&&this[Po].get(t)(),this[Po].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Bo=Po,Ao=Ho,Mo=Do,window.ftReduxStores||(window.ftReduxStores={});const To=Symbol("elementInternals");var _o,Go,Yo;const Vo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Yo=null===(Go=null===(_o=window.safari)||void 0===_o?void 0:_o.pushNotification)||void 0===Go?void 0:Go.toString())&&void 0!==Yo?Yo:""),Jo=bt`
121
+ `;function Bo(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Ao,Mo,Do;const Po=Symbol("internalReduxEventsUnsubscribers"),Ho=Symbol("internalStoresUnsubscribers"),jo=Symbol("internalStores");class To extends zo{constructor(){super(...arguments),this[Ao]=new Map,this[Mo]=new Map,this[Do]=[]}update(t){var o;super.update(t),(null===(o=this.reduxReactiveProperties)||void 0===o?void 0:o.some((o=>t.has(o))))&&this.updateFromStores()}getUnnamedStore(){if(this[jo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[jo].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Bo(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[jo].delete(o)}setupStore(t,o){this[jo].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[jo].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Ho].has(t.store):this[Ho].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Ho].set(t,o.subscribe((()=>this.updateFromStores()))),Bo(o)&&o.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const i=t=>this[e](t);o.eventBus.addEventListener(t.eventName,i),this[Po].push((()=>o.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ho].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Po].forEach((t=>t())),this[Po]=[]}unsubscribeFromStore(t){this[Ho].has(t)&&this[Ho].get(t)(),this[Ho].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}Ao=Ho,Mo=jo,Do=Po,window.ftReduxStores||(window.ftReduxStores={});const _o=Symbol("elementInternals");var Go,Yo,Vo;const Jo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Vo=null===(Yo=null===(Go=window.safari)||void 0===Go?void 0:Go.pushNotification)||void 0===Yo?void 0:Yo.toString())&&void 0!==Vo?Vo:""),qo=bt`
118
122
  :host {
119
123
  display: inline-block;
120
124
  }
121
- `;var qo;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(qo||(qo={}));var Xo=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Qo extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const te=Symbol("registerInterval");class oe extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[te]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[te]):this.dispatchEvent(new Qo)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=te,Xo([$()],e.prototype,"stateManager",void 0),e}(jo)){}var ee=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ie extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const re=Symbol("registerInterval");class ne extends(function(t){var o;class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[o]=0}connectedCallback(){super.connectedCallback(),this[re]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[re]):this.dispatchEvent(new ie)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return o=re,ee([$()],e.prototype,"tocNode",void 0),ee([$()],e.prototype,"disableContextInteractions",void 0),e}(oe)){}
125
+ `;var Xo;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Xo||(Xo={}));var Qo=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class te extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const oe=Symbol("registerInterval");class ee extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[oe]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[oe]):this.dispatchEvent(new te)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=oe,Qo([$()],e.prototype,"stateManager",void 0),e}(To)){}var ie=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class re extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const ne=Symbol("registerInterval");class ae extends(function(t){var o;class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[o]=0}connectedCallback(){super.connectedCallback(),this[ne]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[ne]):this.dispatchEvent(new re)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return o=ne,ie([$()],e.prototype,"tocNode",void 0),ie([$()],e.prototype,"disableContextInteractions",void 0),e}(ee)){}
122
126
  /**
123
127
  * @license
124
128
  * Copyright 2020 Google LLC
125
129
  * SPDX-License-Identifier: BSD-3-Clause
126
- */const ae=Symbol.for(""),se=t=>{if(t?.r===ae)return t?._$litStatic$},le=t=>({_$litStatic$:t,r:ae}),ce=new Map,pe=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=se(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=ce.get(t))&&(a.raw=a,ce.set(t,o=a)),e=s}return t(o,...e)})(J);var he;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(he||(he={}));const fe=xo.extend("--ft-typography-font-family","",Co.titleFont),de=xo.extend("--ft-typography-font-family","",Co.contentFont),ue={fontFamily:de,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ye=xo.extend("--ft-typography-title-font-family","",fe),ge=xo.extend("--ft-typography-title-font-size","",ue.fontSize,"20px"),be=xo.extend("--ft-typography-title-font-weight","",ue.fontWeight,"normal"),me=xo.extend("--ft-typography-title-letter-spacing","",ue.letterSpacing,"0.15px"),xe=xo.extend("--ft-typography-title-line-height","",ue.lineHeight,"1.2"),ve=xo.extend("--ft-typography-title-text-transform","",ue.textTransform,"inherit"),Oe=xo.extend("--ft-typography-title-dense-font-family","",fe),Ne=xo.extend("--ft-typography-title-dense-font-size","",ue.fontSize,"14px"),Se=xo.extend("--ft-typography-title-dense-font-weight","",ue.fontWeight,"normal"),we=xo.extend("--ft-typography-title-dense-letter-spacing","",ue.letterSpacing,"0.105px"),Ce=xo.extend("--ft-typography-title-dense-line-height","",ue.lineHeight,"1.7"),$e=xo.extend("--ft-typography-title-dense-text-transform","",ue.textTransform,"inherit"),Ee=xo.extend("--ft-typography-subtitle1-font-family","",de),Re=xo.extend("--ft-typography-subtitle1-font-size","",ue.fontSize,"16px"),Ue=xo.extend("--ft-typography-subtitle1-font-weight","",ue.fontWeight,"600"),ke=xo.extend("--ft-typography-subtitle1-letter-spacing","",ue.letterSpacing,"0.144px"),Ie=xo.extend("--ft-typography-subtitle1-line-height","",ue.lineHeight,"1.5"),Le=xo.extend("--ft-typography-subtitle1-text-transform","",ue.textTransform,"inherit"),We=xo.extend("--ft-typography-subtitle2-font-family","",de),ze=xo.extend("--ft-typography-subtitle2-font-size","",ue.fontSize,"14px"),Ke=xo.extend("--ft-typography-subtitle2-font-weight","",ue.fontWeight,"normal"),Ze=xo.extend("--ft-typography-subtitle2-letter-spacing","",ue.letterSpacing,"0.098px"),Fe=xo.extend("--ft-typography-subtitle2-line-height","",ue.lineHeight,"1.7"),Be=xo.extend("--ft-typography-subtitle2-text-transform","",ue.textTransform,"inherit"),Ae=xo.extend("--ft-typography-body1-font-family","",de),Me=xo.extend("--ft-typography-body1-font-size","",ue.fontSize,"16px"),De=xo.extend("--ft-typography-body1-font-weight","",ue.fontWeight,"normal"),Pe=xo.extend("--ft-typography-body1-letter-spacing","",ue.letterSpacing,"0.496px"),He=xo.extend("--ft-typography-body1-line-height","",ue.lineHeight,"1.5"),je=xo.extend("--ft-typography-body1-text-transform","",ue.textTransform,"inherit"),Te={fontFamily:xo.extend("--ft-typography-body2-font-family","",de),fontSize:xo.extend("--ft-typography-body2-font-size","",ue.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-body2-font-weight","",ue.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-body2-letter-spacing","",ue.letterSpacing,"0.252px"),lineHeight:xo.extend("--ft-typography-body2-line-height","",ue.lineHeight,"1.4"),textTransform:xo.extend("--ft-typography-body2-text-transform","",ue.textTransform,"inherit")},_e=xo.extend("--ft-typography-caption-font-family","",de),Ge=xo.extend("--ft-typography-caption-font-size","",ue.fontSize,"12px"),Ye=xo.extend("--ft-typography-caption-font-weight","",ue.fontWeight,"normal"),Ve=xo.extend("--ft-typography-caption-letter-spacing","",ue.letterSpacing,"0.396px"),Je=xo.extend("--ft-typography-caption-line-height","",ue.lineHeight,"1.33"),qe=xo.extend("--ft-typography-caption-text-transform","",ue.textTransform,"inherit"),Xe=xo.extend("--ft-typography-breadcrumb-font-family","",de),Qe=xo.extend("--ft-typography-breadcrumb-font-size","",ue.fontSize,"10px"),ti=xo.extend("--ft-typography-breadcrumb-font-weight","",ue.fontWeight,"normal"),oi=xo.extend("--ft-typography-breadcrumb-letter-spacing","",ue.letterSpacing,"0.33px"),ei=xo.extend("--ft-typography-breadcrumb-line-height","",ue.lineHeight,"1.6"),ii=xo.extend("--ft-typography-breadcrumb-text-transform","",ue.textTransform,"inherit"),ri=xo.extend("--ft-typography-overline-font-family","",de),ni=xo.extend("--ft-typography-overline-font-size","",ue.fontSize,"10px"),ai=xo.extend("--ft-typography-overline-font-weight","",ue.fontWeight,"normal"),si=xo.extend("--ft-typography-overline-letter-spacing","",ue.letterSpacing,"1.5px"),li=xo.extend("--ft-typography-overline-line-height","",ue.lineHeight,"1.6"),ci=xo.extend("--ft-typography-overline-text-transform","",ue.textTransform,"uppercase"),pi={fontFamily:xo.extend("--ft-typography-button-font-family","",de),fontSize:xo.extend("--ft-typography-button-font-size","",ue.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",ue.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",ue.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",ue.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",ue.textTransform,"uppercase")},hi=bt`
130
+ */const se=Symbol.for(""),le=t=>{if(t?.r===se)return t?._$litStatic$},ce=t=>({_$litStatic$:t,r:se}),pe=new Map,he=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=le(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=pe.get(t))&&(a.raw=a,pe.set(t,o=a)),e=s}return t(o,...e)})(J);var fe;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(fe||(fe={}));const de=xo.extend("--ft-typography-font-family","",Co.titleFont),ue=xo.extend("--ft-typography-font-family","",Co.contentFont),ye={fontFamily:ue,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ge=xo.extend("--ft-typography-title-font-family","",de),be=xo.extend("--ft-typography-title-font-size","",ye.fontSize,"20px"),me=xo.extend("--ft-typography-title-font-weight","",ye.fontWeight,"normal"),xe=xo.extend("--ft-typography-title-letter-spacing","",ye.letterSpacing,"0.15px"),ve=xo.extend("--ft-typography-title-line-height","",ye.lineHeight,"1.2"),Oe=xo.extend("--ft-typography-title-text-transform","",ye.textTransform,"inherit"),Ne=xo.extend("--ft-typography-title-dense-font-family","",de),Se=xo.extend("--ft-typography-title-dense-font-size","",ye.fontSize,"14px"),we=xo.extend("--ft-typography-title-dense-font-weight","",ye.fontWeight,"normal"),Ce=xo.extend("--ft-typography-title-dense-letter-spacing","",ye.letterSpacing,"0.105px"),$e=xo.extend("--ft-typography-title-dense-line-height","",ye.lineHeight,"1.7"),Ee=xo.extend("--ft-typography-title-dense-text-transform","",ye.textTransform,"inherit"),Re=xo.extend("--ft-typography-subtitle1-font-family","",ue),ke=xo.extend("--ft-typography-subtitle1-font-size","",ye.fontSize,"16px"),Ue=xo.extend("--ft-typography-subtitle1-font-weight","",ye.fontWeight,"600"),Ie=xo.extend("--ft-typography-subtitle1-letter-spacing","",ye.letterSpacing,"0.144px"),Le=xo.extend("--ft-typography-subtitle1-line-height","",ye.lineHeight,"1.5"),We=xo.extend("--ft-typography-subtitle1-text-transform","",ye.textTransform,"inherit"),ze=xo.extend("--ft-typography-subtitle2-font-family","",ue),Ke=xo.extend("--ft-typography-subtitle2-font-size","",ye.fontSize,"14px"),Fe=xo.extend("--ft-typography-subtitle2-font-weight","",ye.fontWeight,"normal"),Ze=xo.extend("--ft-typography-subtitle2-letter-spacing","",ye.letterSpacing,"0.098px"),Be=xo.extend("--ft-typography-subtitle2-line-height","",ye.lineHeight,"1.7"),Ae=xo.extend("--ft-typography-subtitle2-text-transform","",ye.textTransform,"inherit"),Me=xo.extend("--ft-typography-body1-font-family","",ue),De=xo.extend("--ft-typography-body1-font-size","",ye.fontSize,"16px"),Pe=xo.extend("--ft-typography-body1-font-weight","",ye.fontWeight,"normal"),He=xo.extend("--ft-typography-body1-letter-spacing","",ye.letterSpacing,"0.496px"),je=xo.extend("--ft-typography-body1-line-height","",ye.lineHeight,"1.5"),Te=xo.extend("--ft-typography-body1-text-transform","",ye.textTransform,"inherit"),_e={fontFamily:xo.extend("--ft-typography-body2-font-family","",ue),fontSize:xo.extend("--ft-typography-body2-font-size","",ye.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-body2-font-weight","",ye.fontWeight,"normal"),letterSpacing:xo.extend("--ft-typography-body2-letter-spacing","",ye.letterSpacing,"0.252px"),lineHeight:xo.extend("--ft-typography-body2-line-height","",ye.lineHeight,"1.4"),textTransform:xo.extend("--ft-typography-body2-text-transform","",ye.textTransform,"inherit")},Ge=xo.extend("--ft-typography-caption-font-family","",ue),Ye=xo.extend("--ft-typography-caption-font-size","",ye.fontSize,"12px"),Ve=xo.extend("--ft-typography-caption-font-weight","",ye.fontWeight,"normal"),Je=xo.extend("--ft-typography-caption-letter-spacing","",ye.letterSpacing,"0.396px"),qe=xo.extend("--ft-typography-caption-line-height","",ye.lineHeight,"1.33"),Xe=xo.extend("--ft-typography-caption-text-transform","",ye.textTransform,"inherit"),Qe=xo.extend("--ft-typography-breadcrumb-font-family","",ue),ti=xo.extend("--ft-typography-breadcrumb-font-size","",ye.fontSize,"10px"),oi=xo.extend("--ft-typography-breadcrumb-font-weight","",ye.fontWeight,"normal"),ei=xo.extend("--ft-typography-breadcrumb-letter-spacing","",ye.letterSpacing,"0.33px"),ii=xo.extend("--ft-typography-breadcrumb-line-height","",ye.lineHeight,"1.6"),ri=xo.extend("--ft-typography-breadcrumb-text-transform","",ye.textTransform,"inherit"),ni=xo.extend("--ft-typography-overline-font-family","",ue),ai=xo.extend("--ft-typography-overline-font-size","",ye.fontSize,"10px"),si=xo.extend("--ft-typography-overline-font-weight","",ye.fontWeight,"normal"),li=xo.extend("--ft-typography-overline-letter-spacing","",ye.letterSpacing,"1.5px"),ci=xo.extend("--ft-typography-overline-line-height","",ye.lineHeight,"1.6"),pi=xo.extend("--ft-typography-overline-text-transform","",ye.textTransform,"uppercase"),hi={fontFamily:xo.extend("--ft-typography-button-font-family","",ue),fontSize:xo.extend("--ft-typography-button-font-size","",ye.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",ye.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",ye.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",ye.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",ye.textTransform,"uppercase")},fi=bt`
127
131
  .ft-typography--title {
128
- font-family: ${ye};
129
- font-size: ${ge};
130
- font-weight: ${be};
131
- letter-spacing: ${me};
132
- line-height: ${xe};
133
- text-transform: ${ve};
132
+ font-family: ${ge};
133
+ font-size: ${be};
134
+ font-weight: ${me};
135
+ letter-spacing: ${xe};
136
+ line-height: ${ve};
137
+ text-transform: ${Oe};
134
138
  }
135
- `,fi=bt`
139
+ `,di=bt`
136
140
  .ft-typography--title-dense {
137
- font-family: ${Oe};
138
- font-size: ${Ne};
139
- font-weight: ${Se};
140
- letter-spacing: ${we};
141
- line-height: ${Ce};
142
- text-transform: ${$e};
141
+ font-family: ${Ne};
142
+ font-size: ${Se};
143
+ font-weight: ${we};
144
+ letter-spacing: ${Ce};
145
+ line-height: ${$e};
146
+ text-transform: ${Ee};
143
147
  }
144
- `,di=bt`
148
+ `,ui=bt`
145
149
  .ft-typography--subtitle1 {
146
- font-family: ${Ee};
147
- font-size: ${Re};
150
+ font-family: ${Re};
151
+ font-size: ${ke};
148
152
  font-weight: ${Ue};
149
- letter-spacing: ${ke};
150
- line-height: ${Ie};
151
- text-transform: ${Le};
153
+ letter-spacing: ${Ie};
154
+ line-height: ${Le};
155
+ text-transform: ${We};
152
156
  }
153
- `,ui=bt`
157
+ `,yi=bt`
154
158
  .ft-typography--subtitle2 {
155
- font-family: ${We};
156
- font-size: ${ze};
157
- font-weight: ${Ke};
159
+ font-family: ${ze};
160
+ font-size: ${Ke};
161
+ font-weight: ${Fe};
158
162
  letter-spacing: ${Ze};
159
- line-height: ${Fe};
160
- text-transform: ${Be};
163
+ line-height: ${Be};
164
+ text-transform: ${Ae};
161
165
  }
162
166
 
163
- `,yi=bt`
167
+ `,gi=bt`
164
168
  .ft-typography--body1 {
165
- font-family: ${Ae};
166
- font-size: ${Me};
167
- font-weight: ${De};
168
- letter-spacing: ${Pe};
169
- line-height: ${He};
170
- text-transform: ${je};
169
+ font-family: ${Me};
170
+ font-size: ${De};
171
+ font-weight: ${Pe};
172
+ letter-spacing: ${He};
173
+ line-height: ${je};
174
+ text-transform: ${Te};
171
175
  }
172
- `,gi=bt`
176
+ `,bi=bt`
173
177
  .ft-typography--body2 {
174
- font-family: ${Te.fontFamily};
175
- font-size: ${Te.fontSize};
176
- font-weight: ${Te.fontWeight};
177
- letter-spacing: ${Te.letterSpacing};
178
- line-height: ${Te.lineHeight};
179
- text-transform: ${Te.textTransform};
178
+ font-family: ${_e.fontFamily};
179
+ font-size: ${_e.fontSize};
180
+ font-weight: ${_e.fontWeight};
181
+ letter-spacing: ${_e.letterSpacing};
182
+ line-height: ${_e.lineHeight};
183
+ text-transform: ${_e.textTransform};
180
184
  }
181
- `,bi=bt`
185
+ `,mi=bt`
182
186
  .ft-typography--caption {
183
- font-family: ${_e};
184
- font-size: ${Ge};
185
- font-weight: ${Ye};
186
- letter-spacing: ${Ve};
187
- line-height: ${Je};
188
- text-transform: ${qe};
187
+ font-family: ${Ge};
188
+ font-size: ${Ye};
189
+ font-weight: ${Ve};
190
+ letter-spacing: ${Je};
191
+ line-height: ${qe};
192
+ text-transform: ${Xe};
189
193
  }
190
- `,mi=bt`
194
+ `,xi=bt`
191
195
  .ft-typography--breadcrumb {
192
- font-family: ${Xe};
193
- font-size: ${Qe};
194
- font-weight: ${ti};
195
- letter-spacing: ${oi};
196
- line-height: ${ei};
197
- text-transform: ${ii};
196
+ font-family: ${Qe};
197
+ font-size: ${ti};
198
+ font-weight: ${oi};
199
+ letter-spacing: ${ei};
200
+ line-height: ${ii};
201
+ text-transform: ${ri};
198
202
  }
199
- `,xi=bt`
203
+ `,vi=bt`
200
204
  .ft-typography--overline {
201
- font-family: ${ri};
202
- font-size: ${ni};
203
- font-weight: ${ai};
204
- letter-spacing: ${si};
205
- line-height: ${li};
206
- text-transform: ${ci};
205
+ font-family: ${ni};
206
+ font-size: ${ai};
207
+ font-weight: ${si};
208
+ letter-spacing: ${li};
209
+ line-height: ${ci};
210
+ text-transform: ${pi};
207
211
  }
208
- `,vi=bt`
212
+ `,Oi=bt`
209
213
  .ft-typography--button {
210
- font-family: ${pi.fontFamily};
211
- font-size: ${pi.fontSize};
212
- font-weight: ${pi.fontWeight};
213
- letter-spacing: ${pi.letterSpacing};
214
- line-height: ${pi.lineHeight};
215
- text-transform: ${pi.textTransform};
214
+ font-family: ${hi.fontFamily};
215
+ font-size: ${hi.fontSize};
216
+ font-weight: ${hi.fontWeight};
217
+ letter-spacing: ${hi.letterSpacing};
218
+ line-height: ${hi.lineHeight};
219
+ text-transform: ${hi.textTransform};
216
220
  }
217
- `,Oi=bt`
221
+ `,Ni=bt`
218
222
  .ft-typography {
219
223
  vertical-align: inherit;
220
224
  }
221
- `,Ni=[Object.keys(No).map((t=>function(t){const o=No[t];return bt`
225
+ `,Si=[Object.keys(No).map((t=>function(t){const o=No[t];return bt`
222
226
  .ft-typography--${gt(t)} {
223
227
  font-family: ${o.fontFamily};
224
228
  font-size: ${o.fontSize};
@@ -227,14 +231,14 @@ class go extends Wt{constructor(){super(...arguments),this.renderOptions={host:t
227
231
  line-height: ${o.lineHeight};
228
232
  text-transform: ${o.textCase};
229
233
  }
230
- `}(t)))];var Si=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wi extends zo{constructor(){super(...arguments),this.variant=he.body1}render(){return this.element?pe`
231
- <${le(this.element)}
234
+ `}(t)))];var wi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ci extends zo{constructor(){super(...arguments),this.variant=fe.body1}render(){return this.element?he`
235
+ <${ce(this.element)}
232
236
  class="ft-typography ft-typography--${this.variant}">
233
237
  <slot></slot>
234
- </${le(this.element)}>
235
- `:pe`
238
+ </${ce(this.element)}>
239
+ `:he`
236
240
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
237
- `}}wi.styles=[hi,fi,di,ui,yi,gi,bi,mi,xi,vi,Oi,...Ni],Si([C()],wi.prototype,"element",void 0),Si([C()],wi.prototype,"variant",void 0),k("ft-typography")(wi);const Ci=xo.create("--ft-tooltip-distance","","SIZE","4px"),$i=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ei=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Ri=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Ui=xo.external(Co.borderRadiusS,"Design system"),ki=xo.create("--ft-tooltip-max-width","","SIZE","150px"),Ii=bt`
241
+ `}}Ci.styles=[fi,di,ui,yi,gi,bi,mi,xi,vi,Oi,Ni,...Si],wi([C()],Ci.prototype,"element",void 0),wi([C()],Ci.prototype,"variant",void 0),U("ft-typography")(Ci);const $i=xo.create("--ft-tooltip-distance","","SIZE","4px"),Ei=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ri=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),ki=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Ui=xo.external(Co.borderRadiusS,"Design system"),Ii=xo.create("--ft-tooltip-max-width","","SIZE","150px"),Li=bt`
238
242
  .ft-tooltip--container {
239
243
  display: block;
240
244
  }
@@ -249,21 +253,21 @@ class go extends Wt{constructor(){super(...arguments),this.renderOptions={host:t
249
253
  box-sizing: border-box;
250
254
  overflow: hidden;
251
255
  width: max-content;
252
- max-width: ${ki};
256
+ max-width: ${Ii};
253
257
  text-align: center;
254
- padding: ${Ci};
255
- z-index: ${Ri};
258
+ padding: ${$i};
259
+ z-index: ${ki};
256
260
  }
257
261
 
258
262
  .ft-tooltip--content {
259
263
  padding: 4px 8px;
260
264
  border-radius: ${Ui};
261
- background-color: ${Ei};
262
- color: ${$i};
265
+ background-color: ${Ri};
266
+ color: ${Ei};
263
267
  position: relative;
264
268
  word-break: break-word;
265
269
  }
266
- `;var Li=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Wi extends zo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Qt`
270
+ `;var Wi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class zi extends zo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Qt`
267
271
  <div part="container"
268
272
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
269
273
  @mouseenter=${this.onHover}
@@ -281,18 +285,18 @@ class go extends Wt{constructor(){super(...arguments),this.renderOptions={host:t
281
285
  </div>
282
286
  </div>
283
287
  </div>
284
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let h=-l.y,f=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${ki})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Wi.elementDefinitions={"ft-typography":wi},Wi.styles=Ii,Li([C()],Wi.prototype,"text",void 0),Li([C({type:Boolean})],Wi.prototype,"manual",void 0),Li([C({type:Boolean})],Wi.prototype,"inline",void 0),Li([C({type:Number})],Wi.prototype,"delay",void 0),Li([C()],Wi.prototype,"position",void 0),Li([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],Wi.prototype,"slotNodes",void 0),Li([R(".ft-tooltip--container")],Wi.prototype,"container",void 0),Li([R(".ft-tooltip")],Wi.prototype,"tooltip",void 0),Li([R(".ft-tooltip--content")],Wi.prototype,"tooltipContent",void 0),Li([$()],Wi.prototype,"visible",void 0),k("ft-tooltip")(Wi);
288
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let h=-l.y,f=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Ii})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}zi.elementDefinitions={"ft-typography":Ci},zi.styles=Li,Wi([C()],zi.prototype,"text",void 0),Wi([C({type:Boolean})],zi.prototype,"manual",void 0),Wi([C({type:Boolean})],zi.prototype,"inline",void 0),Wi([C({type:Number})],zi.prototype,"delay",void 0),Wi([C()],zi.prototype,"position",void 0),Wi([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],zi.prototype,"slotNodes",void 0),Wi([R(".ft-tooltip--container")],zi.prototype,"container",void 0),Wi([R(".ft-tooltip")],zi.prototype,"tooltip",void 0),Wi([R(".ft-tooltip--content")],zi.prototype,"tooltipContent",void 0),Wi([$()],zi.prototype,"visible",void 0),U("ft-tooltip")(zi);
285
289
  /**
286
290
  * @license
287
291
  * Copyright 2017 Google LLC
288
292
  * SPDX-License-Identifier: BSD-3-Clause
289
293
  */
290
- const zi=1,Ki=2,Zi=t=>(...o)=>({_$litDirective$:t,values:o});class Fi{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
294
+ const Ki=1,Fi=2,Zi=t=>(...o)=>({_$litDirective$:t,values:o});class Bi{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
291
295
  /**
292
296
  * @license
293
297
  * Copyright 2018 Google LLC
294
298
  * SPDX-License-Identifier: BSD-3-Clause
295
- */const Bi=Zi(class extends Fi{constructor(t){if(super(t),t.type!==zi||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return q}}),Ai=xo.extend("--ft-ripple-color","",Co.colorContent),Mi={color:Ai,backgroundColor:xo.extend("--ft-ripple-background-color","",Ai),opacityContentOnSurfacePressed:xo.external(Co.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(Co.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(Co.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(Co.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},Di=xo.extend("--ft-ripple-color","",Co.colorPrimary),Pi=Di,Hi=xo.extend("--ft-ripple-background-color","",Di),ji=xo.extend("--ft-ripple-color","",Co.colorSecondary),Ti=ji,_i=xo.extend("--ft-ripple-background-color","",ji),Gi=bt`
299
+ */const Ai=Zi(class extends Bi{constructor(t){if(super(t),t.type!==Ki||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return q}}),Mi=xo.extend("--ft-ripple-color","",Co.colorContent),Di={color:Mi,backgroundColor:xo.extend("--ft-ripple-background-color","",Mi),opacityContentOnSurfacePressed:xo.external(Co.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(Co.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(Co.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(Co.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},Pi=xo.extend("--ft-ripple-color","",Co.colorPrimary),Hi=Pi,ji=xo.extend("--ft-ripple-background-color","",Pi),Ti=xo.extend("--ft-ripple-color","",Co.colorSecondary),_i=Ti,Gi=xo.extend("--ft-ripple-background-color","",Ti),Yi=bt`
296
300
  :host {
297
301
  display: contents;
298
302
  }
@@ -305,7 +309,7 @@ const zi=1,Ki=2,Zi=t=>(...o)=>({_$litDirective$:t,values:o});class Fi{constructo
305
309
 
306
310
  .ft-ripple:not(.ft-ripple--unbounded) {
307
311
  overflow: hidden;
308
- border-radius: ${Mi.borderRadius};
312
+ border-radius: ${Di.borderRadius};
309
313
  }
310
314
 
311
315
  .ft-ripple .ft-ripple--background,
@@ -339,27 +343,27 @@ const zi=1,Ki=2,Zi=t=>(...o)=>({_$litDirective$:t,values:o});class Fi{constructo
339
343
  }
340
344
 
341
345
  .ft-ripple .ft-ripple--background {
342
- background-color: ${Mi.backgroundColor};
346
+ background-color: ${Di.backgroundColor};
343
347
  }
344
348
 
345
349
  .ft-ripple .ft-ripple--effect {
346
- background-color: ${Mi.color};
350
+ background-color: ${Di.color};
347
351
  }
348
352
 
349
353
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
350
- background-color: ${_i};
354
+ background-color: ${Gi};
351
355
  }
352
356
 
353
357
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
354
- background-color: ${Ti};
358
+ background-color: ${_i};
355
359
  }
356
360
 
357
361
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
358
- background-color: ${Hi};
362
+ background-color: ${ji};
359
363
  }
360
364
 
361
365
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
362
- background-color: ${Pi};
366
+ background-color: ${Hi};
363
367
  }
364
368
 
365
369
  .ft-ripple .ft-ripple--background {
@@ -389,39 +393,39 @@ const zi=1,Ki=2,Zi=t=>(...o)=>({_$litDirective$:t,values:o});class Fi{constructo
389
393
  }
390
394
 
391
395
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
392
- opacity: ${Mi.opacityContentOnSurfaceHover};
396
+ opacity: ${Di.opacityContentOnSurfaceHover};
393
397
  }
394
398
 
395
399
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
396
- opacity: ${Mi.opacityContentOnSurfaceSelected};
400
+ opacity: ${Di.opacityContentOnSurfaceSelected};
397
401
  }
398
402
 
399
403
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
400
- opacity: ${Mi.opacityContentOnSurfaceFocused};
404
+ opacity: ${Di.opacityContentOnSurfaceFocused};
401
405
  }
402
406
 
403
407
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
404
- opacity: ${Mi.opacityContentOnSurfacePressed};
408
+ opacity: ${Di.opacityContentOnSurfacePressed};
405
409
  transform: translate(-50%, -50%) scale(1);
406
410
  }
407
- `;var Yi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Vi extends zo{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
411
+ `;var Vi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ji extends zo{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
408
412
  <style>
409
413
  .ft-ripple .ft-ripple--effect {
410
414
  left: ${this.originX}px;
411
415
  top: ${this.originY}px;
412
416
  }
413
417
  </style>
414
- <div class="${Bi(t)}">
418
+ <div class="${Ai(t)}">
415
419
  <div class="ft-ripple--background"></div>
416
420
  <div class="ft-ripple--effect"></div>
417
421
  </div>
418
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Vi.elementDefinitions={},Vi.styles=Gi,Yi([C({type:Boolean})],Vi.prototype,"primary",void 0),Yi([C({type:Boolean})],Vi.prototype,"secondary",void 0),Yi([C({type:Boolean})],Vi.prototype,"unbounded",void 0),Yi([C({type:Boolean})],Vi.prototype,"activated",void 0),Yi([C({type:Boolean})],Vi.prototype,"selected",void 0),Yi([C({type:Boolean})],Vi.prototype,"disabled",void 0),Yi([$()],Vi.prototype,"hovered",void 0),Yi([$()],Vi.prototype,"focused",void 0),Yi([$()],Vi.prototype,"pressed",void 0),Yi([$()],Vi.prototype,"rippling",void 0),Yi([$()],Vi.prototype,"originX",void 0),Yi([$()],Vi.prototype,"originY",void 0),Yi([R(".ft-ripple")],Vi.prototype,"ripple",void 0),Yi([R(".ft-ripple--effect")],Vi.prototype,"rippleEffect",void 0),k("ft-ripple")(Vi);
422
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ji.elementDefinitions={},Ji.styles=Yi,Vi([C({type:Boolean})],Ji.prototype,"primary",void 0),Vi([C({type:Boolean})],Ji.prototype,"secondary",void 0),Vi([C({type:Boolean})],Ji.prototype,"unbounded",void 0),Vi([C({type:Boolean})],Ji.prototype,"activated",void 0),Vi([C({type:Boolean})],Ji.prototype,"selected",void 0),Vi([C({type:Boolean})],Ji.prototype,"disabled",void 0),Vi([$()],Ji.prototype,"hovered",void 0),Vi([$()],Ji.prototype,"focused",void 0),Vi([$()],Ji.prototype,"pressed",void 0),Vi([$()],Ji.prototype,"rippling",void 0),Vi([$()],Ji.prototype,"originX",void 0),Vi([$()],Ji.prototype,"originY",void 0),Vi([R(".ft-ripple")],Ji.prototype,"ripple",void 0),Vi([R(".ft-ripple--effect")],Ji.prototype,"rippleEffect",void 0),U("ft-ripple")(Ji);
419
423
  /**
420
424
  * @license
421
425
  * Copyright 2017 Google LLC
422
426
  * SPDX-License-Identifier: BSD-3-Clause
423
427
  */
424
- class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.vt=void 0,this.et=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Ji.directiveName="unsafeHTML",Ji.resultType=1;const qi=Zi(Ji);var Xi,Qi;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Xi||(Xi={})),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;"}(Qi||(Qi={})),new Map([...["abw"].map((t=>[t,Qi.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,Qi.AUDIO])),...["avi"].map((t=>[t,Qi.AVI])),...["chm","xhs"].map((t=>[t,Qi.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,Qi.CODE])),...["csv"].map((t=>[t,Qi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Qi.DITA])),...["epub"].map((t=>[t,Qi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Qi.EXCEL])),...["flac"].map((t=>[t,Qi.FLAC])),...["gif"].map((t=>[t,Qi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Qi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Qi.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,Qi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Qi.JPEG])),...["json"].map((t=>[t,Qi.JSON])),...["m4a","m4p"].map((t=>[t,Qi.M4A])),...["mov","qt"].map((t=>[t,Qi.MOV])),...["mp3"].map((t=>[t,Qi.MP3])),...["mp4","m4v"].map((t=>[t,Qi.MP4])),...["ogg","oga"].map((t=>[t,Qi.OGG])),...["pdf","ps"].map((t=>[t,Qi.PDF])),...["png"].map((t=>[t,Qi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Qi.POWERPOINT])),...["rar"].map((t=>[t,Qi.RAR])),...["stp"].map((t=>[t,Qi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Qi.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,Qi.VIDEO])),...["wav"].map((t=>[t,Qi.WAV])),...["wma"].map((t=>[t,Qi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Qi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Qi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Qi.YAML])),...["zip"].map((t=>[t,Qi.ZIP]))]);const tr={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},or=bt`
428
+ class qi extends Bi{constructor(t){if(super(t),this.et=X,t.type!==Fi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.vt=void 0,this.et=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}qi.directiveName="unsafeHTML",qi.resultType=1;const Xi=Zi(qi);var Qi,tr;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Qi||(Qi={})),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;"}(tr||(tr={})),new Map([...["abw"].map((t=>[t,tr.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,tr.AUDIO])),...["avi"].map((t=>[t,tr.AVI])),...["chm","xhs"].map((t=>[t,tr.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,tr.CODE])),...["csv"].map((t=>[t,tr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,tr.DITA])),...["epub"].map((t=>[t,tr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,tr.EXCEL])),...["flac"].map((t=>[t,tr.FLAC])),...["gif"].map((t=>[t,tr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,tr.GZIP])),...["html","htm","xhtml"].map((t=>[t,tr.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,tr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,tr.JPEG])),...["json"].map((t=>[t,tr.JSON])),...["m4a","m4p"].map((t=>[t,tr.M4A])),...["mov","qt"].map((t=>[t,tr.MOV])),...["mp3"].map((t=>[t,tr.MP3])),...["mp4","m4v"].map((t=>[t,tr.MP4])),...["ogg","oga"].map((t=>[t,tr.OGG])),...["pdf","ps"].map((t=>[t,tr.PDF])),...["png"].map((t=>[t,tr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,tr.POWERPOINT])),...["rar"].map((t=>[t,tr.RAR])),...["stp"].map((t=>[t,tr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,tr.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,tr.VIDEO])),...["wav"].map((t=>[t,tr.WAV])),...["wma"].map((t=>[t,tr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,tr.WORD])),...["xml","xsl","rdf"].map((t=>[t,tr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,tr.YAML])),...["zip"].map((t=>[t,tr.ZIP]))]);const or={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},er=bt`
425
429
  :host, i.ft-icon {
426
430
  display: inline-flex;
427
431
  align-items: center;
@@ -430,14 +434,14 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
430
434
  }
431
435
 
432
436
  :host {
433
- width: ${tr.size};
434
- height: ${tr.size};
437
+ width: ${or.size};
438
+ height: ${or.size};
435
439
  }
436
440
 
437
441
  i.ft-icon {
438
442
  width: 100%;
439
443
  height: 100%;
440
- font-size: ${tr.size};
444
+ font-size: ${or.size};
441
445
  line-height: 1;
442
446
  font-weight: normal;
443
447
  text-transform: none;
@@ -448,33 +452,33 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
448
452
  text-rendering: auto;
449
453
  -webkit-font-smoothing: antialiased;
450
454
  -moz-osx-font-smoothing: grayscale;
451
- vertical-align: ${tr.verticalAlign};
455
+ vertical-align: ${or.verticalAlign};
452
456
  }
453
457
 
454
458
  i.ft-icon.ft-icon--fluid-topics {
455
- font-family: ${tr.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
459
+ font-family: ${or.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
456
460
 
457
461
  /* Ugly fix because font is broken */
458
- font-size: calc(0.75 * ${tr.size});
459
- line-height: ${tr.size};
462
+ font-size: calc(0.75 * ${or.size});
463
+ line-height: ${or.size};
460
464
  position: relative;
461
465
  top: -4%;
462
466
  justify-content: center;
463
467
  }
464
468
 
465
469
  .ft-icon--file-format {
466
- font-family: ${tr.fileFormatFontFamily}, ft-mime, sans-serif;
470
+ font-family: ${or.fileFormatFontFamily}, ft-mime, sans-serif;
467
471
  }
468
472
 
469
473
  .ft-icon--material {
470
- font-family: ${tr.materialFontFamily}, "Material Icons", sans-serif;
474
+ font-family: ${or.materialFontFamily}, "Material Icons", sans-serif;
471
475
  }
472
- `;var er;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(er||(er={}));var ir=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class rr extends zo{constructor(){super(...arguments),this.resolvedIcon=oo}render(){const t=this.variant&&Object.values(er).includes(this.variant)?this.variant:er.fluid_topics,o=t!==er.material||!!this.value;return Qt`
476
+ `;var ir;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ir||(ir={}));var rr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class nr extends zo{constructor(){super(...arguments),this.resolvedIcon=oo}render(){const t=this.variant&&Object.values(ir).includes(this.variant)?this.variant:ir.fluid_topics,o=t!==ir.material||!!this.value;return Qt`
473
477
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
474
- ${qi(this.resolvedIcon)}
478
+ ${Xi(this.resolvedIcon)}
475
479
  <slot ?hidden=${o}></slot>
476
480
  </i>
477
- `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case er.file_format:this.resolvedIcon=null!==(t=Qi[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case er.material:this.resolvedIcon=this.value||oo;break;default:this.resolvedIcon=null!==(o=Xi[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}rr.elementDefinitions={},rr.styles=or,ir([C()],rr.prototype,"variant",void 0),ir([C()],rr.prototype,"value",void 0),ir([$()],rr.prototype,"resolvedIcon",void 0),ir([R("slot")],rr.prototype,"slottedContent",void 0),k("ft-icon")(rr);const nr={color:xo.extend("--ft-loader-color","",Co.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},ar=bt`
481
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case ir.file_format:this.resolvedIcon=null!==(t=tr[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case ir.material:this.resolvedIcon=this.value||oo;break;default:this.resolvedIcon=null!==(o=Qi[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}nr.elementDefinitions={},nr.styles=er,rr([C()],nr.prototype,"variant",void 0),rr([C()],nr.prototype,"value",void 0),rr([$()],nr.prototype,"resolvedIcon",void 0),rr([R("slot")],nr.prototype,"slottedContent",void 0),U("ft-icon")(nr);const ar={color:xo.extend("--ft-loader-color","",Co.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},sr=bt`
478
482
  :host {
479
483
  line-height: 0;
480
484
  }
@@ -483,8 +487,8 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
483
487
  display: inline-block;
484
488
  position: relative;
485
489
 
486
- width: ${nr.size};
487
- height: ${nr.size};
490
+ width: ${ar.size};
491
+ height: ${ar.size};
488
492
  }
489
493
 
490
494
  .ft-loader div {
@@ -493,7 +497,7 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
493
497
  width: 25%;
494
498
  height: 25%;
495
499
  border-radius: 50%;
496
- background: ${nr.color};
500
+ background: ${ar.color};
497
501
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
498
502
  }
499
503
 
@@ -540,10 +544,10 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
540
544
  transform: translate(0, 0);
541
545
  }
542
546
  100% {
543
- transform: translate(calc(0.35 * ${nr.size}), 0);
547
+ transform: translate(calc(0.35 * ${ar.size}), 0);
544
548
  }
545
549
  }
546
- `,sr=xo.extend("--ft-button-color","",Co.colorPrimary),lr={backgroundColor:xo.extend("--ft-button-background-color","",Co.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",Co.borderRadiusL),color:sr,fontSize:xo.extend("--ft-button-font-size","",pi.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",sr),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},cr=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",Co.colorOnPrimary)),pr={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",Co.colorPrimary)),color:cr,rippleColor:xo.extend("--ft-button-primary-ripple-color","",cr)},hr=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",Co.borderRadiusM)),fr=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),dr=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),ur=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),yr=[bt`
550
+ `,lr=xo.extend("--ft-button-color","",Co.colorPrimary),cr={backgroundColor:xo.extend("--ft-button-background-color","",Co.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",Co.borderRadiusL),color:lr,fontSize:xo.extend("--ft-button-font-size","",hi.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",lr),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},pr=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",Co.colorOnPrimary)),hr={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",Co.colorPrimary)),color:pr,rippleColor:xo.extend("--ft-button-primary-ripple-color","",pr)},fr=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",Co.borderRadiusM)),dr=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),ur=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),yr=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),gr=[bt`
547
551
  :host {
548
552
  display: inline-block;
549
553
  max-width: 100%;
@@ -554,7 +558,7 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
554
558
  box-shadow: 0px 0px 0px transparent;
555
559
  border: 0px solid transparent;
556
560
  text-shadow: 0px 0px 0px transparent;
557
- font-size: ${lr.fontSize};
561
+ font-size: ${cr.fontSize};
558
562
  }
559
563
 
560
564
  button:hover {
@@ -583,31 +587,31 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
583
587
  border: none;
584
588
  pointer-events: auto;
585
589
 
586
- --ft-button-internal-line-height: max(calc(${lr.fontSize} + 2px), ${lr.iconSize});
587
- --ft-button-internal-color: ${lr.color};
588
- ${vo(tr.size,lr.iconSize)};
589
- ${vo(Mi.color,lr.rippleColor)};
590
+ --ft-button-internal-line-height: max(calc(${cr.fontSize} + 2px), ${cr.iconSize});
591
+ --ft-button-internal-color: ${cr.color};
592
+ ${vo(or.size,cr.iconSize)};
593
+ ${vo(Di.color,cr.rippleColor)};
590
594
 
591
- border-radius: ${lr.borderRadius};
592
- padding: ${lr.verticalPadding} ${lr.horizontalPadding};
593
- background-color: ${lr.backgroundColor};
595
+ border-radius: ${cr.borderRadius};
596
+ padding: ${cr.verticalPadding} ${cr.horizontalPadding};
597
+ background-color: ${cr.backgroundColor};
594
598
  color: var(--ft-button-internal-color);
595
599
  -webkit-mask-image: radial-gradient(white, black);
596
600
  }
597
601
 
598
602
  .ft-button.ft-button--outlined {
599
603
  border: 1px solid var(--ft-button-internal-color);
600
- padding: calc(${lr.verticalPadding} - 1px) calc(${lr.horizontalPadding} - 1px);
604
+ padding: calc(${cr.verticalPadding} - 1px) calc(${cr.horizontalPadding} - 1px);
601
605
  }
602
606
 
603
607
  .ft-button.ft-button--dense {
604
- padding: ${fr} ${dr};
605
- border-radius: ${hr};
606
- gap: ${ur};
608
+ padding: ${dr} ${ur};
609
+ border-radius: ${fr};
610
+ gap: ${yr};
607
611
  }
608
612
 
609
613
  .ft-button.ft-button--dense.ft-button--outlined {
610
- padding: calc(${fr} - 1px) calc(${dr} - 1px);
614
+ padding: calc(${dr} - 1px) calc(${ur} - 1px);
611
615
  }
612
616
 
613
617
  .ft-button:not([disabled]):hover {
@@ -615,22 +619,22 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
615
619
  }
616
620
 
617
621
  .ft-button--round {
618
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${lr.verticalPadding});
622
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${cr.verticalPadding});
619
623
  }
620
624
 
621
625
  .ft-button--round.ft-button--dense {
622
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${fr});
626
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${dr});
623
627
  }
624
628
 
625
629
  .ft-button[disabled] {
626
630
  filter: grayscale(1);
627
- opacity: ${lr.opacityDisabled};
631
+ opacity: ${cr.opacityDisabled};
628
632
  }
629
633
 
630
634
  .ft-button.ft-button--primary {
631
- background-color: ${pr.backgroundColor};
632
- --ft-button-internal-color: ${pr.color};
633
- ${vo(Mi.color,pr.rippleColor)};
635
+ background-color: ${hr.backgroundColor};
636
+ --ft-button-internal-color: ${hr.color};
637
+ ${vo(Di.color,hr.rippleColor)};
634
638
  }
635
639
 
636
640
  .ft-button:focus {
@@ -643,13 +647,13 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
643
647
  white-space: nowrap;
644
648
  text-overflow: ellipsis;
645
649
  display: block;
646
- margin: 0 ${lr.iconPadding};
647
- ${vo(pi.fontSize,"1em")};
648
- ${vo(pi.lineHeight,"var(--ft-button-internal-line-height)")};
650
+ margin: 0 ${cr.iconPadding};
651
+ ${vo(hi.fontSize,"1em")};
652
+ ${vo(hi.lineHeight,"var(--ft-button-internal-line-height)")};
649
653
  }
650
654
 
651
655
  .ft-button--dense .ft-button--label {
652
- margin: 0 ${ur};
656
+ margin: 0 ${yr};
653
657
  }
654
658
 
655
659
  .ft-button--label[hidden] {
@@ -662,13 +666,13 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
662
666
  }
663
667
 
664
668
  .ft-button--label[hidden] + ft-icon {
665
- margin: 0 calc(${lr.horizontalPadding} * -1);
666
- padding: 0 ${lr.verticalPadding};
669
+ margin: 0 calc(${cr.horizontalPadding} * -1);
670
+ padding: 0 ${cr.verticalPadding};
667
671
  }
668
672
 
669
673
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
670
- margin: 0 calc(${dr} * -1);
671
- padding: 0 ${fr};
674
+ margin: 0 calc(${ur} * -1);
675
+ padding: 0 ${dr};
672
676
  }
673
677
 
674
678
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -677,26 +681,26 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
677
681
  }
678
682
 
679
683
  ft-loader {
680
- ${vo(nr.size,lr.iconSize)};
681
- ${vo(nr.color,"var(--ft-button-internal-color)")};
684
+ ${vo(ar.size,cr.iconSize)};
685
+ ${vo(ar.color,"var(--ft-button-internal-color)")};
682
686
  }
683
- `,Ko];class gr extends zo{render(){return Qt`
687
+ `,Fo];class br extends zo{render(){return Qt`
684
688
  <div class="ft-loader">
685
689
  <div></div>
686
690
  <div></div>
687
691
  <div></div>
688
692
  <div></div>
689
693
  </div>
690
- `}}gr.styles=ar,k("ft-loader")(gr);var br=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class mr extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[To].form}constructor(...t){super(t),this[To]=this.attachInternals(),this[To].role=o}setFormValue(t){this[To].setFormValue(t)}}}(zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(Qt`
694
+ `}}br.styles=sr,U("ft-loader")(br);var mr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class xr extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[_o].form}constructor(...t){super(t),this[_o]=this.attachInternals(),this[_o].role=o}setFormValue(t){this[_o].setFormValue(t)}}}(zo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(Qt`
691
695
  <button part="button"
692
- class="${Bi(this.buttonClasses)}"
696
+ class="${Ai(this.buttonClasses)}"
693
697
  aria-label="${this.getLabel()}"
694
698
  ?disabled=${this.isDisabled()}>
695
699
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
696
700
  <ft-typography part="label"
697
701
  variant=${this.typographyVariant}
698
702
  element="span"
699
- class="ft-button--label ${Vo?"ft-safari-ellipsis-fix":""}"
703
+ class="ft-button--label ${Jo?"ft-safari-ellipsis-fix":""}"
700
704
  ?hidden=${!this.hasTextContent()}>
701
705
  <slot @slotchange=${this.onSlotchange}></slot>
702
706
  </ft-typography>
@@ -710,7 +714,7 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
710
714
  </ft-tooltip>
711
715
  `:t}resolveIcon(){return this.loading?Qt`
712
716
  <ft-loader part="loader icon"></ft-loader> `:this.icon?Qt`
713
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:oo}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}mr.elementDefinitions={"ft-ripple":Vi,"ft-tooltip":Wi,"ft-typography":wi,"ft-icon":rr,"ft-loader":gr},br([C({type:String,reflect:!0})],mr.prototype,"role",void 0),br([C()],mr.prototype,"type",void 0),br([C({type:Boolean})],mr.prototype,"disabled",void 0),br([C()],mr.prototype,"label",void 0),br([C()],mr.prototype,"icon",void 0),br([C()],mr.prototype,"iconVariant",void 0),br([C({type:Boolean})],mr.prototype,"trailingIcon",void 0),br([C({type:Boolean})],mr.prototype,"loading",void 0),br([C()],mr.prototype,"tooltipPosition",void 0),br([C({type:Boolean})],mr.prototype,"hideTooltip",void 0),br([C({type:Boolean})],mr.prototype,"forceTooltip",void 0),br([R(".ft-button")],mr.prototype,"button",void 0),br([R(".ft-button--label slot")],mr.prototype,"slottedContent",void 0);var xr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vr extends mr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}vr.styles=[Zo,yr],xr([C({type:Boolean})],vr.prototype,"primary",void 0),xr([C({type:Boolean})],vr.prototype,"outlined",void 0),xr([C({type:Boolean})],vr.prototype,"dense",void 0),xr([C({type:Boolean})],vr.prototype,"round",void 0);const Or=[bt`
717
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:oo}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}xr.elementDefinitions={"ft-ripple":Ji,"ft-tooltip":zi,"ft-typography":Ci,"ft-icon":nr,"ft-loader":br},mr([C({type:String,reflect:!0})],xr.prototype,"role",void 0),mr([C()],xr.prototype,"type",void 0),mr([C({type:Boolean})],xr.prototype,"disabled",void 0),mr([C()],xr.prototype,"label",void 0),mr([C()],xr.prototype,"icon",void 0),mr([C()],xr.prototype,"iconVariant",void 0),mr([C({type:Boolean})],xr.prototype,"trailingIcon",void 0),mr([C({type:Boolean})],xr.prototype,"loading",void 0),mr([C()],xr.prototype,"tooltipPosition",void 0),mr([C({type:Boolean})],xr.prototype,"hideTooltip",void 0),mr([C({type:Boolean})],xr.prototype,"forceTooltip",void 0),mr([R(".ft-button")],xr.prototype,"button",void 0),mr([R(".ft-button--label slot")],xr.prototype,"slottedContent",void 0);var vr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Or extends xr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Or.styles=[Zo,gr],vr([C({type:Boolean})],Or.prototype,"primary",void 0),vr([C({type:Boolean})],Or.prototype,"outlined",void 0),vr([C({type:Boolean})],Or.prototype,"dense",void 0),vr([C({type:Boolean})],Or.prototype,"round",void 0);const Nr=[bt`
714
718
  :host {
715
719
  display: inline-block;
716
720
  max-width: 100%;
@@ -789,13 +793,13 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
789
793
  /** Primary styles **/
790
794
 
791
795
  .ft-button--primary {
792
- ${vo(nr.color,wo.primaryIconColor)};
796
+ ${vo(ar.color,wo.primaryIconColor)};
793
797
 
794
- ${vo(Mi.color,wo.primaryStateLayerColor)};
795
- ${vo(Mi.opacityContentOnSurfaceHover,wo.primaryStateLayerOpacityHover)};
796
- ${vo(Mi.opacityContentOnSurfaceFocused,wo.primaryStateLayerOpacityFocus)};
797
- ${vo(Mi.opacityContentOnSurfaceSelected,wo.primaryStateLayerOpacityActive)};
798
- ${vo(Mi.opacityContentOnSurfacePressed,wo.primaryStateLayerOpacityActive)};
798
+ ${vo(Di.color,wo.primaryStateLayerColor)};
799
+ ${vo(Di.opacityContentOnSurfaceHover,wo.primaryStateLayerOpacityHover)};
800
+ ${vo(Di.opacityContentOnSurfaceFocused,wo.primaryStateLayerOpacityFocus)};
801
+ ${vo(Di.opacityContentOnSurfaceSelected,wo.primaryStateLayerOpacityActive)};
802
+ ${vo(Di.opacityContentOnSurfacePressed,wo.primaryStateLayerOpacityActive)};
799
803
 
800
804
  background-color: ${wo.primaryBackgroundColor};
801
805
  color: ${wo.primaryColor};
@@ -813,13 +817,13 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
813
817
  /** Secondary styles **/
814
818
 
815
819
  .ft-button--secondary {
816
- ${vo(nr.color,wo.secondaryIconColor)};
820
+ ${vo(ar.color,wo.secondaryIconColor)};
817
821
 
818
- ${vo(Mi.color,wo.secondaryStateLayerColor)};
819
- ${vo(Mi.opacityContentOnSurfaceHover,wo.secondaryStateLayerOpacityHover)};
820
- ${vo(Mi.opacityContentOnSurfaceFocused,wo.secondaryStateLayerOpacityFocus)};
821
- ${vo(Mi.opacityContentOnSurfaceSelected,wo.secondaryStateLayerOpacityActive)};
822
- ${vo(Mi.opacityContentOnSurfacePressed,wo.secondaryStateLayerOpacityActive)};
822
+ ${vo(Di.color,wo.secondaryStateLayerColor)};
823
+ ${vo(Di.opacityContentOnSurfaceHover,wo.secondaryStateLayerOpacityHover)};
824
+ ${vo(Di.opacityContentOnSurfaceFocused,wo.secondaryStateLayerOpacityFocus)};
825
+ ${vo(Di.opacityContentOnSurfaceSelected,wo.secondaryStateLayerOpacityActive)};
826
+ ${vo(Di.opacityContentOnSurfacePressed,wo.secondaryStateLayerOpacityActive)};
823
827
 
824
828
  background-color: ${wo.secondaryBackgroundColor};
825
829
  color: ${wo.secondaryColor};
@@ -838,13 +842,13 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
838
842
  /** Tertiary styles **/
839
843
 
840
844
  .ft-button--tertiary {
841
- ${vo(nr.color,wo.tertiaryIconColor)};
845
+ ${vo(ar.color,wo.tertiaryIconColor)};
842
846
 
843
- ${vo(Mi.color,wo.tertiaryStateLayerColor)};
844
- ${vo(Mi.opacityContentOnSurfaceHover,wo.tertiaryStateLayerOpacityHover)};
845
- ${vo(Mi.opacityContentOnSurfaceFocused,wo.tertiaryStateLayerOpacityFocus)};
846
- ${vo(Mi.opacityContentOnSurfaceSelected,wo.tertiaryStateLayerOpacityActive)};
847
- ${vo(Mi.opacityContentOnSurfacePressed,wo.tertiaryStateLayerOpacityActive)};
847
+ ${vo(Di.color,wo.tertiaryStateLayerColor)};
848
+ ${vo(Di.opacityContentOnSurfaceHover,wo.tertiaryStateLayerOpacityHover)};
849
+ ${vo(Di.opacityContentOnSurfaceFocused,wo.tertiaryStateLayerOpacityFocus)};
850
+ ${vo(Di.opacityContentOnSurfaceSelected,wo.tertiaryStateLayerOpacityActive)};
851
+ ${vo(Di.opacityContentOnSurfacePressed,wo.tertiaryStateLayerOpacityActive)};
848
852
 
849
853
  background-color: ${wo.tertiaryBackgroundColor};
850
854
  color: ${wo.tertiaryColor};
@@ -862,13 +866,13 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
862
866
  /** Neutral styles **/
863
867
 
864
868
  .ft-button--neutral {
865
- ${vo(nr.color,wo.neutralIconColor)};
869
+ ${vo(ar.color,wo.neutralIconColor)};
866
870
 
867
- ${vo(Mi.backgroundColor,wo.neutralStateLayerColor)};
868
- ${vo(Mi.opacityContentOnSurfaceHover,wo.neutralStateLayerOpacityHover)};
869
- ${vo(Mi.opacityContentOnSurfaceFocused,wo.neutralStateLayerOpacityFocus)};
870
- ${vo(Mi.opacityContentOnSurfaceSelected,wo.neutralStateLayerOpacityActive)};
871
- ${vo(Mi.opacityContentOnSurfacePressed,wo.neutralStateLayerOpacityActive)};
871
+ ${vo(Di.backgroundColor,wo.neutralStateLayerColor)};
872
+ ${vo(Di.opacityContentOnSurfaceHover,wo.neutralStateLayerOpacityHover)};
873
+ ${vo(Di.opacityContentOnSurfaceFocused,wo.neutralStateLayerOpacityFocus)};
874
+ ${vo(Di.opacityContentOnSurfaceSelected,wo.neutralStateLayerOpacityActive)};
875
+ ${vo(Di.opacityContentOnSurfacePressed,wo.neutralStateLayerOpacityActive)};
872
876
 
873
877
  background-color: ${wo.neutralBackgroundColor};
874
878
  color: ${wo.neutralColor};
@@ -886,8 +890,8 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
886
890
  /** Large styles **/
887
891
 
888
892
  .ft-button--large {
889
- ${vo(tr.size,wo.largeIconSize)};
890
- ${vo(nr.size,wo.largeIconSize)};
893
+ ${vo(or.size,wo.largeIconSize)};
894
+ ${vo(ar.size,wo.largeIconSize)};
891
895
 
892
896
  height: ${wo.largeHeight};
893
897
  padding: 0 ${wo.largeHorizontalPadding};
@@ -909,8 +913,8 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
909
913
  /** Small styles **/
910
914
 
911
915
  .ft-button--small {
912
- ${vo(tr.size,wo.smallIconSize)};
913
- ${vo(nr.size,wo.smallIconSize)};
916
+ ${vo(or.size,wo.smallIconSize)};
917
+ ${vo(ar.size,wo.smallIconSize)};
914
918
 
915
919
  height: ${wo.smallHeight};
916
920
  padding: 0 ${wo.smallHorizontalPadding};
@@ -928,7 +932,7 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
928
932
  width: ${wo.smallIconOnlyWidth};
929
933
  padding: unset;
930
934
  }
931
- `,Ko];var Nr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Sr extends mr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?he.caption1medium:he.body2medium}}Sr.styles=[Zo,Or],Nr([C({type:Boolean})],Sr.prototype,"primary",void 0),Nr([C({type:Boolean})],Sr.prototype,"secondary",void 0),Nr([C({type:Boolean})],Sr.prototype,"tertiary",void 0),Nr([C({type:Boolean})],Sr.prototype,"neutral",void 0),Nr([C({type:Boolean})],Sr.prototype,"small",void 0),k("ft-button")(vr),k("ftds-button")(Sr);const wr=xo.extend("--ft-chip-color","",Co.colorOnSurface),Cr={backgroundColor:xo.extend("--ft-chip-background-color","",Co.colorSurface),color:wr,fontSize:xo.extend("--ft-chip-font-size","",Te.fontSize),iconSize:xo.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:xo.extend("--ft-chip-ripple-color","",wr),horizontalPadding:xo.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:xo.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:xo.external(Co.colorOutline,"Design system"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},$r=xo.extend("--ft-chip-highlighted-color","",xo.extend("--ft-chip-color","",Co.colorOnPrimary)),Er={backgroundColor:xo.extend("--ft-chip-highlighted-background-color","",xo.extend("--ft-chip-background-color","",Co.colorPrimary)),color:$r,rippleColor:xo.extend("--ft-chip-highlighted-ripple-color","",$r)},Rr=xo.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),Ur=xo.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),kr=[Ko,bt`
935
+ `,Fo];var Sr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wr extends xr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?fe.caption1medium:fe.body2medium}}wr.styles=[Zo,Nr],Sr([C({type:Boolean})],wr.prototype,"primary",void 0),Sr([C({type:Boolean})],wr.prototype,"secondary",void 0),Sr([C({type:Boolean})],wr.prototype,"tertiary",void 0),Sr([C({type:Boolean})],wr.prototype,"neutral",void 0),Sr([C({type:Boolean})],wr.prototype,"small",void 0),U("ft-button")(Or),U("ftds-button")(wr);const Cr=xo.extend("--ft-chip-color","",Co.colorOnSurface),$r={backgroundColor:xo.extend("--ft-chip-background-color","",Co.colorSurface),color:Cr,fontSize:xo.extend("--ft-chip-font-size","",_e.fontSize),iconSize:xo.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:xo.extend("--ft-chip-ripple-color","",Cr),horizontalPadding:xo.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:xo.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:xo.external(Co.colorOutline,"Design system"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},Er=xo.extend("--ft-chip-highlighted-color","",xo.extend("--ft-chip-color","",Co.colorOnPrimary)),Rr={backgroundColor:xo.extend("--ft-chip-highlighted-background-color","",xo.extend("--ft-chip-background-color","",Co.colorPrimary)),color:Er,rippleColor:xo.extend("--ft-chip-highlighted-ripple-color","",Er)},kr=xo.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),Ur=xo.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),Ir=[Fo,bt`
932
936
  :host {
933
937
  display: inline-block;
934
938
  max-width: 100%;
@@ -944,20 +948,20 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
944
948
  box-sizing: border-box;
945
949
  pointer-events: auto;
946
950
 
947
- --ft-chip-internal-font-size: ${Cr.fontSize};
951
+ --ft-chip-internal-font-size: ${$r.fontSize};
948
952
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
949
- ${vo(tr.size,Cr.iconSize)};
950
- --ft-chip-internal-vertical-padding: ${Cr.verticalPadding};
951
- --ft-chip-internal-horizontal-padding: ${Cr.horizontalPadding};
953
+ ${vo(or.size,$r.iconSize)};
954
+ --ft-chip-internal-vertical-padding: ${$r.verticalPadding};
955
+ --ft-chip-internal-horizontal-padding: ${$r.horizontalPadding};
952
956
  --ft-chip-internal-icon-padding: 3px;
953
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Cr.iconSize});
957
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${$r.iconSize});
954
958
 
955
- border: 1px solid ${Cr.colorOutline};
956
- color: ${Cr.color};
957
- ${vo(Mi.color,Cr.rippleColor)};
959
+ border: 1px solid ${$r.colorOutline};
960
+ color: ${$r.color};
961
+ ${vo(Di.color,$r.rippleColor)};
958
962
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
959
963
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
960
- background-color: ${Cr.backgroundColor};
964
+ background-color: ${$r.backgroundColor};
961
965
  line-height: var(--ft-chip-internal-content-height);
962
966
  }
963
967
 
@@ -968,7 +972,7 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
968
972
  .ft-chip--dense {
969
973
  --ft-chip-internal-icon-padding: 3px;
970
974
  --ft-chip-internal-vertical-padding: ${Ur};
971
- --ft-chip-internal-horizontal-padding: ${Rr};
975
+ --ft-chip-internal-horizontal-padding: ${kr};
972
976
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
973
977
  }
974
978
 
@@ -980,15 +984,15 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
980
984
  cursor: default;
981
985
  pointer-events: none;
982
986
  filter: grayscale(1);
983
- opacity: ${Cr.opacityDisabled};
987
+ opacity: ${$r.opacityDisabled};
984
988
  }
985
989
 
986
990
  .ft-chip--highlighted {
987
991
  border: none;
988
992
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
989
- background-color: ${Er.backgroundColor};
990
- ${vo(Mi.color,Er.rippleColor)};
991
- color: ${Er.color};
993
+ background-color: ${Rr.backgroundColor};
994
+ ${vo(Di.color,Rr.rippleColor)};
995
+ color: ${Rr.color};
992
996
  }
993
997
 
994
998
  .ft-chip--clickable {
@@ -1018,9 +1022,9 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
1018
1022
  }
1019
1023
 
1020
1024
  .ft-chip--icon-button {
1021
- ${vo(lr.iconSize,Cr.iconSize)};
1022
- ${vo(lr.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1023
- ${vo(lr.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1025
+ ${vo(cr.iconSize,$r.iconSize)};
1026
+ ${vo(cr.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1027
+ ${vo(cr.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1024
1028
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
1025
1029
  }
1026
1030
 
@@ -1028,8 +1032,8 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
1028
1032
  vertical-align: bottom;
1029
1033
  display: block;
1030
1034
  margin: 0 var(--ft-chip-internal-horizontal-padding);
1031
- ${vo(Te.fontSize,"var(--ft-chip-internal-font-size)")};
1032
- ${vo(Te.lineHeight,"var(--ft-chip-internal-content-height)")};
1035
+ ${vo(_e.fontSize,"var(--ft-chip-internal-font-size)")};
1036
+ ${vo(_e.lineHeight,"var(--ft-chip-internal-content-height)")};
1033
1037
  }
1034
1038
 
1035
1039
  .ft-chip--safari-fix .ft-chip--label {
@@ -1065,8 +1069,8 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
1065
1069
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1066
1070
  order: -1;
1067
1071
  }
1068
- `];var Ir=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Lr extends CustomEvent{constructor(){super("icon-click")}}class Wr extends zo{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Vo};return Qt`
1069
- <div class="${Bi(t)}"
1072
+ `];var Lr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Wr extends CustomEvent{constructor(){super("icon-click")}}class zr extends zo{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Jo};return Qt`
1073
+ <div class="${Ai(t)}"
1070
1074
  aria-label="${this.getLabel()}"
1071
1075
  tabindex="${this.interactionsOnChip?0:-1}"
1072
1076
  @keyup=${this.onKeyUp}>
@@ -1088,7 +1092,7 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
1088
1092
  <div class="ft-chip--icon-container ft-no-text-select">
1089
1093
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
1090
1094
  </div>
1091
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Lr))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Lr))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Wr.elementDefinitions={"ft-ripple":Vi,"ft-typography":wi,"ft-icon":rr,"ft-button":vr},Wr.styles=kr,Ir([C({type:Boolean})],Wr.prototype,"highlighted",void 0),Ir([C({type:Boolean})],Wr.prototype,"removable",void 0),Ir([C({type:Boolean})],Wr.prototype,"disabled",void 0),Ir([C({type:Boolean})],Wr.prototype,"clickable",void 0),Ir([C({type:Boolean})],Wr.prototype,"iconClickable",void 0),Ir([C({type:Boolean})],Wr.prototype,"dense",void 0),Ir([C({type:Boolean})],Wr.prototype,"multiLine",void 0),Ir([C()],Wr.prototype,"label",void 0),Ir([C()],Wr.prototype,"iconLabel",void 0),Ir([C()],Wr.prototype,"icon",void 0),Ir([C()],Wr.prototype,"iconVariant",void 0),Ir([C({type:Boolean})],Wr.prototype,"trailingIcon",void 0),Ir([R("ft-typography slot")],Wr.prototype,"slottedContent",void 0),k("ft-chip")(Wr);var zr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Kr extends ne{constructor(){super(...arguments),this.editorMode=!1}render(){return Qt`
1095
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Wr))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Wr))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}zr.elementDefinitions={"ft-ripple":Ji,"ft-typography":Ci,"ft-icon":nr,"ft-button":Or},zr.styles=Ir,Lr([C({type:Boolean})],zr.prototype,"highlighted",void 0),Lr([C({type:Boolean})],zr.prototype,"removable",void 0),Lr([C({type:Boolean})],zr.prototype,"disabled",void 0),Lr([C({type:Boolean})],zr.prototype,"clickable",void 0),Lr([C({type:Boolean})],zr.prototype,"iconClickable",void 0),Lr([C({type:Boolean})],zr.prototype,"dense",void 0),Lr([C({type:Boolean})],zr.prototype,"multiLine",void 0),Lr([C()],zr.prototype,"label",void 0),Lr([C()],zr.prototype,"iconLabel",void 0),Lr([C()],zr.prototype,"icon",void 0),Lr([C()],zr.prototype,"iconVariant",void 0),Lr([C({type:Boolean})],zr.prototype,"trailingIcon",void 0),Lr([R("ft-typography slot")],zr.prototype,"slottedContent",void 0),U("ft-chip")(zr);var Kr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Fr extends ae{constructor(){super(...arguments),this.editorMode=!1}render(){return Qt`
1092
1096
  <ft-tooltip text="${this.tooltipText}">
1093
1097
  <ft-chip>
1094
1098
  ${this.renderContent()}
@@ -1101,4 +1105,4 @@ class Ji extends Fi{constructor(t){if(super(t),this.et=X,t.type!==Ki)throw Error
1101
1105
  display: none !important;
1102
1106
  }
1103
1107
  </style>
1104
- `}get valueText(){var t,o;return null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==o?o:""}get tooltipText(){var t,o;return this.metadata?`${null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==o?o:this.metadata.key}: ${this.valueText}`:""}update(t){super.update(t),["key","tocNode"].some((o=>t.has(o)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode).then((t=>this.metadata=t.metadata.find((t=>t.key===this.key)))).catch((()=>null)))}}Kr.elementDefinitions={"ft-tooltip":Wi,"ft-chip":Wr},Kr.styles=Jo,zr([C()],Kr.prototype,"key",void 0),zr([$()],Kr.prototype,"editorMode",void 0),zr([$()],Kr.prototype,"metadata",void 0),k("ft-reader-topic-metadata")(Kr),t.FtReaderTopicMetadata=Kr,t.FtReaderTopicMetadataCssVariables={},t.styles=Jo}({});
1108
+ `}get valueText(){var t,o;return null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==o?o:""}get tooltipText(){var t,o;return this.metadata?`${null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==o?o:this.metadata.key}: ${this.valueText}`:""}update(t){super.update(t),["key","tocNode"].some((o=>t.has(o)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode).then((t=>this.metadata=t.metadata.find((t=>t.key===this.key)))).catch((()=>null)))}}Fr.elementDefinitions={"ft-tooltip":zi,"ft-chip":zr},Fr.styles=qo,Kr([C()],Fr.prototype,"key",void 0),Kr([$()],Fr.prototype,"editorMode",void 0),Kr([$()],Fr.prototype,"metadata",void 0),U("ft-reader-topic-metadata")(Fr),t.FtReaderTopicMetadata=Fr,t.FtReaderTopicMetadataCssVariables={},t.styles=qo}({});