@fluid-topics/ft-search-type 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=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,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=o.call(i,t);h||(h=f(t),e.call(i,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),d(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),i.upgrade.apply(i,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=s.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=h(o)||window.customElements,r=i._getDefinition(e);return r?d(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):u(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const g=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){b.push(this),o.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(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 o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(hs){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,i)=>t((t=>{this.isCanceled?i(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?i(new e("Promise has been canceled",void 0,t)):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const i=t=>new o(((e,o)=>t.then(e).catch(o)));class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=i(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{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 o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=new WeakMap,n=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,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=o.call(i,t);h||(h=f(t),e.call(i,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),d(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),i.upgrade.apply(i,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=s.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=h(o)||window.customElements,r=i._getDefinition(e);return r?d(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):u(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const g=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){b.push(this),o.set.call(this,t),b.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(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 o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(fs){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,i)=>t((t=>{this.isCanceled?i(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?i(new e("Promise has been canceled",void 0,t)):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const i=t=>new o(((e,o)=>t.then(e).catch(o)));class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=i(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{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 o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -81,7 +81,11 @@ let $e=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
81
81
  * @license
82
82
  * Copyright 2019 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
- */class ze extends $e{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{De?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Fe.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Pe,Be=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Ke=Symbol("constructorPrototype"),Me=Symbol("constructorName"),Te=Symbol("exportpartsDebouncer");class Ze extends ze{constructor(){super(),this[Pe]=new n(5),this[Me]=this.constructor.name,this[Ke]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Me]&&Object.setPrototypeOf(this,this[Ke])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Te].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...o).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Pe=Te,Be([R()],Ze.prototype,"exportpartsPrefix",void 0),Be([z([])],Ze.prototype,"exportpartsPrefixes",void 0),Be([R()],Ze.prototype,"customStylesheet",void 0);const _e=Rt`
84
+ */class ze extends $e{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{De?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Fe.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Pe,Be=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Ke=Symbol("constructorPrototype"),Me=Symbol("constructorName"),Te=Symbol("exportpartsDebouncer");class Ze extends ze{constructor(){super(),this[Pe]=new n(5),this[Me]=this.constructor.name,this[Ke]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Me]&&Object.setPrototypeOf(this,this[Ke])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Te].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...o).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Pe=Te,Be([R()],Ze.prototype,"exportpartsPrefix",void 0),Be([z([])],Ze.prototype,"exportpartsPrefixes",void 0),Be([R()],Ze.prototype,"customStylesheet",void 0);const _e=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
85
+ .highlight-html-match {
86
+ background: ${_e};
87
+ }
88
+ `;const He=Rt`
85
89
  .ft-no-text-select {
86
90
  -webkit-touch-callout: none;
87
91
  -webkit-user-select: none;
@@ -102,7 +106,7 @@ let $e=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
102
106
  -webkit-hyphens: auto;
103
107
  hyphens: auto
104
108
  }
105
- `;const He=Rt`
109
+ `;const Ge=Rt`
106
110
  .ft-safari-ellipsis-fix {
107
111
  margin-right: 0;
108
112
 
@@ -113,108 +117,108 @@ let $e=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
113
117
  display: inline-block;
114
118
  width: 0;
115
119
  }
116
- `;class Ge{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function Ve(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var qe,Ye,Xe;const Je=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),to=Symbol("internalStores");class eo extends Ze{constructor(){super(...arguments),this[qe]=new Map,this[Ye]=new Map,this[Xe]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[to].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[to].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[to].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ve(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[to].delete(e)}setupStore(t,e){this[to].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[to].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Qe].has(t.store):this[Qe].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Qe].set(t,e.subscribe((()=>this.updateFromStores()))),Ve(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[Je].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Qe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Je].forEach((t=>t())),this[Je]=[]}unsubscribeFromStore(t){this[Qe].has(t)&&this[Qe].get(t)(),this[Qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function oo(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function io(t){return!!t&&!!t[Zo]}function ro(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===_o}(t)||Array.isArray(t)||!!t[To]||!!(null===(e=t.constructor)||void 0===e?void 0:e[To])||ho(t)||fo(t))}function no(t,e,o){void 0===o&&(o=!1),0===so(t)?(o?Object.keys:Ho)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function so(t){var e=t[Zo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ho(t)?2:fo(t)?3:0}function ao(t,e){return 2===so(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function lo(t,e,o){var i=so(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function co(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ho(t){return Po&&t instanceof Map}function fo(t){return Bo&&t instanceof Set}function po(t){return t.o||t.t}function uo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Go(t);delete e[Zo];for(var o=Ho(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function yo(t,e){return void 0===e&&(e=!1),go(t)||io(t)||!ro(t)||(so(t)>1&&(t.set=t.add=t.clear=t.delete=bo),Object.freeze(t),e&&no(t,(function(t,e){return yo(e,!0)}),!0)),t}function bo(){oo(2)}function go(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function mo(t){var e=Vo[t];return e||oo(18,t),e}function vo(){return Do}function xo(t,e){e&&(mo("Patches"),t.u=[],t.s=[],t.v=e)}function Oo(t){wo(t),t.p.forEach(No),t.p=null}function wo(t){t===Do&&(Do=t.l)}function So(t){return Do={p:[],l:Do,h:t,m:!0,_:0}}function No(t){var e=t[Zo];0===e.i||1===e.i?e.j():e.g=!0}function Co(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||mo("ES5").S(e,t,i),i?(o[Zo].P&&(Oo(e),oo(4)),ro(t)&&(t=$o(e,t),e.l||ko(e,t)),e.u&&mo("Patches").M(o[Zo].t,t,e.u,e.s)):t=$o(e,o,[]),Oo(e),e.u&&e.v(e.u,e.s),t!==Mo?t:void 0}function $o(t,e,o){if(go(e))return e;var i=e[Zo];if(!i)return no(e,(function(r,n){return Eo(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return ko(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=uo(i.k):i.o,n=r,s=!1;3===i.i&&(n=new Set(r),r.clear(),s=!0),no(n,(function(e,n){return Eo(t,i,r,e,n,o,s)})),ko(t,r,!1),o&&t.u&&mo("Patches").N(i,o,t.u,t.s)}return i.o}function Eo(t,e,o,i,r,n,s){if(io(r)){var a=$o(t,r,n&&e&&3!==e.i&&!ao(e.R,i)?n.concat(i):void 0);if(lo(o,i,a),!io(a))return;t.m=!1}else s&&o.add(r);if(ro(r)&&!go(r)){if(!t.h.D&&t._<1)return;$o(t,r),e&&e.A.l||ko(t,r)}}function ko(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&yo(e,o)}function Ro(t,e){var o=t[Zo];return(o?po(o):t)[e]}function Uo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Io(t){t.P||(t.P=!0,t.l&&Io(t.l))}function Lo(t){t.o||(t.o=uo(t.t))}function Ao(t,e,o){var i=ho(e)?mo("MapSet").F(e,o):fo(e)?mo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:vo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=qo;o&&(r=[i],n=Yo);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(e,o):mo("ES5").J(e,o);return(o?o.A:vo()).p.push(i),i}function Wo(t){return io(t)||oo(22,t),function t(e){if(!ro(e))return e;var o,i=e[Zo],r=so(e);if(i){if(!i.P&&(i.i<4||!mo("ES5").K(i)))return i.t;i.I=!0,o=jo(e,r),i.I=!1}else o=jo(e,r);return no(o,(function(e,r){i&&function(t,e){return 2===so(t)?t.get(e):t[e]}(i.t,e)===r||lo(o,e,t(r))})),3===r?new Set(o):o}(t)}function jo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return uo(t)}qe=Qe,Ye=to,Xe=Je;var Fo,Do,zo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Po="undefined"!=typeof Map,Bo="undefined"!=typeof Set,Ko="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Mo=zo?Symbol.for("immer-nothing"):((Fo={})["immer-nothing"]=!0,Fo),To=zo?Symbol.for("immer-draftable"):"__$immer_draftable",Zo=zo?Symbol.for("immer-state"):"__$immer_state",_o=""+Object.prototype.constructor,Ho="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Go=Object.getOwnPropertyDescriptors||function(t){var e={};return Ho(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Vo={},qo={get:function(t,e){if(e===Zo)return t;var o=po(t);if(!ao(o,e))return function(t,e,o){var i,r=Uo(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!ro(i)?i:i===Ro(t.t,e)?(Lo(t),t.o[e]=Ao(t.A.h,i,t)):i},has:function(t,e){return e in po(t)},ownKeys:function(t){return Reflect.ownKeys(po(t))},set:function(t,e,o){var i=Uo(po(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Ro(po(t),e),n=null==r?void 0:r[Zo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(co(o,r)&&(void 0!==o||ao(t.t,e)))return!0;Lo(t),Io(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ro(t.t,e)||e in t.t?(t.R[e]=!1,Lo(t),Io(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=po(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){oo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){oo(12)}},Yo={};no(qo,(function(t,e){Yo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Yo.deleteProperty=function(t,e){return Yo.set.call(this,t,e,void 0)},Yo.set=function(t,e,o){return qo.set.call(this,t[0],e,o,t[0])};var Xo=function(){function t(t){var e=this;this.O=Ko,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof o&&oo(6),void 0!==i&&"function"!=typeof i&&oo(7),ro(t)){var a=So(e),l=Ao(e,t,void 0),c=!0;try{s=o(l),c=!1}finally{c?Oo(a):wo(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return xo(a,i),Co(t,a)}),(function(t){throw Oo(a),t})):(xo(a,i),Co(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=o(t))&&(s=t),s===Mo&&(s=void 0),e.D&&yo(s,!0),i){var h=[],f=[];mo("Patches").M(t,s,h,f),i(h,f)}return s}oo(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){ro(t)||oo(8),io(t)&&(t=Wo(t));var e=So(this),o=Ao(this,t,void 0);return o[Zo].C=!0,wo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Zo]).A;return xo(o,e),Co(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ko&&oo(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=mo("Patches").$;return io(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Jo=new Xo,Qo=Jo.produce;function ti(t){return ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(t)}function ei(t){var e=function(t,e){if("object"!==ti(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ti(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ti(e)?e:String(e)}function oi(t,e,o){return(e=ei(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ii(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ri(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ii(Object(o),!0).forEach((function(e){oi(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ii(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ni(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Jo.produceWithPatches.bind(Jo),Jo.setAutoFreeze.bind(Jo),Jo.setUseProxies.bind(Jo),Jo.applyPatches.bind(Jo),Jo.createDraft.bind(Jo),Jo.finishDraft.bind(Jo);var si="function"==typeof Symbol&&Symbol.observable||"@@observable",ai=function(){return Math.random().toString(36).substring(7).split("").join(".")},li={INIT:"@@redux/INIT"+ai(),REPLACE:"@@redux/REPLACE"+ai(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ai()}};function ci(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ni(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ni(1));return o(ci)(t,e)}if("function"!=typeof t)throw new Error(ni(2));var r=t,n=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(ni(3));return n}function f(t){if("function"!=typeof t)throw new Error(ni(4));if(l)throw new Error(ni(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(ni(6));e=!1,c();var o=a.indexOf(t);a.splice(o,1),s=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ni(7));if(void 0===t.type)throw new Error(ni(8));if(l)throw new Error(ni(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:li.INIT}),(i={dispatch:p,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ni(10));r=t,p({type:li.REPLACE})}})[si]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ni(11));function o(){t.next&&t.next(h())}return o(),{unsubscribe:e(o)}}})[si]=function(){return this},t},i}function hi(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,s=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:li.INIT}))throw new Error(ni(12));if(void 0===o(void 0,{type:li.PROBE_UNKNOWN_ACTION()}))throw new Error(ni(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=o[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(ni(14));r[l]=f,i=i||f!==h}return(i=i||s.length!==Object.keys(t).length)?r:t}}function fi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function pi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ni(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=fi.apply(void 0,n)(o.dispatch),ri(ri({},o),{},{dispatch:i})}}}function ui(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var di=ui();di.withExtraArgument=ui;var yi,bi=di,gi=(yi=function(t,e){return yi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},yi(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}yi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),mi=function(t,e){var o,i,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},vi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},xi=Object.defineProperty,Oi=Object.defineProperties,wi=Object.getOwnPropertyDescriptors,Si=Object.getOwnPropertySymbols,Ni=Object.prototype.hasOwnProperty,Ci=Object.prototype.propertyIsEnumerable,$i=function(t,e,o){return e in t?xi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ei=function(t,e){for(var o in e||(e={}))Ni.call(e,o)&&$i(t,o,e[o]);if(Si)for(var i=0,r=Si(e);i<r.length;i++){o=r[i];Ci.call(e,o)&&$i(t,o,e[o])}return t},ki=function(t,e){return Oi(t,wi(e))},Ri="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?fi:fi.apply(null,arguments)};var Ui=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return gi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,vi([void 0],t[0].concat(this)))):new(e.bind.apply(e,vi([void 0],t.concat(this))))},e}(Array),Ii=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return gi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,vi([void 0],t[0].concat(this)))):new(e.bind.apply(e,vi([void 0],t.concat(this))))},e}(Array);function Li(t){return ro(t)?Qo(t,(function(){})):t}function Ai(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Ui;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(bi.withExtraArgument(o.extraArgument)):i.push(bi));return i}(t)}}function Wi(t){var e,o=Ai(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,s=i.middleware,a=void 0===s?o():s,l=i.devTools,c=void 0===l||l,h=i.preloadedState,f=void 0===h?void 0:h,p=i.enhancers,u=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=hi(n)}var d=a;"function"==typeof d&&(d=d(o));var y=pi.apply(void 0,d),b=fi;c&&(b=Ri(Ei({trace:!1},"object"==typeof c&&c)));var g=new Ii(y),m=g;return Array.isArray(u)?m=vi([y],u):"function"==typeof u&&(m=u(g)),ci(e,f,b.apply(void 0,m))}function ji(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Ei(Ei({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Fi(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Di(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Li(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Fi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=Ei(Ei({},r),a);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Fi(e):[e,o,i],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Li(t())};else{var c=Li(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var o=vi([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(io(t))return void 0===(i=o(t,e))?t:i;if(ro(t))return Qo(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return h.getInitialState=r,h}(i,(function(t){for(var e in h)t.addCase(e,h[e]);for(var o=0,i=s;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,s[t]=o,a[c]=o,l[t]=i?ji(c,i):ji(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:s,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var zi=["name","message","stack","code"],Pi=function(t,e){this.payload=t,this.meta=e},Bi=function(t,e){this.payload=t,this.meta=e},Ki=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=zi;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Mi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=ji(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:ki(Ei({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=ji(t+"/pending",(function(t,e,o){return{payload:void 0,meta:ki(Ei({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=ji(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Ki)(t||"Rejected"),meta:ki(Ei({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var h,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new s;function u(t){h=t,p.abort()}var d=function(){return s=this,d=null,y=function(){var s,d,y,b,g,m;return mi(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),b=null==(s=null==o?void 0:o.condition)?void 0:s.call(o,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=v.sent(),v.label=2;case 2:if(!1===b||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(f,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:p.signal,abort:u,rejectWithValue:function(t,e){return new Pi(t,e)},fulfillWithValue:function(t,e){return new Bi(t,e)}})).then((function(e){if(e instanceof Pi)throw e;return e instanceof Bi?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Pi?n(null,f,t,m.payload,m.meta):n(m,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||a(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(s,d)).next())}));var s,d,y}();return Object.assign(d,{abort:u,requestId:f,arg:t,unwrap:function(){return d.then(Mi)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Ti="listenerMiddleware";ji(Ti+"/add"),ji(Ti+"/removeAll"),ji(Ti+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Zo];return qo.get(e,t)},set:function(e){var o=this[Zo];qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Zo];if(!r.P)switch(r.i){case 5:i(r)&&Io(r);break;case 4:o(r)&&Io(r)}}}function o(t){for(var e=t.t,o=t.k,i=Ho(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Zo){var s=e[n];if(void 0===s&&!ao(e,n))return!0;var a=o[n],l=a&&a[Zo];if(l?l.t!==s:!co(a,s))return!0}}var c=!!e[Zo];return i.length!==Ho(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Vo[t]||(Vo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Go(o);delete n[Zo];for(var s=Ho(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:vo(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Zo,{value:n,writable:!0}),r},S:function(t,o,r){r?io(o)&&o[Zo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Zo];if(o){var r=o.t,n=o.k,s=o.R,a=o.i;if(4===a)no(n,(function(e){e!==Zo&&(void 0!==r[e]||ao(r,e)?s[e]||t(n[e]):(s[e]=!0,Io(o)))})),no(r,(function(t){void 0!==n[t]||ao(n,t)||(s[t]=!1,Io(o))}));else if(5===a){if(i(o)&&(Io(o),s.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<n.length;c++)s[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Zi{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Ve(r))return r;if(null==i)return;const n=Di({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=Wi({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Zi(n,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const _i=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!F(t,e),attribute:!1,...e};R(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},Hi=Symbol("elementInternals");var Gi,Vi,qi;const Yi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(qi=null===(Vi=null===(Gi=window.safari)||void 0===Gi?void 0:Gi.pushNotification)||void 0===Vi?void 0:Vi.toString())&&void 0!==qi?qi:""),Xi=Rt`
120
+ `;class Ve{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function qe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ye,Xe,Je;const Qe=Symbol("internalReduxEventsUnsubscribers"),to=Symbol("internalStoresUnsubscribers"),eo=Symbol("internalStores");class oo extends Ze{constructor(){super(...arguments),this[Ye]=new Map,this[Xe]=new Map,this[Je]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[eo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[eo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[eo].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:qe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[eo].delete(e)}setupStore(t,e){this[eo].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[eo].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[to].has(t.store):this[to].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[to].set(t,e.subscribe((()=>this.updateFromStores()))),qe(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[Qe].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[to].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Qe].forEach((t=>t())),this[Qe]=[]}unsubscribeFromStore(t){this[to].has(t)&&this[to].get(t)(),this[to].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function io(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ro(t){return!!t&&!!t[_o]}function no(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Ho}(t)||Array.isArray(t)||!!t[Zo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Zo])||fo(t)||po(t))}function so(t,e,o){void 0===o&&(o=!1),0===ao(t)?(o?Object.keys:Go)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function ao(t){var e=t[_o];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:fo(t)?2:po(t)?3:0}function lo(t,e){return 2===ao(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function co(t,e,o){var i=ao(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function ho(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function fo(t){return Bo&&t instanceof Map}function po(t){return Ko&&t instanceof Set}function uo(t){return t.o||t.t}function yo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vo(t);delete e[_o];for(var o=Go(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function bo(t,e){return void 0===e&&(e=!1),mo(t)||ro(t)||!no(t)||(ao(t)>1&&(t.set=t.add=t.clear=t.delete=go),Object.freeze(t),e&&so(t,(function(t,e){return bo(e,!0)}),!0)),t}function go(){io(2)}function mo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function vo(t){var e=qo[t];return e||io(18,t),e}function xo(){return zo}function Oo(t,e){e&&(vo("Patches"),t.u=[],t.s=[],t.v=e)}function wo(t){So(t),t.p.forEach(Co),t.p=null}function So(t){t===zo&&(zo=t.l)}function No(t){return zo={p:[],l:zo,h:t,m:!0,_:0}}function Co(t){var e=t[_o];0===e.i||1===e.i?e.j():e.g=!0}function $o(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||vo("ES5").S(e,t,i),i?(o[_o].P&&(wo(e),io(4)),no(t)&&(t=Eo(e,t),e.l||Ro(e,t)),e.u&&vo("Patches").M(o[_o].t,t,e.u,e.s)):t=Eo(e,o,[]),wo(e),e.u&&e.v(e.u,e.s),t!==To?t:void 0}function Eo(t,e,o){if(mo(e))return e;var i=e[_o];if(!i)return so(e,(function(r,n){return ko(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Ro(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=yo(i.k):i.o,n=r,s=!1;3===i.i&&(n=new Set(r),r.clear(),s=!0),so(n,(function(e,n){return ko(t,i,r,e,n,o,s)})),Ro(t,r,!1),o&&t.u&&vo("Patches").N(i,o,t.u,t.s)}return i.o}function ko(t,e,o,i,r,n,s){if(ro(r)){var a=Eo(t,r,n&&e&&3!==e.i&&!lo(e.R,i)?n.concat(i):void 0);if(co(o,i,a),!ro(a))return;t.m=!1}else s&&o.add(r);if(no(r)&&!mo(r)){if(!t.h.D&&t._<1)return;Eo(t,r),e&&e.A.l||Ro(t,r)}}function Ro(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&bo(e,o)}function Uo(t,e){var o=t[_o];return(o?uo(o):t)[e]}function Io(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Lo(t){t.P||(t.P=!0,t.l&&Lo(t.l))}function Ao(t){t.o||(t.o=yo(t.t))}function Wo(t,e,o){var i=fo(e)?vo("MapSet").F(e,o):po(e)?vo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:xo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Yo;o&&(r=[i],n=Xo);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(e,o):vo("ES5").J(e,o);return(o?o.A:xo()).p.push(i),i}function jo(t){return ro(t)||io(22,t),function t(e){if(!no(e))return e;var o,i=e[_o],r=ao(e);if(i){if(!i.P&&(i.i<4||!vo("ES5").K(i)))return i.t;i.I=!0,o=Fo(e,r),i.I=!1}else o=Fo(e,r);return so(o,(function(e,r){i&&function(t,e){return 2===ao(t)?t.get(e):t[e]}(i.t,e)===r||co(o,e,t(r))})),3===r?new Set(o):o}(t)}function Fo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return yo(t)}Ye=to,Xe=eo,Je=Qe;var Do,zo,Po="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Bo="undefined"!=typeof Map,Ko="undefined"!=typeof Set,Mo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,To=Po?Symbol.for("immer-nothing"):((Do={})["immer-nothing"]=!0,Do),Zo=Po?Symbol.for("immer-draftable"):"__$immer_draftable",_o=Po?Symbol.for("immer-state"):"__$immer_state",Ho=""+Object.prototype.constructor,Go="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vo=Object.getOwnPropertyDescriptors||function(t){var e={};return Go(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},qo={},Yo={get:function(t,e){if(e===_o)return t;var o=uo(t);if(!lo(o,e))return function(t,e,o){var i,r=Io(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!no(i)?i:i===Uo(t.t,e)?(Ao(t),t.o[e]=Wo(t.A.h,i,t)):i},has:function(t,e){return e in uo(t)},ownKeys:function(t){return Reflect.ownKeys(uo(t))},set:function(t,e,o){var i=Io(uo(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Uo(uo(t),e),n=null==r?void 0:r[_o];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ho(o,r)&&(void 0!==o||lo(t.t,e)))return!0;Ao(t),Lo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Uo(t.t,e)||e in t.t?(t.R[e]=!1,Ao(t),Lo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=uo(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){io(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){io(12)}},Xo={};so(Yo,(function(t,e){Xo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Xo.deleteProperty=function(t,e){return Xo.set.call(this,t,e,void 0)},Xo.set=function(t,e,o){return Yo.set.call(this,t[0],e,o,t[0])};var Jo=function(){function t(t){var e=this;this.O=Mo,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof o&&io(6),void 0!==i&&"function"!=typeof i&&io(7),no(t)){var a=No(e),l=Wo(e,t,void 0),c=!0;try{s=o(l),c=!1}finally{c?wo(a):So(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Oo(a,i),$o(t,a)}),(function(t){throw wo(a),t})):(Oo(a,i),$o(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=o(t))&&(s=t),s===To&&(s=void 0),e.D&&bo(s,!0),i){var h=[],f=[];vo("Patches").M(t,s,h,f),i(h,f)}return s}io(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){no(t)||io(8),ro(t)&&(t=jo(t));var e=No(this),o=Wo(this,t,void 0);return o[_o].C=!0,So(e),o},e.finishDraft=function(t,e){var o=(t&&t[_o]).A;return Oo(o,e),$o(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Mo&&io(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=vo("Patches").$;return ro(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Qo=new Jo,ti=Qo.produce;function ei(t){return ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(t)}function oi(t){var e=function(t,e){if("object"!==ei(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ei(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ei(e)?e:String(e)}function ii(t,e,o){return(e=oi(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ri(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ni(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ri(Object(o),!0).forEach((function(e){ii(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ri(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function si(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Qo.produceWithPatches.bind(Qo),Qo.setAutoFreeze.bind(Qo),Qo.setUseProxies.bind(Qo),Qo.applyPatches.bind(Qo),Qo.createDraft.bind(Qo),Qo.finishDraft.bind(Qo);var ai="function"==typeof Symbol&&Symbol.observable||"@@observable",li=function(){return Math.random().toString(36).substring(7).split("").join(".")},ci={INIT:"@@redux/INIT"+li(),REPLACE:"@@redux/REPLACE"+li(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+li()}};function hi(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(si(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(si(1));return o(hi)(t,e)}if("function"!=typeof t)throw new Error(si(2));var r=t,n=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(si(3));return n}function f(t){if("function"!=typeof t)throw new Error(si(4));if(l)throw new Error(si(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(si(6));e=!1,c();var o=a.indexOf(t);a.splice(o,1),s=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(si(7));if(void 0===t.type)throw new Error(si(8));if(l)throw new Error(si(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:ci.INIT}),(i={dispatch:p,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(si(10));r=t,p({type:ci.REPLACE})}})[ai]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(si(11));function o(){t.next&&t.next(h())}return o(),{unsubscribe:e(o)}}})[ai]=function(){return this},t},i}function fi(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,s=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ci.INIT}))throw new Error(si(12));if(void 0===o(void 0,{type:ci.PROBE_UNKNOWN_ACTION()}))throw new Error(si(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=o[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(si(14));r[l]=f,i=i||f!==h}return(i=i||s.length!==Object.keys(t).length)?r:t}}function pi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ui(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(si(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=pi.apply(void 0,n)(o.dispatch),ni(ni({},o),{},{dispatch:i})}}}function di(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var yi=di();yi.withExtraArgument=di;var bi,gi=yi,mi=(bi=function(t,e){return bi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},bi(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}bi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),vi=function(t,e){var o,i,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},xi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},Oi=Object.defineProperty,wi=Object.defineProperties,Si=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,Ei=function(t,e,o){return e in t?Oi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},ki=function(t,e){for(var o in e||(e={}))Ci.call(e,o)&&Ei(t,o,e[o]);if(Ni)for(var i=0,r=Ni(e);i<r.length;i++){o=r[i];$i.call(e,o)&&Ei(t,o,e[o])}return t},Ri=function(t,e){return wi(t,Si(e))},Ui="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?pi:pi.apply(null,arguments)};var Ii=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return mi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array),Li=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return mi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,xi([void 0],t[0].concat(this)))):new(e.bind.apply(e,xi([void 0],t.concat(this))))},e}(Array);function Ai(t){return no(t)?ti(t,(function(){})):t}function Wi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Ii;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(gi.withExtraArgument(o.extraArgument)):i.push(gi));return i}(t)}}function ji(t){var e,o=Wi(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,s=i.middleware,a=void 0===s?o():s,l=i.devTools,c=void 0===l||l,h=i.preloadedState,f=void 0===h?void 0:h,p=i.enhancers,u=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=fi(n)}var d=a;"function"==typeof d&&(d=d(o));var y=ui.apply(void 0,d),b=pi;c&&(b=Ui(ki({trace:!1},"object"==typeof c&&c)));var g=new Li(y),m=g;return Array.isArray(u)?m=xi([y],u):"function"==typeof u&&(m=u(g)),hi(e,f,b.apply(void 0,m))}function Fi(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return ki(ki({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Di(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function zi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Ai(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Di(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=ki(ki({},r),a);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Di(e):[e,o,i],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Ai(t())};else{var c=Ai(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var o=xi([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(ro(t))return void 0===(i=o(t,e))?t:i;if(no(t))return ti(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return h.getInitialState=r,h}(i,(function(t){for(var e in h)t.addCase(e,h[e]);for(var o=0,i=s;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,s[t]=o,a[c]=o,l[t]=i?Fi(c,i):Fi(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:s,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Pi=["name","message","stack","code"],Bi=function(t,e){this.payload=t,this.meta=e},Ki=function(t,e){this.payload=t,this.meta=e},Mi=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Pi;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Ti(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Fi(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ri(ki({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Fi(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ri(ki({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Fi(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Mi)(t||"Rejected"),meta:Ri(ki({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var h,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new s;function u(t){h=t,p.abort()}var d=function(){return s=this,d=null,y=function(){var s,d,y,b,g,m;return vi(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),b=null==(s=null==o?void 0:o.condition)?void 0:s.call(o,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=v.sent(),v.label=2;case 2:if(!1===b||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(f,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:p.signal,abort:u,rejectWithValue:function(t,e){return new Bi(t,e)},fulfillWithValue:function(t,e){return new Ki(t,e)}})).then((function(e){if(e instanceof Bi)throw e;return e instanceof Ki?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Bi?n(null,f,t,m.payload,m.meta):n(m,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||a(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(s,d)).next())}));var s,d,y}();return Object.assign(d,{abort:u,requestId:f,arg:t,unwrap:function(){return d.then(Ti)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Zi="listenerMiddleware";Fi(Zi+"/add"),Fi(Zi+"/removeAll"),Fi(Zi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[_o];return Yo.get(e,t)},set:function(e){var o=this[_o];Yo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][_o];if(!r.P)switch(r.i){case 5:i(r)&&Lo(r);break;case 4:o(r)&&Lo(r)}}}function o(t){for(var e=t.t,o=t.k,i=Go(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==_o){var s=e[n];if(void 0===s&&!lo(e,n))return!0;var a=o[n],l=a&&a[_o];if(l?l.t!==s:!ho(a,s))return!0}}var c=!!e[_o];return i.length!==Go(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){qo[t]||(qo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Vo(o);delete n[_o];for(var s=Go(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:xo(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,_o,{value:n,writable:!0}),r},S:function(t,o,r){r?ro(o)&&o[_o].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[_o];if(o){var r=o.t,n=o.k,s=o.R,a=o.i;if(4===a)so(n,(function(e){e!==_o&&(void 0!==r[e]||lo(r,e)?s[e]||t(n[e]):(s[e]=!0,Lo(o)))})),so(r,(function(t){void 0!==n[t]||lo(n,t)||(s[t]=!1,Lo(o))}));else if(5===a){if(i(o)&&(Lo(o),s.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<n.length;c++)s[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class _i{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(qe(r))return r;if(null==i)return;const n=zi({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=ji({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new _i(n,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Hi=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!F(t,e),attribute:!1,...e};R(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},Gi=Symbol("elementInternals");var Vi,qi,Yi;const Xi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Yi=null===(qi=null===(Vi=window.safari)||void 0===Vi?void 0:Vi.pushNotification)||void 0===qi?void 0:qi.toString())&&void 0!==Yi?Yi:""),Ji=Rt`
117
121
  `
118
122
  /**
119
123
  * @license
120
124
  * Copyright 2020 Google LLC
121
125
  * SPDX-License-Identifier: BSD-3-Clause
122
- */,Ji=Symbol.for(""),Qi=t=>{if(t?.r===Ji)return t?._$litStatic$},tr=t=>({_$litStatic$:t,r:Ji}),er=new Map,or=(t=>(e,...o)=>{const i=o.length;let r,n;const s=[],a=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Qi(n));)l+=r+e[++c],h=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),h){const t=s.join("$$lit$$");void 0===(e=er.get(t))&&(s.raw=s,er.set(t,e=s)),o=a}return t(e,...o)})(nt);var ir;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(ir||(ir={}));const rr=Re.extend("--ft-typography-font-family","",je.titleFont),nr=Re.extend("--ft-typography-font-family","",je.contentFont),sr={fontFamily:nr,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ar=Re.extend("--ft-typography-title-font-family","",rr),lr=Re.extend("--ft-typography-title-font-size","",sr.fontSize,"20px"),cr=Re.extend("--ft-typography-title-font-weight","",sr.fontWeight,"normal"),hr=Re.extend("--ft-typography-title-letter-spacing","",sr.letterSpacing,"0.15px"),fr=Re.extend("--ft-typography-title-line-height","",sr.lineHeight,"1.2"),pr=Re.extend("--ft-typography-title-text-transform","",sr.textTransform,"inherit"),ur=Re.extend("--ft-typography-title-dense-font-family","",rr),dr=Re.extend("--ft-typography-title-dense-font-size","",sr.fontSize,"14px"),yr=Re.extend("--ft-typography-title-dense-font-weight","",sr.fontWeight,"normal"),br=Re.extend("--ft-typography-title-dense-letter-spacing","",sr.letterSpacing,"0.105px"),gr=Re.extend("--ft-typography-title-dense-line-height","",sr.lineHeight,"1.7"),mr=Re.extend("--ft-typography-title-dense-text-transform","",sr.textTransform,"inherit"),vr=Re.extend("--ft-typography-subtitle1-font-family","",nr),xr=Re.extend("--ft-typography-subtitle1-font-size","",sr.fontSize,"16px"),Or=Re.extend("--ft-typography-subtitle1-font-weight","",sr.fontWeight,"600"),wr=Re.extend("--ft-typography-subtitle1-letter-spacing","",sr.letterSpacing,"0.144px"),Sr=Re.extend("--ft-typography-subtitle1-line-height","",sr.lineHeight,"1.5"),Nr=Re.extend("--ft-typography-subtitle1-text-transform","",sr.textTransform,"inherit"),Cr=Re.extend("--ft-typography-subtitle2-font-family","",nr),$r=Re.extend("--ft-typography-subtitle2-font-size","",sr.fontSize,"14px"),Er=Re.extend("--ft-typography-subtitle2-font-weight","",sr.fontWeight,"normal"),kr=Re.extend("--ft-typography-subtitle2-letter-spacing","",sr.letterSpacing,"0.098px"),Rr=Re.extend("--ft-typography-subtitle2-line-height","",sr.lineHeight,"1.7"),Ur=Re.extend("--ft-typography-subtitle2-text-transform","",sr.textTransform,"inherit"),Ir=Re.extend("--ft-typography-body1-font-family","",nr),Lr=Re.extend("--ft-typography-body1-font-size","",sr.fontSize,"16px"),Ar=Re.extend("--ft-typography-body1-font-weight","",sr.fontWeight,"normal"),Wr=Re.extend("--ft-typography-body1-letter-spacing","",sr.letterSpacing,"0.496px"),jr=Re.extend("--ft-typography-body1-line-height","",sr.lineHeight,"1.5"),Fr=Re.extend("--ft-typography-body1-text-transform","",sr.textTransform,"inherit"),Dr={fontFamily:Re.extend("--ft-typography-body2-font-family","",nr),fontSize:Re.extend("--ft-typography-body2-font-size","",sr.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-body2-font-weight","",sr.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body2-letter-spacing","",sr.letterSpacing,"0.252px"),lineHeight:Re.extend("--ft-typography-body2-line-height","",sr.lineHeight,"1.4"),textTransform:Re.extend("--ft-typography-body2-text-transform","",sr.textTransform,"inherit")},zr=Re.extend("--ft-typography-caption-font-family","",nr),Pr=Re.extend("--ft-typography-caption-font-size","",sr.fontSize,"12px"),Br=Re.extend("--ft-typography-caption-font-weight","",sr.fontWeight,"normal"),Kr=Re.extend("--ft-typography-caption-letter-spacing","",sr.letterSpacing,"0.396px"),Mr=Re.extend("--ft-typography-caption-line-height","",sr.lineHeight,"1.33"),Tr=Re.extend("--ft-typography-caption-text-transform","",sr.textTransform,"inherit"),Zr=Re.extend("--ft-typography-breadcrumb-font-family","",nr),_r=Re.extend("--ft-typography-breadcrumb-font-size","",sr.fontSize,"10px"),Hr=Re.extend("--ft-typography-breadcrumb-font-weight","",sr.fontWeight,"normal"),Gr=Re.extend("--ft-typography-breadcrumb-letter-spacing","",sr.letterSpacing,"0.33px"),Vr=Re.extend("--ft-typography-breadcrumb-line-height","",sr.lineHeight,"1.6"),qr=Re.extend("--ft-typography-breadcrumb-text-transform","",sr.textTransform,"inherit"),Yr=Re.extend("--ft-typography-overline-font-family","",nr),Xr=Re.extend("--ft-typography-overline-font-size","",sr.fontSize,"10px"),Jr=Re.extend("--ft-typography-overline-font-weight","",sr.fontWeight,"normal"),Qr=Re.extend("--ft-typography-overline-letter-spacing","",sr.letterSpacing,"1.5px"),tn=Re.extend("--ft-typography-overline-line-height","",sr.lineHeight,"1.6"),en=Re.extend("--ft-typography-overline-text-transform","",sr.textTransform,"uppercase"),on={fontFamily:Re.extend("--ft-typography-button-font-family","",nr),fontSize:Re.extend("--ft-typography-button-font-size","",sr.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",sr.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",sr.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",sr.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",sr.textTransform,"uppercase")},rn=Rt`
126
+ */,Qi=Symbol.for(""),tr=t=>{if(t?.r===Qi)return t?._$litStatic$},er=t=>({_$litStatic$:t,r:Qi}),or=new Map,ir=(t=>(e,...o)=>{const i=o.length;let r,n;const s=[],a=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=tr(n));)l+=r+e[++c],h=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),h){const t=s.join("$$lit$$");void 0===(e=or.get(t))&&(s.raw=s,or.set(t,e=s)),o=a}return t(e,...o)})(nt);var rr;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(rr||(rr={}));const nr=Re.extend("--ft-typography-font-family","",je.titleFont),sr=Re.extend("--ft-typography-font-family","",je.contentFont),ar={fontFamily:sr,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},lr=Re.extend("--ft-typography-title-font-family","",nr),cr=Re.extend("--ft-typography-title-font-size","",ar.fontSize,"20px"),hr=Re.extend("--ft-typography-title-font-weight","",ar.fontWeight,"normal"),fr=Re.extend("--ft-typography-title-letter-spacing","",ar.letterSpacing,"0.15px"),pr=Re.extend("--ft-typography-title-line-height","",ar.lineHeight,"1.2"),ur=Re.extend("--ft-typography-title-text-transform","",ar.textTransform,"inherit"),dr=Re.extend("--ft-typography-title-dense-font-family","",nr),yr=Re.extend("--ft-typography-title-dense-font-size","",ar.fontSize,"14px"),br=Re.extend("--ft-typography-title-dense-font-weight","",ar.fontWeight,"normal"),gr=Re.extend("--ft-typography-title-dense-letter-spacing","",ar.letterSpacing,"0.105px"),mr=Re.extend("--ft-typography-title-dense-line-height","",ar.lineHeight,"1.7"),vr=Re.extend("--ft-typography-title-dense-text-transform","",ar.textTransform,"inherit"),xr=Re.extend("--ft-typography-subtitle1-font-family","",sr),Or=Re.extend("--ft-typography-subtitle1-font-size","",ar.fontSize,"16px"),wr=Re.extend("--ft-typography-subtitle1-font-weight","",ar.fontWeight,"600"),Sr=Re.extend("--ft-typography-subtitle1-letter-spacing","",ar.letterSpacing,"0.144px"),Nr=Re.extend("--ft-typography-subtitle1-line-height","",ar.lineHeight,"1.5"),Cr=Re.extend("--ft-typography-subtitle1-text-transform","",ar.textTransform,"inherit"),$r=Re.extend("--ft-typography-subtitle2-font-family","",sr),Er=Re.extend("--ft-typography-subtitle2-font-size","",ar.fontSize,"14px"),kr=Re.extend("--ft-typography-subtitle2-font-weight","",ar.fontWeight,"normal"),Rr=Re.extend("--ft-typography-subtitle2-letter-spacing","",ar.letterSpacing,"0.098px"),Ur=Re.extend("--ft-typography-subtitle2-line-height","",ar.lineHeight,"1.7"),Ir=Re.extend("--ft-typography-subtitle2-text-transform","",ar.textTransform,"inherit"),Lr=Re.extend("--ft-typography-body1-font-family","",sr),Ar=Re.extend("--ft-typography-body1-font-size","",ar.fontSize,"16px"),Wr=Re.extend("--ft-typography-body1-font-weight","",ar.fontWeight,"normal"),jr=Re.extend("--ft-typography-body1-letter-spacing","",ar.letterSpacing,"0.496px"),Fr=Re.extend("--ft-typography-body1-line-height","",ar.lineHeight,"1.5"),Dr=Re.extend("--ft-typography-body1-text-transform","",ar.textTransform,"inherit"),zr={fontFamily:Re.extend("--ft-typography-body2-font-family","",sr),fontSize:Re.extend("--ft-typography-body2-font-size","",ar.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-body2-font-weight","",ar.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body2-letter-spacing","",ar.letterSpacing,"0.252px"),lineHeight:Re.extend("--ft-typography-body2-line-height","",ar.lineHeight,"1.4"),textTransform:Re.extend("--ft-typography-body2-text-transform","",ar.textTransform,"inherit")},Pr=Re.extend("--ft-typography-caption-font-family","",sr),Br=Re.extend("--ft-typography-caption-font-size","",ar.fontSize,"12px"),Kr=Re.extend("--ft-typography-caption-font-weight","",ar.fontWeight,"normal"),Mr=Re.extend("--ft-typography-caption-letter-spacing","",ar.letterSpacing,"0.396px"),Tr=Re.extend("--ft-typography-caption-line-height","",ar.lineHeight,"1.33"),Zr=Re.extend("--ft-typography-caption-text-transform","",ar.textTransform,"inherit"),_r=Re.extend("--ft-typography-breadcrumb-font-family","",sr),Hr=Re.extend("--ft-typography-breadcrumb-font-size","",ar.fontSize,"10px"),Gr=Re.extend("--ft-typography-breadcrumb-font-weight","",ar.fontWeight,"normal"),Vr=Re.extend("--ft-typography-breadcrumb-letter-spacing","",ar.letterSpacing,"0.33px"),qr=Re.extend("--ft-typography-breadcrumb-line-height","",ar.lineHeight,"1.6"),Yr=Re.extend("--ft-typography-breadcrumb-text-transform","",ar.textTransform,"inherit"),Xr=Re.extend("--ft-typography-overline-font-family","",sr),Jr=Re.extend("--ft-typography-overline-font-size","",ar.fontSize,"10px"),Qr=Re.extend("--ft-typography-overline-font-weight","",ar.fontWeight,"normal"),tn=Re.extend("--ft-typography-overline-letter-spacing","",ar.letterSpacing,"1.5px"),en=Re.extend("--ft-typography-overline-line-height","",ar.lineHeight,"1.6"),on=Re.extend("--ft-typography-overline-text-transform","",ar.textTransform,"uppercase"),rn={fontFamily:Re.extend("--ft-typography-button-font-family","",sr),fontSize:Re.extend("--ft-typography-button-font-size","",ar.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",ar.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",ar.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",ar.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",ar.textTransform,"uppercase")},nn=Rt`
123
127
  .ft-typography--title {
124
- font-family: ${ar};
125
- font-size: ${lr};
126
- font-weight: ${cr};
127
- letter-spacing: ${hr};
128
- line-height: ${fr};
129
- text-transform: ${pr};
130
- }
131
- `,nn=Rt`
132
- .ft-typography--title-dense {
133
- font-family: ${ur};
134
- font-size: ${dr};
135
- font-weight: ${yr};
136
- letter-spacing: ${br};
137
- line-height: ${gr};
138
- text-transform: ${mr};
128
+ font-family: ${lr};
129
+ font-size: ${cr};
130
+ font-weight: ${hr};
131
+ letter-spacing: ${fr};
132
+ line-height: ${pr};
133
+ text-transform: ${ur};
139
134
  }
140
135
  `,sn=Rt`
141
- .ft-typography--subtitle1 {
142
- font-family: ${vr};
143
- font-size: ${xr};
144
- font-weight: ${Or};
145
- letter-spacing: ${wr};
146
- line-height: ${Sr};
147
- text-transform: ${Nr};
136
+ .ft-typography--title-dense {
137
+ font-family: ${dr};
138
+ font-size: ${yr};
139
+ font-weight: ${br};
140
+ letter-spacing: ${gr};
141
+ line-height: ${mr};
142
+ text-transform: ${vr};
148
143
  }
149
144
  `,an=Rt`
150
- .ft-typography--subtitle2 {
151
- font-family: ${Cr};
152
- font-size: ${$r};
153
- font-weight: ${Er};
154
- letter-spacing: ${kr};
155
- line-height: ${Rr};
156
- text-transform: ${Ur};
145
+ .ft-typography--subtitle1 {
146
+ font-family: ${xr};
147
+ font-size: ${Or};
148
+ font-weight: ${wr};
149
+ letter-spacing: ${Sr};
150
+ line-height: ${Nr};
151
+ text-transform: ${Cr};
157
152
  }
158
-
159
153
  `,ln=Rt`
160
- .ft-typography--body1 {
161
- font-family: ${Ir};
162
- font-size: ${Lr};
163
- font-weight: ${Ar};
164
- letter-spacing: ${Wr};
165
- line-height: ${jr};
166
- text-transform: ${Fr};
154
+ .ft-typography--subtitle2 {
155
+ font-family: ${$r};
156
+ font-size: ${Er};
157
+ font-weight: ${kr};
158
+ letter-spacing: ${Rr};
159
+ line-height: ${Ur};
160
+ text-transform: ${Ir};
167
161
  }
162
+
168
163
  `,cn=Rt`
169
- .ft-typography--body2 {
170
- font-family: ${Dr.fontFamily};
171
- font-size: ${Dr.fontSize};
172
- font-weight: ${Dr.fontWeight};
173
- letter-spacing: ${Dr.letterSpacing};
174
- line-height: ${Dr.lineHeight};
175
- text-transform: ${Dr.textTransform};
164
+ .ft-typography--body1 {
165
+ font-family: ${Lr};
166
+ font-size: ${Ar};
167
+ font-weight: ${Wr};
168
+ letter-spacing: ${jr};
169
+ line-height: ${Fr};
170
+ text-transform: ${Dr};
176
171
  }
177
172
  `,hn=Rt`
178
- .ft-typography--caption {
179
- font-family: ${zr};
180
- font-size: ${Pr};
181
- font-weight: ${Br};
182
- letter-spacing: ${Kr};
183
- line-height: ${Mr};
184
- text-transform: ${Tr};
173
+ .ft-typography--body2 {
174
+ font-family: ${zr.fontFamily};
175
+ font-size: ${zr.fontSize};
176
+ font-weight: ${zr.fontWeight};
177
+ letter-spacing: ${zr.letterSpacing};
178
+ line-height: ${zr.lineHeight};
179
+ text-transform: ${zr.textTransform};
185
180
  }
186
181
  `,fn=Rt`
187
- .ft-typography--breadcrumb {
188
- font-family: ${Zr};
189
- font-size: ${_r};
190
- font-weight: ${Hr};
191
- letter-spacing: ${Gr};
192
- line-height: ${Vr};
193
- text-transform: ${qr};
182
+ .ft-typography--caption {
183
+ font-family: ${Pr};
184
+ font-size: ${Br};
185
+ font-weight: ${Kr};
186
+ letter-spacing: ${Mr};
187
+ line-height: ${Tr};
188
+ text-transform: ${Zr};
194
189
  }
195
190
  `,pn=Rt`
196
- .ft-typography--overline {
197
- font-family: ${Yr};
198
- font-size: ${Xr};
199
- font-weight: ${Jr};
200
- letter-spacing: ${Qr};
201
- line-height: ${tn};
202
- text-transform: ${en};
191
+ .ft-typography--breadcrumb {
192
+ font-family: ${_r};
193
+ font-size: ${Hr};
194
+ font-weight: ${Gr};
195
+ letter-spacing: ${Vr};
196
+ line-height: ${qr};
197
+ text-transform: ${Yr};
203
198
  }
204
199
  `,un=Rt`
205
- .ft-typography--button {
206
- font-family: ${on.fontFamily};
207
- font-size: ${on.fontSize};
208
- font-weight: ${on.fontWeight};
209
- letter-spacing: ${on.letterSpacing};
210
- line-height: ${on.lineHeight};
211
- text-transform: ${on.textTransform};
200
+ .ft-typography--overline {
201
+ font-family: ${Xr};
202
+ font-size: ${Jr};
203
+ font-weight: ${Qr};
204
+ letter-spacing: ${tn};
205
+ line-height: ${en};
206
+ text-transform: ${on};
212
207
  }
213
208
  `,dn=Rt`
209
+ .ft-typography--button {
210
+ font-family: ${rn.fontFamily};
211
+ font-size: ${rn.fontSize};
212
+ font-weight: ${rn.fontWeight};
213
+ letter-spacing: ${rn.letterSpacing};
214
+ line-height: ${rn.lineHeight};
215
+ text-transform: ${rn.textTransform};
216
+ }
217
+ `,yn=Rt`
214
218
  .ft-typography {
215
219
  vertical-align: inherit;
216
220
  }
217
- `,yn=[Object.keys(Le).map((t=>function(t){const e=Le[t];return Rt`
221
+ `,bn=[Object.keys(Le).map((t=>function(t){const e=Le[t];return Rt`
218
222
  .ft-typography--${kt(t)} {
219
223
  font-family: ${e.fontFamily};
220
224
  font-size: ${e.fontSize};
@@ -223,25 +227,25 @@ let $e=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
223
227
  line-height: ${e.lineHeight};
224
228
  text-transform: ${e.textCase};
225
229
  }
226
- `}(t)))];var bn=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class gn extends Ze{constructor(){super(...arguments),this.variant=ir.body1}render(){return this.element?or`
227
- <${tr(this.element)}
230
+ `}(t)))];var gn=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class mn extends Ze{constructor(){super(...arguments),this.variant=rr.body1}render(){return this.element?ir`
231
+ <${er(this.element)}
228
232
  class="ft-typography ft-typography--${this.variant}">
229
233
  <slot></slot>
230
- </${tr(this.element)}>
231
- `:or`
234
+ </${er(this.element)}>
235
+ `:ir`
232
236
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
233
- `}}gn.styles=[rn,nn,sn,an,ln,cn,hn,fn,pn,un,dn,...yn],bn([R()],gn.prototype,"element",void 0),bn([R()],gn.prototype,"variant",void 0),D("ft-typography")(gn);
237
+ `}}mn.styles=[nn,sn,an,ln,cn,hn,fn,pn,un,dn,yn,...bn],gn([R()],mn.prototype,"element",void 0),gn([R()],mn.prototype,"variant",void 0),D("ft-typography")(mn);
234
238
  /**
235
239
  * @license
236
240
  * Copyright 2017 Google LLC
237
241
  * SPDX-License-Identifier: BSD-3-Clause
238
242
  */
239
- const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
243
+ const vn=1,xn=2,On=t=>(...e)=>({_$litDirective$:t,values:e});class wn{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
240
244
  /**
241
245
  * @license
242
246
  * Copyright 2020 Google LLC
243
247
  * SPDX-License-Identifier: BSD-3-Clause
244
- */const{D:wn}=Ot,Sn=()=>document.createComment(""),Nn=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Sn(),r),n=i.insertBefore(Sn(),r);o=new wn(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,s=n!==t;if(s){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||s){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},Cn=(t,e,o=t)=>(t._$AI(e,o),t),$n={},En=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},kn=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Rn=xn(class extends On{constructor(t){if(super(t),t.type!==vn)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let s=0;for(const e of t)r[s]=i?i(e,s):s,n[s]=o(e,s),s++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:s}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=s,n;const a=this.dt??=[],l=[];let c,h,f=0,p=r.length-1,u=0,d=n.length-1;for(;f<=p&&u<=d;)if(null===r[f])f++;else if(null===r[p])p--;else if(a[f]===s[u])l[u]=Cn(r[f],n[u]),f++,u++;else if(a[p]===s[d])l[d]=Cn(r[p],n[d]),p--,d--;else if(a[f]===s[d])l[d]=Cn(r[f],n[d]),Nn(t,l[d+1],r[f]),f++,d--;else if(a[p]===s[u])l[u]=Cn(r[p],n[u]),Nn(t,r[f],r[p]),p--,u++;else if(void 0===c&&(c=kn(s,u,d),h=kn(a,f,p)),c.has(a[f]))if(c.has(a[p])){const e=h.get(s[u]),o=void 0!==e?r[e]:null;if(null===o){const e=Nn(t,r[f]);Cn(e,n[u]),l[u]=e}else l[u]=Cn(o,n[u]),Nn(t,r[f],o),r[e]=null;u++}else En(r[p]),p--;else En(r[f]),f++;for(;u<=d;){const e=Nn(t,l[d+1]);Cn(e,n[u]),l[u++]=e}for(;f<=p;){const t=r[f++];null!==t&&En(t)}return this.dt=s,((t,e=$n)=>{t._$AH=e})(t,l),st}}),Un=Re.extend("--ft-ripple-color","",je.colorContent),In={color:Un,backgroundColor:Re.extend("--ft-ripple-background-color","",Un),opacityContentOnSurfacePressed:Re.external(je.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(je.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(je.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(je.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},Ln=Re.extend("--ft-ripple-color","",je.colorPrimary),An=Ln,Wn=Re.extend("--ft-ripple-background-color","",Ln),jn=Re.extend("--ft-ripple-color","",je.colorSecondary),Fn=jn,Dn=Re.extend("--ft-ripple-background-color","",jn),zn=Rt`
248
+ */const{D:Sn}=Ot,Nn=()=>document.createComment(""),Cn=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Nn(),r),n=i.insertBefore(Nn(),r);o=new Sn(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,s=n!==t;if(s){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||s){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},$n=(t,e,o=t)=>(t._$AI(e,o),t),En={},kn=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Rn=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Un=On(class extends wn{constructor(t){if(super(t),t.type!==xn)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let s=0;for(const e of t)r[s]=i?i(e,s):s,n[s]=o(e,s),s++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:s}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=s,n;const a=this.dt??=[],l=[];let c,h,f=0,p=r.length-1,u=0,d=n.length-1;for(;f<=p&&u<=d;)if(null===r[f])f++;else if(null===r[p])p--;else if(a[f]===s[u])l[u]=$n(r[f],n[u]),f++,u++;else if(a[p]===s[d])l[d]=$n(r[p],n[d]),p--,d--;else if(a[f]===s[d])l[d]=$n(r[f],n[d]),Cn(t,l[d+1],r[f]),f++,d--;else if(a[p]===s[u])l[u]=$n(r[p],n[u]),Cn(t,r[f],r[p]),p--,u++;else if(void 0===c&&(c=Rn(s,u,d),h=Rn(a,f,p)),c.has(a[f]))if(c.has(a[p])){const e=h.get(s[u]),o=void 0!==e?r[e]:null;if(null===o){const e=Cn(t,r[f]);$n(e,n[u]),l[u]=e}else l[u]=$n(o,n[u]),Cn(t,r[f],o),r[e]=null;u++}else kn(r[p]),p--;else kn(r[f]),f++;for(;u<=d;){const e=Cn(t,l[d+1]);$n(e,n[u]),l[u++]=e}for(;f<=p;){const t=r[f++];null!==t&&kn(t)}return this.dt=s,((t,e=En)=>{t._$AH=e})(t,l),st}}),In=Re.extend("--ft-ripple-color","",je.colorContent),Ln={color:In,backgroundColor:Re.extend("--ft-ripple-background-color","",In),opacityContentOnSurfacePressed:Re.external(je.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(je.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(je.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(je.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},An=Re.extend("--ft-ripple-color","",je.colorPrimary),Wn=An,jn=Re.extend("--ft-ripple-background-color","",An),Fn=Re.extend("--ft-ripple-color","",je.colorSecondary),Dn=Fn,zn=Re.extend("--ft-ripple-background-color","",Fn),Pn=Rt`
245
249
  :host {
246
250
  display: contents;
247
251
  }
@@ -254,7 +258,7 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
254
258
 
255
259
  .ft-ripple:not(.ft-ripple--unbounded) {
256
260
  overflow: hidden;
257
- border-radius: ${In.borderRadius};
261
+ border-radius: ${Ln.borderRadius};
258
262
  }
259
263
 
260
264
  .ft-ripple .ft-ripple--background,
@@ -288,27 +292,27 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
288
292
  }
289
293
 
290
294
  .ft-ripple .ft-ripple--background {
291
- background-color: ${In.backgroundColor};
295
+ background-color: ${Ln.backgroundColor};
292
296
  }
293
297
 
294
298
  .ft-ripple .ft-ripple--effect {
295
- background-color: ${In.color};
299
+ background-color: ${Ln.color};
296
300
  }
297
301
 
298
302
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
299
- background-color: ${Dn};
303
+ background-color: ${zn};
300
304
  }
301
305
 
302
306
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
303
- background-color: ${Fn};
307
+ background-color: ${Dn};
304
308
  }
305
309
 
306
310
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
307
- background-color: ${Wn};
311
+ background-color: ${jn};
308
312
  }
309
313
 
310
314
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
311
- background-color: ${An};
315
+ background-color: ${Wn};
312
316
  }
313
317
 
314
318
  .ft-ripple .ft-ripple--background {
@@ -338,22 +342,22 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
338
342
  }
339
343
 
340
344
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
341
- opacity: ${In.opacityContentOnSurfaceHover};
345
+ opacity: ${Ln.opacityContentOnSurfaceHover};
342
346
  }
343
347
 
344
348
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
345
- opacity: ${In.opacityContentOnSurfaceSelected};
349
+ opacity: ${Ln.opacityContentOnSurfaceSelected};
346
350
  }
347
351
 
348
352
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
349
- opacity: ${In.opacityContentOnSurfaceFocused};
353
+ opacity: ${Ln.opacityContentOnSurfaceFocused};
350
354
  }
351
355
 
352
356
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
353
- opacity: ${In.opacityContentOnSurfacePressed};
357
+ opacity: ${Ln.opacityContentOnSurfacePressed};
354
358
  transform: translate(-50%, -50%) scale(1);
355
359
  }
356
- `,Pn={color:Re.extend("--ft-loader-color","",je.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},Bn=Rt`
360
+ `,Bn={color:Re.extend("--ft-loader-color","",je.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},Kn=Rt`
357
361
  :host {
358
362
  line-height: 0;
359
363
  }
@@ -362,8 +366,8 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
362
366
  display: inline-block;
363
367
  position: relative;
364
368
 
365
- width: ${Pn.size};
366
- height: ${Pn.size};
369
+ width: ${Bn.size};
370
+ height: ${Bn.size};
367
371
  }
368
372
 
369
373
  .ft-loader div {
@@ -372,7 +376,7 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
372
376
  width: 25%;
373
377
  height: 25%;
374
378
  border-radius: 50%;
375
- background: ${Pn.color};
379
+ background: ${Bn.color};
376
380
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
377
381
  }
378
382
 
@@ -419,10 +423,10 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
419
423
  transform: translate(0, 0);
420
424
  }
421
425
  100% {
422
- transform: translate(calc(0.35 * ${Pn.size}), 0);
426
+ transform: translate(calc(0.35 * ${Bn.size}), 0);
423
427
  }
424
428
  }
425
- `,Kn={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Mn=Rt`
429
+ `,Mn={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Tn=Rt`
426
430
  :host, i.ft-icon {
427
431
  display: inline-flex;
428
432
  align-items: center;
@@ -431,14 +435,14 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
431
435
  }
432
436
 
433
437
  :host {
434
- width: ${Kn.size};
435
- height: ${Kn.size};
438
+ width: ${Mn.size};
439
+ height: ${Mn.size};
436
440
  }
437
441
 
438
442
  i.ft-icon {
439
443
  width: 100%;
440
444
  height: 100%;
441
- font-size: ${Kn.size};
445
+ font-size: ${Mn.size};
442
446
  line-height: 1;
443
447
  font-weight: normal;
444
448
  text-transform: none;
@@ -449,28 +453,28 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
449
453
  text-rendering: auto;
450
454
  -webkit-font-smoothing: antialiased;
451
455
  -moz-osx-font-smoothing: grayscale;
452
- vertical-align: ${Kn.verticalAlign};
456
+ vertical-align: ${Mn.verticalAlign};
453
457
  }
454
458
 
455
459
  i.ft-icon.ft-icon--fluid-topics {
456
- font-family: ${Kn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
460
+ font-family: ${Mn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
457
461
 
458
462
  /* Ugly fix because font is broken */
459
- font-size: calc(0.75 * ${Kn.size});
460
- line-height: ${Kn.size};
463
+ font-size: calc(0.75 * ${Mn.size});
464
+ line-height: ${Mn.size};
461
465
  position: relative;
462
466
  top: -4%;
463
467
  justify-content: center;
464
468
  }
465
469
 
466
470
  .ft-icon--file-format {
467
- font-family: ${Kn.fileFormatFontFamily}, ft-mime, sans-serif;
471
+ font-family: ${Mn.fileFormatFontFamily}, ft-mime, sans-serif;
468
472
  }
469
473
 
470
474
  .ft-icon--material {
471
- font-family: ${Kn.materialFontFamily}, "Material Icons", sans-serif;
475
+ font-family: ${Mn.materialFontFamily}, "Material Icons", sans-serif;
472
476
  }
473
- `,Tn=Re.extend("--ft-button-color","",je.colorPrimary),Zn={backgroundColor:Re.extend("--ft-button-background-color","",je.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",je.borderRadiusL),color:Tn,fontSize:Re.extend("--ft-button-font-size","",on.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",Tn),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(je.colorOpacityDisabled,"Design system")},_n=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",je.colorOnPrimary)),Hn={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",je.colorPrimary)),color:_n,rippleColor:Re.extend("--ft-button-primary-ripple-color","",_n)},Gn=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",je.borderRadiusM)),Vn=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),qn=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Yn=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Xn=[Rt`
477
+ `,Zn=Re.extend("--ft-button-color","",je.colorPrimary),_n={backgroundColor:Re.extend("--ft-button-background-color","",je.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",je.borderRadiusL),color:Zn,fontSize:Re.extend("--ft-button-font-size","",rn.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",Zn),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(je.colorOpacityDisabled,"Design system")},Hn=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",je.colorOnPrimary)),Gn={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",je.colorPrimary)),color:Hn,rippleColor:Re.extend("--ft-button-primary-ripple-color","",Hn)},Vn=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",je.borderRadiusM)),qn=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Yn=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Xn=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Jn=[Rt`
474
478
  :host {
475
479
  display: inline-block;
476
480
  max-width: 100%;
@@ -481,7 +485,7 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
481
485
  box-shadow: 0px 0px 0px transparent;
482
486
  border: 0px solid transparent;
483
487
  text-shadow: 0px 0px 0px transparent;
484
- font-size: ${Zn.fontSize};
488
+ font-size: ${_n.fontSize};
485
489
  }
486
490
 
487
491
  button:hover {
@@ -510,31 +514,31 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
510
514
  border: none;
511
515
  pointer-events: auto;
512
516
 
513
- --ft-button-internal-line-height: max(calc(${Zn.fontSize} + 2px), ${Zn.iconSize});
514
- --ft-button-internal-color: ${Zn.color};
515
- ${Ue(Kn.size,Zn.iconSize)};
516
- ${Ue(In.color,Zn.rippleColor)};
517
+ --ft-button-internal-line-height: max(calc(${_n.fontSize} + 2px), ${_n.iconSize});
518
+ --ft-button-internal-color: ${_n.color};
519
+ ${Ue(Mn.size,_n.iconSize)};
520
+ ${Ue(Ln.color,_n.rippleColor)};
517
521
 
518
- border-radius: ${Zn.borderRadius};
519
- padding: ${Zn.verticalPadding} ${Zn.horizontalPadding};
520
- background-color: ${Zn.backgroundColor};
522
+ border-radius: ${_n.borderRadius};
523
+ padding: ${_n.verticalPadding} ${_n.horizontalPadding};
524
+ background-color: ${_n.backgroundColor};
521
525
  color: var(--ft-button-internal-color);
522
526
  -webkit-mask-image: radial-gradient(white, black);
523
527
  }
524
528
 
525
529
  .ft-button.ft-button--outlined {
526
530
  border: 1px solid var(--ft-button-internal-color);
527
- padding: calc(${Zn.verticalPadding} - 1px) calc(${Zn.horizontalPadding} - 1px);
531
+ padding: calc(${_n.verticalPadding} - 1px) calc(${_n.horizontalPadding} - 1px);
528
532
  }
529
533
 
530
534
  .ft-button.ft-button--dense {
531
- padding: ${Vn} ${qn};
532
- border-radius: ${Gn};
533
- gap: ${Yn};
535
+ padding: ${qn} ${Yn};
536
+ border-radius: ${Vn};
537
+ gap: ${Xn};
534
538
  }
535
539
 
536
540
  .ft-button.ft-button--dense.ft-button--outlined {
537
- padding: calc(${Vn} - 1px) calc(${qn} - 1px);
541
+ padding: calc(${qn} - 1px) calc(${Yn} - 1px);
538
542
  }
539
543
 
540
544
  .ft-button:not([disabled]):hover {
@@ -542,22 +546,22 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
542
546
  }
543
547
 
544
548
  .ft-button--round {
545
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Zn.verticalPadding});
549
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${_n.verticalPadding});
546
550
  }
547
551
 
548
552
  .ft-button--round.ft-button--dense {
549
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Vn});
553
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${qn});
550
554
  }
551
555
 
552
556
  .ft-button[disabled] {
553
557
  filter: grayscale(1);
554
- opacity: ${Zn.opacityDisabled};
558
+ opacity: ${_n.opacityDisabled};
555
559
  }
556
560
 
557
561
  .ft-button.ft-button--primary {
558
- background-color: ${Hn.backgroundColor};
559
- --ft-button-internal-color: ${Hn.color};
560
- ${Ue(In.color,Hn.rippleColor)};
562
+ background-color: ${Gn.backgroundColor};
563
+ --ft-button-internal-color: ${Gn.color};
564
+ ${Ue(Ln.color,Gn.rippleColor)};
561
565
  }
562
566
 
563
567
  .ft-button:focus {
@@ -570,13 +574,13 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
570
574
  white-space: nowrap;
571
575
  text-overflow: ellipsis;
572
576
  display: block;
573
- margin: 0 ${Zn.iconPadding};
574
- ${Ue(on.fontSize,"1em")};
575
- ${Ue(on.lineHeight,"var(--ft-button-internal-line-height)")};
577
+ margin: 0 ${_n.iconPadding};
578
+ ${Ue(rn.fontSize,"1em")};
579
+ ${Ue(rn.lineHeight,"var(--ft-button-internal-line-height)")};
576
580
  }
577
581
 
578
582
  .ft-button--dense .ft-button--label {
579
- margin: 0 ${Yn};
583
+ margin: 0 ${Xn};
580
584
  }
581
585
 
582
586
  .ft-button--label[hidden] {
@@ -589,13 +593,13 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
589
593
  }
590
594
 
591
595
  .ft-button--label[hidden] + ft-icon {
592
- margin: 0 calc(${Zn.horizontalPadding} * -1);
593
- padding: 0 ${Zn.verticalPadding};
596
+ margin: 0 calc(${_n.horizontalPadding} * -1);
597
+ padding: 0 ${_n.verticalPadding};
594
598
  }
595
599
 
596
600
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
597
- margin: 0 calc(${qn} * -1);
598
- padding: 0 ${Vn};
601
+ margin: 0 calc(${Yn} * -1);
602
+ padding: 0 ${qn};
599
603
  }
600
604
 
601
605
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -604,26 +608,26 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
604
608
  }
605
609
 
606
610
  ft-loader {
607
- ${Ue(Pn.size,Zn.iconSize)};
608
- ${Ue(Pn.color,"var(--ft-button-internal-color)")};
611
+ ${Ue(Bn.size,_n.iconSize)};
612
+ ${Ue(Bn.color,"var(--ft-button-internal-color)")};
609
613
  }
610
- `,_e],Jn=xn(class extends On{constructor(t){if(super(t),t.type!==mn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return st}});
614
+ `,He],Qn=On(class extends wn{constructor(t){if(super(t),t.type!==vn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return st}});
611
615
  /**
612
616
  * @license
613
617
  * Copyright 2017 Google LLC
614
618
  * SPDX-License-Identifier: BSD-3-Clause
615
- */var Qn=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ts extends Ze{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new n(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new n(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return fe`
619
+ */var ts=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class es extends Ze{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new n(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new n(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return fe`
616
620
  <style>
617
621
  .ft-ripple .ft-ripple--effect {
618
622
  left: ${this.originX}px;
619
623
  top: ${this.originY}px;
620
624
  }
621
625
  </style>
622
- <div class="${Jn(t)}">
626
+ <div class="${Qn(t)}">
623
627
  <div class="ft-ripple--background"></div>
624
628
  <div class="ft-ripple--effect"></div>
625
629
  </div>
626
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=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",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ts.elementDefinitions={},ts.styles=zn,Qn([R({type:Boolean})],ts.prototype,"primary",void 0),Qn([R({type:Boolean})],ts.prototype,"secondary",void 0),Qn([R({type:Boolean})],ts.prototype,"unbounded",void 0),Qn([R({type:Boolean})],ts.prototype,"activated",void 0),Qn([R({type:Boolean})],ts.prototype,"selected",void 0),Qn([R({type:Boolean})],ts.prototype,"disabled",void 0),Qn([U()],ts.prototype,"hovered",void 0),Qn([U()],ts.prototype,"focused",void 0),Qn([U()],ts.prototype,"pressed",void 0),Qn([U()],ts.prototype,"rippling",void 0),Qn([U()],ts.prototype,"originX",void 0),Qn([U()],ts.prototype,"originY",void 0),Qn([L(".ft-ripple")],ts.prototype,"ripple",void 0),Qn([L(".ft-ripple--effect")],ts.prototype,"rippleEffect",void 0),D("ft-ripple")(ts);const es=Re.create("--ft-tooltip-distance","","SIZE","4px"),os=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),is=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),rs=Re.create("--ft-tooltip-z-index","","NUMBER","100"),ns=Re.external(je.borderRadiusS,"Design system"),ss=Re.create("--ft-tooltip-max-width","","SIZE","150px"),as=Rt`
630
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=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",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}es.elementDefinitions={},es.styles=Pn,ts([R({type:Boolean})],es.prototype,"primary",void 0),ts([R({type:Boolean})],es.prototype,"secondary",void 0),ts([R({type:Boolean})],es.prototype,"unbounded",void 0),ts([R({type:Boolean})],es.prototype,"activated",void 0),ts([R({type:Boolean})],es.prototype,"selected",void 0),ts([R({type:Boolean})],es.prototype,"disabled",void 0),ts([U()],es.prototype,"hovered",void 0),ts([U()],es.prototype,"focused",void 0),ts([U()],es.prototype,"pressed",void 0),ts([U()],es.prototype,"rippling",void 0),ts([U()],es.prototype,"originX",void 0),ts([U()],es.prototype,"originY",void 0),ts([L(".ft-ripple")],es.prototype,"ripple",void 0),ts([L(".ft-ripple--effect")],es.prototype,"rippleEffect",void 0),D("ft-ripple")(es);const os=Re.create("--ft-tooltip-distance","","SIZE","4px"),is=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),rs=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),ns=Re.create("--ft-tooltip-z-index","","NUMBER","100"),ss=Re.external(je.borderRadiusS,"Design system"),as=Re.create("--ft-tooltip-max-width","","SIZE","150px"),ls=Rt`
627
631
  .ft-tooltip--container {
628
632
  display: block;
629
633
  }
@@ -638,21 +642,21 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
638
642
  box-sizing: border-box;
639
643
  overflow: hidden;
640
644
  width: max-content;
641
- max-width: ${ss};
645
+ max-width: ${as};
642
646
  text-align: center;
643
- padding: ${es};
644
- z-index: ${rs};
647
+ padding: ${os};
648
+ z-index: ${ns};
645
649
  }
646
650
 
647
651
  .ft-tooltip--content {
648
652
  padding: 4px 8px;
649
- border-radius: ${ns};
650
- background-color: ${is};
651
- color: ${os};
653
+ border-radius: ${ss};
654
+ background-color: ${rs};
655
+ color: ${is};
652
656
  position: relative;
653
657
  word-break: break-word;
654
658
  }
655
- `;var ls=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class cs extends Ze{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 n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fe`
659
+ `;var cs=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class hs extends Ze{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 n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fe`
656
660
  <div part="container"
657
661
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
658
662
  @mouseenter=${this.onHover}
@@ -670,40 +674,40 @@ const mn=1,vn=2,xn=t=>(...e)=>({_$litDirective$:t,values:e});class On{constructo
670
674
  </div>
671
675
  </div>
672
676
  </div>
673
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,o=this.tooltip.offsetHeight,i=(t.offsetHeight-o)/2,r=(t.offsetWidth-e)/2;let n=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=n+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;a.left=n+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let f=-l.y,p=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(f,p))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${ss})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}cs.elementDefinitions={"ft-typography":gn},cs.styles=as,ls([R()],cs.prototype,"text",void 0),ls([R({type:Boolean})],cs.prototype,"manual",void 0),ls([R({type:Boolean})],cs.prototype,"inline",void 0),ls([R({type:Number})],cs.prototype,"delay",void 0),ls([R()],cs.prototype,"position",void 0),ls([
677
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,o=this.tooltip.offsetHeight,i=(t.offsetHeight-o)/2,r=(t.offsetWidth-e)/2;let n=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=n+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;a.left=n+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let f=-l.y,p=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(f,p))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${as})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}hs.elementDefinitions={"ft-typography":mn},hs.styles=ls,cs([R()],hs.prototype,"text",void 0),cs([R({type:Boolean})],hs.prototype,"manual",void 0),cs([R({type:Boolean})],hs.prototype,"inline",void 0),cs([R({type:Number})],hs.prototype,"delay",void 0),cs([R()],hs.prototype,"position",void 0),cs([
674
678
  /**
675
679
  * @license
676
680
  * Copyright 2017 Google LLC
677
681
  * SPDX-License-Identifier: BSD-3-Clause
678
682
  */
679
- function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],cs.prototype,"slotNodes",void 0),ls([L(".ft-tooltip--container")],cs.prototype,"container",void 0),ls([L(".ft-tooltip")],cs.prototype,"tooltip",void 0),ls([L(".ft-tooltip--content")],cs.prototype,"tooltipContent",void 0),ls([U()],cs.prototype,"visible",void 0),D("ft-tooltip")(cs);
683
+ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],hs.prototype,"slotNodes",void 0),cs([L(".ft-tooltip--container")],hs.prototype,"container",void 0),cs([L(".ft-tooltip")],hs.prototype,"tooltip",void 0),cs([L(".ft-tooltip--content")],hs.prototype,"tooltipContent",void 0),cs([U()],hs.prototype,"visible",void 0),D("ft-tooltip")(hs);
680
684
  /**
681
685
  * @license
682
686
  * Copyright 2017 Google LLC
683
687
  * SPDX-License-Identifier: BSD-3-Clause
684
688
  */
685
- class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===at||null==t)return this.vt=void 0,this.et=t;if(t===st)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}hs.directiveName="unsafeHTML",hs.resultType=1;const fs=xn(hs);var ps,us,ds;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(ps||(ps={})),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;"}(us||(us={})),new Map([...["abw"].map((t=>[t,us.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,us.AUDIO])),...["avi"].map((t=>[t,us.AVI])),...["chm","xhs"].map((t=>[t,us.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,us.CODE])),...["csv"].map((t=>[t,us.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,us.DITA])),...["epub"].map((t=>[t,us.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,us.EXCEL])),...["flac"].map((t=>[t,us.FLAC])),...["gif"].map((t=>[t,us.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,us.GZIP])),...["html","htm","xhtml"].map((t=>[t,us.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,us.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,us.JPEG])),...["json"].map((t=>[t,us.JSON])),...["m4a","m4p"].map((t=>[t,us.M4A])),...["mov","qt"].map((t=>[t,us.MOV])),...["mp3"].map((t=>[t,us.MP3])),...["mp4","m4v"].map((t=>[t,us.MP4])),...["ogg","oga"].map((t=>[t,us.OGG])),...["pdf","ps"].map((t=>[t,us.PDF])),...["png"].map((t=>[t,us.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,us.POWERPOINT])),...["rar"].map((t=>[t,us.RAR])),...["stp"].map((t=>[t,us.STP])),...["txt","rtf","md","mdown"].map((t=>[t,us.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,us.VIDEO])),...["wav"].map((t=>[t,us.WAV])),...["wma"].map((t=>[t,us.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,us.WORD])),...["xml","xsl","rdf"].map((t=>[t,us.XML])),...["yaml","yml","x-yaml"].map((t=>[t,us.YAML])),...["zip"].map((t=>[t,us.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ds||(ds={}));var ys=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class bs extends Ze{constructor(){super(...arguments),this.resolvedIcon=ue}render(){const t=this.variant&&Object.values(ds).includes(this.variant)?this.variant:ds.fluid_topics,e=t!==ds.material||!!this.value;return fe`
689
+ class fs extends wn{constructor(t){if(super(t),this.et=at,t.type!==xn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===at||null==t)return this.vt=void 0,this.et=t;if(t===st)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}fs.directiveName="unsafeHTML",fs.resultType=1;const ps=On(fs);var us,ds,ys;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(us||(us={})),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;"}(ds||(ds={})),new Map([...["abw"].map((t=>[t,ds.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,ds.AUDIO])),...["avi"].map((t=>[t,ds.AVI])),...["chm","xhs"].map((t=>[t,ds.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,ds.CODE])),...["csv"].map((t=>[t,ds.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ds.DITA])),...["epub"].map((t=>[t,ds.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ds.EXCEL])),...["flac"].map((t=>[t,ds.FLAC])),...["gif"].map((t=>[t,ds.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ds.GZIP])),...["html","htm","xhtml"].map((t=>[t,ds.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,ds.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ds.JPEG])),...["json"].map((t=>[t,ds.JSON])),...["m4a","m4p"].map((t=>[t,ds.M4A])),...["mov","qt"].map((t=>[t,ds.MOV])),...["mp3"].map((t=>[t,ds.MP3])),...["mp4","m4v"].map((t=>[t,ds.MP4])),...["ogg","oga"].map((t=>[t,ds.OGG])),...["pdf","ps"].map((t=>[t,ds.PDF])),...["png"].map((t=>[t,ds.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ds.POWERPOINT])),...["rar"].map((t=>[t,ds.RAR])),...["stp"].map((t=>[t,ds.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ds.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,ds.VIDEO])),...["wav"].map((t=>[t,ds.WAV])),...["wma"].map((t=>[t,ds.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ds.WORD])),...["xml","xsl","rdf"].map((t=>[t,ds.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ds.YAML])),...["zip"].map((t=>[t,ds.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ys||(ys={}));var bs=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class gs extends Ze{constructor(){super(...arguments),this.resolvedIcon=ue}render(){const t=this.variant&&Object.values(ys).includes(this.variant)?this.variant:ys.fluid_topics,e=t!==ys.material||!!this.value;return fe`
686
690
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
687
- ${fs(this.resolvedIcon)}
691
+ ${ps(this.resolvedIcon)}
688
692
  <slot ?hidden=${e}></slot>
689
693
  </i>
690
- `}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 o=this.value||this.textContent;switch(this.variant){case ds.file_format:this.resolvedIcon=null!==(t=us[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ds.material:this.resolvedIcon=this.value||ue;break;default:this.resolvedIcon=null!==(e=ps[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}bs.elementDefinitions={},bs.styles=Mn,ys([R()],bs.prototype,"variant",void 0),ys([R()],bs.prototype,"value",void 0),ys([U()],bs.prototype,"resolvedIcon",void 0),ys([L("slot")],bs.prototype,"slottedContent",void 0),D("ft-icon")(bs);class gs extends Ze{render(){return fe`
694
+ `}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 o=this.value||this.textContent;switch(this.variant){case ys.file_format:this.resolvedIcon=null!==(t=ds[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ys.material:this.resolvedIcon=this.value||ue;break;default:this.resolvedIcon=null!==(e=us[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}gs.elementDefinitions={},gs.styles=Tn,bs([R()],gs.prototype,"variant",void 0),bs([R()],gs.prototype,"value",void 0),bs([U()],gs.prototype,"resolvedIcon",void 0),bs([L("slot")],gs.prototype,"slottedContent",void 0),D("ft-icon")(gs);class ms extends Ze{render(){return fe`
691
695
  <div class="ft-loader">
692
696
  <div></div>
693
697
  <div></div>
694
698
  <div></div>
695
699
  <div></div>
696
700
  </div>
697
- `}}gs.styles=Bn,D("ft-loader")(gs);var ms=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class vs extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Hi].form}constructor(...t){super(t),this[Hi]=this.attachInternals(),this[Hi].role=e}setFormValue(t){this[Hi].setFormValue(t)}}}(Ze,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(fe`
701
+ `}}ms.styles=Kn,D("ft-loader")(ms);var vs=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class xs extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Gi].form}constructor(...t){super(t),this[Gi]=this.attachInternals(),this[Gi].role=e}setFormValue(t){this[Gi].setFormValue(t)}}}(Ze,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(fe`
698
702
  <button part="button"
699
- class="${Jn(this.buttonClasses)}"
703
+ class="${Qn(this.buttonClasses)}"
700
704
  aria-label="${this.getLabel()}"
701
705
  ?disabled=${this.isDisabled()}>
702
706
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
703
707
  <ft-typography part="label"
704
708
  variant=${this.typographyVariant}
705
709
  element="span"
706
- class="ft-button--label ${Yi?"ft-safari-ellipsis-fix":""}"
710
+ class="ft-button--label ${Xi?"ft-safari-ellipsis-fix":""}"
707
711
  ?hidden=${!this.hasTextContent()}>
708
712
  <slot @slotchange=${this.onSlotchange}></slot>
709
713
  </ft-typography>
@@ -717,7 +721,7 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
717
721
  </ft-tooltip>
718
722
  `:t}resolveIcon(){return this.loading?fe`
719
723
  <ft-loader part="loader icon"></ft-loader> `:this.icon?fe`
720
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ue}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}}vs.elementDefinitions={"ft-ripple":ts,"ft-tooltip":cs,"ft-typography":gn,"ft-icon":bs,"ft-loader":gs},ms([R({type:String,reflect:!0})],vs.prototype,"role",void 0),ms([R()],vs.prototype,"type",void 0),ms([R({type:Boolean})],vs.prototype,"disabled",void 0),ms([R()],vs.prototype,"label",void 0),ms([R()],vs.prototype,"icon",void 0),ms([R()],vs.prototype,"iconVariant",void 0),ms([R({type:Boolean})],vs.prototype,"trailingIcon",void 0),ms([R({type:Boolean})],vs.prototype,"loading",void 0),ms([R()],vs.prototype,"tooltipPosition",void 0),ms([R({type:Boolean})],vs.prototype,"hideTooltip",void 0),ms([R({type:Boolean})],vs.prototype,"forceTooltip",void 0),ms([L(".ft-button")],vs.prototype,"button",void 0),ms([L(".ft-button--label slot")],vs.prototype,"slottedContent",void 0);var xs=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Os extends vs{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Os.styles=[He,Xn],xs([R({type:Boolean})],Os.prototype,"primary",void 0),xs([R({type:Boolean})],Os.prototype,"outlined",void 0),xs([R({type:Boolean})],Os.prototype,"dense",void 0),xs([R({type:Boolean})],Os.prototype,"round",void 0);const ws=[Rt`
724
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ue}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}}xs.elementDefinitions={"ft-ripple":es,"ft-tooltip":hs,"ft-typography":mn,"ft-icon":gs,"ft-loader":ms},vs([R({type:String,reflect:!0})],xs.prototype,"role",void 0),vs([R()],xs.prototype,"type",void 0),vs([R({type:Boolean})],xs.prototype,"disabled",void 0),vs([R()],xs.prototype,"label",void 0),vs([R()],xs.prototype,"icon",void 0),vs([R()],xs.prototype,"iconVariant",void 0),vs([R({type:Boolean})],xs.prototype,"trailingIcon",void 0),vs([R({type:Boolean})],xs.prototype,"loading",void 0),vs([R()],xs.prototype,"tooltipPosition",void 0),vs([R({type:Boolean})],xs.prototype,"hideTooltip",void 0),vs([R({type:Boolean})],xs.prototype,"forceTooltip",void 0),vs([L(".ft-button")],xs.prototype,"button",void 0),vs([L(".ft-button--label slot")],xs.prototype,"slottedContent",void 0);var Os=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ws extends xs{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ws.styles=[Ge,Jn],Os([R({type:Boolean})],ws.prototype,"primary",void 0),Os([R({type:Boolean})],ws.prototype,"outlined",void 0),Os([R({type:Boolean})],ws.prototype,"dense",void 0),Os([R({type:Boolean})],ws.prototype,"round",void 0);const Ss=[Rt`
721
725
  :host {
722
726
  display: inline-block;
723
727
  max-width: 100%;
@@ -796,13 +800,13 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
796
800
  /** Primary styles **/
797
801
 
798
802
  .ft-button--primary {
799
- ${Ue(Pn.color,We.primaryIconColor)};
803
+ ${Ue(Bn.color,We.primaryIconColor)};
800
804
 
801
- ${Ue(In.color,We.primaryStateLayerColor)};
802
- ${Ue(In.opacityContentOnSurfaceHover,We.primaryStateLayerOpacityHover)};
803
- ${Ue(In.opacityContentOnSurfaceFocused,We.primaryStateLayerOpacityFocus)};
804
- ${Ue(In.opacityContentOnSurfaceSelected,We.primaryStateLayerOpacityActive)};
805
- ${Ue(In.opacityContentOnSurfacePressed,We.primaryStateLayerOpacityActive)};
805
+ ${Ue(Ln.color,We.primaryStateLayerColor)};
806
+ ${Ue(Ln.opacityContentOnSurfaceHover,We.primaryStateLayerOpacityHover)};
807
+ ${Ue(Ln.opacityContentOnSurfaceFocused,We.primaryStateLayerOpacityFocus)};
808
+ ${Ue(Ln.opacityContentOnSurfaceSelected,We.primaryStateLayerOpacityActive)};
809
+ ${Ue(Ln.opacityContentOnSurfacePressed,We.primaryStateLayerOpacityActive)};
806
810
 
807
811
  background-color: ${We.primaryBackgroundColor};
808
812
  color: ${We.primaryColor};
@@ -820,13 +824,13 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
820
824
  /** Secondary styles **/
821
825
 
822
826
  .ft-button--secondary {
823
- ${Ue(Pn.color,We.secondaryIconColor)};
827
+ ${Ue(Bn.color,We.secondaryIconColor)};
824
828
 
825
- ${Ue(In.color,We.secondaryStateLayerColor)};
826
- ${Ue(In.opacityContentOnSurfaceHover,We.secondaryStateLayerOpacityHover)};
827
- ${Ue(In.opacityContentOnSurfaceFocused,We.secondaryStateLayerOpacityFocus)};
828
- ${Ue(In.opacityContentOnSurfaceSelected,We.secondaryStateLayerOpacityActive)};
829
- ${Ue(In.opacityContentOnSurfacePressed,We.secondaryStateLayerOpacityActive)};
829
+ ${Ue(Ln.color,We.secondaryStateLayerColor)};
830
+ ${Ue(Ln.opacityContentOnSurfaceHover,We.secondaryStateLayerOpacityHover)};
831
+ ${Ue(Ln.opacityContentOnSurfaceFocused,We.secondaryStateLayerOpacityFocus)};
832
+ ${Ue(Ln.opacityContentOnSurfaceSelected,We.secondaryStateLayerOpacityActive)};
833
+ ${Ue(Ln.opacityContentOnSurfacePressed,We.secondaryStateLayerOpacityActive)};
830
834
 
831
835
  background-color: ${We.secondaryBackgroundColor};
832
836
  color: ${We.secondaryColor};
@@ -845,13 +849,13 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
845
849
  /** Tertiary styles **/
846
850
 
847
851
  .ft-button--tertiary {
848
- ${Ue(Pn.color,We.tertiaryIconColor)};
852
+ ${Ue(Bn.color,We.tertiaryIconColor)};
849
853
 
850
- ${Ue(In.color,We.tertiaryStateLayerColor)};
851
- ${Ue(In.opacityContentOnSurfaceHover,We.tertiaryStateLayerOpacityHover)};
852
- ${Ue(In.opacityContentOnSurfaceFocused,We.tertiaryStateLayerOpacityFocus)};
853
- ${Ue(In.opacityContentOnSurfaceSelected,We.tertiaryStateLayerOpacityActive)};
854
- ${Ue(In.opacityContentOnSurfacePressed,We.tertiaryStateLayerOpacityActive)};
854
+ ${Ue(Ln.color,We.tertiaryStateLayerColor)};
855
+ ${Ue(Ln.opacityContentOnSurfaceHover,We.tertiaryStateLayerOpacityHover)};
856
+ ${Ue(Ln.opacityContentOnSurfaceFocused,We.tertiaryStateLayerOpacityFocus)};
857
+ ${Ue(Ln.opacityContentOnSurfaceSelected,We.tertiaryStateLayerOpacityActive)};
858
+ ${Ue(Ln.opacityContentOnSurfacePressed,We.tertiaryStateLayerOpacityActive)};
855
859
 
856
860
  background-color: ${We.tertiaryBackgroundColor};
857
861
  color: ${We.tertiaryColor};
@@ -869,13 +873,13 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
869
873
  /** Neutral styles **/
870
874
 
871
875
  .ft-button--neutral {
872
- ${Ue(Pn.color,We.neutralIconColor)};
876
+ ${Ue(Bn.color,We.neutralIconColor)};
873
877
 
874
- ${Ue(In.backgroundColor,We.neutralStateLayerColor)};
875
- ${Ue(In.opacityContentOnSurfaceHover,We.neutralStateLayerOpacityHover)};
876
- ${Ue(In.opacityContentOnSurfaceFocused,We.neutralStateLayerOpacityFocus)};
877
- ${Ue(In.opacityContentOnSurfaceSelected,We.neutralStateLayerOpacityActive)};
878
- ${Ue(In.opacityContentOnSurfacePressed,We.neutralStateLayerOpacityActive)};
878
+ ${Ue(Ln.backgroundColor,We.neutralStateLayerColor)};
879
+ ${Ue(Ln.opacityContentOnSurfaceHover,We.neutralStateLayerOpacityHover)};
880
+ ${Ue(Ln.opacityContentOnSurfaceFocused,We.neutralStateLayerOpacityFocus)};
881
+ ${Ue(Ln.opacityContentOnSurfaceSelected,We.neutralStateLayerOpacityActive)};
882
+ ${Ue(Ln.opacityContentOnSurfacePressed,We.neutralStateLayerOpacityActive)};
879
883
 
880
884
  background-color: ${We.neutralBackgroundColor};
881
885
  color: ${We.neutralColor};
@@ -893,8 +897,8 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
893
897
  /** Large styles **/
894
898
 
895
899
  .ft-button--large {
896
- ${Ue(Kn.size,We.largeIconSize)};
897
- ${Ue(Pn.size,We.largeIconSize)};
900
+ ${Ue(Mn.size,We.largeIconSize)};
901
+ ${Ue(Bn.size,We.largeIconSize)};
898
902
 
899
903
  height: ${We.largeHeight};
900
904
  padding: 0 ${We.largeHorizontalPadding};
@@ -916,8 +920,8 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
916
920
  /** Small styles **/
917
921
 
918
922
  .ft-button--small {
919
- ${Ue(Kn.size,We.smallIconSize)};
920
- ${Ue(Pn.size,We.smallIconSize)};
923
+ ${Ue(Mn.size,We.smallIconSize)};
924
+ ${Ue(Bn.size,We.smallIconSize)};
921
925
 
922
926
  height: ${We.smallHeight};
923
927
  padding: 0 ${We.smallHorizontalPadding};
@@ -935,14 +939,14 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
935
939
  width: ${We.smallIconOnlyWidth};
936
940
  padding: unset;
937
941
  }
938
- `,_e];var Ss=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Ns extends vs{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?ir.caption1medium:ir.body2medium}}Ns.styles=[He,ws],Ss([R({type:Boolean})],Ns.prototype,"primary",void 0),Ss([R({type:Boolean})],Ns.prototype,"secondary",void 0),Ss([R({type:Boolean})],Ns.prototype,"tertiary",void 0),Ss([R({type:Boolean})],Ns.prototype,"neutral",void 0),Ss([R({type:Boolean})],Ns.prototype,"small",void 0),D("ft-button")(Os),D("ftds-button")(Ns);const Cs=Re.extend("--ft-checkbox-text-color","",je.colorOnSurfaceHigh),$s=Re.external(je.colorPrimary,"Design system"),Es=Re.external(je.colorOnPrimary,"Design system"),ks=Re.extend("--ft-checkbox-border-color","",je.colorOnSurfaceMedium),Rs=Re.external(je.colorOnSurfaceDisabled,"Design system"),Us=Rt`
942
+ `,He];var Ns=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Cs extends xs{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?rr.caption1medium:rr.body2medium}}Cs.styles=[Ge,Ss],Ns([R({type:Boolean})],Cs.prototype,"primary",void 0),Ns([R({type:Boolean})],Cs.prototype,"secondary",void 0),Ns([R({type:Boolean})],Cs.prototype,"tertiary",void 0),Ns([R({type:Boolean})],Cs.prototype,"neutral",void 0),Ns([R({type:Boolean})],Cs.prototype,"small",void 0),D("ft-button")(ws),D("ftds-button")(Cs);const $s=Re.extend("--ft-checkbox-text-color","",je.colorOnSurfaceHigh),Es=Re.external(je.colorPrimary,"Design system"),ks=Re.external(je.colorOnPrimary,"Design system"),Rs=Re.extend("--ft-checkbox-border-color","",je.colorOnSurfaceMedium),Us=Re.external(je.colorOnSurfaceDisabled,"Design system"),Is=Rt`
939
943
  * {
940
944
  box-sizing: border-box;
941
945
  }
942
946
 
943
947
  .ft-checkbox {
944
948
  box-sizing: border-box;
945
- color: ${Cs};
949
+ color: ${$s};
946
950
 
947
951
  display: inline-flex;
948
952
  align-items: center;
@@ -950,7 +954,7 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
950
954
  }
951
955
 
952
956
  .ft-checkbox--disabled {
953
- color: ${Rs};
957
+ color: ${Us};
954
958
  }
955
959
 
956
960
  input {
@@ -974,26 +978,26 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
974
978
 
975
979
  .ft-checkbox--box {
976
980
  display: flex;
977
- border: 2px solid ${ks};
981
+ border: 2px solid ${Rs};
978
982
  border-radius: 2px;
979
983
 
980
984
  width: 18px;
981
985
  height: 18px;
982
986
 
983
- color: ${Es};
987
+ color: ${ks};
984
988
  }
985
989
 
986
990
 
987
991
  .ft-checkbox--checked .ft-checkbox--box,
988
992
  .ft-checkbox--indeterminate .ft-checkbox--box {
989
- border-color: ${$s};
990
- background-color: ${$s};
993
+ border-color: ${Es};
994
+ background-color: ${Es};
991
995
  }
992
996
 
993
997
  .ft-checkbox--disabled .ft-checkbox--box {
994
- border-color: ${Rs};
998
+ border-color: ${Us};
995
999
  background-color: transparent;
996
- color: ${Rs};
1000
+ color: ${Us};
997
1001
  }
998
1002
 
999
1003
  .ft-checkbox--checkmark {
@@ -1012,8 +1016,8 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
1012
1016
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
1013
1017
  opacity: 1;
1014
1018
  }
1015
- `;var Is=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Ls extends Ze{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return fe`
1016
- <label class="${Jn(t)}" for="checkbox-input">
1019
+ `;var Ls=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class As extends Ze{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return fe`
1020
+ <label class="${Qn(t)}" for="checkbox-input">
1017
1021
  <div class="ft-checkbox--box-container">
1018
1022
  <ft-ripple
1019
1023
  ?disabled=${this.disabled}
@@ -1038,14 +1042,14 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
1038
1042
  <slot></slot>
1039
1043
  </ft-typography>
1040
1044
  </label>
1041
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Ls.elementDefinitions={"ft-ripple":ts,"ft-typography":gn},Ls.styles=Us,Is([R()],Ls.prototype,"name",void 0),Is([R({type:Boolean,reflect:!0})],Ls.prototype,"checked",void 0),Is([R({type:Boolean})],Ls.prototype,"indeterminate",void 0),Is([R({type:Boolean})],Ls.prototype,"disabled",void 0),Is([L(".ft-checkbox")],Ls.prototype,"container",void 0),Is([L("ft-ripple")],Ls.prototype,"ripple",void 0),D("ft-checkbox")(Ls);const As=Re.extend("--ft-radio-text-color","",je.colorOnSurfaceHigh),Ws=Re.external(je.colorPrimary,"Design system"),js=(Re.external(je.colorOnPrimary,"Design system"),Re.extend("--ft-radio-border-color","",je.colorOnSurfaceMedium)),Fs=Re.external(je.colorOnSurfaceDisabled,"Design system"),Ds=Rt`
1045
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}As.elementDefinitions={"ft-ripple":es,"ft-typography":mn},As.styles=Is,Ls([R()],As.prototype,"name",void 0),Ls([R({type:Boolean,reflect:!0})],As.prototype,"checked",void 0),Ls([R({type:Boolean})],As.prototype,"indeterminate",void 0),Ls([R({type:Boolean})],As.prototype,"disabled",void 0),Ls([L(".ft-checkbox")],As.prototype,"container",void 0),Ls([L("ft-ripple")],As.prototype,"ripple",void 0),D("ft-checkbox")(As);const Ws=Re.extend("--ft-radio-text-color","",je.colorOnSurfaceHigh),js=Re.external(je.colorPrimary,"Design system"),Fs=(Re.external(je.colorOnPrimary,"Design system"),Re.extend("--ft-radio-border-color","",je.colorOnSurfaceMedium)),Ds=Re.external(je.colorOnSurfaceDisabled,"Design system"),zs=Rt`
1042
1046
  * {
1043
1047
  box-sizing: border-box;
1044
1048
  }
1045
1049
 
1046
1050
  .ft-radio {
1047
1051
  box-sizing: border-box;
1048
- color: ${As};
1052
+ color: ${Ws};
1049
1053
 
1050
1054
  display: inline-flex;
1051
1055
  align-items: center;
@@ -1053,7 +1057,7 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
1053
1057
  }
1054
1058
 
1055
1059
  .ft-radio--disabled {
1056
- color: ${Fs};
1060
+ color: ${Ds};
1057
1061
  }
1058
1062
 
1059
1063
  input {
@@ -1076,7 +1080,7 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
1076
1080
  }
1077
1081
 
1078
1082
  .ft-radio--box {
1079
- border: 2px solid ${js};
1083
+ border: 2px solid ${Fs};
1080
1084
  border-radius: 50%;
1081
1085
 
1082
1086
  display: flex;
@@ -1089,7 +1093,7 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
1089
1093
 
1090
1094
  .ft-radio--box:after {
1091
1095
  content: " ";
1092
- background-color: ${Ws};
1096
+ background-color: ${js};
1093
1097
 
1094
1098
  border-radius: 50%;
1095
1099
 
@@ -1101,7 +1105,7 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
1101
1105
  }
1102
1106
 
1103
1107
  .ft-radio--checked .ft-radio--box {
1104
- border-color: ${Ws};
1108
+ border-color: ${js};
1105
1109
  }
1106
1110
 
1107
1111
 
@@ -1110,15 +1114,15 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
1110
1114
  }
1111
1115
 
1112
1116
  .ft-radio--disabled .ft-radio--box {
1113
- border-color: ${Fs};
1117
+ border-color: ${Ds};
1114
1118
  background-color: transparent;
1115
1119
  }
1116
1120
 
1117
1121
  .ft-radio--disabled .ft-radio--box:after {
1118
- background-color: ${Fs};
1122
+ background-color: ${Ds};
1119
1123
  }
1120
- `;var zs=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Ps extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Bs extends Ze{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return fe`
1121
- <div class="${Jn(t)}">
1124
+ `;var Ps=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Bs extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Ks extends Ze{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return fe`
1125
+ <div class="${Qn(t)}">
1122
1126
  <div class="ft-radio--box-container">
1123
1127
  <ft-ripple
1124
1128
  ?disabled=${this.disabled}
@@ -1142,22 +1146,22 @@ class hs extends On{constructor(t){if(super(t),this.et=at,t.type!==vn)throw Erro
1142
1146
  </ft-typography>
1143
1147
  </label>
1144
1148
  </div>
1145
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Ps(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Ps(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Bs.elementDefinitions={"ft-ripple":ts,"ft-typography":gn},Bs.styles=Ds,zs([R()],Bs.prototype,"value",void 0),zs([R()],Bs.prototype,"name",void 0),zs([R({type:Boolean,reflect:!0})],Bs.prototype,"checked",void 0),zs([R({type:Boolean})],Bs.prototype,"disabled",void 0),zs([L(".ft-radio")],Bs.prototype,"container",void 0),zs([L("ft-ripple")],Bs.prototype,"ripple",void 0),zs([L("input")],Bs.prototype,"input",void 0);const Ks=Rt`
1149
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Bs(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Bs(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Ks.elementDefinitions={"ft-ripple":es,"ft-typography":mn},Ks.styles=zs,Ps([R()],Ks.prototype,"value",void 0),Ps([R()],Ks.prototype,"name",void 0),Ps([R({type:Boolean,reflect:!0})],Ks.prototype,"checked",void 0),Ps([R({type:Boolean})],Ks.prototype,"disabled",void 0),Ps([L(".ft-radio")],Ks.prototype,"container",void 0),Ps([L("ft-ripple")],Ks.prototype,"ripple",void 0),Ps([L("input")],Ks.prototype,"input",void 0);const Ms=Rt`
1146
1150
  :host {
1147
1151
  display: contents;
1148
1152
  }
1149
- `;var Ms=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Ts extends Ze{constructor(){super(...arguments),this.name=""}render(){return fe`
1153
+ `;var Ts=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Zs extends Ze{constructor(){super(...arguments),this.name=""}render(){return fe`
1150
1154
  <slot @slotchange=${this.onSlotChange}
1151
1155
  @change=${this.onChange}
1152
1156
  @keydown=${this.onKeyDown}
1153
1157
  ></slot>
1154
- `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}Ts.elementDefinitions={},Ts.styles=Ks,Ms([R()],Ts.prototype,"name",void 0),Ms([
1158
+ `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}Zs.elementDefinitions={},Zs.styles=Ms,Ts([R()],Zs.prototype,"name",void 0),Ts([
1155
1159
  /**
1156
1160
  * @license
1157
1161
  * Copyright 2021 Google LLC
1158
1162
  * SPDX-License-Identifier: BSD-3-Clause
1159
1163
  */
1160
- function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],Ts.prototype,"radioButtons",void 0),D("ft-radio")(Bs),D("ft-radio-group")(Ts);const Zs={borderRadiusM:Re.external(je.borderRadiusM,"Design system"),colorOutline:Re.external(je.colorOutline,"Design system"),colorOnSurface:Re.external(je.colorOnSurface,"Design system"),colorOnSurfaceMedium:Re.external(je.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Re.external(je.colorOnSurfaceDisabled,"Design system"),colorPrimary:Re.external(je.colorPrimary,"Design system"),colorOnPrimary:Re.external(je.colorOnPrimary,"Design system"),fontFamily:Re.external(Dr.fontFamily,"Body2 typography"),fontSize:Re.external(Dr.fontSize,"Body2 typography"),fontWeight:Re.external(Dr.fontWeight,"Body2 typography"),letterSpacing:Re.external(Dr.letterSpacing,"Body2 typography"),lineHeight:Re.external(Dr.lineHeight,"Body2 typography"),textTransform:Re.external(Dr.textTransform,"Body2 typography")},_s=Rt`
1164
+ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],Zs.prototype,"radioButtons",void 0),D("ft-radio")(Ks),D("ft-radio-group")(Zs);const _s={borderRadiusM:Re.external(je.borderRadiusM,"Design system"),colorOutline:Re.external(je.colorOutline,"Design system"),colorOnSurface:Re.external(je.colorOnSurface,"Design system"),colorOnSurfaceMedium:Re.external(je.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Re.external(je.colorOnSurfaceDisabled,"Design system"),colorPrimary:Re.external(je.colorPrimary,"Design system"),colorOnPrimary:Re.external(je.colorOnPrimary,"Design system"),fontFamily:Re.external(zr.fontFamily,"Body2 typography"),fontSize:Re.external(zr.fontSize,"Body2 typography"),fontWeight:Re.external(zr.fontWeight,"Body2 typography"),letterSpacing:Re.external(zr.letterSpacing,"Body2 typography"),lineHeight:Re.external(zr.lineHeight,"Body2 typography"),textTransform:Re.external(zr.textTransform,"Body2 typography")},Hs=Rt`
1161
1165
  .ft-filter-level--container {
1162
1166
  display: flex;
1163
1167
  flex-direction: column;
@@ -1171,14 +1175,14 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1171
1175
  flex-shrink: 0;
1172
1176
  text-decoration: none;
1173
1177
  position: relative;
1174
- border-radius: ${Zs.borderRadiusM};
1178
+ border-radius: ${_s.borderRadiusM};
1175
1179
  overflow: hidden;
1176
1180
  display: flex;
1177
1181
  align-items: center;
1178
1182
  padding: 4px 4px;
1179
1183
  gap: 4px;
1180
1184
  cursor: pointer;
1181
- color: ${Zs.colorOnSurface};
1185
+ color: ${_s.colorOnSurface};
1182
1186
  }
1183
1187
 
1184
1188
  .ft-filter-level--go-back:focus {
@@ -1207,7 +1211,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1207
1211
  }
1208
1212
 
1209
1213
  ft-button {
1210
- ${Ue(Zn.color,Zs.colorOnSurface)};
1214
+ ${Ue(_n.color,_s.colorOnSurface)};
1211
1215
  }
1212
1216
 
1213
1217
  ft-radio, ft-checkbox {
@@ -1221,9 +1225,9 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1221
1225
 
1222
1226
  .ft-filter-level--no-values {
1223
1227
  margin: 10px 0;
1224
- color: ${Zs.colorOnSurfaceMedium};
1228
+ color: ${_s.colorOnSurfaceMedium};
1225
1229
  }
1226
- `;var Hs=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Gs extends Ze{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return fe`
1230
+ `;var Gs=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Vs extends Ze{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return fe`
1227
1231
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1228
1232
  ${null==this.parent?null:fe`
1229
1233
  <div tabindex="0"
@@ -1242,7 +1246,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1242
1246
  ${this.noValuesLabel}
1243
1247
  </ft-typography>
1244
1248
  `:ue}
1245
- ${Rn(e,(t=>t.value),(t=>{var e;return fe`
1249
+ ${Un(e,(t=>t.value),(t=>{var e;return fe`
1246
1250
  <div class="ft-filter-level--option" part="options">
1247
1251
  ${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
1248
1252
  ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?ue:fe`
@@ -1287,7 +1291,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1287
1291
  @change=${t=>t.stopPropagation()}>
1288
1292
  ${t.renderOption?t.renderOption:t.label}
1289
1293
  </ft-radio>
1290
- `}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Gs.elementDefinitions={"ft-button":Os,"ft-ripple":ts,"ft-typography":gn,"ft-checkbox":Ls,"ft-icon":bs,"ft-radio":Bs},Gs.styles=_s,Hs([R({type:String})],Gs.prototype,"filterId",void 0),Hs([R({type:Object})],Gs.prototype,"parent",void 0),Hs([R({type:Array})],Gs.prototype,"options",void 0),Hs([R({type:Boolean})],Gs.prototype,"multivalued",void 0),Hs([R({type:Boolean})],Gs.prototype,"disabled",void 0),Hs([R({type:Boolean})],Gs.prototype,"hideSelectedOptions",void 0),Hs([R({type:Boolean})],Gs.prototype,"preventNavigation",void 0),Hs([R({type:String})],Gs.prototype,"filter",void 0),Hs([R({type:String})],Gs.prototype,"moreValuesButtonLabel",void 0),Hs([R({type:String})],Gs.prototype,"noValuesLabel",void 0),Hs([R({type:Number})],Gs.prototype,"displayedValuesLimit",void 0),Hs([L(".ft-filter-level--container")],Gs.prototype,"container",void 0),Hs([U()],Gs.prototype,"displayedPages",void 0);const Vs={buttonsColor:Re.extend("--ft-snap-scroll-buttons-color","",je.colorPrimary),buttonsZIndex:Re.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Re.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Re.external(je.colorSurface,"Design system")},qs=Rt`
1294
+ `}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Vs.elementDefinitions={"ft-button":ws,"ft-ripple":es,"ft-typography":mn,"ft-checkbox":As,"ft-icon":gs,"ft-radio":Ks},Vs.styles=Hs,Gs([R({type:String})],Vs.prototype,"filterId",void 0),Gs([R({type:Object})],Vs.prototype,"parent",void 0),Gs([R({type:Array})],Vs.prototype,"options",void 0),Gs([R({type:Boolean})],Vs.prototype,"multivalued",void 0),Gs([R({type:Boolean})],Vs.prototype,"disabled",void 0),Gs([R({type:Boolean})],Vs.prototype,"hideSelectedOptions",void 0),Gs([R({type:Boolean})],Vs.prototype,"preventNavigation",void 0),Gs([R({type:String})],Vs.prototype,"filter",void 0),Gs([R({type:String})],Vs.prototype,"moreValuesButtonLabel",void 0),Gs([R({type:String})],Vs.prototype,"noValuesLabel",void 0),Gs([R({type:Number})],Vs.prototype,"displayedValuesLimit",void 0),Gs([L(".ft-filter-level--container")],Vs.prototype,"container",void 0),Gs([U()],Vs.prototype,"displayedPages",void 0);const qs={buttonsColor:Re.extend("--ft-snap-scroll-buttons-color","",je.colorPrimary),buttonsZIndex:Re.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Re.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Re.external(je.colorSurface,"Design system")},Ys=Rt`
1291
1295
  .ft-snap-scroll {
1292
1296
  box-sizing: border-box;
1293
1297
  position: relative;
@@ -1322,7 +1326,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1322
1326
  flex-wrap: nowrap;
1323
1327
  align-items: flex-start;
1324
1328
  justify-content: flex-start;
1325
- gap: ${Vs.gap};
1329
+ gap: ${qs.gap};
1326
1330
  }
1327
1331
 
1328
1332
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1365,11 +1369,11 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1365
1369
  .ft-snap-scroll--next {
1366
1370
  position: absolute;
1367
1371
  display: flex;
1368
- z-index: ${Vs.buttonsZIndex};
1372
+ z-index: ${qs.buttonsZIndex};
1369
1373
  opacity: 1;
1370
1374
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1371
- ${Ue(Zn.backgroundColor,"transparent")};
1372
- ${Ue(Zn.color,Vs.buttonsColor)};
1375
+ ${Ue(_n.backgroundColor,"transparent")};
1376
+ ${Ue(_n.color,qs.buttonsColor)};
1373
1377
  }
1374
1378
 
1375
1379
  .ft-snap-scroll--previous[hidden],
@@ -1382,37 +1386,37 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1382
1386
  top: 0;
1383
1387
  left: -1px;
1384
1388
  bottom: 0;
1385
- background: linear-gradient(to right, ${Vs.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1389
+ background: linear-gradient(to right, ${qs.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1386
1390
  }
1387
1391
 
1388
1392
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1389
1393
  top: -1px;
1390
1394
  left: 0;
1391
1395
  right: 0;
1392
- background: linear-gradient(to bottom, ${Vs.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1396
+ background: linear-gradient(to bottom, ${qs.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1393
1397
  }
1394
1398
 
1395
1399
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1396
1400
  top: 0;
1397
1401
  right: -1px;
1398
1402
  bottom: 0;
1399
- background: linear-gradient(to left, ${Vs.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1403
+ background: linear-gradient(to left, ${qs.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1400
1404
  }
1401
1405
 
1402
1406
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1403
1407
  left: 0;
1404
1408
  right: 0;
1405
1409
  bottom: -1px;
1406
- background: linear-gradient(to top, ${Vs.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1410
+ background: linear-gradient(to top, ${qs.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1407
1411
  }
1408
1412
 
1409
1413
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1410
1414
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1411
1415
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1412
1416
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1413
- background-color: ${Vs.colorSurface};
1417
+ background-color: ${qs.colorSurface};
1414
1418
  }
1415
- `;var Ys=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Xs extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Js extends Ze{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new n(200),this.updateScrollDebouncer=new n(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<o||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=Jn({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Yi}),e=this.controls&&this.withScroll;return fe`
1419
+ `;var Xs=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Js extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Qs extends Ze{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new n(200),this.updateScrollDebouncer=new n(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<o||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=Qn({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Xi}),e=this.controls&&this.withScroll;return fe`
1416
1420
  <div part="container" class="${t}">
1417
1421
  <ft-button
1418
1422
  class="ft-snap-scroll--previous"
@@ -1436,7 +1440,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1436
1440
  @click=${this.next}
1437
1441
  ></ft-button>
1438
1442
  </div>
1439
- `}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Xs(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Js.elementDefinitions={"ft-button":Os},Js.styles=qs,Ys([R({type:Boolean})],Js.prototype,"horizontal",void 0),Ys([R({type:Boolean})],Js.prototype,"hideScrollbar",void 0),Ys([R({type:Boolean})],Js.prototype,"controls",void 0),Ys([R({type:Boolean})],Js.prototype,"limitSize",void 0),Ys([U()],Js.prototype,"elements",void 0),Ys([U()],Js.prototype,"currentElement",void 0),Ys([U()],Js.prototype,"withScroll",void 0),Ys([U()],Js.prototype,"startReached",void 0),Ys([U()],Js.prototype,"endReached",void 0),Ys([L(".ft-snap-scroll--content")],Js.prototype,"contentSlot",void 0),D("ft-snap-scroll")(Js);const Qs=Re.external(je.colorOutline,"Design system"),ta=Re.external(je.colorOnSurface,"Design system"),ea=Re.external(je.colorOnSurfaceMedium,"Design system"),oa=Re.external(je.colorPrimary,"Design system"),ia=Re.external(je.colorSurface,"Design system"),ra=Re.external(je.transitionDuration,"Design system"),na=Re.external(je.transitionTimingFunction,"Design system"),sa=[hn,Rt`
1443
+ `}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Js(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Qs.elementDefinitions={"ft-button":ws},Qs.styles=Ys,Xs([R({type:Boolean})],Qs.prototype,"horizontal",void 0),Xs([R({type:Boolean})],Qs.prototype,"hideScrollbar",void 0),Xs([R({type:Boolean})],Qs.prototype,"controls",void 0),Xs([R({type:Boolean})],Qs.prototype,"limitSize",void 0),Xs([U()],Qs.prototype,"elements",void 0),Xs([U()],Qs.prototype,"currentElement",void 0),Xs([U()],Qs.prototype,"withScroll",void 0),Xs([U()],Qs.prototype,"startReached",void 0),Xs([U()],Qs.prototype,"endReached",void 0),Xs([L(".ft-snap-scroll--content")],Qs.prototype,"contentSlot",void 0),D("ft-snap-scroll")(Qs);const ta=Re.external(je.colorOutline,"Design system"),ea=Re.external(je.colorOnSurface,"Design system"),oa=Re.external(je.colorOnSurfaceMedium,"Design system"),ia=Re.external(je.colorPrimary,"Design system"),ra=Re.external(je.colorSurface,"Design system"),na=Re.external(je.transitionDuration,"Design system"),sa=Re.external(je.transitionTimingFunction,"Design system"),aa=[fn,Rt`
1440
1444
  :host {
1441
1445
  display: flex;
1442
1446
  max-height: 100%;
@@ -1449,7 +1453,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1449
1453
  flex-direction: column;
1450
1454
  max-height: 100%;
1451
1455
  max-width: 100%;
1452
- color: ${ta};
1456
+ color: ${ea};
1453
1457
  }
1454
1458
 
1455
1459
  .ft-filter--header {
@@ -1459,13 +1463,13 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1459
1463
  flex-shrink: 0;
1460
1464
  padding: 0 10px;
1461
1465
  margin-bottom: 8px;
1462
- ${Ue(sr.fontSize,"14px")};
1466
+ ${Ue(ar.fontSize,"14px")};
1463
1467
  }
1464
1468
 
1465
1469
  .ft-filter--header ft-button {
1466
1470
  flex-shrink: 0;
1467
1471
  margin-left: auto;
1468
- ${Ue(Zn.iconSize,"18px")};
1472
+ ${Ue(_n.iconSize,"18px")};
1469
1473
  }
1470
1474
 
1471
1475
  .ft-filter--label {
@@ -1473,8 +1477,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1473
1477
  flex-shrink: 1;
1474
1478
  flex-grow: 1;
1475
1479
  word-break: break-word;
1476
- ${Ue(sr.lineHeight,"22px")};
1477
- ${Ue(sr.fontWeight,"bold")};
1480
+ ${Ue(ar.lineHeight,"22px")};
1481
+ ${Ue(ar.fontWeight,"bold")};
1478
1482
  }
1479
1483
 
1480
1484
  .ft-filter--filter {
@@ -1485,8 +1489,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1485
1489
  padding: 0 10px;
1486
1490
  overflow: hidden;
1487
1491
  height: 32px;
1488
- transition: height ${ra} ${na},
1489
- margin ${ra} ${na};
1492
+ transition: height ${na} ${sa},
1493
+ margin ${na} ${sa};
1490
1494
  transition-delay: 500ms;
1491
1495
  }
1492
1496
 
@@ -1499,15 +1503,15 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1499
1503
  display: block;
1500
1504
  width: 100%;
1501
1505
  border-radius: 4px;
1502
- border: 1px solid ${Qs};
1506
+ border: 1px solid ${ta};
1503
1507
  padding: 4px;
1504
- background-color: ${ia};
1505
- color: ${ta};
1506
- outline-color: ${oa};
1508
+ background-color: ${ra};
1509
+ color: ${ea};
1510
+ outline-color: ${ia};
1507
1511
  }
1508
1512
 
1509
1513
  input::placeholder {
1510
- color: ${ea};
1514
+ color: ${oa};
1511
1515
  }
1512
1516
 
1513
1517
  input:placeholder-shown {
@@ -1523,7 +1527,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1523
1527
  }
1524
1528
 
1525
1529
  .ft-filter--separator {
1526
- border-top: 1px solid ${Qs};
1530
+ border-top: 1px solid ${ta};
1527
1531
  margin: 4px 10px;
1528
1532
  }
1529
1533
 
@@ -1548,7 +1552,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1548
1552
  slot:not([name]) {
1549
1553
  display: none;
1550
1554
  }
1551
- `];var aa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class la extends CustomEvent{constructor(t){super("change",{detail:t})}}class ca extends Ze{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new n(300),this.changeDebouncer=new n(10),this.lastDispatchedValues=[]}get flatOptions(){return j(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return fe`
1555
+ `];var la=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ca extends CustomEvent{constructor(t){super("change",{detail:t})}}class ha extends Ze{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new n(300),this.changeDebouncer=new n(10),this.lastDispatchedValues=[]}get flatOptions(){return j(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return fe`
1552
1556
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1553
1557
  part="container">
1554
1558
  ${this.label||t?fe`
@@ -1620,26 +1624,26 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1620
1624
  .exportpartsPrefixes=${["values","available-values"]}
1621
1625
  noValuesLabel="${this.noValuesLabel}"
1622
1626
  ></ft-filter-level>
1623
- `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;F(this.lastDispatchedValues,t)||(this.dispatchEvent(new la(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}ca.elementDefinitions={"ft-button":Os,"ft-filter-level":Gs,"ft-snap-scroll":Js,"ft-typography":gn},ca.styles=sa,aa([R({type:String})],ca.prototype,"id",void 0),aa([R({type:String})],ca.prototype,"label",void 0),aa([R({type:String})],ca.prototype,"filterPlaceHolder",void 0),aa([R({type:String})],ca.prototype,"clearButtonLabel",void 0),aa([R({type:String})],ca.prototype,"moreValuesButtonLabel",void 0),aa([R({type:String})],ca.prototype,"noValuesLabel",void 0),aa([z([])],ca.prototype,"options",void 0),aa([R({type:Boolean})],ca.prototype,"multivalued",void 0),aa([R({type:Boolean})],ca.prototype,"disabled",void 0),aa([R({type:Boolean})],ca.prototype,"raiseSelectedOptions",void 0),aa([R({type:Number})],ca.prototype,"displayedValuesLimit",void 0),aa([R({type:Boolean})],ca.prototype,"hideClearButton",void 0),aa([L(".ft-filter--slot")],ca.prototype,"slotElement",void 0),aa([L(".ft-filter--container")],ca.prototype,"container",void 0),aa([L(".ft-filter--values")],ca.prototype,"valuesContainer",void 0),aa([L(".ft-filter--levels")],ca.prototype,"levelsContainer",void 0),aa([U()],ca.prototype,"lastLevelHasHiddenvalues",void 0),aa([L(".ft-filter--filter input")],ca.prototype,"filterInput",void 0),aa([function(t){return(e,o)=>I(0,0,{get(){return(this.renderRoot??(A??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],ca.prototype,"levels",void 0),aa([U()],ca.prototype,"withScroll",void 0),aa([U()],ca.prototype,"filter",void 0),aa([U()],ca.prototype,"slideIn",void 0),aa([U()],ca.prototype,"slideOut",void 0);var ha=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class fa extends Ze{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return fe`
1627
+ `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;F(this.lastDispatchedValues,t)||(this.dispatchEvent(new ca(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}ha.elementDefinitions={"ft-button":ws,"ft-filter-level":Vs,"ft-snap-scroll":Qs,"ft-typography":mn},ha.styles=aa,la([R({type:String})],ha.prototype,"id",void 0),la([R({type:String})],ha.prototype,"label",void 0),la([R({type:String})],ha.prototype,"filterPlaceHolder",void 0),la([R({type:String})],ha.prototype,"clearButtonLabel",void 0),la([R({type:String})],ha.prototype,"moreValuesButtonLabel",void 0),la([R({type:String})],ha.prototype,"noValuesLabel",void 0),la([z([])],ha.prototype,"options",void 0),la([R({type:Boolean})],ha.prototype,"multivalued",void 0),la([R({type:Boolean})],ha.prototype,"disabled",void 0),la([R({type:Boolean})],ha.prototype,"raiseSelectedOptions",void 0),la([R({type:Number})],ha.prototype,"displayedValuesLimit",void 0),la([R({type:Boolean})],ha.prototype,"hideClearButton",void 0),la([L(".ft-filter--slot")],ha.prototype,"slotElement",void 0),la([L(".ft-filter--container")],ha.prototype,"container",void 0),la([L(".ft-filter--values")],ha.prototype,"valuesContainer",void 0),la([L(".ft-filter--levels")],ha.prototype,"levelsContainer",void 0),la([U()],ha.prototype,"lastLevelHasHiddenvalues",void 0),la([L(".ft-filter--filter input")],ha.prototype,"filterInput",void 0),la([function(t){return(e,o)=>I(0,0,{get(){return(this.renderRoot??(A??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],ha.prototype,"levels",void 0),la([U()],ha.prototype,"withScroll",void 0),la([U()],ha.prototype,"filter",void 0),la([U()],ha.prototype,"slideIn",void 0),la([U()],ha.prototype,"slideOut",void 0);var fa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class pa extends Ze{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return fe`
1624
1628
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1625
- `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}fa.elementDefinitions={},ha([R({type:String})],fa.prototype,"label",void 0),ha([R({type:Object,converter:t=>t})],fa.prototype,"value",void 0),ha([R({type:Boolean,reflect:!0})],fa.prototype,"selected",void 0),ha([R({type:Object})],fa.prototype,"subOptions",void 0),ha([z({})],fa.prototype,"renderOption",void 0),ha([L(".ft-filter-option--slot")],fa.prototype,"slotElement",void 0),D("ft-filter")(ca),D("ft-filter-option")(fa);const pa=Rt`
1626
- `,ua=Rt`
1627
- `,da=Zi.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class ya{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=da.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?ya.build(t):null!==(e=ya.API)&&void 0!==e?e:ya.API=ya.build()}static await(t){return new Promise((e=>{let o=ya.get(t);if(o)e(o);else{const i=da.subscribe((()=>{o=ya.get(t),o&&(i(),e(o))}))}}))}}var ba;const ga=Symbol("clearAfterUnitTest");class ma{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[ba]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=da.getState().uiLocale,da.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=da.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};F(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Ge(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>W(0).then((()=>t())).catch((()=>null)))))}}ba=ga,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new ma((async(t,e)=>(await ya.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new ma((async(t,e)=>(await ya.await()).getCustomMessageContext(t,e))));const va=window.FluidTopicsI18nService,xa=window.FluidTopicsCustomI18nService;var Oa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class wa extends Ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ya.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return fe`
1629
+ `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}pa.elementDefinitions={},fa([R({type:String})],pa.prototype,"label",void 0),fa([R({type:Object,converter:t=>t})],pa.prototype,"value",void 0),fa([R({type:Boolean,reflect:!0})],pa.prototype,"selected",void 0),fa([R({type:Object})],pa.prototype,"subOptions",void 0),fa([z({})],pa.prototype,"renderOption",void 0),fa([L(".ft-filter-option--slot")],pa.prototype,"slotElement",void 0),D("ft-filter")(ha),D("ft-filter-option")(pa);const ua=Rt`
1630
+ `,da=Rt`
1631
+ `,ya=_i.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class ba{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=ya.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?ba.build(t):null!==(e=ba.API)&&void 0!==e?e:ba.API=ba.build()}static await(t){return new Promise((e=>{let o=ba.get(t);if(o)e(o);else{const i=ya.subscribe((()=>{o=ba.get(t),o&&(i(),e(o))}))}}))}}var ga;const ma=Symbol("clearAfterUnitTest");class va{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[ga]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=ya.getState().uiLocale,ya.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ya.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};F(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Ve(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>W(0).then((()=>t())).catch((()=>null)))))}}ga=ma,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new va((async(t,e)=>(await ba.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new va((async(t,e)=>(await ba.await()).getCustomMessageContext(t,e))));const xa=window.FluidTopicsI18nService,Oa=window.FluidTopicsCustomI18nService;var wa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Sa extends Ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ba.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return fe`
1628
1632
  <slot></slot>
1629
- `}update(t){super.update(t),t.has("baseUrl")&&da.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&da.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&da.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&da.actions.setNoCustom(this.noCustom),t.has("editorMode")&&da.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&da.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&da.actions.setSession(this.session),t.has("availableUiLocales")&&da.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>va.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}wa.elementDefinitions={},wa.styles=ua,Oa([R()],wa.prototype,"baseUrl",void 0),Oa([R()],wa.prototype,"apiIntegrationIdentifier",void 0),Oa([R()],wa.prototype,"uiLocale",void 0),Oa([z([])],wa.prototype,"availableUiLocales",void 0),Oa([R({type:Boolean})],wa.prototype,"editorMode",void 0),Oa([R({type:Boolean})],wa.prototype,"noCustom",void 0),Oa([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],wa.prototype,"noCustomComponent",void 0),Oa([R({type:Boolean})],wa.prototype,"withManualResources",void 0),Oa([z([])],wa.prototype,"messageContexts",void 0),Oa([z(void 0)],wa.prototype,"session",void 0),Oa([R({type:Object})],wa.prototype,"apiProvider",void 0);class Sa{async listMySearches(){var t;return(null===(t=da.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ya.await()).listMySearches(da.getState().session.profile.userId):[]}}const Na=new r;class Ca{async listMyBookmarks(){return Na.get("bookmarks",(async()=>(await ya.await()).listMyBookmarks(da.getState().session.profile.userId)))}clearCache(){Na.clear("bookmarks")}}const $a=Zi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Ea=new class{constructor(){this.currentSession=da.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ca,da.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=da.getState();F(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){$a.actions.savedSearches(void 0)}clearMyBookmarks(){$a.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Sa,e=await t.listMySearches();$a.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;$a.actions.bookmarks(e)}}};D("ft-app-context")(wa);var ka=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Ra=Symbol("i18nProperties"),Ua=Symbol("i18nUnsubs");function Ia(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?xa:va}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Ra])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ra])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ra]&&new Set([...this[Ra].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Ua].has(t)||this[Ua].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Ua].forEach((t=>t())),this[Ua].clear()}}return e=Ua,ka([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class La extends(Ia(Ze)){}class Aa extends(Ia(eo)){}var Wa=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class ja extends Aa{constructor(){super(),this.editorMode=!1,this.addStore(da)}render(){return this.key&&this.context?fe`
1633
+ `}update(t){super.update(t),t.has("baseUrl")&&ya.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ya.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ya.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ya.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ya.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ya.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ya.actions.setSession(this.session),t.has("availableUiLocales")&&ya.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>xa.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Sa.elementDefinitions={},Sa.styles=da,wa([R()],Sa.prototype,"baseUrl",void 0),wa([R()],Sa.prototype,"apiIntegrationIdentifier",void 0),wa([R()],Sa.prototype,"uiLocale",void 0),wa([z([])],Sa.prototype,"availableUiLocales",void 0),wa([R({type:Boolean})],Sa.prototype,"editorMode",void 0),wa([R({type:Boolean})],Sa.prototype,"noCustom",void 0),wa([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Sa.prototype,"noCustomComponent",void 0),wa([R({type:Boolean})],Sa.prototype,"withManualResources",void 0),wa([z([])],Sa.prototype,"messageContexts",void 0),wa([z(void 0)],Sa.prototype,"session",void 0),wa([R({type:Object})],Sa.prototype,"apiProvider",void 0);class Na{async listMySearches(){var t;return(null===(t=ya.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ba.await()).listMySearches(ya.getState().session.profile.userId):[]}}const Ca=new r;class $a{async listMyBookmarks(){return Ca.get("bookmarks",(async()=>(await ba.await()).listMyBookmarks(ya.getState().session.profile.userId)))}clearCache(){Ca.clear("bookmarks")}}const Ea=_i.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ka=new class{constructor(){this.currentSession=ya.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $a,ya.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ya.getState();F(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Ea.actions.savedSearches(void 0)}clearMyBookmarks(){Ea.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Na,e=await t.listMySearches();Ea.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Ea.actions.bookmarks(e)}}};D("ft-app-context")(Sa);var Ra=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Ua=Symbol("i18nProperties"),Ia=Symbol("i18nUnsubs");function La(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Oa:xa}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Ua])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ua])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ua]&&new Set([...this[Ua].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Ia].has(t)||this[Ia].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Ia].forEach((t=>t())),this[Ia].clear()}}return e=Ia,Ra([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Aa extends(La(Ze)){}class Wa extends(La(oo)){}var ja=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Fa extends Wa{constructor(){super(),this.editorMode=!1,this.addStore(ya)}render(){return this.key&&this.context?fe`
1630
1634
  <span class="ft-i18n">
1631
1635
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1632
1636
  </span>
1633
- `:this.editorMode?"Select a context and a label key.":ue}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ja.elementDefinitions={},ja.styles=pa,Wa([_i()],ja.prototype,"editorMode",void 0),Wa([R()],ja.prototype,"context",void 0),Wa([R()],ja.prototype,"key",void 0),Wa([z([])],ja.prototype,"args",void 0),Wa([R()],ja.prototype,"defaultMessage",void 0);class Fa{static build(t){return new Fa(t)}static fromGwt(t){return new Fa(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>va.resolveMessage(this.name,e,...t)})}}D("ft-i18n")(ja);const Da={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var za,Pa,Ba,Ka,Ma,Ta,Za,_a,Ha,Ga,Va,qa,Ya,Xa;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=h(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=h(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=s(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=s(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),a(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),d.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function g(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];g.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var s=new y(t,i);if(s.signal&&s.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,o={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new g(i,o))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=y,t.Response=g),e.Headers=l,e.Request=y,e.Response=g,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(za||(za={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Pa||(Pa={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Ba||(Ba={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ka||(Ka={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ma||(Ma={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Ta||(Ta={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Za||(Za={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(_a||(_a={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ha||(Ha={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ga||(Ga={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Va||(Va={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(qa||(qa={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Ya||(Ya={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Xa||(Xa={})),Xa.PERSONAL_BOOK_SHARE_USER,Xa.PERSONAL_BOOK_USER,Xa.HTML_EXPORT_USER,Xa.PERSONAL_BOOK_USER,Xa.PDF_EXPORT_USER,Xa.PERSONAL_BOOK_USER,Xa.KHUB_ADMIN,Xa.CONTENT_PUBLISHER,Xa.ADMIN,Xa.KHUB_ADMIN,Xa.USERS_ADMIN,Xa.PORTAL_ADMIN,Xa.DEVELOPER,Xa.BETA_USER,Xa.DEBUG_USER;class Ja{static async build(){return new Ja(await ya.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const Qa=t=>t.request.virtualField===_a.TITLE_ONLY&&t.request.scope===Ya.DOCUMENTS;class tl extends Event{constructor(){super(tl.eventName)}}tl.eventName="search-context-clear-all-filters";class el{static build(t){return new el((t=>Zi.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Da}))(t.trim()||"context"),Ja.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await W(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(_a.TITLE_ONLY),this.store.actions.setRequestScope(Ya.DOCUMENTS)):(this.store.actions.setRequestVirtualField(_a.EVERYWHERE),this.store.actions.setRequestScope(Ya.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Qa(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new tl)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var ol=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class il extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const rl=Symbol("registerInterval");class nl extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[rl]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[rl]):this.dispatchEvent(new il)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=rl,ol([U()],o.prototype,"stateManager",void 0),o}(eo)){}const sl=Fa.build("designedSearchType"),al={label:"Search scope",documentTitlesOnly:"Search in document titles only"},ll=Rt`
1634
- `;var cl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class hl extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class fl extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class pl extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class ul extends eo{get stateManager(){return null==this._stateManager&&(this._stateManager=el.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(da)}render(){return fe`
1637
+ `:this.editorMode?"Select a context and a label key.":ue}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Fa.elementDefinitions={},Fa.styles=ua,ja([Hi()],Fa.prototype,"editorMode",void 0),ja([R()],Fa.prototype,"context",void 0),ja([R()],Fa.prototype,"key",void 0),ja([z([])],Fa.prototype,"args",void 0),ja([R()],Fa.prototype,"defaultMessage",void 0);class Da{static build(t){return new Da(t)}static fromGwt(t){return new Da(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>xa.resolveMessage(this.name,e,...t)})}}D("ft-i18n")(Fa);const za={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var Pa,Ba,Ka,Ma,Ta,Za,_a,Ha,Ga,Va,qa,Ya,Xa,Ja;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=h(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=h(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=s(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=s(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),a(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),d.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function g(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];g.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var s=new y(t,i);if(s.signal&&s.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,o={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new g(i,o))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=y,t.Response=g),e.Headers=l,e.Request=y,e.Response=g,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Pa||(Pa={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ba||(Ba={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Ka||(Ka={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ma||(Ma={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ta||(Ta={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Za||(Za={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(_a||(_a={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ha||(Ha={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ga||(Ga={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Va||(Va={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(qa||(qa={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Ya||(Ya={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Xa||(Xa={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Ja||(Ja={})),Ja.PERSONAL_BOOK_SHARE_USER,Ja.PERSONAL_BOOK_USER,Ja.HTML_EXPORT_USER,Ja.PERSONAL_BOOK_USER,Ja.PDF_EXPORT_USER,Ja.PERSONAL_BOOK_USER,Ja.KHUB_ADMIN,Ja.CONTENT_PUBLISHER,Ja.ADMIN,Ja.KHUB_ADMIN,Ja.USERS_ADMIN,Ja.PORTAL_ADMIN,Ja.DEVELOPER,Ja.BETA_USER,Ja.DEBUG_USER;class Qa{static async build(){return new Qa(await ba.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const tl=t=>t.request.virtualField===Ha.TITLE_ONLY&&t.request.scope===Xa.DOCUMENTS;class el extends Event{constructor(){super(el.eventName)}}el.eventName="search-context-clear-all-filters";class ol{static build(t){return new ol((t=>_i.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:za}))(t.trim()||"context"),Qa.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await W(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(Ha.TITLE_ONLY),this.store.actions.setRequestScope(Xa.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Ha.EVERYWHERE),this.store.actions.setRequestScope(Xa.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return tl(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new el)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var il=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class rl extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const nl=Symbol("registerInterval");class sl extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[nl]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[nl]):this.dispatchEvent(new rl)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=nl,il([U()],o.prototype,"stateManager",void 0),o}(oo)){}const al=Da.build("designedSearchType"),ll={label:"Search scope",documentTitlesOnly:"Search in document titles only"},cl=Rt`
1638
+ `;var hl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class fl extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class pl extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class ul extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class dl extends oo{get stateManager(){return null==this._stateManager&&(this._stateManager=ol.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(ya)}render(){return fe`
1635
1639
  <slot @register-ft-search-component=${this.registerComponent}></slot>
1636
- `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new fl(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new pl(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new hl(t))}reloadSavedSearches(){Ea.clearMySearches()}clear(){this.stateManager.clear()}}ul.elementDefinitions={},ul.styles=ll,cl([R()],ul.prototype,"query",void 0),cl([R()],ul.prototype,"contentLocale",void 0),cl([R({type:Number})],ul.prototype,"pageSize",void 0),cl([R({type:Boolean})],ul.prototype,"searchInDocumentTitlesOnly",void 0),cl([R()],ul.prototype,"scope",void 0),cl([R({type:Boolean})],ul.prototype,"ignoreEmptyQuery",void 0),cl([z([])],ul.prototype,"filters",void 0),cl([z([])],ul.prototype,"sort",void 0),cl([_i({store:"search"})],ul.prototype,"request",void 0),cl([_i({store:"search"})],ul.prototype,"paging",void 0),cl([_i({store:"search",selector:t=>t.spellcheck})],ul.prototype,"autocorrect",void 0),cl([_i({store:da.name})],ul.prototype,"session",void 0),D("ft-search-context")(ul);var dl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class yl extends(Ia(nl)){constructor(){super(),this.addI18nContext(sl,al)}render(){return fe`
1640
+ `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new pl(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new ul(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new fl(t))}reloadSavedSearches(){ka.clearMySearches()}clear(){this.stateManager.clear()}}dl.elementDefinitions={},dl.styles=cl,hl([R()],dl.prototype,"query",void 0),hl([R()],dl.prototype,"contentLocale",void 0),hl([R({type:Number})],dl.prototype,"pageSize",void 0),hl([R({type:Boolean})],dl.prototype,"searchInDocumentTitlesOnly",void 0),hl([R()],dl.prototype,"scope",void 0),hl([R({type:Boolean})],dl.prototype,"ignoreEmptyQuery",void 0),hl([z([])],dl.prototype,"filters",void 0),hl([z([])],dl.prototype,"sort",void 0),hl([Hi({store:"search"})],dl.prototype,"request",void 0),hl([Hi({store:"search"})],dl.prototype,"paging",void 0),hl([Hi({store:"search",selector:t=>t.spellcheck})],dl.prototype,"autocorrect",void 0),hl([Hi({store:ya.name})],dl.prototype,"session",void 0),D("ft-search-context")(dl);var yl=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class bl extends(La(sl)){constructor(){super(),this.addI18nContext(al,ll)}render(){return fe`
1637
1641
  <ft-filter
1638
- label=${sl.messages.label()}
1639
- .options=${[{label:sl.messages.documentTitlesOnly(),value:t=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
1642
+ label=${al.messages.label()}
1643
+ .options=${[{label:al.messages.documentTitlesOnly(),value:t=>{var e;return null===(e=this.stateManager)||void 0===e?void 0:e.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
1640
1644
  part="filter"
1641
1645
  .exportpartsPrefixes=${["filter"]}
1642
1646
  multivalued
1643
1647
  @change=${this.onSelected}
1644
1648
  ></ft-filter>
1645
- `}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}yl.elementDefinitions={"ft-filter":ca},yl.styles=Xi,dl([_i({selector:Qa})],yl.prototype,"searchInDocumentTitlesOnly",void 0),dl([L("ft-filter")],yl.prototype,"filter",void 0),D("ft-search-type")(yl),t.FtSearchType=yl,t.FtSearchTypeCssVariables={},t.searchTypeContext=sl,t.searchTypeDefaultMessages=al,t.styles=Xi}({});
1649
+ `}onSelected(t){var e;null===(e=this.filter)||void 0===e||e.options.forEach((t=>t.value(t.selected)))}}bl.elementDefinitions={"ft-filter":ha},bl.styles=Ji,yl([Hi({selector:tl})],bl.prototype,"searchInDocumentTitlesOnly",void 0),yl([L("ft-filter")],bl.prototype,"filter",void 0),D("ft-search-type")(bl),t.FtSearchType=bl,t.FtSearchTypeCssVariables={},t.searchTypeContext=al,t.searchTypeDefaultMessages=ll,t.styles=Ji}({});