@fluid-topics/ft-reader-navigation-button 0.3.52 → 0.3.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ci){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ni){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -92,34 +92,34 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
92
92
  -webkit-hyphens: auto;
93
93
  hyphens: auto
94
94
  }
95
- `;class mt extends xt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:wt(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:wt(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t)))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function wt(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var $t,Ot,St;const kt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(St=null===(Ot=null===($t=window.safari)||void 0===$t?void 0:$t.pushNotification)||void 0===Ot?void 0:Ot.toString())&&void 0!==St?St:""),Ct={outlineColor:ut.extend("--ft-reader-internal-link-outline-color",yt.colorPrimary)},Nt=b`
95
+ `;const mt=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged);class wt extends xt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:$t(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:$t(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function $t(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var Ot,St,kt;const Ct=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(kt=null===(St=null===(Ot=window.safari)||void 0===Ot?void 0:Ot.pushNotification)||void 0===St?void 0:St.toString())&&void 0!==kt?kt:""),Nt={outlineColor:ut.extend("--ft-reader-internal-link-outline-color",yt.colorPrimary)},Et=b`
96
96
  :host {
97
97
  display: contents;
98
98
  }
99
99
 
100
100
  a:focus {
101
- outline-color: ${Ct.outlineColor};
101
+ outline-color: ${Nt.outlineColor};
102
102
  }
103
103
 
104
104
  .ft-reader-link--remove-style {
105
105
  text-decoration: none;
106
106
  color: inherit;
107
107
  }
108
- `,Et=b`
108
+ `,Rt=b`
109
109
  ft-reader-internal-link {
110
- ${vt(Ct.outlineColor,"transparent")}
110
+ ${vt(Nt.outlineColor,"transparent")}
111
111
  }
112
112
  `
113
113
  /**
114
114
  * @license
115
115
  * Copyright 2017 Google LLC
116
116
  * SPDX-License-Identifier: BSD-3-Clause
117
- */,Rt=1,Mt=2,jt=t=>(...e)=>({_$litDirective$:t,values:e});class Ft{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
117
+ */,Mt=1,jt=2,Ft=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
118
118
  /**
119
119
  * @license
120
120
  * Copyright 2018 Google LLC
121
121
  * SPDX-License-Identifier: BSD-3-Clause
122
- */const Ut=jt(class extends Ft{constructor(t){var e;if(super(t),t.type!==Rt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),zt=ut.extend("--ft-ripple-color",yt.colorContent),Bt={color:zt,backgroundColor:ut.extend("--ft-ripple-background-color",zt),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system")},Tt=ut.extend("--ft-ripple-color",yt.colorPrimary),At=Tt,Lt=ut.extend("--ft-ripple-background-color",Tt),Pt=ut.extend("--ft-ripple-color",yt.colorSecondary),_t=Pt,Dt=ut.extend("--ft-ripple-background-color",Pt),It=b`
122
+ */const zt=Ft(class extends Ut{constructor(t){var e;if(super(t),t.type!==Mt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return J}}),Bt=ut.extend("--ft-ripple-color",yt.colorContent),Tt={color:Bt,backgroundColor:ut.extend("--ft-ripple-background-color",Bt),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system")},At=ut.extend("--ft-ripple-color",yt.colorPrimary),Lt=At,Pt=ut.extend("--ft-ripple-background-color",At),_t=ut.extend("--ft-ripple-color",yt.colorSecondary),Dt=_t,It=ut.extend("--ft-ripple-background-color",_t),Wt=b`
123
123
  :host {
124
124
  display: contents;
125
125
  }
@@ -141,27 +141,27 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
141
141
  }
142
142
 
143
143
  .ft-ripple .ft-ripple--background {
144
- background-color: ${Bt.backgroundColor};
144
+ background-color: ${Tt.backgroundColor};
145
145
  }
146
146
 
147
147
  .ft-ripple .ft-ripple--effect {
148
- background-color: ${Bt.color};
148
+ background-color: ${Tt.color};
149
149
  }
150
150
 
151
151
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
152
- background-color: ${Dt};
152
+ background-color: ${It};
153
153
  }
154
154
 
155
155
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
156
- background-color: ${_t};
156
+ background-color: ${Dt};
157
157
  }
158
158
 
159
159
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
160
- background-color: ${Lt};
160
+ background-color: ${Pt};
161
161
  }
162
162
 
163
163
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
164
- background-color: ${At};
164
+ background-color: ${Lt};
165
165
  }
166
166
 
167
167
  .ft-ripple .ft-ripple--background {
@@ -193,22 +193,22 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
193
193
  }
194
194
 
195
195
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
196
- opacity: ${Bt.opacityContentOnSurfaceHover};
196
+ opacity: ${Tt.opacityContentOnSurfaceHover};
197
197
  }
198
198
 
199
199
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
200
- opacity: ${Bt.opacityContentOnSurfaceSelected};
200
+ opacity: ${Tt.opacityContentOnSurfaceSelected};
201
201
  }
202
202
 
203
203
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
204
- opacity: ${Bt.opacityContentOnSurfaceFocused};
204
+ opacity: ${Tt.opacityContentOnSurfaceFocused};
205
205
  }
206
206
 
207
207
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
208
- opacity: ${Bt.opacityContentOnSurfacePressed};
208
+ opacity: ${Tt.opacityContentOnSurfacePressed};
209
209
  transform: translate(-50%, -50%) scale(1);
210
210
  }
211
- `;var Wt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ht extends xt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return V`
211
+ `;var Ht=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Kt extends xt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return V`
212
212
  <style>
213
213
  .ft-ripple .ft-ripple--effect,
214
214
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -221,119 +221,119 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
221
221
  top: ${this.originY}px;
222
222
  }
223
223
  </style>
224
- <div class="${Ut(t)}">
224
+ <div class="${zt(t)}">
225
225
  <div class="ft-ripple--background"></div>
226
226
  <div class="ft-ripple--effect"></div>
227
227
  </div>
228
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ht.elementDefinitions={},Ht.styles=It,Wt([o({type:Boolean})],Ht.prototype,"primary",void 0),Wt([o({type:Boolean})],Ht.prototype,"secondary",void 0),Wt([o({type:Boolean})],Ht.prototype,"unbounded",void 0),Wt([o({type:Boolean})],Ht.prototype,"activated",void 0),Wt([o({type:Boolean})],Ht.prototype,"selected",void 0),Wt([o({type:Boolean})],Ht.prototype,"disabled",void 0),Wt([n()],Ht.prototype,"hovered",void 0),Wt([n()],Ht.prototype,"focused",void 0),Wt([n()],Ht.prototype,"pressed",void 0),Wt([n()],Ht.prototype,"rippling",void 0),Wt([n()],Ht.prototype,"rippleSize",void 0),Wt([n()],Ht.prototype,"originX",void 0),Wt([n()],Ht.prototype,"originY",void 0),Wt([s(".ft-ripple")],Ht.prototype,"ripple",void 0),Wt([s(".ft-ripple--effect")],Ht.prototype,"rippleEffect",void 0),h("ft-ripple")(Ht);
228
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Kt.elementDefinitions={},Kt.styles=Wt,Ht([o({type:Boolean})],Kt.prototype,"primary",void 0),Ht([o({type:Boolean})],Kt.prototype,"secondary",void 0),Ht([o({type:Boolean})],Kt.prototype,"unbounded",void 0),Ht([o({type:Boolean})],Kt.prototype,"activated",void 0),Ht([o({type:Boolean})],Kt.prototype,"selected",void 0),Ht([o({type:Boolean})],Kt.prototype,"disabled",void 0),Ht([n()],Kt.prototype,"hovered",void 0),Ht([n()],Kt.prototype,"focused",void 0),Ht([n()],Kt.prototype,"pressed",void 0),Ht([n()],Kt.prototype,"rippling",void 0),Ht([n()],Kt.prototype,"rippleSize",void 0),Ht([n()],Kt.prototype,"originX",void 0),Ht([n()],Kt.prototype,"originY",void 0),Ht([s(".ft-ripple")],Kt.prototype,"ripple",void 0),Ht([s(".ft-ripple--effect")],Kt.prototype,"rippleEffect",void 0),h("ft-ripple")(Kt);
229
229
  /**
230
230
  * @license
231
231
  * Copyright 2020 Google LLC
232
232
  * SPDX-License-Identifier: BSD-3-Clause
233
233
  */
234
- const Kt=Symbol.for(""),Zt=t=>{if((null==t?void 0:t.r)===Kt)return null==t?void 0:t._$litStatic$},Vt=t=>({_$litStatic$:t,r:Kt}),Jt=new Map,qt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=Zt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=Jt.get(t))&&(s.raw=s,Jt.set(t,e=s)),i=a}return t(e,...i)})(V);var Xt;!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"}(Xt||(Xt={}));const Yt=ut.extend("--ft-typography-font-family",yt.titleFont),Gt=ut.extend("--ft-typography-font-family",yt.contentFont),Qt={fontFamily:Gt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},te=ut.extend("--ft-typography-title-font-family",Yt),ee=ut.extend("--ft-typography-title-font-size",Qt.fontSize,"20px"),ie=ut.extend("--ft-typography-title-font-weight",Qt.fontWeight,"normal"),oe=ut.extend("--ft-typography-title-letter-spacing",Qt.letterSpacing,"0.15px"),ne=ut.extend("--ft-typography-title-line-height",Qt.lineHeight,"1.2"),re=ut.extend("--ft-typography-title-text-transform",Qt.textTransform,"inherit"),se=ut.extend("--ft-typography-title-dense-font-family",Yt),ae=ut.extend("--ft-typography-title-dense-font-size",Qt.fontSize,"14px"),le=ut.extend("--ft-typography-title-dense-font-weight",Qt.fontWeight,"normal"),he=ut.extend("--ft-typography-title-dense-letter-spacing",Qt.letterSpacing,"0.105px"),ce=ut.extend("--ft-typography-title-dense-line-height",Qt.lineHeight,"1.7"),pe=ut.extend("--ft-typography-title-dense-text-transform",Qt.textTransform,"inherit"),fe=ut.extend("--ft-typography-subtitle1-font-family",Gt),de=ut.extend("--ft-typography-subtitle1-font-size",Qt.fontSize,"16px"),ue=ut.extend("--ft-typography-subtitle1-font-weight",Qt.fontWeight,"600"),ve=ut.extend("--ft-typography-subtitle1-letter-spacing",Qt.letterSpacing,"0.144px"),ye=ut.extend("--ft-typography-subtitle1-line-height",Qt.lineHeight,"1.5"),be=ut.extend("--ft-typography-subtitle1-text-transform",Qt.textTransform,"inherit"),xe=ut.extend("--ft-typography-subtitle2-font-family",Gt),ge=ut.extend("--ft-typography-subtitle2-font-size",Qt.fontSize,"14px"),me=ut.extend("--ft-typography-subtitle2-font-weight",Qt.fontWeight,"normal"),we=ut.extend("--ft-typography-subtitle2-letter-spacing",Qt.letterSpacing,"0.098px"),$e=ut.extend("--ft-typography-subtitle2-line-height",Qt.lineHeight,"1.7"),Oe=ut.extend("--ft-typography-subtitle2-text-transform",Qt.textTransform,"inherit"),Se=ut.extend("--ft-typography-body1-font-family",Gt),ke=ut.extend("--ft-typography-body1-font-size",Qt.fontSize,"16px"),Ce=ut.extend("--ft-typography-body1-font-weight",Qt.fontWeight,"normal"),Ne=ut.extend("--ft-typography-body1-letter-spacing",Qt.letterSpacing,"0.496px"),Ee=ut.extend("--ft-typography-body1-line-height",Qt.lineHeight,"1.5"),Re=ut.extend("--ft-typography-body1-text-transform",Qt.textTransform,"inherit"),Me=ut.extend("--ft-typography-body2-font-family",Gt),je=ut.extend("--ft-typography-body2-font-size",Qt.fontSize,"14px"),Fe=ut.extend("--ft-typography-body2-font-weight",Qt.fontWeight,"normal"),Ue=ut.extend("--ft-typography-body2-letter-spacing",Qt.letterSpacing,"0.252px"),ze=ut.extend("--ft-typography-body2-line-height",Qt.lineHeight,"1.4"),Be=ut.extend("--ft-typography-body2-text-transform",Qt.textTransform,"inherit"),Te=ut.extend("--ft-typography-caption-font-family",Gt),Ae=ut.extend("--ft-typography-caption-font-size",Qt.fontSize,"12px"),Le=ut.extend("--ft-typography-caption-font-weight",Qt.fontWeight,"normal"),Pe=ut.extend("--ft-typography-caption-letter-spacing",Qt.letterSpacing,"0.396px"),_e=ut.extend("--ft-typography-caption-line-height",Qt.lineHeight,"1.33"),De=ut.extend("--ft-typography-caption-text-transform",Qt.textTransform,"inherit"),Ie=ut.extend("--ft-typography-breadcrumb-font-family",Gt),We=ut.extend("--ft-typography-breadcrumb-font-size",Qt.fontSize,"10px"),He=ut.extend("--ft-typography-breadcrumb-font-weight",Qt.fontWeight,"normal"),Ke=ut.extend("--ft-typography-breadcrumb-letter-spacing",Qt.letterSpacing,"0.33px"),Ze=ut.extend("--ft-typography-breadcrumb-line-height",Qt.lineHeight,"1.6"),Ve=ut.extend("--ft-typography-breadcrumb-text-transform",Qt.textTransform,"inherit"),Je=ut.extend("--ft-typography-overline-font-family",Gt),qe=ut.extend("--ft-typography-overline-font-size",Qt.fontSize,"10px"),Xe=ut.extend("--ft-typography-overline-font-weight",Qt.fontWeight,"normal"),Ye=ut.extend("--ft-typography-overline-letter-spacing",Qt.letterSpacing,"1.5px"),Ge=ut.extend("--ft-typography-overline-line-height",Qt.lineHeight,"1.6"),Qe=ut.extend("--ft-typography-overline-text-transform",Qt.textTransform,"uppercase"),ti={fontFamily:ut.extend("--ft-typography-button-font-family",Gt),fontSize:ut.extend("--ft-typography-button-font-size",Qt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",Qt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",Qt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",Qt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",Qt.textTransform,"uppercase")},ei=b`
234
+ const Zt=Symbol.for(""),Vt=t=>{if((null==t?void 0:t.r)===Zt)return null==t?void 0:t._$litStatic$},Jt=t=>({_$litStatic$:t,r:Zt}),qt=new Map,Xt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=Vt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=qt.get(t))&&(s.raw=s,qt.set(t,e=s)),i=a}return t(e,...i)})(V);var Yt;!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"}(Yt||(Yt={}));const Gt=ut.extend("--ft-typography-font-family",yt.titleFont),Qt=ut.extend("--ft-typography-font-family",yt.contentFont),te={fontFamily:Qt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},ee=ut.extend("--ft-typography-title-font-family",Gt),ie=ut.extend("--ft-typography-title-font-size",te.fontSize,"20px"),oe=ut.extend("--ft-typography-title-font-weight",te.fontWeight,"normal"),ne=ut.extend("--ft-typography-title-letter-spacing",te.letterSpacing,"0.15px"),re=ut.extend("--ft-typography-title-line-height",te.lineHeight,"1.2"),se=ut.extend("--ft-typography-title-text-transform",te.textTransform,"inherit"),ae=ut.extend("--ft-typography-title-dense-font-family",Gt),le=ut.extend("--ft-typography-title-dense-font-size",te.fontSize,"14px"),he=ut.extend("--ft-typography-title-dense-font-weight",te.fontWeight,"normal"),ce=ut.extend("--ft-typography-title-dense-letter-spacing",te.letterSpacing,"0.105px"),pe=ut.extend("--ft-typography-title-dense-line-height",te.lineHeight,"1.7"),fe=ut.extend("--ft-typography-title-dense-text-transform",te.textTransform,"inherit"),de=ut.extend("--ft-typography-subtitle1-font-family",Qt),ue=ut.extend("--ft-typography-subtitle1-font-size",te.fontSize,"16px"),ve=ut.extend("--ft-typography-subtitle1-font-weight",te.fontWeight,"600"),ye=ut.extend("--ft-typography-subtitle1-letter-spacing",te.letterSpacing,"0.144px"),be=ut.extend("--ft-typography-subtitle1-line-height",te.lineHeight,"1.5"),xe=ut.extend("--ft-typography-subtitle1-text-transform",te.textTransform,"inherit"),ge=ut.extend("--ft-typography-subtitle2-font-family",Qt),me=ut.extend("--ft-typography-subtitle2-font-size",te.fontSize,"14px"),we=ut.extend("--ft-typography-subtitle2-font-weight",te.fontWeight,"normal"),$e=ut.extend("--ft-typography-subtitle2-letter-spacing",te.letterSpacing,"0.098px"),Oe=ut.extend("--ft-typography-subtitle2-line-height",te.lineHeight,"1.7"),Se=ut.extend("--ft-typography-subtitle2-text-transform",te.textTransform,"inherit"),ke=ut.extend("--ft-typography-body1-font-family",Qt),Ce=ut.extend("--ft-typography-body1-font-size",te.fontSize,"16px"),Ne=ut.extend("--ft-typography-body1-font-weight",te.fontWeight,"normal"),Ee=ut.extend("--ft-typography-body1-letter-spacing",te.letterSpacing,"0.496px"),Re=ut.extend("--ft-typography-body1-line-height",te.lineHeight,"1.5"),Me=ut.extend("--ft-typography-body1-text-transform",te.textTransform,"inherit"),je=ut.extend("--ft-typography-body2-font-family",Qt),Fe=ut.extend("--ft-typography-body2-font-size",te.fontSize,"14px"),Ue=ut.extend("--ft-typography-body2-font-weight",te.fontWeight,"normal"),ze=ut.extend("--ft-typography-body2-letter-spacing",te.letterSpacing,"0.252px"),Be=ut.extend("--ft-typography-body2-line-height",te.lineHeight,"1.4"),Te=ut.extend("--ft-typography-body2-text-transform",te.textTransform,"inherit"),Ae=ut.extend("--ft-typography-caption-font-family",Qt),Le=ut.extend("--ft-typography-caption-font-size",te.fontSize,"12px"),Pe=ut.extend("--ft-typography-caption-font-weight",te.fontWeight,"normal"),_e=ut.extend("--ft-typography-caption-letter-spacing",te.letterSpacing,"0.396px"),De=ut.extend("--ft-typography-caption-line-height",te.lineHeight,"1.33"),Ie=ut.extend("--ft-typography-caption-text-transform",te.textTransform,"inherit"),We=ut.extend("--ft-typography-breadcrumb-font-family",Qt),He=ut.extend("--ft-typography-breadcrumb-font-size",te.fontSize,"10px"),Ke=ut.extend("--ft-typography-breadcrumb-font-weight",te.fontWeight,"normal"),Ze=ut.extend("--ft-typography-breadcrumb-letter-spacing",te.letterSpacing,"0.33px"),Ve=ut.extend("--ft-typography-breadcrumb-line-height",te.lineHeight,"1.6"),Je=ut.extend("--ft-typography-breadcrumb-text-transform",te.textTransform,"inherit"),qe=ut.extend("--ft-typography-overline-font-family",Qt),Xe=ut.extend("--ft-typography-overline-font-size",te.fontSize,"10px"),Ye=ut.extend("--ft-typography-overline-font-weight",te.fontWeight,"normal"),Ge=ut.extend("--ft-typography-overline-letter-spacing",te.letterSpacing,"1.5px"),Qe=ut.extend("--ft-typography-overline-line-height",te.lineHeight,"1.6"),ti=ut.extend("--ft-typography-overline-text-transform",te.textTransform,"uppercase"),ei={fontFamily:ut.extend("--ft-typography-button-font-family",Qt),fontSize:ut.extend("--ft-typography-button-font-size",te.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",te.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",te.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",te.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",te.textTransform,"uppercase")},ii=b`
235
235
  .ft-typography--title {
236
- font-family: ${te};
237
- font-size: ${ee};
238
- font-weight: ${ie};
239
- letter-spacing: ${oe};
240
- line-height: ${ne};
241
- text-transform: ${re};
242
- }
243
- `,ii=b`
244
- .ft-typography--title-dense {
245
- font-family: ${se};
246
- font-size: ${ae};
247
- font-weight: ${le};
248
- letter-spacing: ${he};
249
- line-height: ${ce};
250
- text-transform: ${pe};
236
+ font-family: ${ee};
237
+ font-size: ${ie};
238
+ font-weight: ${oe};
239
+ letter-spacing: ${ne};
240
+ line-height: ${re};
241
+ text-transform: ${se};
251
242
  }
252
243
  `,oi=b`
253
- .ft-typography--subtitle1 {
254
- font-family: ${fe};
255
- font-size: ${de};
256
- font-weight: ${ue};
257
- letter-spacing: ${ve};
258
- line-height: ${ye};
259
- text-transform: ${be};
244
+ .ft-typography--title-dense {
245
+ font-family: ${ae};
246
+ font-size: ${le};
247
+ font-weight: ${he};
248
+ letter-spacing: ${ce};
249
+ line-height: ${pe};
250
+ text-transform: ${fe};
260
251
  }
261
252
  `,ni=b`
262
- .ft-typography--subtitle2 {
263
- font-family: ${xe};
264
- font-size: ${ge};
265
- font-weight: ${me};
266
- letter-spacing: ${we};
267
- line-height: ${$e};
268
- text-transform: ${Oe};
253
+ .ft-typography--subtitle1 {
254
+ font-family: ${de};
255
+ font-size: ${ue};
256
+ font-weight: ${ve};
257
+ letter-spacing: ${ye};
258
+ line-height: ${be};
259
+ text-transform: ${xe};
269
260
  }
270
-
271
261
  `,ri=b`
272
- .ft-typography--body1 {
273
- font-family: ${Se};
274
- font-size: ${ke};
275
- font-weight: ${Ce};
276
- letter-spacing: ${Ne};
277
- line-height: ${Ee};
278
- text-transform: ${Re};
262
+ .ft-typography--subtitle2 {
263
+ font-family: ${ge};
264
+ font-size: ${me};
265
+ font-weight: ${we};
266
+ letter-spacing: ${$e};
267
+ line-height: ${Oe};
268
+ text-transform: ${Se};
279
269
  }
270
+
280
271
  `,si=b`
281
- .ft-typography--body2 {
282
- font-family: ${Me};
283
- font-size: ${je};
284
- font-weight: ${Fe};
285
- letter-spacing: ${Ue};
286
- line-height: ${ze};
287
- text-transform: ${Be};
272
+ .ft-typography--body1 {
273
+ font-family: ${ke};
274
+ font-size: ${Ce};
275
+ font-weight: ${Ne};
276
+ letter-spacing: ${Ee};
277
+ line-height: ${Re};
278
+ text-transform: ${Me};
288
279
  }
289
280
  `,ai=b`
290
- .ft-typography--caption {
291
- font-family: ${Te};
292
- font-size: ${Ae};
293
- font-weight: ${Le};
294
- letter-spacing: ${Pe};
295
- line-height: ${_e};
296
- text-transform: ${De};
281
+ .ft-typography--body2 {
282
+ font-family: ${je};
283
+ font-size: ${Fe};
284
+ font-weight: ${Ue};
285
+ letter-spacing: ${ze};
286
+ line-height: ${Be};
287
+ text-transform: ${Te};
297
288
  }
298
289
  `,li=b`
299
- .ft-typography--breadcrumb {
300
- font-family: ${Ie};
301
- font-size: ${We};
302
- font-weight: ${He};
303
- letter-spacing: ${Ke};
304
- line-height: ${Ze};
305
- text-transform: ${Ve};
290
+ .ft-typography--caption {
291
+ font-family: ${Ae};
292
+ font-size: ${Le};
293
+ font-weight: ${Pe};
294
+ letter-spacing: ${_e};
295
+ line-height: ${De};
296
+ text-transform: ${Ie};
306
297
  }
307
298
  `,hi=b`
308
- .ft-typography--overline {
309
- font-family: ${Je};
310
- font-size: ${qe};
311
- font-weight: ${Xe};
312
- letter-spacing: ${Ye};
313
- line-height: ${Ge};
314
- text-transform: ${Qe};
299
+ .ft-typography--breadcrumb {
300
+ font-family: ${We};
301
+ font-size: ${He};
302
+ font-weight: ${Ke};
303
+ letter-spacing: ${Ze};
304
+ line-height: ${Ve};
305
+ text-transform: ${Je};
315
306
  }
316
307
  `,ci=b`
317
- .ft-typography--button {
318
- font-family: ${ti.fontFamily};
319
- font-size: ${ti.fontSize};
320
- font-weight: ${ti.fontWeight};
321
- letter-spacing: ${ti.letterSpacing};
322
- line-height: ${ti.lineHeight};
323
- text-transform: ${ti.textTransform};
308
+ .ft-typography--overline {
309
+ font-family: ${qe};
310
+ font-size: ${Xe};
311
+ font-weight: ${Ye};
312
+ letter-spacing: ${Ge};
313
+ line-height: ${Qe};
314
+ text-transform: ${ti};
324
315
  }
325
316
  `,pi=b`
317
+ .ft-typography--button {
318
+ font-family: ${ei.fontFamily};
319
+ font-size: ${ei.fontSize};
320
+ font-weight: ${ei.fontWeight};
321
+ letter-spacing: ${ei.letterSpacing};
322
+ line-height: ${ei.lineHeight};
323
+ text-transform: ${ei.textTransform};
324
+ }
325
+ `,fi=b`
326
326
  .ft-typography {
327
327
  vertical-align: inherit;
328
328
  }
329
- `;var fi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class di extends xt{constructor(){super(...arguments),this.variant=Xt.body1}render(){return this.element?qt`
330
- <${Vt(this.element)}
329
+ `;var di=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ui extends xt{constructor(){super(...arguments),this.variant=Yt.body1}render(){return this.element?Xt`
330
+ <${Jt(this.element)}
331
331
  class="ft-typography ft-typography--${this.variant}">
332
332
  <slot></slot>
333
- </${Vt(this.element)}>
334
- `:qt`
333
+ </${Jt(this.element)}>
334
+ `:Xt`
335
335
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
336
- `}}di.styles=[ei,ii,oi,ni,ri,si,ai,li,hi,ci,pi],fi([o()],di.prototype,"element",void 0),fi([o()],di.prototype,"variant",void 0),h("ft-typography")(di);const ui=ut.create("--ft-tooltip-distance","SIZE","4px"),vi=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),yi=ut.create("--ft-tooltip-background-color","COLOR","#666666"),bi=ut.create("--ft-tooltip-z-index","NUMBER","1"),xi=ut.external(yt.borderRadiusS,"Design system"),gi=ut.create("--ft-tooltip-max-width","SIZE","150px"),mi=b`
336
+ `}}ui.styles=[ii,oi,ni,ri,si,ai,li,hi,ci,pi,fi],di([o()],ui.prototype,"element",void 0),di([o()],ui.prototype,"variant",void 0),h("ft-typography")(ui);const vi=ut.create("--ft-tooltip-distance","SIZE","4px"),yi=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),bi=ut.create("--ft-tooltip-background-color","COLOR","#666666"),xi=ut.create("--ft-tooltip-z-index","NUMBER","1"),gi=ut.external(yt.borderRadiusS,"Design system"),mi=ut.create("--ft-tooltip-max-width","SIZE","150px"),wi=b`
337
337
  .ft-tooltip--container {
338
338
  display: block;
339
339
  position: relative;
@@ -349,23 +349,23 @@ const Kt=Symbol.for(""),Zt=t=>{if((null==t?void 0:t.r)===Kt)return null==t?void
349
349
  box-sizing: border-box;
350
350
  overflow: hidden;
351
351
  width: max-content;
352
- max-width: ${gi};
352
+ max-width: ${mi};
353
353
  text-align: center;
354
- padding: ${ui};
355
- z-index: ${bi};
354
+ padding: ${vi};
355
+ z-index: ${xi};
356
356
  }
357
357
 
358
358
  .ft-tooltip--content {
359
359
  padding: 4px 8px;
360
- border-radius: ${xi};
361
- background-color: ${yi};
362
- color: ${vi};
360
+ border-radius: ${gi};
361
+ background-color: ${bi};
362
+ color: ${yi};
363
363
  top: -500px;
364
364
  left: -500px;
365
365
  position: relative;
366
366
  word-break: break-word;
367
367
  }
368
- `;var wi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class $i extends xt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return V`
368
+ `;var $i=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Oi extends xt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return V`
369
369
  <div part="container"
370
370
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
371
371
  @mouseenter=${this.onHover}
@@ -383,13 +383,13 @@ const Kt=Symbol.for(""),Zt=t=>{if((null==t?void 0:t.r)===Kt)return null==t?void
383
383
  </div>
384
384
  </div>
385
385
  </div>
386
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${gi})`}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())}}$i.elementDefinitions={"ft-typography":di},$i.styles=mi,wi([o()],$i.prototype,"text",void 0),wi([o({type:Boolean})],$i.prototype,"manual",void 0),wi([o({type:Boolean})],$i.prototype,"inline",void 0),wi([o({type:Number})],$i.prototype,"delay",void 0),wi([o()],$i.prototype,"position",void 0),wi([
386
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${mi})`}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())}}Oi.elementDefinitions={"ft-typography":ui},Oi.styles=wi,$i([o()],Oi.prototype,"text",void 0),$i([o({type:Boolean})],Oi.prototype,"manual",void 0),$i([o({type:Boolean})],Oi.prototype,"inline",void 0),$i([o({type:Number})],Oi.prototype,"delay",void 0),$i([o()],Oi.prototype,"position",void 0),$i([
387
387
  /**
388
388
  * @license
389
389
  * Copyright 2017 Google LLC
390
390
  * SPDX-License-Identifier: BSD-3-Clause
391
391
  */
392
- function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],$i.prototype,"slotNodes",void 0),wi([s(".ft-tooltip--container")],$i.prototype,"container",void 0),wi([s("slot")],$i.prototype,"target",void 0),wi([s(".ft-tooltip")],$i.prototype,"tooltip",void 0),wi([s(".ft-tooltip--content")],$i.prototype,"tooltipContent",void 0),wi([n()],$i.prototype,"visible",void 0),h("ft-tooltip")($i);const Oi={color:ut.extend("--ft-loader-color",yt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},Si=b`
392
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Oi.prototype,"slotNodes",void 0),$i([s(".ft-tooltip--container")],Oi.prototype,"container",void 0),$i([s("slot")],Oi.prototype,"target",void 0),$i([s(".ft-tooltip")],Oi.prototype,"tooltip",void 0),$i([s(".ft-tooltip--content")],Oi.prototype,"tooltipContent",void 0),$i([n()],Oi.prototype,"visible",void 0),h("ft-tooltip")(Oi);const Si={color:ut.extend("--ft-loader-color",yt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},ki=b`
393
393
  :host {
394
394
  line-height: 0;
395
395
  }
@@ -398,8 +398,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
398
398
  display: inline-block;
399
399
  position: relative;
400
400
 
401
- width: ${Oi.size};
402
- height: ${Oi.size};
401
+ width: ${Si.size};
402
+ height: ${Si.size};
403
403
  }
404
404
 
405
405
  .ft-loader div {
@@ -408,7 +408,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
408
408
  width: 25%;
409
409
  height: 25%;
410
410
  border-radius: 50%;
411
- background: ${Oi.color};
411
+ background: ${Si.color};
412
412
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
413
413
  }
414
414
 
@@ -455,23 +455,23 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
455
455
  transform: translate(0, 0);
456
456
  }
457
457
  100% {
458
- transform: translate(calc(0.35 * ${Oi.size}), 0);
458
+ transform: translate(calc(0.35 * ${Si.size}), 0);
459
459
  }
460
460
  }
461
- `;class ki extends xt{render(){return V`
461
+ `;class Ci extends xt{render(){return V`
462
462
  <div class="ft-loader">
463
463
  <div></div>
464
464
  <div></div>
465
465
  <div></div>
466
466
  <div></div>
467
467
  </div>
468
- `}}ki.styles=Si,h("ft-loader")(ki);
468
+ `}}Ci.styles=ki,h("ft-loader")(Ci);
469
469
  /**
470
470
  * @license
471
471
  * Copyright 2017 Google LLC
472
472
  * SPDX-License-Identifier: BSD-3-Clause
473
473
  */
474
- class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ci.directiveName="unsafeHTML",Ci.resultType=1;const Ni=jt(Ci);var Ei,Ri;!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.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.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.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;"}(Ei||(Ei={})),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;"}(Ri||(Ri={})),new Map([...["abw"].map((t=>[t,Ri.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,Ri.AUDIO])),...["avi"].map((t=>[t,Ri.AVI])),...["chm","xhs"].map((t=>[t,Ri.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,Ri.CODE])),...["csv"].map((t=>[t,Ri.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ri.DITA])),...["epub"].map((t=>[t,Ri.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ri.EXCEL])),...["flac"].map((t=>[t,Ri.FLAC])),...["gif"].map((t=>[t,Ri.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ri.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ri.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,Ri.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ri.JPEG])),...["json"].map((t=>[t,Ri.JSON])),...["m4a","m4p"].map((t=>[t,Ri.M4A])),...["mov","qt"].map((t=>[t,Ri.MOV])),...["mp3"].map((t=>[t,Ri.MP3])),...["mp4","m4v"].map((t=>[t,Ri.MP4])),...["ogg","oga"].map((t=>[t,Ri.OGG])),...["pdf","ps"].map((t=>[t,Ri.PDF])),...["png"].map((t=>[t,Ri.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ri.POWERPOINT])),...["rar"].map((t=>[t,Ri.RAR])),...["stp"].map((t=>[t,Ri.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ri.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,Ri.VIDEO])),...["wav"].map((t=>[t,Ri.WAV])),...["wma"].map((t=>[t,Ri.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ri.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ri.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ri.YAML])),...["zip"].map((t=>[t,Ri.ZIP]))]);const Mi={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")},ji=b`
474
+ class Ni extends Ut{constructor(t){if(super(t),this.it=q,t.type!==jt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ni.directiveName="unsafeHTML",Ni.resultType=1;const Ei=Ft(Ni);var Ri,Mi;!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.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.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.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;"}(Ri||(Ri={})),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;"}(Mi||(Mi={})),new Map([...["abw"].map((t=>[t,Mi.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,Mi.AUDIO])),...["avi"].map((t=>[t,Mi.AVI])),...["chm","xhs"].map((t=>[t,Mi.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,Mi.CODE])),...["csv"].map((t=>[t,Mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Mi.DITA])),...["epub"].map((t=>[t,Mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Mi.EXCEL])),...["flac"].map((t=>[t,Mi.FLAC])),...["gif"].map((t=>[t,Mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Mi.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,Mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Mi.JPEG])),...["json"].map((t=>[t,Mi.JSON])),...["m4a","m4p"].map((t=>[t,Mi.M4A])),...["mov","qt"].map((t=>[t,Mi.MOV])),...["mp3"].map((t=>[t,Mi.MP3])),...["mp4","m4v"].map((t=>[t,Mi.MP4])),...["ogg","oga"].map((t=>[t,Mi.OGG])),...["pdf","ps"].map((t=>[t,Mi.PDF])),...["png"].map((t=>[t,Mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Mi.POWERPOINT])),...["rar"].map((t=>[t,Mi.RAR])),...["stp"].map((t=>[t,Mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Mi.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,Mi.VIDEO])),...["wav"].map((t=>[t,Mi.WAV])),...["wma"].map((t=>[t,Mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Mi.YAML])),...["zip"].map((t=>[t,Mi.ZIP]))]);const ji={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")},Fi=b`
475
475
  :host, i.ft-icon {
476
476
  display: inline-flex;
477
477
  align-items: center;
@@ -480,14 +480,14 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
480
480
  }
481
481
 
482
482
  :host {
483
- width: ${Mi.size};
484
- height: ${Mi.size};
483
+ width: ${ji.size};
484
+ height: ${ji.size};
485
485
  }
486
486
 
487
487
  i.ft-icon {
488
488
  width: 100%;
489
489
  height: 100%;
490
- font-size: ${Mi.size};
490
+ font-size: ${ji.size};
491
491
  line-height: 1;
492
492
  font-weight: normal;
493
493
  text-transform: none;
@@ -498,32 +498,32 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
498
498
  text-rendering: auto;
499
499
  -webkit-font-smoothing: antialiased;
500
500
  -moz-osx-font-smoothing: grayscale;
501
- vertical-align: ${Mi.verticalAlign};
501
+ vertical-align: ${ji.verticalAlign};
502
502
  }
503
503
 
504
504
  i.ft-icon.ft-icon--fluid-topics {
505
- font-family: ${Mi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
505
+ font-family: ${ji.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
506
506
 
507
507
  /* Ugly fix because font is broken */
508
- font-size: calc(0.9 * ${Mi.size});
508
+ font-size: calc(0.9 * ${ji.size});
509
509
  position: relative;
510
510
  top: -5%;
511
511
  justify-content: center;
512
512
  }
513
513
 
514
514
  .ft-icon--file-format {
515
- font-family: ${Mi.fileFormatFontFamily}, ft-mime, sans-serif;
515
+ font-family: ${ji.fileFormatFontFamily}, ft-mime, sans-serif;
516
516
  }
517
517
 
518
518
  .ft-icon--material {
519
- font-family: ${Mi.materialFontFamily}, "Material Icons", sans-serif;
519
+ font-family: ${ji.materialFontFamily}, "Material Icons", sans-serif;
520
520
  }
521
- `;var Fi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Fi||(Fi={}));var Ui=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zi extends xt{constructor(){super(...arguments),this.variant=Fi.fluid_topics,this.resolvedIcon=q}render(){const t="material"!==this.variant||this.value;return V`
521
+ `;var Ui;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ui||(Ui={}));var zi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Bi extends xt{constructor(){super(...arguments),this.variant=Ui.fluid_topics,this.resolvedIcon=q}render(){const t="material"!==this.variant||this.value;return V`
522
522
  <i class="ft-icon ${"ft-icon--"+this.variant}">
523
- ${Ni(this.resolvedIcon)}
523
+ ${Ei(this.resolvedIcon)}
524
524
  <slot ?hidden=${t}></slot>
525
525
  </i>
526
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Fi.file_format:this.resolvedIcon=null!==(t=Ri[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Fi.fluid_topics:this.resolvedIcon=null!==(e=Ei[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}zi.elementDefinitions={},zi.styles=ji,Ui([o()],zi.prototype,"variant",void 0),Ui([o()],zi.prototype,"value",void 0),Ui([n()],zi.prototype,"resolvedIcon",void 0),Ui([s("slot")],zi.prototype,"slottedContent",void 0),h("ft-icon")(zi);const Bi=ut.extend("--ft-button-color",yt.colorPrimary),Ti={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Bi,fontSize:ut.extend("--ft-button-font-size",ti.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Bi),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},Ai=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),Li={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:Ai,rippleColor:ut.extend("--ft-button-primary-ripple-color",Ai)},Pi=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM)),_i=[gt,b`
526
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ui.file_format:this.resolvedIcon=null!==(t=Mi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ui.fluid_topics:this.resolvedIcon=null!==(e=Ri[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Bi.elementDefinitions={},Bi.styles=Fi,zi([o()],Bi.prototype,"variant",void 0),zi([o()],Bi.prototype,"value",void 0),zi([n()],Bi.prototype,"resolvedIcon",void 0),zi([s("slot")],Bi.prototype,"slottedContent",void 0),h("ft-icon")(Bi);const Ti=ut.extend("--ft-button-color",yt.colorPrimary),Ai={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Ti,fontSize:ut.extend("--ft-button-font-size",ei.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Ti),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},Li=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),Pi={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:Li,rippleColor:ut.extend("--ft-button-primary-ripple-color",Li)},_i=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM)),Di=[gt,b`
527
527
  :host {
528
528
  display: inline-block;
529
529
  max-width: 100%;
@@ -534,7 +534,7 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
534
534
  box-shadow: 0px 0px 0px transparent;
535
535
  border: 0px solid transparent;
536
536
  text-shadow: 0px 0px 0px transparent;
537
- font-size: ${Ti.fontSize};
537
+ font-size: ${Ai.fontSize};
538
538
  }
539
539
 
540
540
  button:hover {
@@ -563,17 +563,17 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
563
563
  border: none;
564
564
  pointer-events: auto;
565
565
 
566
- --ft-button-internal-line-height: calc(${Ti.fontSize} + 2px);
567
- --ft-button-internal-color: ${Ti.color};
568
- ${vt(Mi.size,Ti.iconSize)};
566
+ --ft-button-internal-line-height: calc(${Ai.fontSize} + 2px);
567
+ --ft-button-internal-color: ${Ai.color};
568
+ ${vt(ji.size,Ai.iconSize)};
569
569
  --ft-button-internal-vertical-padding: 6px;
570
570
  --ft-button-internal-horizontal-padding: 8px;
571
- ${vt(Bt.color,Ti.rippleColor)};
572
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ti.iconSize});
571
+ ${vt(Tt.color,Ai.rippleColor)};
572
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ai.iconSize});
573
573
 
574
- border-radius: ${Ti.borderRadius};
574
+ border-radius: ${Ai.borderRadius};
575
575
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
576
- background-color: ${Ti.backgroundColor};
576
+ background-color: ${Ai.backgroundColor};
577
577
  color: var(--ft-button-internal-color);
578
578
  -webkit-mask-image: radial-gradient(white, black);
579
579
  }
@@ -585,7 +585,7 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
585
585
  .ft-button--dense {
586
586
  --ft-button-internal-vertical-padding: 2px;
587
587
  --ft-button-internal-horizontal-padding: 4px;
588
- border-radius: ${Pi};
588
+ border-radius: ${_i};
589
589
  }
590
590
 
591
591
  .ft-button--round {
@@ -594,13 +594,13 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
594
594
 
595
595
  .ft-button[disabled] {
596
596
  filter: grayscale(1);
597
- opacity: ${Ti.opacityDisabled};
597
+ opacity: ${Ai.opacityDisabled};
598
598
  }
599
599
 
600
600
  .ft-button.ft-button--primary {
601
- background-color: ${Li.backgroundColor};
602
- --ft-button-internal-color: ${Li.color};
603
- ${vt(Bt.color,Li.rippleColor)};
601
+ background-color: ${Pi.backgroundColor};
602
+ --ft-button-internal-color: ${Pi.color};
603
+ ${vt(Tt.color,Pi.rippleColor)};
604
604
  }
605
605
 
606
606
  .ft-button.ft-button--outlined {
@@ -619,8 +619,8 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
619
619
  text-overflow: ellipsis;
620
620
  display: block;
621
621
  margin: 0 var(--ft-button-internal-horizontal-padding);
622
- ${vt(ti.fontSize,"1em")};
623
- ${vt(ti.lineHeight,"var(--ft-button-internal-content-height)")};
622
+ ${vt(ei.fontSize,"1em")};
623
+ ${vt(ei.lineHeight,"var(--ft-button-internal-content-height)")};
624
624
  }
625
625
 
626
626
  .ft-button--safari-fix .ft-button--label {
@@ -653,12 +653,12 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
653
653
  }
654
654
 
655
655
  ft-loader {
656
- ${vt(Oi.size,Ti.iconSize)};
657
- ${vt(Oi.color,"var(--ft-button-internal-color)")};
656
+ ${vt(Si.size,Ai.iconSize)};
657
+ ${vt(Si.color,"var(--ft-button-internal-color)")};
658
658
  }
659
- `];var Di=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ii extends xt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Fi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":kt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
659
+ `];var Ii=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wi extends xt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ui.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":Ct,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
660
660
  <button part="button"
661
- class="${Ut(t)}"
661
+ class="${zt(t)}"
662
662
  aria-label="${this.getLabel()}"
663
663
  ?disabled=${this.isDisabled()}>
664
664
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -679,13 +679,13 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
679
679
  </ft-tooltip>
680
680
  `:t}resolveIcon(){return this.loading?V`
681
681
  <ft-loader></ft-loader> `:this.icon?V`
682
- <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ii.elementDefinitions={"ft-ripple":Ht,"ft-tooltip":$i,"ft-typography":di,"ft-icon":zi,"ft-loader":ki},Ii.styles=_i,Di([o({type:Boolean})],Ii.prototype,"primary",void 0),Di([o({type:Boolean})],Ii.prototype,"outlined",void 0),Di([o({type:Boolean})],Ii.prototype,"disabled",void 0),Di([o({type:Boolean})],Ii.prototype,"dense",void 0),Di([o({type:Boolean})],Ii.prototype,"round",void 0),Di([o({type:String})],Ii.prototype,"label",void 0),Di([o({type:String})],Ii.prototype,"icon",void 0),Di([o({type:String})],Ii.prototype,"iconVariant",void 0),Di([o({type:Boolean})],Ii.prototype,"trailingIcon",void 0),Di([o({type:Boolean})],Ii.prototype,"loading",void 0),Di([o({type:String})],Ii.prototype,"tooltipPosition",void 0),Di([o({type:Boolean})],Ii.prototype,"hideTooltip",void 0),Di([o({type:Boolean})],Ii.prototype,"forceTooltip",void 0),Di([s(".ft-button")],Ii.prototype,"button",void 0),Di([s(".ft-button--label slot")],Ii.prototype,"slottedContent",void 0),h("ft-button")(Ii);var Wi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Hi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Ki extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Hi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Wi([n()],e.prototype,"stateManager",void 0),e}(mt)){}var Zi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Vi extends Ki{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Ut({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return V`
682
+ <ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Wi.elementDefinitions={"ft-ripple":Kt,"ft-tooltip":Oi,"ft-typography":ui,"ft-icon":Bi,"ft-loader":Ci},Wi.styles=Di,Ii([o({type:Boolean})],Wi.prototype,"primary",void 0),Ii([o({type:Boolean})],Wi.prototype,"outlined",void 0),Ii([o({type:Boolean})],Wi.prototype,"disabled",void 0),Ii([o({type:Boolean})],Wi.prototype,"dense",void 0),Ii([o({type:Boolean})],Wi.prototype,"round",void 0),Ii([o({type:String})],Wi.prototype,"label",void 0),Ii([o({type:String})],Wi.prototype,"icon",void 0),Ii([o({type:String})],Wi.prototype,"iconVariant",void 0),Ii([o({type:Boolean})],Wi.prototype,"trailingIcon",void 0),Ii([o({type:Boolean})],Wi.prototype,"loading",void 0),Ii([o({type:String})],Wi.prototype,"tooltipPosition",void 0),Ii([o({type:Boolean})],Wi.prototype,"hideTooltip",void 0),Ii([o({type:Boolean})],Wi.prototype,"forceTooltip",void 0),Ii([s(".ft-button")],Wi.prototype,"button",void 0),Ii([s(".ft-button--label slot")],Wi.prototype,"slottedContent",void 0),h("ft-button")(Wi);var Hi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ki extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Zi extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Ki)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Hi([n()],e.prototype,"stateManager",void 0),e}(wt)){}var Vi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ji extends Zi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=zt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return V`
683
683
  <a class=${e}
684
684
  href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
685
685
  @click=${t=>this.onLinkClick(t)}>
686
686
  <slot></slot>
687
687
  </a>
688
- `}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}Vi.styles=Nt,Zi([o()],Vi.prototype,"tocId",void 0),Zi([o()],Vi.prototype,"section",void 0),Zi([o({type:Number})],Vi.prototype,"pageNumber",void 0),Zi([o({type:Boolean})],Vi.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(Vi);var Ji=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class qi extends Ki{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=Fi.fluid_topics,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new e(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Ei.THIN_ARROW_RIGHT:Ei.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return q;const r=V`
688
+ `}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}Ji.styles=Et,Vi([o()],Ji.prototype,"tocId",void 0),Vi([o()],Ji.prototype,"section",void 0),Vi([o({type:Number})],Ji.prototype,"pageNumber",void 0),Vi([o({type:Boolean})],Ji.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(Ji);var qi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Xi extends Zi{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=Ui.fluid_topics,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new e(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Ri.THIN_ARROW_RIGHT:Ri.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return q;const r=V`
689
689
  <ft-button ?forceTooltip=${!this.hideTooltip}
690
690
  ?hideTooltip=${this.hideTooltip}
691
691
  ?trailingIcon=${this.trailingIcon}
@@ -699,4 +699,4 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
699
699
  <ft-reader-internal-link .tocId=${null===(n=this.targetPage)||void 0===n?void 0:n.rootTocId} removestyle>
700
700
  ${r}
701
701
  </ft-reader-internal-link>
702
- `}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}qi.elementDefinitions={"ft-button":Ii,"ft-reader-internal-link":Vi},qi.styles=Et,Ji([o()],qi.prototype,"target",void 0),Ji([o()],qi.prototype,"content",void 0),Ji([o()],qi.prototype,"tooltipPosition",void 0),Ji([o({type:Boolean})],qi.prototype,"hideTooltip",void 0),Ji([o()],qi.prototype,"iconVariant",void 0),Ji([o()],qi.prototype,"icon",void 0),Ji([o({type:Boolean})],qi.prototype,"trailingIcon",void 0),Ji([o({type:Boolean,attribute:!1})],qi.prototype,"editorMode",void 0),Ji([((t,e)=>{var i;const o="function"==typeof t?{}:null!=t?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!c(t,e),(i,n)=>{var r;i.constructor.createProperty(n,{attribute:!1,hasChanged:e});const s=i;s.reduxProperties=s.reduxProperties||new Map;const a=null!==(r="function"==typeof t?t:o.selector)&&void 0!==r?r:t=>t[n];s.reduxProperties.set(n,{selector:a,store:o.store})}})()],qi.prototype,"currentPage",void 0),Ji([n()],qi.prototype,"targetPage",void 0),h("ft-reader-navigation-button")(qi),t.FtReaderNavigationButton=qi,t.FtReaderNavigationButtonCssVariables={},t.styles=Et,Object.defineProperty(t,"i",{value:!0})}({});
702
+ `}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}Xi.elementDefinitions={"ft-button":Wi,"ft-reader-internal-link":Ji},Xi.styles=Rt,qi([o()],Xi.prototype,"target",void 0),qi([o()],Xi.prototype,"content",void 0),qi([o()],Xi.prototype,"tooltipPosition",void 0),qi([o({type:Boolean})],Xi.prototype,"hideTooltip",void 0),qi([o()],Xi.prototype,"iconVariant",void 0),qi([o()],Xi.prototype,"icon",void 0),qi([o({type:Boolean})],Xi.prototype,"trailingIcon",void 0),qi([o({type:Boolean,attribute:!1})],Xi.prototype,"editorMode",void 0),qi([((t,e)=>{var i;const o=mt(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!c(t,e),(i,n)=>{var r;i.constructor.createProperty(n,{attribute:!1,hasChanged:e});const s=i;s.reduxProperties=s.reduxProperties||new Map;const a=null!==(r=mt(t)?o.selector:t)&&void 0!==r?r:t=>t[n];s.reduxProperties.set(n,{selector:a,store:o.store})}})()],Xi.prototype,"currentPage",void 0),qi([n()],Xi.prototype,"targetPage",void 0),h("ft-reader-navigation-button")(Xi),t.FtReaderNavigationButton=Xi,t.FtReaderNavigationButtonCssVariables={},t.styles=Rt,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-navigation-button",
3
- "version": "0.3.52",
3
+ "version": "0.3.54",
4
4
  "description": "Button used to navigate between pages in an integrated reader context.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "0.3.52",
23
- "@fluid-topics/ft-reader-context": "0.3.52",
24
- "@fluid-topics/ft-reader-internal-link": "0.3.52",
25
- "@fluid-topics/ft-tooltip": "0.3.52",
26
- "@fluid-topics/ft-wc-utils": "0.3.52",
22
+ "@fluid-topics/ft-button": "0.3.54",
23
+ "@fluid-topics/ft-reader-context": "0.3.54",
24
+ "@fluid-topics/ft-reader-internal-link": "0.3.54",
25
+ "@fluid-topics/ft-tooltip": "0.3.54",
26
+ "@fluid-topics/ft-wc-utils": "0.3.54",
27
27
  "lit": "2.2.8"
28
28
  },
29
- "gitHead": "746cdd6b34c2fa25220ed735914fb1dff9c0fde7"
29
+ "gitHead": "a44cb80b87fa9a6a35c255f4e37a75af484b443a"
30
30
  }