@fluid-topics/ft-search-locale-selector 1.1.0 → 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,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){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=a.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,f=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=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=f(o)||window.customElements,r=i._getDefinition(e);return r?u(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)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(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&&s.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 a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.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(es){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}}class i{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,i){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=i&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),i)),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 r{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,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);p(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){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=a.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,f=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=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=f(o)||window.customElements,r=i._getDefinition(e);return r?u(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)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(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&&s.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 a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.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(os){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}}class i{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,i){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=i&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),i)),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 r{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 Ne=class extends Tt{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 Fe extends Ne{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)=>{je?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=We.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var ze,Be=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const De=Symbol("constructorPrototype"),Pe=Symbol("constructorName"),Ke=Symbol("exportpartsDebouncer");class Me extends Fe{constructor(){super(),this[ze]=new r(5),this[Pe]=this.constructor.name,this[De]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pe]&&Object.setPrototypeOf(this,this[De])}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[Ke].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,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(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!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}ze=Ke,Be([k()],Me.prototype,"exportpartsPrefix",void 0),Be([F([])],Me.prototype,"exportpartsPrefixes",void 0),Be([k()],Me.prototype,"customStylesheet",void 0);const Te=Et`
84
+ */class Fe extends Ne{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)=>{je?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=We.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var ze,Be=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const De=Symbol("constructorPrototype"),Pe=Symbol("constructorName"),Ke=Symbol("exportpartsDebouncer");class Me extends Fe{constructor(){super(),this[ze]=new r(5),this[Pe]=this.constructor.name,this[De]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pe]&&Object.setPrototypeOf(this,this[De])}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[Ke].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,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(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!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}ze=Ke,Be([k()],Me.prototype,"exportpartsPrefix",void 0),Be([F([])],Me.prototype,"exportpartsPrefixes",void 0),Be([k()],Me.prototype,"customStylesheet",void 0);const Te=Ee.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Et`
85
+ .highlight-html-match {
86
+ background: ${Te};
87
+ }
88
+ `;const Ze=Et`
85
89
  .ft-no-text-select {
86
90
  -webkit-touch-callout: none;
87
91
  -webkit-user-select: none;
@@ -102,7 +106,7 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
102
106
  -webkit-hyphens: auto;
103
107
  hyphens: auto
104
108
  }
105
- `;const Ze=Et`
109
+ `;const _e=Et`
106
110
  .ft-safari-ellipsis-fix {
107
111
  margin-right: 0;
108
112
 
@@ -113,7 +117,7 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
113
117
  display: inline-block;
114
118
  width: 0;
115
119
  }
116
- `;class _e{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 He(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ge,Ve,qe;const Ye=Symbol("internalReduxEventsUnsubscribers"),Xe=Symbol("internalStoresUnsubscribers"),Je=Symbol("internalStores");class Qe extends Me{constructor(){super(...arguments),this[Ge]=new Map,this[Ve]=new Map,this[qe]=[]}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[Je].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Je].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Je].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:He(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[Je].delete(e)}setupStore(t,e){this[Je].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Je].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[Xe].has(t.store):this[Xe].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Xe].set(t,e.subscribe((()=>this.updateFromStores()))),He(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[Ye].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Xe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ye].forEach((t=>t())),this[Ye]=[]}unsubscribeFromStore(t){this[Xe].has(t)&&this[Xe].get(t)(),this[Xe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function to(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 eo(t){return!!t&&!!t[Mo]}function oo(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)===To}(t)||Array.isArray(t)||!!t[Ko]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ko])||lo(t)||co(t))}function io(t,e,o){void 0===o&&(o=!1),0===ro(t)?(o?Object.keys:Zo)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function ro(t){var e=t[Mo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:lo(t)?2:co(t)?3:0}function no(t,e){return 2===ro(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ao(t,e,o){var i=ro(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function so(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function lo(t){return zo&&t instanceof Map}function co(t){return Bo&&t instanceof Set}function fo(t){return t.o||t.t}function ho(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=_o(t);delete e[Mo];for(var o=Zo(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 po(t,e){return void 0===e&&(e=!1),yo(t)||eo(t)||!oo(t)||(ro(t)>1&&(t.set=t.add=t.clear=t.delete=uo),Object.freeze(t),e&&io(t,(function(t,e){return po(e,!0)}),!0)),t}function uo(){to(2)}function yo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function bo(t){var e=Ho[t];return e||to(18,t),e}function go(){return jo}function mo(t,e){e&&(bo("Patches"),t.u=[],t.s=[],t.v=e)}function vo(t){xo(t),t.p.forEach(wo),t.p=null}function xo(t){t===jo&&(jo=t.l)}function Oo(t){return jo={p:[],l:jo,h:t,m:!0,_:0}}function wo(t){var e=t[Mo];0===e.i||1===e.i?e.j():e.g=!0}function So(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||bo("ES5").S(e,t,i),i?(o[Mo].P&&(vo(e),to(4)),oo(t)&&(t=No(e,t),e.l||Co(e,t)),e.u&&bo("Patches").M(o[Mo].t,t,e.u,e.s)):t=No(e,o,[]),vo(e),e.u&&e.v(e.u,e.s),t!==Po?t:void 0}function No(t,e,o){if(yo(e))return e;var i=e[Mo];if(!i)return io(e,(function(r,n){return $o(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Co(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=ho(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),io(n,(function(e,n){return $o(t,i,r,e,n,o,a)})),Co(t,r,!1),o&&t.u&&bo("Patches").N(i,o,t.u,t.s)}return i.o}function $o(t,e,o,i,r,n,a){if(eo(r)){var s=No(t,r,n&&e&&3!==e.i&&!no(e.R,i)?n.concat(i):void 0);if(ao(o,i,s),!eo(s))return;t.m=!1}else a&&o.add(r);if(oo(r)&&!yo(r)){if(!t.h.D&&t._<1)return;No(t,r),e&&e.A.l||Co(t,r)}}function Co(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&po(e,o)}function Eo(t,e){var o=t[Mo];return(o?fo(o):t)[e]}function ko(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 Ro(t){t.P||(t.P=!0,t.l&&Ro(t.l))}function Uo(t){t.o||(t.o=ho(t.t))}function Io(t,e,o){var i=lo(e)?bo("MapSet").F(e,o):co(e)?bo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:go(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Go;o&&(r=[i],n=Vo);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):bo("ES5").J(e,o);return(o?o.A:go()).p.push(i),i}function Lo(t){return eo(t)||to(22,t),function t(e){if(!oo(e))return e;var o,i=e[Mo],r=ro(e);if(i){if(!i.P&&(i.i<4||!bo("ES5").K(i)))return i.t;i.I=!0,o=Ao(e,r),i.I=!1}else o=Ao(e,r);return io(o,(function(e,r){i&&function(t,e){return 2===ro(t)?t.get(e):t[e]}(i.t,e)===r||ao(o,e,t(r))})),3===r?new Set(o):o}(t)}function Ao(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ho(t)}Ge=Xe,Ve=Je,qe=Ye;var Wo,jo,Fo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),zo="undefined"!=typeof Map,Bo="undefined"!=typeof Set,Do="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Po=Fo?Symbol.for("immer-nothing"):((Wo={})["immer-nothing"]=!0,Wo),Ko=Fo?Symbol.for("immer-draftable"):"__$immer_draftable",Mo=Fo?Symbol.for("immer-state"):"__$immer_state",To=""+Object.prototype.constructor,Zo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,_o=Object.getOwnPropertyDescriptors||function(t){var e={};return Zo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Ho={},Go={get:function(t,e){if(e===Mo)return t;var o=fo(t);if(!no(o,e))return function(t,e,o){var i,r=ko(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||!oo(i)?i:i===Eo(t.t,e)?(Uo(t),t.o[e]=Io(t.A.h,i,t)):i},has:function(t,e){return e in fo(t)},ownKeys:function(t){return Reflect.ownKeys(fo(t))},set:function(t,e,o){var i=ko(fo(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Eo(fo(t),e),n=null==r?void 0:r[Mo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(so(o,r)&&(void 0!==o||no(t.t,e)))return!0;Uo(t),Ro(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!==Eo(t.t,e)||e in t.t?(t.R[e]=!1,Uo(t),Ro(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=fo(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(){to(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){to(12)}},Vo={};io(Go,(function(t,e){Vo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Vo.deleteProperty=function(t,e){return Vo.set.call(this,t,e,void 0)},Vo.set=function(t,e,o){return Go.set.call(this,t[0],e,o,t[0])};var qo=function(){function t(t){var e=this;this.O=Do,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,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&to(6),void 0!==i&&"function"!=typeof i&&to(7),oo(t)){var s=Oo(e),l=Io(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?vo(s):xo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return mo(s,i),So(t,s)}),(function(t){throw vo(s),t})):(mo(s,i),So(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Po&&(a=void 0),e.D&&po(a,!0),i){var f=[],h=[];bo("Patches").M(t,a,f,h),i(f,h)}return a}to(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){oo(t)||to(8),eo(t)&&(t=Lo(t));var e=Oo(this),o=Io(this,t,void 0);return o[Mo].C=!0,xo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Mo]).A;return mo(o,e),So(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Do&&to(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=bo("Patches").$;return eo(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Yo=new qo,Xo=Yo.produce;function Jo(t){return Jo="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},Jo(t)}function Qo(t){var e=function(t,e){if("object"!==Jo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==Jo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Jo(e)?e:String(e)}function ti(t,e,o){return(e=Qo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ei(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 oi(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ei(Object(o),!0).forEach((function(e){ti(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ei(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ii(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. "}Yo.produceWithPatches.bind(Yo),Yo.setAutoFreeze.bind(Yo),Yo.setUseProxies.bind(Yo),Yo.applyPatches.bind(Yo),Yo.createDraft.bind(Yo),Yo.finishDraft.bind(Yo);var ri="function"==typeof Symbol&&Symbol.observable||"@@observable",ni=function(){return Math.random().toString(36).substring(7).split("").join(".")},ai={INIT:"@@redux/INIT"+ni(),REPLACE:"@@redux/REPLACE"+ni(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ni()}};function si(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ii(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ii(1));return o(si)(t,e)}if("function"!=typeof t)throw new Error(ii(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(ii(3));return n}function h(t){if("function"!=typeof t)throw new Error(ii(4));if(l)throw new Error(ii(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ii(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=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(ii(7));if(void 0===t.type)throw new Error(ii(8));if(l)throw new Error(ii(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:ai.INIT}),(i={dispatch:p,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ii(10));r=t,p({type:ai.REPLACE})}})[ri]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ii(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ri]=function(){return this},t},i}function li(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,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ai.INIT}))throw new Error(ii(12));if(void 0===o(void 0,{type:ai.PROBE_UNKNOWN_ACTION()}))throw new Error(ii(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(ii(14));r[l]=h,i=i||h!==f}return(i=i||a.length!==Object.keys(t).length)?r:t}}function ci(){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 fi(){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(ii(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=ci.apply(void 0,n)(o.dispatch),oi(oi({},o),{},{dispatch:i})}}}function hi(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 pi=hi();pi.withExtraArgument=hi;var di,ui=pi,yi=(di=function(t,e){return di=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])},di(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}di(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),bi=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}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,s])}}},gi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},mi=Object.defineProperty,vi=Object.defineProperties,xi=Object.getOwnPropertyDescriptors,Oi=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,Ni=function(t,e,o){return e in t?mi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},$i=function(t,e){for(var o in e||(e={}))wi.call(e,o)&&Ni(t,o,e[o]);if(Oi)for(var i=0,r=Oi(e);i<r.length;i++){o=r[i];Si.call(e,o)&&Ni(t,o,e[o])}return t},Ci=function(t,e){return vi(t,xi(e))},Ei="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ci:ci.apply(null,arguments)};var ki=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 yi(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,gi([void 0],t[0].concat(this)))):new(e.bind.apply(e,gi([void 0],t.concat(this))))},e}(Array),Ri=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 yi(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,gi([void 0],t[0].concat(this)))):new(e.bind.apply(e,gi([void 0],t.concat(this))))},e}(Array);function Ui(t){return oo(t)?Xo(t,(function(){})):t}function Ii(){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 ki;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(ui.withExtraArgument(o.extraArgument)):i.push(ui));return i}(t)}}function Li(t){var e,o=Ii(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,f=i.preloadedState,h=void 0===f?void 0:f,p=i.enhancers,d=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=li(n)}var u=s;"function"==typeof u&&(u=u(o));var y=fi.apply(void 0,u),b=ci;c&&(b=Ei($i({trace:!1},"object"==typeof c&&c)));var g=new Ri(y),m=g;return Array.isArray(d)?m=gi([y],d):"function"==typeof d&&(m=d(g)),si(e,h,b.apply(void 0,m))}function Ai(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 $i($i({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 Wi(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 ji(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:Ui(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Wi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=$i($i({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Wi(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Ui(t())};else{var c=Ui(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var o=gi([a[e.type]],s.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(eo(t))return void 0===(i=o(t,e))?t:i;if(oo(t))return Xo(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 f.getInitialState=r,f}(i,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,i=a;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,a[t]=o,s[c]=o,l[t]=i?Ai(c,i):Ai(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Fi=["name","message","stack","code"],zi=function(t,e){this.payload=t,this.meta=e},Bi=function(t,e){this.payload=t,this.meta=e},Di=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Fi;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Pi(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=Ai(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ci($i({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Ai(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ci($i({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ai(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Di)(t||"Rejected"),meta:Ci($i({},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)})}})),a="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(s,l,c){var f,h=(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 a;function d(t){f=t,p.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,b,g,m;return bi(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),b=null==(a=null==o?void 0:o.condition)?void 0:a.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:f||"Aborted"})}))})),s(r(h,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new zi(t,e)},fulfillWithValue:function(t,e){return new Bi(t,e)}})).then((function(e){if(e instanceof zi)throw e;return e instanceof Bi?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof zi?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(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(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:d,requestId:h,arg:t,unwrap:function(){return u.then(Pi)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Ki="listenerMiddleware";Ai(Ki+"/add"),Ai(Ki+"/removeAll"),Ai(Ki+"/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[Mo];return Go.get(e,t)},set:function(e){var o=this[Mo];Go.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Mo];if(!r.P)switch(r.i){case 5:i(r)&&Ro(r);break;case 4:o(r)&&Ro(r)}}}function o(t){for(var e=t.t,o=t.k,i=Zo(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Mo){var a=e[n];if(void 0===a&&!no(e,n))return!0;var s=o[n],l=s&&s[Mo];if(l?l.t!==a:!so(s,a))return!0}}var c=!!e[Mo];return i.length!==Zo(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){Ho[t]||(Ho[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=_o(o);delete n[Mo];for(var a=Zo(n),s=0;s<a.length;s++){var l=a[s];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:go(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Mo,{value:n,writable:!0}),r},S:function(t,o,r){r?eo(o)&&o[Mo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Mo];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)io(n,(function(e){e!==Mo&&(void 0!==r[e]||no(r,e)?a[e]||t(n[e]):(a[e]=!0,Ro(o)))})),io(r,(function(t){void 0!==n[t]||no(n,t)||(a[t]=!1,Ro(o))}));else if(5===s){if(i(o)&&(Ro(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Mi{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(He(r))return r;if(null==i)return;const n=ji({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=Li({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 Mi(n,a)}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 Ti=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!W(t,e),attribute:!1,...e};k(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})}},Zi=Symbol("elementInternals");var _i,Hi,Gi;const Vi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Gi=null===(Hi=null===(_i=window.safari)||void 0===_i?void 0:_i.pushNotification)||void 0===Hi?void 0:Hi.toString())&&void 0!==Gi?Gi:""),qi={distance:Ee.create("--ft-tooltip-distance","","SIZE","4px"),color:Ee.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ee.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ee.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),maxWidth:Ee.create("--ft-tooltip-max-width","","SIZE","150px")},Yi=Et`
120
+ `;class He{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 Ge(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ve,qe,Ye;const Xe=Symbol("internalReduxEventsUnsubscribers"),Je=Symbol("internalStoresUnsubscribers"),Qe=Symbol("internalStores");class to extends Me{constructor(){super(...arguments),this[Ve]=new Map,this[qe]=new Map,this[Ye]=[]}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[Qe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Qe].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Qe].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ge(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[Qe].delete(e)}setupStore(t,e){this[Qe].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Qe].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[Je].has(t.store):this[Je].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Je].set(t,e.subscribe((()=>this.updateFromStores()))),Ge(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[Xe].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Je].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Xe].forEach((t=>t())),this[Xe]=[]}unsubscribeFromStore(t){this[Je].has(t)&&this[Je].get(t)(),this[Je].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function eo(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 oo(t){return!!t&&!!t[To]}function io(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)===Zo}(t)||Array.isArray(t)||!!t[Mo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Mo])||co(t)||fo(t))}function ro(t,e,o){void 0===o&&(o=!1),0===no(t)?(o?Object.keys:_o)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function no(t){var e=t[To];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:co(t)?2:fo(t)?3:0}function ao(t,e){return 2===no(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function so(t,e,o){var i=no(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function lo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function co(t){return Bo&&t instanceof Map}function fo(t){return Do&&t instanceof Set}function ho(t){return t.o||t.t}function po(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ho(t);delete e[To];for(var o=_o(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 uo(t,e){return void 0===e&&(e=!1),bo(t)||oo(t)||!io(t)||(no(t)>1&&(t.set=t.add=t.clear=t.delete=yo),Object.freeze(t),e&&ro(t,(function(t,e){return uo(e,!0)}),!0)),t}function yo(){eo(2)}function bo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function go(t){var e=Go[t];return e||eo(18,t),e}function mo(){return Fo}function vo(t,e){e&&(go("Patches"),t.u=[],t.s=[],t.v=e)}function xo(t){Oo(t),t.p.forEach(So),t.p=null}function Oo(t){t===Fo&&(Fo=t.l)}function wo(t){return Fo={p:[],l:Fo,h:t,m:!0,_:0}}function So(t){var e=t[To];0===e.i||1===e.i?e.j():e.g=!0}function No(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||go("ES5").S(e,t,i),i?(o[To].P&&(xo(e),eo(4)),io(t)&&(t=$o(e,t),e.l||Eo(e,t)),e.u&&go("Patches").M(o[To].t,t,e.u,e.s)):t=$o(e,o,[]),xo(e),e.u&&e.v(e.u,e.s),t!==Ko?t:void 0}function $o(t,e,o){if(bo(e))return e;var i=e[To];if(!i)return ro(e,(function(r,n){return Co(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Eo(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=po(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),ro(n,(function(e,n){return Co(t,i,r,e,n,o,a)})),Eo(t,r,!1),o&&t.u&&go("Patches").N(i,o,t.u,t.s)}return i.o}function Co(t,e,o,i,r,n,a){if(oo(r)){var s=$o(t,r,n&&e&&3!==e.i&&!ao(e.R,i)?n.concat(i):void 0);if(so(o,i,s),!oo(s))return;t.m=!1}else a&&o.add(r);if(io(r)&&!bo(r)){if(!t.h.D&&t._<1)return;$o(t,r),e&&e.A.l||Eo(t,r)}}function Eo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&uo(e,o)}function ko(t,e){var o=t[To];return(o?ho(o):t)[e]}function Ro(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 Uo(t){t.P||(t.P=!0,t.l&&Uo(t.l))}function Io(t){t.o||(t.o=po(t.t))}function Lo(t,e,o){var i=co(e)?go("MapSet").F(e,o):fo(e)?go("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:mo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Vo;o&&(r=[i],n=qo);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):go("ES5").J(e,o);return(o?o.A:mo()).p.push(i),i}function Ao(t){return oo(t)||eo(22,t),function t(e){if(!io(e))return e;var o,i=e[To],r=no(e);if(i){if(!i.P&&(i.i<4||!go("ES5").K(i)))return i.t;i.I=!0,o=Wo(e,r),i.I=!1}else o=Wo(e,r);return ro(o,(function(e,r){i&&function(t,e){return 2===no(t)?t.get(e):t[e]}(i.t,e)===r||so(o,e,t(r))})),3===r?new Set(o):o}(t)}function Wo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return po(t)}Ve=Je,qe=Qe,Ye=Xe;var jo,Fo,zo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Bo="undefined"!=typeof Map,Do="undefined"!=typeof Set,Po="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ko=zo?Symbol.for("immer-nothing"):((jo={})["immer-nothing"]=!0,jo),Mo=zo?Symbol.for("immer-draftable"):"__$immer_draftable",To=zo?Symbol.for("immer-state"):"__$immer_state",Zo=""+Object.prototype.constructor,_o="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ho=Object.getOwnPropertyDescriptors||function(t){var e={};return _o(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Go={},Vo={get:function(t,e){if(e===To)return t;var o=ho(t);if(!ao(o,e))return function(t,e,o){var i,r=Ro(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||!io(i)?i:i===ko(t.t,e)?(Io(t),t.o[e]=Lo(t.A.h,i,t)):i},has:function(t,e){return e in ho(t)},ownKeys:function(t){return Reflect.ownKeys(ho(t))},set:function(t,e,o){var i=Ro(ho(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=ko(ho(t),e),n=null==r?void 0:r[To];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(lo(o,r)&&(void 0!==o||ao(t.t,e)))return!0;Io(t),Uo(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!==ko(t.t,e)||e in t.t?(t.R[e]=!1,Io(t),Uo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=ho(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(){eo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){eo(12)}},qo={};ro(Vo,(function(t,e){qo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),qo.deleteProperty=function(t,e){return qo.set.call(this,t,e,void 0)},qo.set=function(t,e,o){return Vo.set.call(this,t[0],e,o,t[0])};var Yo=function(){function t(t){var e=this;this.O=Po,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,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&eo(6),void 0!==i&&"function"!=typeof i&&eo(7),io(t)){var s=wo(e),l=Lo(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?xo(s):Oo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return vo(s,i),No(t,s)}),(function(t){throw xo(s),t})):(vo(s,i),No(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Ko&&(a=void 0),e.D&&uo(a,!0),i){var f=[],h=[];go("Patches").M(t,a,f,h),i(f,h)}return a}eo(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){io(t)||eo(8),oo(t)&&(t=Ao(t));var e=wo(this),o=Lo(this,t,void 0);return o[To].C=!0,Oo(e),o},e.finishDraft=function(t,e){var o=(t&&t[To]).A;return vo(o,e),No(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Po&&eo(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=go("Patches").$;return oo(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Xo=new Yo,Jo=Xo.produce;function Qo(t){return Qo="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},Qo(t)}function ti(t){var e=function(t,e){if("object"!==Qo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==Qo(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qo(e)?e:String(e)}function ei(t,e,o){return(e=ti(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function oi(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 ii(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?oi(Object(o),!0).forEach((function(e){ei(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):oi(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ri(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. "}Xo.produceWithPatches.bind(Xo),Xo.setAutoFreeze.bind(Xo),Xo.setUseProxies.bind(Xo),Xo.applyPatches.bind(Xo),Xo.createDraft.bind(Xo),Xo.finishDraft.bind(Xo);var ni="function"==typeof Symbol&&Symbol.observable||"@@observable",ai=function(){return Math.random().toString(36).substring(7).split("").join(".")},si={INIT:"@@redux/INIT"+ai(),REPLACE:"@@redux/REPLACE"+ai(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ai()}};function li(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ri(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ri(1));return o(li)(t,e)}if("function"!=typeof t)throw new Error(ri(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(ri(3));return n}function h(t){if("function"!=typeof t)throw new Error(ri(4));if(l)throw new Error(ri(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ri(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=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(ri(7));if(void 0===t.type)throw new Error(ri(8));if(l)throw new Error(ri(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:si.INIT}),(i={dispatch:p,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ri(10));r=t,p({type:si.REPLACE})}})[ni]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ri(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ni]=function(){return this},t},i}function ci(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,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:si.INIT}))throw new Error(ri(12));if(void 0===o(void 0,{type:si.PROBE_UNKNOWN_ACTION()}))throw new Error(ri(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(ri(14));r[l]=h,i=i||h!==f}return(i=i||a.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 hi(){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(ri(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),ii(ii({},o),{},{dispatch:i})}}}function pi(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=pi();di.withExtraArgument=pi;var ui,yi=di,bi=(ui=function(t,e){return ui=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])},ui(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}ui(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),gi=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}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,s])}}},mi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},vi=Object.defineProperty,xi=Object.defineProperties,Oi=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable,$i=function(t,e,o){return e in t?vi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ci=function(t,e){for(var o in e||(e={}))Si.call(e,o)&&$i(t,o,e[o]);if(wi)for(var i=0,r=wi(e);i<r.length;i++){o=r[i];Ni.call(e,o)&&$i(t,o,e[o])}return t},Ei=function(t,e){return xi(t,Oi(e))},ki="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 Ri=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 bi(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,mi([void 0],t[0].concat(this)))):new(e.bind.apply(e,mi([void 0],t.concat(this))))},e}(Array),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 bi(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,mi([void 0],t[0].concat(this)))):new(e.bind.apply(e,mi([void 0],t.concat(this))))},e}(Array);function Ii(t){return io(t)?Jo(t,(function(){})):t}function Li(){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 Ri;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(yi.withExtraArgument(o.extraArgument)):i.push(yi));return i}(t)}}function Ai(t){var e,o=Li(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,f=i.preloadedState,h=void 0===f?void 0:f,p=i.enhancers,d=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=ci(n)}var u=s;"function"==typeof u&&(u=u(o));var y=hi.apply(void 0,u),b=fi;c&&(b=ki(Ci({trace:!1},"object"==typeof c&&c)));var g=new Ui(y),m=g;return Array.isArray(d)?m=mi([y],d):"function"==typeof d&&(m=d(g)),li(e,h,b.apply(void 0,m))}function Wi(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 Ci(Ci({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 ji(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 Fi(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:Ii(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?ji(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Ci(Ci({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?ji(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Ii(t())};else{var c=Ii(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var o=mi([a[e.type]],s.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(oo(t))return void 0===(i=o(t,e))?t:i;if(io(t))return Jo(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 f.getInitialState=r,f}(i,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,i=a;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,a[t]=o,s[c]=o,l[t]=i?Wi(c,i):Wi(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var zi=["name","message","stack","code"],Bi=function(t,e){this.payload=t,this.meta=e},Di=function(t,e){this.payload=t,this.meta=e},Pi=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 Ki(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=Wi(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ei(Ci({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Wi(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ei(Ci({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Wi(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Pi)(t||"Rejected"),meta:Ei(Ci({},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)})}})),a="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(s,l,c){var f,h=(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 a;function d(t){f=t,p.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,b,g,m;return gi(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),b=null==(a=null==o?void 0:o.condition)?void 0:a.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:f||"Aborted"})}))})),s(r(h,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new Bi(t,e)},fulfillWithValue:function(t,e){return new Di(t,e)}})).then((function(e){if(e instanceof Bi)throw e;return e instanceof Di?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Bi?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(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(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:d,requestId:h,arg:t,unwrap:function(){return u.then(Ki)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Mi="listenerMiddleware";Wi(Mi+"/add"),Wi(Mi+"/removeAll"),Wi(Mi+"/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[To];return Vo.get(e,t)},set:function(e){var o=this[To];Vo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][To];if(!r.P)switch(r.i){case 5:i(r)&&Uo(r);break;case 4:o(r)&&Uo(r)}}}function o(t){for(var e=t.t,o=t.k,i=_o(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==To){var a=e[n];if(void 0===a&&!ao(e,n))return!0;var s=o[n],l=s&&s[To];if(l?l.t!==a:!lo(s,a))return!0}}var c=!!e[To];return i.length!==_o(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){Go[t]||(Go[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=Ho(o);delete n[To];for(var a=_o(n),s=0;s<a.length;s++){var l=a[s];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:mo(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,To,{value:n,writable:!0}),r},S:function(t,o,r){r?oo(o)&&o[To].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[To];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)ro(n,(function(e){e!==To&&(void 0!==r[e]||ao(r,e)?a[e]||t(n[e]):(a[e]=!0,Uo(o)))})),ro(r,(function(t){void 0!==n[t]||ao(n,t)||(a[t]=!1,Uo(o))}));else if(5===s){if(i(o)&&(Uo(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ti{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(Ge(r))return r;if(null==i)return;const n=Fi({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=Ai({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 Ti(n,a)}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 Zi=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!W(t,e),attribute:!1,...e};k(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})}},_i=Symbol("elementInternals");var Hi,Gi,Vi;const qi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Vi=null===(Gi=null===(Hi=window.safari)||void 0===Hi?void 0:Hi.pushNotification)||void 0===Gi?void 0:Gi.toString())&&void 0!==Vi?Vi:""),Yi={distance:Ee.create("--ft-tooltip-distance","","SIZE","4px"),color:Ee.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ee.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ee.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),maxWidth:Ee.create("--ft-tooltip-max-width","","SIZE","150px")},Xi=Et`
117
121
  .ft-tooltip--container {
118
122
  display: block;
119
123
  }
@@ -128,116 +132,116 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
128
132
  box-sizing: border-box;
129
133
  overflow: hidden;
130
134
  width: max-content;
131
- max-width: ${qi.maxWidth};
135
+ max-width: ${Yi.maxWidth};
132
136
  text-align: center;
133
- padding: ${qi.distance};
134
- z-index: ${qi.zIndex};
137
+ padding: ${Yi.distance};
138
+ z-index: ${Yi.zIndex};
135
139
  }
136
140
 
137
141
  .ft-tooltip--content {
138
142
  padding: 4px 8px;
139
- border-radius: ${qi.borderRadiusS};
140
- background-color: ${qi.backgroundColor};
141
- color: ${qi.color};
143
+ border-radius: ${Yi.borderRadiusS};
144
+ background-color: ${Yi.backgroundColor};
145
+ color: ${Yi.color};
142
146
  position: relative;
143
147
  word-break: break-word;
144
148
  }
145
- `;const Xi=Ee.extend("--ft-typography-font-family","",Ae.titleFont),Ji=Ee.extend("--ft-typography-font-family","",Ae.contentFont),Qi={fontFamily:Ji,fontSize:Ee.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ee.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ee.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ee.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ee.create("--ft-typography-text-transform","","UNKNOWN","inherit")},tr=Ee.extend("--ft-typography-title-font-family","",Xi),er=Ee.extend("--ft-typography-title-font-size","",Qi.fontSize,"20px"),or=Ee.extend("--ft-typography-title-font-weight","",Qi.fontWeight,"normal"),ir=Ee.extend("--ft-typography-title-letter-spacing","",Qi.letterSpacing,"0.15px"),rr=Ee.extend("--ft-typography-title-line-height","",Qi.lineHeight,"1.2"),nr=Ee.extend("--ft-typography-title-text-transform","",Qi.textTransform,"inherit"),ar=Ee.extend("--ft-typography-title-dense-font-family","",Xi),sr=Ee.extend("--ft-typography-title-dense-font-size","",Qi.fontSize,"14px"),lr=Ee.extend("--ft-typography-title-dense-font-weight","",Qi.fontWeight,"normal"),cr=Ee.extend("--ft-typography-title-dense-letter-spacing","",Qi.letterSpacing,"0.105px"),fr=Ee.extend("--ft-typography-title-dense-line-height","",Qi.lineHeight,"1.7"),hr=Ee.extend("--ft-typography-title-dense-text-transform","",Qi.textTransform,"inherit"),pr=Ee.extend("--ft-typography-subtitle1-font-family","",Ji),dr=Ee.extend("--ft-typography-subtitle1-font-size","",Qi.fontSize,"16px"),ur=Ee.extend("--ft-typography-subtitle1-font-weight","",Qi.fontWeight,"600"),yr=Ee.extend("--ft-typography-subtitle1-letter-spacing","",Qi.letterSpacing,"0.144px"),br=Ee.extend("--ft-typography-subtitle1-line-height","",Qi.lineHeight,"1.5"),gr=Ee.extend("--ft-typography-subtitle1-text-transform","",Qi.textTransform,"inherit"),mr=Ee.extend("--ft-typography-subtitle2-font-family","",Ji),vr=Ee.extend("--ft-typography-subtitle2-font-size","",Qi.fontSize,"14px"),xr=Ee.extend("--ft-typography-subtitle2-font-weight","",Qi.fontWeight,"normal"),Or=Ee.extend("--ft-typography-subtitle2-letter-spacing","",Qi.letterSpacing,"0.098px"),wr=Ee.extend("--ft-typography-subtitle2-line-height","",Qi.lineHeight,"1.7"),Sr=Ee.extend("--ft-typography-subtitle2-text-transform","",Qi.textTransform,"inherit"),Nr=Ee.extend("--ft-typography-body1-font-family","",Ji),$r=Ee.extend("--ft-typography-body1-font-size","",Qi.fontSize,"16px"),Cr=Ee.extend("--ft-typography-body1-font-weight","",Qi.fontWeight,"normal"),Er=Ee.extend("--ft-typography-body1-letter-spacing","",Qi.letterSpacing,"0.496px"),kr=Ee.extend("--ft-typography-body1-line-height","",Qi.lineHeight,"1.5"),Rr=Ee.extend("--ft-typography-body1-text-transform","",Qi.textTransform,"inherit"),Ur={fontFamily:Ee.extend("--ft-typography-body2-font-family","",Ji),fontSize:Ee.extend("--ft-typography-body2-font-size","",Qi.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-body2-font-weight","",Qi.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-body2-letter-spacing","",Qi.letterSpacing,"0.252px"),lineHeight:Ee.extend("--ft-typography-body2-line-height","",Qi.lineHeight,"1.4"),textTransform:Ee.extend("--ft-typography-body2-text-transform","",Qi.textTransform,"inherit")},Ir=Ee.extend("--ft-typography-caption-font-family","",Ji),Lr=Ee.extend("--ft-typography-caption-font-size","",Qi.fontSize,"12px"),Ar=Ee.extend("--ft-typography-caption-font-weight","",Qi.fontWeight,"normal"),Wr=Ee.extend("--ft-typography-caption-letter-spacing","",Qi.letterSpacing,"0.396px"),jr=Ee.extend("--ft-typography-caption-line-height","",Qi.lineHeight,"1.33"),Fr=Ee.extend("--ft-typography-caption-text-transform","",Qi.textTransform,"inherit"),zr=Ee.extend("--ft-typography-breadcrumb-font-family","",Ji),Br=Ee.extend("--ft-typography-breadcrumb-font-size","",Qi.fontSize,"10px"),Dr=Ee.extend("--ft-typography-breadcrumb-font-weight","",Qi.fontWeight,"normal"),Pr=Ee.extend("--ft-typography-breadcrumb-letter-spacing","",Qi.letterSpacing,"0.33px"),Kr=Ee.extend("--ft-typography-breadcrumb-line-height","",Qi.lineHeight,"1.6"),Mr=Ee.extend("--ft-typography-breadcrumb-text-transform","",Qi.textTransform,"inherit"),Tr=Ee.extend("--ft-typography-overline-font-family","",Ji),Zr=Ee.extend("--ft-typography-overline-font-size","",Qi.fontSize,"10px"),_r=Ee.extend("--ft-typography-overline-font-weight","",Qi.fontWeight,"normal"),Hr=Ee.extend("--ft-typography-overline-letter-spacing","",Qi.letterSpacing,"1.5px"),Gr=Ee.extend("--ft-typography-overline-line-height","",Qi.lineHeight,"1.6"),Vr=Ee.extend("--ft-typography-overline-text-transform","",Qi.textTransform,"uppercase"),qr={fontFamily:Ee.extend("--ft-typography-button-font-family","",Ji),fontSize:Ee.extend("--ft-typography-button-font-size","",Qi.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-button-font-weight","",Qi.fontWeight,"600"),letterSpacing:Ee.extend("--ft-typography-button-letter-spacing","",Qi.letterSpacing,"1.246px"),lineHeight:Ee.extend("--ft-typography-button-line-height","",Qi.lineHeight,"1.15"),textTransform:Ee.extend("--ft-typography-button-text-transform","",Qi.textTransform,"uppercase")},Yr=Et`
149
+ `;const Ji=Ee.extend("--ft-typography-font-family","",Ae.titleFont),Qi=Ee.extend("--ft-typography-font-family","",Ae.contentFont),tr={fontFamily:Qi,fontSize:Ee.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ee.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ee.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ee.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ee.create("--ft-typography-text-transform","","UNKNOWN","inherit")},er=Ee.extend("--ft-typography-title-font-family","",Ji),or=Ee.extend("--ft-typography-title-font-size","",tr.fontSize,"20px"),ir=Ee.extend("--ft-typography-title-font-weight","",tr.fontWeight,"normal"),rr=Ee.extend("--ft-typography-title-letter-spacing","",tr.letterSpacing,"0.15px"),nr=Ee.extend("--ft-typography-title-line-height","",tr.lineHeight,"1.2"),ar=Ee.extend("--ft-typography-title-text-transform","",tr.textTransform,"inherit"),sr=Ee.extend("--ft-typography-title-dense-font-family","",Ji),lr=Ee.extend("--ft-typography-title-dense-font-size","",tr.fontSize,"14px"),cr=Ee.extend("--ft-typography-title-dense-font-weight","",tr.fontWeight,"normal"),fr=Ee.extend("--ft-typography-title-dense-letter-spacing","",tr.letterSpacing,"0.105px"),hr=Ee.extend("--ft-typography-title-dense-line-height","",tr.lineHeight,"1.7"),pr=Ee.extend("--ft-typography-title-dense-text-transform","",tr.textTransform,"inherit"),dr=Ee.extend("--ft-typography-subtitle1-font-family","",Qi),ur=Ee.extend("--ft-typography-subtitle1-font-size","",tr.fontSize,"16px"),yr=Ee.extend("--ft-typography-subtitle1-font-weight","",tr.fontWeight,"600"),br=Ee.extend("--ft-typography-subtitle1-letter-spacing","",tr.letterSpacing,"0.144px"),gr=Ee.extend("--ft-typography-subtitle1-line-height","",tr.lineHeight,"1.5"),mr=Ee.extend("--ft-typography-subtitle1-text-transform","",tr.textTransform,"inherit"),vr=Ee.extend("--ft-typography-subtitle2-font-family","",Qi),xr=Ee.extend("--ft-typography-subtitle2-font-size","",tr.fontSize,"14px"),Or=Ee.extend("--ft-typography-subtitle2-font-weight","",tr.fontWeight,"normal"),wr=Ee.extend("--ft-typography-subtitle2-letter-spacing","",tr.letterSpacing,"0.098px"),Sr=Ee.extend("--ft-typography-subtitle2-line-height","",tr.lineHeight,"1.7"),Nr=Ee.extend("--ft-typography-subtitle2-text-transform","",tr.textTransform,"inherit"),$r=Ee.extend("--ft-typography-body1-font-family","",Qi),Cr=Ee.extend("--ft-typography-body1-font-size","",tr.fontSize,"16px"),Er=Ee.extend("--ft-typography-body1-font-weight","",tr.fontWeight,"normal"),kr=Ee.extend("--ft-typography-body1-letter-spacing","",tr.letterSpacing,"0.496px"),Rr=Ee.extend("--ft-typography-body1-line-height","",tr.lineHeight,"1.5"),Ur=Ee.extend("--ft-typography-body1-text-transform","",tr.textTransform,"inherit"),Ir={fontFamily:Ee.extend("--ft-typography-body2-font-family","",Qi),fontSize:Ee.extend("--ft-typography-body2-font-size","",tr.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-body2-font-weight","",tr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-body2-letter-spacing","",tr.letterSpacing,"0.252px"),lineHeight:Ee.extend("--ft-typography-body2-line-height","",tr.lineHeight,"1.4"),textTransform:Ee.extend("--ft-typography-body2-text-transform","",tr.textTransform,"inherit")},Lr=Ee.extend("--ft-typography-caption-font-family","",Qi),Ar=Ee.extend("--ft-typography-caption-font-size","",tr.fontSize,"12px"),Wr=Ee.extend("--ft-typography-caption-font-weight","",tr.fontWeight,"normal"),jr=Ee.extend("--ft-typography-caption-letter-spacing","",tr.letterSpacing,"0.396px"),Fr=Ee.extend("--ft-typography-caption-line-height","",tr.lineHeight,"1.33"),zr=Ee.extend("--ft-typography-caption-text-transform","",tr.textTransform,"inherit"),Br=Ee.extend("--ft-typography-breadcrumb-font-family","",Qi),Dr=Ee.extend("--ft-typography-breadcrumb-font-size","",tr.fontSize,"10px"),Pr=Ee.extend("--ft-typography-breadcrumb-font-weight","",tr.fontWeight,"normal"),Kr=Ee.extend("--ft-typography-breadcrumb-letter-spacing","",tr.letterSpacing,"0.33px"),Mr=Ee.extend("--ft-typography-breadcrumb-line-height","",tr.lineHeight,"1.6"),Tr=Ee.extend("--ft-typography-breadcrumb-text-transform","",tr.textTransform,"inherit"),Zr=Ee.extend("--ft-typography-overline-font-family","",Qi),_r=Ee.extend("--ft-typography-overline-font-size","",tr.fontSize,"10px"),Hr=Ee.extend("--ft-typography-overline-font-weight","",tr.fontWeight,"normal"),Gr=Ee.extend("--ft-typography-overline-letter-spacing","",tr.letterSpacing,"1.5px"),Vr=Ee.extend("--ft-typography-overline-line-height","",tr.lineHeight,"1.6"),qr=Ee.extend("--ft-typography-overline-text-transform","",tr.textTransform,"uppercase"),Yr={fontFamily:Ee.extend("--ft-typography-button-font-family","",Qi),fontSize:Ee.extend("--ft-typography-button-font-size","",tr.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-button-font-weight","",tr.fontWeight,"600"),letterSpacing:Ee.extend("--ft-typography-button-letter-spacing","",tr.letterSpacing,"1.246px"),lineHeight:Ee.extend("--ft-typography-button-line-height","",tr.lineHeight,"1.15"),textTransform:Ee.extend("--ft-typography-button-text-transform","",tr.textTransform,"uppercase")},Xr=Et`
146
150
  .ft-typography--title {
147
- font-family: ${tr};
148
- font-size: ${er};
149
- font-weight: ${or};
150
- letter-spacing: ${ir};
151
- line-height: ${rr};
152
- text-transform: ${nr};
153
- }
154
- `,Xr=Et`
155
- .ft-typography--title-dense {
156
- font-family: ${ar};
157
- font-size: ${sr};
158
- font-weight: ${lr};
159
- letter-spacing: ${cr};
160
- line-height: ${fr};
161
- text-transform: ${hr};
151
+ font-family: ${er};
152
+ font-size: ${or};
153
+ font-weight: ${ir};
154
+ letter-spacing: ${rr};
155
+ line-height: ${nr};
156
+ text-transform: ${ar};
162
157
  }
163
158
  `,Jr=Et`
164
- .ft-typography--subtitle1 {
165
- font-family: ${pr};
166
- font-size: ${dr};
167
- font-weight: ${ur};
168
- letter-spacing: ${yr};
169
- line-height: ${br};
170
- text-transform: ${gr};
159
+ .ft-typography--title-dense {
160
+ font-family: ${sr};
161
+ font-size: ${lr};
162
+ font-weight: ${cr};
163
+ letter-spacing: ${fr};
164
+ line-height: ${hr};
165
+ text-transform: ${pr};
171
166
  }
172
167
  `,Qr=Et`
173
- .ft-typography--subtitle2 {
174
- font-family: ${mr};
175
- font-size: ${vr};
176
- font-weight: ${xr};
177
- letter-spacing: ${Or};
178
- line-height: ${wr};
179
- text-transform: ${Sr};
168
+ .ft-typography--subtitle1 {
169
+ font-family: ${dr};
170
+ font-size: ${ur};
171
+ font-weight: ${yr};
172
+ letter-spacing: ${br};
173
+ line-height: ${gr};
174
+ text-transform: ${mr};
180
175
  }
181
-
182
176
  `,tn=Et`
183
- .ft-typography--body1 {
184
- font-family: ${Nr};
185
- font-size: ${$r};
186
- font-weight: ${Cr};
187
- letter-spacing: ${Er};
188
- line-height: ${kr};
189
- text-transform: ${Rr};
177
+ .ft-typography--subtitle2 {
178
+ font-family: ${vr};
179
+ font-size: ${xr};
180
+ font-weight: ${Or};
181
+ letter-spacing: ${wr};
182
+ line-height: ${Sr};
183
+ text-transform: ${Nr};
190
184
  }
185
+
191
186
  `,en=Et`
192
- .ft-typography--body2 {
193
- font-family: ${Ur.fontFamily};
194
- font-size: ${Ur.fontSize};
195
- font-weight: ${Ur.fontWeight};
196
- letter-spacing: ${Ur.letterSpacing};
197
- line-height: ${Ur.lineHeight};
198
- text-transform: ${Ur.textTransform};
187
+ .ft-typography--body1 {
188
+ font-family: ${$r};
189
+ font-size: ${Cr};
190
+ font-weight: ${Er};
191
+ letter-spacing: ${kr};
192
+ line-height: ${Rr};
193
+ text-transform: ${Ur};
199
194
  }
200
195
  `,on=Et`
201
- .ft-typography--caption {
202
- font-family: ${Ir};
203
- font-size: ${Lr};
204
- font-weight: ${Ar};
205
- letter-spacing: ${Wr};
206
- line-height: ${jr};
207
- text-transform: ${Fr};
196
+ .ft-typography--body2 {
197
+ font-family: ${Ir.fontFamily};
198
+ font-size: ${Ir.fontSize};
199
+ font-weight: ${Ir.fontWeight};
200
+ letter-spacing: ${Ir.letterSpacing};
201
+ line-height: ${Ir.lineHeight};
202
+ text-transform: ${Ir.textTransform};
208
203
  }
209
204
  `,rn=Et`
210
- .ft-typography--breadcrumb {
211
- font-family: ${zr};
212
- font-size: ${Br};
213
- font-weight: ${Dr};
214
- letter-spacing: ${Pr};
215
- line-height: ${Kr};
216
- text-transform: ${Mr};
205
+ .ft-typography--caption {
206
+ font-family: ${Lr};
207
+ font-size: ${Ar};
208
+ font-weight: ${Wr};
209
+ letter-spacing: ${jr};
210
+ line-height: ${Fr};
211
+ text-transform: ${zr};
217
212
  }
218
213
  `,nn=Et`
219
- .ft-typography--overline {
220
- font-family: ${Tr};
221
- font-size: ${Zr};
222
- font-weight: ${_r};
223
- letter-spacing: ${Hr};
224
- line-height: ${Gr};
225
- text-transform: ${Vr};
214
+ .ft-typography--breadcrumb {
215
+ font-family: ${Br};
216
+ font-size: ${Dr};
217
+ font-weight: ${Pr};
218
+ letter-spacing: ${Kr};
219
+ line-height: ${Mr};
220
+ text-transform: ${Tr};
226
221
  }
227
222
  `,an=Et`
228
- .ft-typography--button {
229
- font-family: ${qr.fontFamily};
230
- font-size: ${qr.fontSize};
231
- font-weight: ${qr.fontWeight};
232
- letter-spacing: ${qr.letterSpacing};
233
- line-height: ${qr.lineHeight};
234
- text-transform: ${qr.textTransform};
223
+ .ft-typography--overline {
224
+ font-family: ${Zr};
225
+ font-size: ${_r};
226
+ font-weight: ${Hr};
227
+ letter-spacing: ${Gr};
228
+ line-height: ${Vr};
229
+ text-transform: ${qr};
235
230
  }
236
231
  `,sn=Et`
232
+ .ft-typography--button {
233
+ font-family: ${Yr.fontFamily};
234
+ font-size: ${Yr.fontSize};
235
+ font-weight: ${Yr.fontWeight};
236
+ letter-spacing: ${Yr.letterSpacing};
237
+ line-height: ${Yr.lineHeight};
238
+ text-transform: ${Yr.textTransform};
239
+ }
240
+ `,ln=Et`
237
241
  .ft-typography {
238
242
  vertical-align: inherit;
239
243
  }
240
- `,ln=[Object.keys(Ue).map((t=>function(t){const e=Ue[t];return Et`
244
+ `,cn=[Object.keys(Ue).map((t=>function(t){const e=Ue[t];return Et`
241
245
  .ft-typography--${Ct(t)} {
242
246
  font-family: ${e.fontFamily};
243
247
  font-size: ${e.fontSize};
@@ -246,7 +250,7 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
246
250
  line-height: ${e.lineHeight};
247
251
  text-transform: ${e.textCase};
248
252
  }
249
- `}(t)))],cn=Ee.extend("--ft-ripple-color","",Ae.colorContent),fn={color:cn,backgroundColor:Ee.extend("--ft-ripple-background-color","",cn),opacityContentOnSurfacePressed:Ee.external(Ae.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.external(Ae.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.external(Ae.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.external(Ae.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.create("--ft-ripple-border-radius","","SIZE","0px")},hn=Ee.extend("--ft-ripple-color","",Ae.colorPrimary),pn=hn,dn=Ee.extend("--ft-ripple-background-color","",hn),un=Ee.extend("--ft-ripple-color","",Ae.colorSecondary),yn=un,bn=Ee.extend("--ft-ripple-background-color","",un),gn=Et`
253
+ `}(t)))],fn=Ee.extend("--ft-ripple-color","",Ae.colorContent),hn={color:fn,backgroundColor:Ee.extend("--ft-ripple-background-color","",fn),opacityContentOnSurfacePressed:Ee.external(Ae.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.external(Ae.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.external(Ae.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.external(Ae.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.create("--ft-ripple-border-radius","","SIZE","0px")},pn=Ee.extend("--ft-ripple-color","",Ae.colorPrimary),dn=pn,un=Ee.extend("--ft-ripple-background-color","",pn),yn=Ee.extend("--ft-ripple-color","",Ae.colorSecondary),bn=yn,gn=Ee.extend("--ft-ripple-background-color","",yn),mn=Et`
250
254
  :host {
251
255
  display: contents;
252
256
  }
@@ -259,7 +263,7 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
259
263
 
260
264
  .ft-ripple:not(.ft-ripple--unbounded) {
261
265
  overflow: hidden;
262
- border-radius: ${fn.borderRadius};
266
+ border-radius: ${hn.borderRadius};
263
267
  }
264
268
 
265
269
  .ft-ripple .ft-ripple--background,
@@ -293,27 +297,27 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
293
297
  }
294
298
 
295
299
  .ft-ripple .ft-ripple--background {
296
- background-color: ${fn.backgroundColor};
300
+ background-color: ${hn.backgroundColor};
297
301
  }
298
302
 
299
303
  .ft-ripple .ft-ripple--effect {
300
- background-color: ${fn.color};
304
+ background-color: ${hn.color};
301
305
  }
302
306
 
303
307
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
304
- background-color: ${bn};
308
+ background-color: ${gn};
305
309
  }
306
310
 
307
311
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
308
- background-color: ${yn};
312
+ background-color: ${bn};
309
313
  }
310
314
 
311
315
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
312
- background-color: ${dn};
316
+ background-color: ${un};
313
317
  }
314
318
 
315
319
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
316
- background-color: ${pn};
320
+ background-color: ${dn};
317
321
  }
318
322
 
319
323
  .ft-ripple .ft-ripple--background {
@@ -343,22 +347,22 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
343
347
  }
344
348
 
345
349
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
346
- opacity: ${fn.opacityContentOnSurfaceHover};
350
+ opacity: ${hn.opacityContentOnSurfaceHover};
347
351
  }
348
352
 
349
353
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
350
- opacity: ${fn.opacityContentOnSurfaceSelected};
354
+ opacity: ${hn.opacityContentOnSurfaceSelected};
351
355
  }
352
356
 
353
357
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
354
- opacity: ${fn.opacityContentOnSurfaceFocused};
358
+ opacity: ${hn.opacityContentOnSurfaceFocused};
355
359
  }
356
360
 
357
361
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
358
- opacity: ${fn.opacityContentOnSurfacePressed};
362
+ opacity: ${hn.opacityContentOnSurfacePressed};
359
363
  transform: translate(-50%, -50%) scale(1);
360
364
  }
361
- `,mn={color:Ee.extend("--ft-loader-color","",Ae.colorPrimary),size:Ee.create("--ft-loader-size","","SIZE","80px")},vn=Et`
365
+ `,vn={color:Ee.extend("--ft-loader-color","",Ae.colorPrimary),size:Ee.create("--ft-loader-size","","SIZE","80px")},xn=Et`
362
366
  :host {
363
367
  line-height: 0;
364
368
  }
@@ -367,8 +371,8 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
367
371
  display: inline-block;
368
372
  position: relative;
369
373
 
370
- width: ${mn.size};
371
- height: ${mn.size};
374
+ width: ${vn.size};
375
+ height: ${vn.size};
372
376
  }
373
377
 
374
378
  .ft-loader div {
@@ -377,7 +381,7 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
377
381
  width: 25%;
378
382
  height: 25%;
379
383
  border-radius: 50%;
380
- background: ${mn.color};
384
+ background: ${vn.color};
381
385
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
382
386
  }
383
387
 
@@ -424,10 +428,10 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
424
428
  transform: translate(0, 0);
425
429
  }
426
430
  100% {
427
- transform: translate(calc(0.35 * ${mn.size}), 0);
431
+ transform: translate(calc(0.35 * ${vn.size}), 0);
428
432
  }
429
433
  }
430
- `,xn={size:Ee.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ee.extend("--ft-icon-fluid-topics-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ee.extend("--ft-icon-file-format-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ee.extend("--ft-icon-material-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ee.create("--ft-icon-vertical-align","","UNKNOWN","unset")},On=Et`
434
+ `,On={size:Ee.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ee.extend("--ft-icon-fluid-topics-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ee.extend("--ft-icon-file-format-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ee.extend("--ft-icon-material-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ee.create("--ft-icon-vertical-align","","UNKNOWN","unset")},wn=Et`
431
435
  :host, i.ft-icon {
432
436
  display: inline-flex;
433
437
  align-items: center;
@@ -436,14 +440,14 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
436
440
  }
437
441
 
438
442
  :host {
439
- width: ${xn.size};
440
- height: ${xn.size};
443
+ width: ${On.size};
444
+ height: ${On.size};
441
445
  }
442
446
 
443
447
  i.ft-icon {
444
448
  width: 100%;
445
449
  height: 100%;
446
- font-size: ${xn.size};
450
+ font-size: ${On.size};
447
451
  line-height: 1;
448
452
  font-weight: normal;
449
453
  text-transform: none;
@@ -454,28 +458,28 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
454
458
  text-rendering: auto;
455
459
  -webkit-font-smoothing: antialiased;
456
460
  -moz-osx-font-smoothing: grayscale;
457
- vertical-align: ${xn.verticalAlign};
461
+ vertical-align: ${On.verticalAlign};
458
462
  }
459
463
 
460
464
  i.ft-icon.ft-icon--fluid-topics {
461
- font-family: ${xn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
465
+ font-family: ${On.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
462
466
 
463
467
  /* Ugly fix because font is broken */
464
- font-size: calc(0.75 * ${xn.size});
465
- line-height: ${xn.size};
468
+ font-size: calc(0.75 * ${On.size});
469
+ line-height: ${On.size};
466
470
  position: relative;
467
471
  top: -4%;
468
472
  justify-content: center;
469
473
  }
470
474
 
471
475
  .ft-icon--file-format {
472
- font-family: ${xn.fileFormatFontFamily}, ft-mime, sans-serif;
476
+ font-family: ${On.fileFormatFontFamily}, ft-mime, sans-serif;
473
477
  }
474
478
 
475
479
  .ft-icon--material {
476
- font-family: ${xn.materialFontFamily}, "Material Icons", sans-serif;
480
+ font-family: ${On.materialFontFamily}, "Material Icons", sans-serif;
477
481
  }
478
- `,wn=Ee.extend("--ft-button-color","",Ae.colorPrimary),Sn={backgroundColor:Ee.extend("--ft-button-background-color","",Ae.colorSurface),borderRadius:Ee.extend("--ft-button-border-radius","",Ae.borderRadiusL),color:wn,fontSize:Ee.extend("--ft-button-font-size","",qr.fontSize),iconSize:Ee.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ee.extend("--ft-button-ripple-color","",wn),verticalPadding:Ee.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ee.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ee.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ee.external(Ae.colorOpacityDisabled,"Design system")},Nn=Ee.extend("--ft-button-primary-color","",Ee.extend("--ft-button-color","",Ae.colorOnPrimary)),$n={backgroundColor:Ee.extend("--ft-button-primary-background-color","",Ee.extend("--ft-button-background-color","",Ae.colorPrimary)),color:Nn,rippleColor:Ee.extend("--ft-button-primary-ripple-color","",Nn)},Cn=Ee.extend("--ft-button-dense-border-radius","",Ee.extend("--ft-button-border-radius","",Ae.borderRadiusM)),En=Ee.create("--ft-button-dense-vertical-padding","","SIZE","2px"),kn=Ee.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Rn=Ee.create("--ft-button-dense-icon-padding","","SIZE","4px"),Un=[Et`
482
+ `,Sn=Ee.extend("--ft-button-color","",Ae.colorPrimary),Nn={backgroundColor:Ee.extend("--ft-button-background-color","",Ae.colorSurface),borderRadius:Ee.extend("--ft-button-border-radius","",Ae.borderRadiusL),color:Sn,fontSize:Ee.extend("--ft-button-font-size","",Yr.fontSize),iconSize:Ee.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ee.extend("--ft-button-ripple-color","",Sn),verticalPadding:Ee.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ee.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ee.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ee.external(Ae.colorOpacityDisabled,"Design system")},$n=Ee.extend("--ft-button-primary-color","",Ee.extend("--ft-button-color","",Ae.colorOnPrimary)),Cn={backgroundColor:Ee.extend("--ft-button-primary-background-color","",Ee.extend("--ft-button-background-color","",Ae.colorPrimary)),color:$n,rippleColor:Ee.extend("--ft-button-primary-ripple-color","",$n)},En=Ee.extend("--ft-button-dense-border-radius","",Ee.extend("--ft-button-border-radius","",Ae.borderRadiusM)),kn=Ee.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Rn=Ee.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Un=Ee.create("--ft-button-dense-icon-padding","","SIZE","4px"),In=[Et`
479
483
  :host {
480
484
  display: inline-block;
481
485
  max-width: 100%;
@@ -486,7 +490,7 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
486
490
  box-shadow: 0px 0px 0px transparent;
487
491
  border: 0px solid transparent;
488
492
  text-shadow: 0px 0px 0px transparent;
489
- font-size: ${Sn.fontSize};
493
+ font-size: ${Nn.fontSize};
490
494
  }
491
495
 
492
496
  button:hover {
@@ -515,31 +519,31 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
515
519
  border: none;
516
520
  pointer-events: auto;
517
521
 
518
- --ft-button-internal-line-height: max(calc(${Sn.fontSize} + 2px), ${Sn.iconSize});
519
- --ft-button-internal-color: ${Sn.color};
520
- ${ke(xn.size,Sn.iconSize)};
521
- ${ke(fn.color,Sn.rippleColor)};
522
+ --ft-button-internal-line-height: max(calc(${Nn.fontSize} + 2px), ${Nn.iconSize});
523
+ --ft-button-internal-color: ${Nn.color};
524
+ ${ke(On.size,Nn.iconSize)};
525
+ ${ke(hn.color,Nn.rippleColor)};
522
526
 
523
- border-radius: ${Sn.borderRadius};
524
- padding: ${Sn.verticalPadding} ${Sn.horizontalPadding};
525
- background-color: ${Sn.backgroundColor};
527
+ border-radius: ${Nn.borderRadius};
528
+ padding: ${Nn.verticalPadding} ${Nn.horizontalPadding};
529
+ background-color: ${Nn.backgroundColor};
526
530
  color: var(--ft-button-internal-color);
527
531
  -webkit-mask-image: radial-gradient(white, black);
528
532
  }
529
533
 
530
534
  .ft-button.ft-button--outlined {
531
535
  border: 1px solid var(--ft-button-internal-color);
532
- padding: calc(${Sn.verticalPadding} - 1px) calc(${Sn.horizontalPadding} - 1px);
536
+ padding: calc(${Nn.verticalPadding} - 1px) calc(${Nn.horizontalPadding} - 1px);
533
537
  }
534
538
 
535
539
  .ft-button.ft-button--dense {
536
- padding: ${En} ${kn};
537
- border-radius: ${Cn};
538
- gap: ${Rn};
540
+ padding: ${kn} ${Rn};
541
+ border-radius: ${En};
542
+ gap: ${Un};
539
543
  }
540
544
 
541
545
  .ft-button.ft-button--dense.ft-button--outlined {
542
- padding: calc(${En} - 1px) calc(${kn} - 1px);
546
+ padding: calc(${kn} - 1px) calc(${Rn} - 1px);
543
547
  }
544
548
 
545
549
  .ft-button:not([disabled]):hover {
@@ -547,22 +551,22 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
547
551
  }
548
552
 
549
553
  .ft-button--round {
550
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Sn.verticalPadding});
554
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Nn.verticalPadding});
551
555
  }
552
556
 
553
557
  .ft-button--round.ft-button--dense {
554
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${En});
558
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${kn});
555
559
  }
556
560
 
557
561
  .ft-button[disabled] {
558
562
  filter: grayscale(1);
559
- opacity: ${Sn.opacityDisabled};
563
+ opacity: ${Nn.opacityDisabled};
560
564
  }
561
565
 
562
566
  .ft-button.ft-button--primary {
563
- background-color: ${$n.backgroundColor};
564
- --ft-button-internal-color: ${$n.color};
565
- ${ke(fn.color,$n.rippleColor)};
567
+ background-color: ${Cn.backgroundColor};
568
+ --ft-button-internal-color: ${Cn.color};
569
+ ${ke(hn.color,Cn.rippleColor)};
566
570
  }
567
571
 
568
572
  .ft-button:focus {
@@ -575,13 +579,13 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
575
579
  white-space: nowrap;
576
580
  text-overflow: ellipsis;
577
581
  display: block;
578
- margin: 0 ${Sn.iconPadding};
579
- ${ke(qr.fontSize,"1em")};
580
- ${ke(qr.lineHeight,"var(--ft-button-internal-line-height)")};
582
+ margin: 0 ${Nn.iconPadding};
583
+ ${ke(Yr.fontSize,"1em")};
584
+ ${ke(Yr.lineHeight,"var(--ft-button-internal-line-height)")};
581
585
  }
582
586
 
583
587
  .ft-button--dense .ft-button--label {
584
- margin: 0 ${Rn};
588
+ margin: 0 ${Un};
585
589
  }
586
590
 
587
591
  .ft-button--label[hidden] {
@@ -594,13 +598,13 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
594
598
  }
595
599
 
596
600
  .ft-button--label[hidden] + ft-icon {
597
- margin: 0 calc(${Sn.horizontalPadding} * -1);
598
- padding: 0 ${Sn.verticalPadding};
601
+ margin: 0 calc(${Nn.horizontalPadding} * -1);
602
+ padding: 0 ${Nn.verticalPadding};
599
603
  }
600
604
 
601
605
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
602
- margin: 0 calc(${kn} * -1);
603
- padding: 0 ${En};
606
+ margin: 0 calc(${Rn} * -1);
607
+ padding: 0 ${kn};
604
608
  }
605
609
 
606
610
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -609,10 +613,10 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
609
613
  }
610
614
 
611
615
  ft-loader {
612
- ${ke(mn.size,Sn.iconSize)};
613
- ${ke(mn.color,"var(--ft-button-internal-color)")};
616
+ ${ke(vn.size,Nn.iconSize)};
617
+ ${ke(vn.color,"var(--ft-button-internal-color)")};
614
618
  }
615
- `,Te],In=Ee.external(Ae.colorOutline,"Design system"),Ln=Ee.external(Ae.colorOnSurface,"Design system"),An=Ee.external(Ae.colorOnSurfaceMedium,"Design system"),Wn=Ee.external(Ae.colorPrimary,"Design system"),jn=Ee.external(Ae.colorSurface,"Design system"),Fn=Ee.external(Ae.transitionDuration,"Design system"),zn=Ee.external(Ae.transitionTimingFunction,"Design system"),Bn=[on,Et`
619
+ `,Ze],Ln=Ee.external(Ae.colorOutline,"Design system"),An=Ee.external(Ae.colorOnSurface,"Design system"),Wn=Ee.external(Ae.colorOnSurfaceMedium,"Design system"),jn=Ee.external(Ae.colorPrimary,"Design system"),Fn=Ee.external(Ae.colorSurface,"Design system"),zn=Ee.external(Ae.transitionDuration,"Design system"),Bn=Ee.external(Ae.transitionTimingFunction,"Design system"),Dn=[rn,Et`
616
620
  :host {
617
621
  display: flex;
618
622
  max-height: 100%;
@@ -625,7 +629,7 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
625
629
  flex-direction: column;
626
630
  max-height: 100%;
627
631
  max-width: 100%;
628
- color: ${Ln};
632
+ color: ${An};
629
633
  }
630
634
 
631
635
  .ft-filter--header {
@@ -635,13 +639,13 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
635
639
  flex-shrink: 0;
636
640
  padding: 0 10px;
637
641
  margin-bottom: 8px;
638
- ${ke(Qi.fontSize,"14px")};
642
+ ${ke(tr.fontSize,"14px")};
639
643
  }
640
644
 
641
645
  .ft-filter--header ft-button {
642
646
  flex-shrink: 0;
643
647
  margin-left: auto;
644
- ${ke(Sn.iconSize,"18px")};
648
+ ${ke(Nn.iconSize,"18px")};
645
649
  }
646
650
 
647
651
  .ft-filter--label {
@@ -649,8 +653,8 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
649
653
  flex-shrink: 1;
650
654
  flex-grow: 1;
651
655
  word-break: break-word;
652
- ${ke(Qi.lineHeight,"22px")};
653
- ${ke(Qi.fontWeight,"bold")};
656
+ ${ke(tr.lineHeight,"22px")};
657
+ ${ke(tr.fontWeight,"bold")};
654
658
  }
655
659
 
656
660
  .ft-filter--filter {
@@ -661,8 +665,8 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
661
665
  padding: 0 10px;
662
666
  overflow: hidden;
663
667
  height: 32px;
664
- transition: height ${Fn} ${zn},
665
- margin ${Fn} ${zn};
668
+ transition: height ${zn} ${Bn},
669
+ margin ${zn} ${Bn};
666
670
  transition-delay: 500ms;
667
671
  }
668
672
 
@@ -675,15 +679,15 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
675
679
  display: block;
676
680
  width: 100%;
677
681
  border-radius: 4px;
678
- border: 1px solid ${In};
682
+ border: 1px solid ${Ln};
679
683
  padding: 4px;
680
- background-color: ${jn};
681
- color: ${Ln};
682
- outline-color: ${Wn};
684
+ background-color: ${Fn};
685
+ color: ${An};
686
+ outline-color: ${jn};
683
687
  }
684
688
 
685
689
  input::placeholder {
686
- color: ${An};
690
+ color: ${Wn};
687
691
  }
688
692
 
689
693
  input:placeholder-shown {
@@ -699,7 +703,7 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
699
703
  }
700
704
 
701
705
  .ft-filter--separator {
702
- border-top: 1px solid ${In};
706
+ border-top: 1px solid ${Ln};
703
707
  margin: 4px 10px;
704
708
  }
705
709
 
@@ -724,14 +728,14 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
724
728
  slot:not([name]) {
725
729
  display: none;
726
730
  }
727
- `],Dn={warningIconColor:Ee.extend("--ft-search-locale-selector-warning-icon-color","",Ae.colorError),warningTooltipMaxWidth:Ee.create("--ft-search-locale-selector-warning-tooltip-max-width","","SIZE","270px")},Pn=Et`
731
+ `],Pn={warningIconColor:Ee.extend("--ft-search-locale-selector-warning-icon-color","",Ae.colorError),warningTooltipMaxWidth:Ee.create("--ft-search-locale-selector-warning-tooltip-max-width","","SIZE","270px")},Kn=Et`
728
732
  [part="container"] {
729
733
  flex-grow: 1;
730
734
  display: flex;
731
735
  flex-direction: column;
732
736
  max-height: 100%;
733
737
  max-width: 100%;
734
- color: ${Ln};
738
+ color: ${An};
735
739
  }
736
740
 
737
741
  [part="container"] > ft-radio-group {
@@ -749,7 +753,7 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
749
753
  flex-shrink: 0;
750
754
  padding: 0 10px;
751
755
  margin-bottom: 8px;
752
- ${ke(Qi.fontSize,"14px")};
756
+ ${ke(tr.fontSize,"14px")};
753
757
  }
754
758
 
755
759
  [part="label"] {
@@ -757,19 +761,19 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
757
761
  flex-shrink: 1;
758
762
  flex-grow: 1;
759
763
  word-break: break-word;
760
- ${ke(Qi.lineHeight,"22px")};
761
- ${ke(Qi.fontWeight,"bold")};
764
+ ${ke(tr.lineHeight,"22px")};
765
+ ${ke(tr.fontWeight,"bold")};
762
766
  }
763
767
 
764
768
  [part="warning-tooltip"] {
765
769
  margin-top: -6px;
766
770
  padding: 4px;
767
771
  position: absolute;
768
- ${ke(qi.maxWidth,Dn.warningTooltipMaxWidth)};
772
+ ${ke(Yi.maxWidth,Pn.warningTooltipMaxWidth)};
769
773
  }
770
774
 
771
775
  [part="warning-icon"] {
772
- color: ${Dn.warningIconColor};
776
+ color: ${Pn.warningIconColor};
773
777
  cursor: help;
774
778
  }
775
779
 
@@ -789,54 +793,54 @@ let Ne=class extends Tt{constructor(){super(...arguments),this.renderOptions={ho
789
793
  * @license
790
794
  * Copyright 2017 Google LLC
791
795
  * SPDX-License-Identifier: BSD-3-Clause
792
- */,Kn=1,Mn=2,Tn=t=>(...e)=>({_$litDirective$:t,values:e});let Zn=class{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)}};
796
+ */,Mn=1,Tn=2,Zn=t=>(...e)=>({_$litDirective$:t,values:e});let _n=class{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)}};
793
797
  /**
794
798
  * @license
795
799
  * Copyright 2020 Google LLC
796
800
  * SPDX-License-Identifier: BSD-3-Clause
797
- */const{D:_n}=vt,Hn=()=>document.createComment(""),Gn=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Hn(),r),n=i.insertBefore(Hn(),r);o=new _n(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},Vn=(t,e,o=t)=>(t._$AI(e,o),t),qn={},Yn=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}},Xn=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Jn=Tn(class extends Zn{constructor(t){if(super(t),t.type!==Mn)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 a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;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:a}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,p=r.length-1,d=0,u=n.length-1;for(;h<=p&&d<=u;)if(null===r[h])h++;else if(null===r[p])p--;else if(s[h]===a[d])l[d]=Vn(r[h],n[d]),h++,d++;else if(s[p]===a[u])l[u]=Vn(r[p],n[u]),p--,u--;else if(s[h]===a[u])l[u]=Vn(r[h],n[u]),Gn(t,l[u+1],r[h]),h++,u--;else if(s[p]===a[d])l[d]=Vn(r[p],n[d]),Gn(t,r[h],r[p]),p--,d++;else if(void 0===c&&(c=Xn(a,d,u),f=Xn(s,h,p)),c.has(s[h]))if(c.has(s[p])){const e=f.get(a[d]),o=void 0!==e?r[e]:null;if(null===o){const e=Gn(t,r[h]);Vn(e,n[d]),l[d]=e}else l[d]=Vn(o,n[d]),Gn(t,r[h],o),r[e]=null;d++}else Yn(r[p]),p--;else Yn(r[h]),h++;for(;d<=u;){const e=Gn(t,l[u+1]);Vn(e,n[d]),l[d++]=e}for(;h<=p;){const t=r[h++];null!==t&&Yn(t)}return this.dt=a,((t,e=qn)=>{t._$AH=e})(t,l),rt}}),Qn=Et`
798
- `,ta=Et`
799
- `,ea=Mi.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}});
801
+ */const{D:Hn}=vt,Gn=()=>document.createComment(""),Vn=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Gn(),r),n=i.insertBefore(Gn(),r);o=new Hn(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},qn=(t,e,o=t)=>(t._$AI(e,o),t),Yn={},Xn=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}},Jn=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},Qn=Zn(class extends _n{constructor(t){if(super(t),t.type!==Tn)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 a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;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:a}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,p=r.length-1,d=0,u=n.length-1;for(;h<=p&&d<=u;)if(null===r[h])h++;else if(null===r[p])p--;else if(s[h]===a[d])l[d]=qn(r[h],n[d]),h++,d++;else if(s[p]===a[u])l[u]=qn(r[p],n[u]),p--,u--;else if(s[h]===a[u])l[u]=qn(r[h],n[u]),Vn(t,l[u+1],r[h]),h++,u--;else if(s[p]===a[d])l[d]=qn(r[p],n[d]),Vn(t,r[h],r[p]),p--,d++;else if(void 0===c&&(c=Jn(a,d,u),f=Jn(s,h,p)),c.has(s[h]))if(c.has(s[p])){const e=f.get(a[d]),o=void 0!==e?r[e]:null;if(null===o){const e=Vn(t,r[h]);qn(e,n[d]),l[d]=e}else l[d]=qn(o,n[d]),Vn(t,r[h],o),r[e]=null;d++}else Xn(r[p]),p--;else Xn(r[h]),h++;for(;d<=u;){const e=Vn(t,l[u+1]);qn(e,n[d]),l[d++]=e}for(;h<=p;){const t=r[h++];null!==t&&Xn(t)}return this.dt=a,((t,e=Yn)=>{t._$AH=e})(t,l),rt}}),ta=Et`
802
+ `,ea=Et`
803
+ `,oa=Ti.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}});
800
804
  /**
801
805
  * @license
802
806
  * Copyright 2017 Google LLC
803
807
  * SPDX-License-Identifier: BSD-3-Clause
804
- */class oa{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=ea.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?oa.build(t):null!==(e=oa.API)&&void 0!==e?e:oa.API=oa.build()}static await(t){return new Promise((e=>{let o=oa.get(t);if(o)e(o);else{const i=ea.subscribe((()=>{o=oa.get(t),o&&(i(),e(o))}))}}))}}var ia;const ra=Symbol("clearAfterUnitTest");class na{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[ia]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=ea.getState().uiLocale,ea.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ea.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};W(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 a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new _e(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).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=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}ia=ra,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new na((async(t,e)=>(await oa.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new na((async(t,e)=>(await oa.await()).getCustomMessageContext(t,e))));const aa=window.FluidTopicsI18nService,sa=window.FluidTopicsCustomI18nService;var la=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ca extends Me{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=()=>oa.get(),this.cache=new i,this.cleanSessionDebouncer=new r}render(){return ce`
808
+ */class ia{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=oa.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?ia.build(t):null!==(e=ia.API)&&void 0!==e?e:ia.API=ia.build()}static await(t){return new Promise((e=>{let o=ia.get(t);if(o)e(o);else{const i=oa.subscribe((()=>{o=ia.get(t),o&&(i(),e(o))}))}}))}}var ra;const na=Symbol("clearAfterUnitTest");class aa{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[ra]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=oa.getState().uiLocale,oa.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=oa.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};W(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 a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new He(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).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=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}ra=na,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new aa((async(t,e)=>(await ia.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new aa((async(t,e)=>(await ia.await()).getCustomMessageContext(t,e))));const sa=window.FluidTopicsI18nService,la=window.FluidTopicsCustomI18nService;var ca=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class fa extends Me{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=()=>ia.get(),this.cache=new i,this.cleanSessionDebouncer=new r}render(){return ce`
805
809
  <slot></slot>
806
- `}update(t){super.update(t),t.has("baseUrl")&&ea.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ea.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ea.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ea.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ea.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ea.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ea.actions.setSession(this.session),t.has("availableUiLocales")&&ea.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>aa.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()))))}}ca.elementDefinitions={},ca.styles=ta,la([k()],ca.prototype,"baseUrl",void 0),la([k()],ca.prototype,"apiIntegrationIdentifier",void 0),la([k()],ca.prototype,"uiLocale",void 0),la([F([])],ca.prototype,"availableUiLocales",void 0),la([k({type:Boolean})],ca.prototype,"editorMode",void 0),la([k({type:Boolean})],ca.prototype,"noCustom",void 0),la([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ca.prototype,"noCustomComponent",void 0),la([k({type:Boolean})],ca.prototype,"withManualResources",void 0),la([F([])],ca.prototype,"messageContexts",void 0),la([F(void 0)],ca.prototype,"session",void 0),la([k({type:Object})],ca.prototype,"apiProvider",void 0);class fa{async listMySearches(){var t;return(null===(t=ea.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await oa.await()).listMySearches(ea.getState().session.profile.userId):[]}}const ha=new i;class pa{async listMyBookmarks(){return ha.get("bookmarks",(async()=>(await oa.await()).listMyBookmarks(ea.getState().session.profile.userId)))}clearCache(){ha.clear("bookmarks")}}const da=Mi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=ea.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new pa,ea.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ea.getState();W(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(){da.actions.savedSearches(void 0)}clearMyBookmarks(){da.actions.bookmarks(void 0)}async reloadMySearches(){const t=new fa,e=await t.listMySearches();da.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;da.actions.bookmarks(e)}}},j("ft-app-context")(ca);var ua=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const ya=Symbol("i18nProperties"),ba=Symbol("i18nUnsubs");function ga(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?sa:aa}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[ya])||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[ya])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ya]&&new Set([...this[ya].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ba].has(t)||this[ba].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[ba].forEach((t=>t())),this[ba].clear()}}return e=ba,ua([k({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class ma extends(ga(Me)){}class va extends(ga(Qe)){}var xa,Oa,wa,Sa,Na,$a,Ca,Ea,ka,Ra,Ua,Ia,La,Aa,Wa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ja extends va{constructor(){super(),this.editorMode=!1,this.addStore(ea)}render(){return this.key&&this.context?ce`
810
+ `}update(t){super.update(t),t.has("baseUrl")&&oa.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&oa.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&oa.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&oa.actions.setNoCustom(this.noCustom),t.has("editorMode")&&oa.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&oa.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&oa.actions.setSession(this.session),t.has("availableUiLocales")&&oa.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>sa.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()))))}}fa.elementDefinitions={},fa.styles=ea,ca([k()],fa.prototype,"baseUrl",void 0),ca([k()],fa.prototype,"apiIntegrationIdentifier",void 0),ca([k()],fa.prototype,"uiLocale",void 0),ca([F([])],fa.prototype,"availableUiLocales",void 0),ca([k({type:Boolean})],fa.prototype,"editorMode",void 0),ca([k({type:Boolean})],fa.prototype,"noCustom",void 0),ca([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],fa.prototype,"noCustomComponent",void 0),ca([k({type:Boolean})],fa.prototype,"withManualResources",void 0),ca([F([])],fa.prototype,"messageContexts",void 0),ca([F(void 0)],fa.prototype,"session",void 0),ca([k({type:Object})],fa.prototype,"apiProvider",void 0);class ha{async listMySearches(){var t;return(null===(t=oa.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ia.await()).listMySearches(oa.getState().session.profile.userId):[]}}const pa=new i;class da{async listMyBookmarks(){return pa.get("bookmarks",(async()=>(await ia.await()).listMyBookmarks(oa.getState().session.profile.userId)))}clearCache(){pa.clear("bookmarks")}}const ua=Ti.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=oa.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new da,oa.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=oa.getState();W(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(){ua.actions.savedSearches(void 0)}clearMyBookmarks(){ua.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ha,e=await t.listMySearches();ua.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;ua.actions.bookmarks(e)}}},j("ft-app-context")(fa);var ya=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const ba=Symbol("i18nProperties"),ga=Symbol("i18nUnsubs");function ma(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?la:sa}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[ba])||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[ba])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ba]&&new Set([...this[ba].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ga].has(t)||this[ga].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[ga].forEach((t=>t())),this[ga].clear()}}return e=ga,ya([k({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class va extends(ma(Me)){}class xa extends(ma(to)){}var Oa,wa,Sa,Na,$a,Ca,Ea,ka,Ra,Ua,Ia,La,Aa,Wa,ja=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Fa extends xa{constructor(){super(),this.editorMode=!1,this.addStore(oa)}render(){return this.key&&this.context?ce`
807
811
  <span class="ft-i18n">
808
812
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
809
813
  </span>
810
- `:this.editorMode?"Select a context and a label key.":he}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ja.elementDefinitions={},ja.styles=Qn,Wa([Ti()],ja.prototype,"editorMode",void 0),Wa([k()],ja.prototype,"context",void 0),Wa([k()],ja.prototype,"key",void 0),Wa([F([])],ja.prototype,"args",void 0),Wa([k()],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)=>aa.resolveMessage(this.name,e,...t)})}}j("ft-i18n")(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 a(t){return"string"!=typeof t&&(t=String(t)),t}function s(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 f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(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 d(){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(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(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=a(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)]=a(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)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["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(),u.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})},d.call(y.prototype),d.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 a=new y(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.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 s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new g(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._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"}(xa||(xa={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Oa||(Oa={})),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"}(wa||(wa={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Sa||(Sa={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Na||(Na={})),function(t){t.ASC="ASC",t.DESC="DESC"}($a||($a={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ca||(Ca={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ea||(Ea={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ka||(ka={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ra||(Ra={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ua||(Ua={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Ia||(Ia={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(La||(La={})),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"}(Aa||(Aa={})),Aa.PERSONAL_BOOK_SHARE_USER,Aa.PERSONAL_BOOK_USER,Aa.HTML_EXPORT_USER,Aa.PERSONAL_BOOK_USER,Aa.PDF_EXPORT_USER,Aa.PERSONAL_BOOK_USER,Aa.KHUB_ADMIN,Aa.CONTENT_PUBLISHER,Aa.ADMIN,Aa.KHUB_ADMIN,Aa.USERS_ADMIN,Aa.PORTAL_ADMIN,Aa.DEVELOPER,Aa.BETA_USER,Aa.DEBUG_USER;class za extends Event{constructor(){super(za.eventName)}}za.eventName="search-context-clear-all-filters";var Ba=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Da extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Pa=Symbol("registerInterval");class Ka 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[Pa]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Pa]):this.dispatchEvent(new Da)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Pa,Ba([R()],o.prototype,"stateManager",void 0),o}(Qe)){}
814
+ `:this.editorMode?"Select a context and a label key.":he}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Fa.elementDefinitions={},Fa.styles=ta,ja([Zi()],Fa.prototype,"editorMode",void 0),ja([k()],Fa.prototype,"context",void 0),ja([k()],Fa.prototype,"key",void 0),ja([F([])],Fa.prototype,"args",void 0),ja([k()],Fa.prototype,"defaultMessage",void 0);class za{static build(t){return new za(t)}static fromGwt(t){return new za(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)=>sa.resolveMessage(this.name,e,...t)})}}j("ft-i18n")(Fa),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 a(t){return"string"!=typeof t&&(t=String(t)),t}function s(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 f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(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 d(){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(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(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=a(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)]=a(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)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["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(),u.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})},d.call(y.prototype),d.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 a=new y(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.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 s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new g(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._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"}(Oa||(Oa={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(wa||(wa={})),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"}(Sa||(Sa={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Na||(Na={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}($a||($a={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Ca||(Ca={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ea||(Ea={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(ka||(ka={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ra||(Ra={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ua||(Ua={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ia||(Ia={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(La||(La={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Aa||(Aa={})),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"}(Wa||(Wa={})),Wa.PERSONAL_BOOK_SHARE_USER,Wa.PERSONAL_BOOK_USER,Wa.HTML_EXPORT_USER,Wa.PERSONAL_BOOK_USER,Wa.PDF_EXPORT_USER,Wa.PERSONAL_BOOK_USER,Wa.KHUB_ADMIN,Wa.CONTENT_PUBLISHER,Wa.ADMIN,Wa.KHUB_ADMIN,Wa.USERS_ADMIN,Wa.PORTAL_ADMIN,Wa.DEVELOPER,Wa.BETA_USER,Wa.DEBUG_USER;class Ba extends Event{constructor(){super(Ba.eventName)}}Ba.eventName="search-context-clear-all-filters";var Da=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Pa extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Ka=Symbol("registerInterval");class Ma 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[Ka]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ka]):this.dispatchEvent(new Pa)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ka,Da([R()],o.prototype,"stateManager",void 0),o}(to)){}
811
815
  /**
812
816
  * @license
813
817
  * Copyright 2020 Google LLC
814
818
  * SPDX-License-Identifier: BSD-3-Clause
815
- */const Ma=Symbol.for(""),Ta=t=>{if(t?.r===Ma)return t?._$litStatic$},Za=t=>({_$litStatic$:t,r:Ma}),_a=new Map,Ha=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Ta(n));)l+=r+e[++c],f=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),f){const t=a.join("$$lit$$");void 0===(e=_a.get(t))&&(a.raw=a,_a.set(t,e=a)),o=s}return t(e,...o)})(it);var Ga;!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"}(Ga||(Ga={}));var Va=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qa extends Me{constructor(){super(...arguments),this.variant=Ga.body1}render(){return this.element?Ha`
816
- <${Za(this.element)}
819
+ */const Ta=Symbol.for(""),Za=t=>{if(t?.r===Ta)return t?._$litStatic$},_a=t=>({_$litStatic$:t,r:Ta}),Ha=new Map,Ga=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Za(n));)l+=r+e[++c],f=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),f){const t=a.join("$$lit$$");void 0===(e=Ha.get(t))&&(a.raw=a,Ha.set(t,e=a)),o=s}return t(e,...o)})(it);var Va;!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"}(Va||(Va={}));var qa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ya extends Me{constructor(){super(...arguments),this.variant=Va.body1}render(){return this.element?Ga`
820
+ <${_a(this.element)}
817
821
  class="ft-typography ft-typography--${this.variant}">
818
822
  <slot></slot>
819
- </${Za(this.element)}>
820
- `:Ha`
823
+ </${_a(this.element)}>
824
+ `:Ga`
821
825
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
822
- `}}qa.styles=[Yr,Xr,Jr,Qr,tn,en,on,rn,nn,an,sn,...ln],Va([k()],qa.prototype,"element",void 0),Va([k()],qa.prototype,"variant",void 0),j("ft-typography")(qa);
826
+ `}}Ya.styles=[Xr,Jr,Qr,tn,en,on,rn,nn,an,sn,ln,...cn],qa([k()],Ya.prototype,"element",void 0),qa([k()],Ya.prototype,"variant",void 0),j("ft-typography")(Ya);
823
827
  /**
824
828
  * @license
825
829
  * Copyright 2018 Google LLC
826
830
  * SPDX-License-Identifier: BSD-3-Clause
827
831
  */
828
- const Ya=Tn(class extends Zn{constructor(t){if(super(t),t.type!==Kn||"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 rt}});var Xa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ja extends Me{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 r(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 r(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 ce`
832
+ const Xa=Zn(class extends _n{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 rt}});var Ja=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Qa extends Me{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 r(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 r(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 ce`
829
833
  <style>
830
834
  .ft-ripple .ft-ripple--effect {
831
835
  left: ${this.originX}px;
832
836
  top: ${this.originY}px;
833
837
  }
834
838
  </style>
835
- <div class="${Ya(t)}">
839
+ <div class="${Xa(t)}">
836
840
  <div class="ft-ripple--background"></div>
837
841
  <div class="ft-ripple--effect"></div>
838
842
  </div>
839
- `}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()}}Ja.elementDefinitions={},Ja.styles=gn,Xa([k({type:Boolean})],Ja.prototype,"primary",void 0),Xa([k({type:Boolean})],Ja.prototype,"secondary",void 0),Xa([k({type:Boolean})],Ja.prototype,"unbounded",void 0),Xa([k({type:Boolean})],Ja.prototype,"activated",void 0),Xa([k({type:Boolean})],Ja.prototype,"selected",void 0),Xa([k({type:Boolean})],Ja.prototype,"disabled",void 0),Xa([R()],Ja.prototype,"hovered",void 0),Xa([R()],Ja.prototype,"focused",void 0),Xa([R()],Ja.prototype,"pressed",void 0),Xa([R()],Ja.prototype,"rippling",void 0),Xa([R()],Ja.prototype,"originX",void 0),Xa([R()],Ja.prototype,"originY",void 0),Xa([I(".ft-ripple")],Ja.prototype,"ripple",void 0),Xa([I(".ft-ripple--effect")],Ja.prototype,"rippleEffect",void 0),j("ft-ripple")(Ja);var Qa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ts extends Me{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 r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ce`
843
+ `}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()}}Qa.elementDefinitions={},Qa.styles=mn,Ja([k({type:Boolean})],Qa.prototype,"primary",void 0),Ja([k({type:Boolean})],Qa.prototype,"secondary",void 0),Ja([k({type:Boolean})],Qa.prototype,"unbounded",void 0),Ja([k({type:Boolean})],Qa.prototype,"activated",void 0),Ja([k({type:Boolean})],Qa.prototype,"selected",void 0),Ja([k({type:Boolean})],Qa.prototype,"disabled",void 0),Ja([R()],Qa.prototype,"hovered",void 0),Ja([R()],Qa.prototype,"focused",void 0),Ja([R()],Qa.prototype,"pressed",void 0),Ja([R()],Qa.prototype,"rippling",void 0),Ja([R()],Qa.prototype,"originX",void 0),Ja([R()],Qa.prototype,"originY",void 0),Ja([I(".ft-ripple")],Qa.prototype,"ripple",void 0),Ja([I(".ft-ripple--effect")],Qa.prototype,"rippleEffect",void 0),j("ft-ripple")(Qa);var ts=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class es extends Me{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 r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ce`
840
844
  <div part="container"
841
845
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
842
846
  @mouseenter=${this.onHover}
@@ -854,40 +858,40 @@ const Ya=Tn(class extends Zn{constructor(t){if(super(t),t.type!==Kn||"class"!==t
854
858
  </div>
855
859
  </div>
856
860
  </div>
857
- `}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,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,f=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,f))+"px";let h=-l.y,p=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,p))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${qi.maxWidth})`}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))}}ts.elementDefinitions={"ft-typography":qa},ts.styles=Yi,Qa([k()],ts.prototype,"text",void 0),Qa([k({type:Boolean})],ts.prototype,"manual",void 0),Qa([k({type:Boolean})],ts.prototype,"inline",void 0),Qa([k({type:Number})],ts.prototype,"delay",void 0),Qa([k()],ts.prototype,"position",void 0),Qa([
861
+ `}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,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,f=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,f))+"px";let h=-l.y,p=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,p))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Yi.maxWidth})`}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))}}es.elementDefinitions={"ft-typography":Ya},es.styles=Xi,ts([k()],es.prototype,"text",void 0),ts([k({type:Boolean})],es.prototype,"manual",void 0),ts([k({type:Boolean})],es.prototype,"inline",void 0),ts([k({type:Number})],es.prototype,"delay",void 0),ts([k()],es.prototype,"position",void 0),ts([
858
862
  /**
859
863
  * @license
860
864
  * Copyright 2017 Google LLC
861
865
  * SPDX-License-Identifier: BSD-3-Clause
862
866
  */
863
- function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],ts.prototype,"slotNodes",void 0),Qa([I(".ft-tooltip--container")],ts.prototype,"container",void 0),Qa([I(".ft-tooltip")],ts.prototype,"tooltip",void 0),Qa([I(".ft-tooltip--content")],ts.prototype,"tooltipContent",void 0),Qa([R()],ts.prototype,"visible",void 0),j("ft-tooltip")(ts);
867
+ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],es.prototype,"slotNodes",void 0),ts([I(".ft-tooltip--container")],es.prototype,"container",void 0),ts([I(".ft-tooltip")],es.prototype,"tooltip",void 0),ts([I(".ft-tooltip--content")],es.prototype,"tooltipContent",void 0),ts([R()],es.prototype,"visible",void 0),j("ft-tooltip")(es);
864
868
  /**
865
869
  * @license
866
870
  * Copyright 2017 Google LLC
867
871
  * SPDX-License-Identifier: BSD-3-Clause
868
872
  */
869
- class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.vt=void 0,this.et=t;if(t===rt)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:[]}}}es.directiveName="unsafeHTML",es.resultType=1;const os=Tn(es);var is,rs,ns;!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;"}(is||(is={})),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;"}(rs||(rs={})),new Map([...["abw"].map((t=>[t,rs.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,rs.AUDIO])),...["avi"].map((t=>[t,rs.AVI])),...["chm","xhs"].map((t=>[t,rs.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,rs.CODE])),...["csv"].map((t=>[t,rs.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,rs.DITA])),...["epub"].map((t=>[t,rs.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,rs.EXCEL])),...["flac"].map((t=>[t,rs.FLAC])),...["gif"].map((t=>[t,rs.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,rs.GZIP])),...["html","htm","xhtml"].map((t=>[t,rs.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,rs.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,rs.JPEG])),...["json"].map((t=>[t,rs.JSON])),...["m4a","m4p"].map((t=>[t,rs.M4A])),...["mov","qt"].map((t=>[t,rs.MOV])),...["mp3"].map((t=>[t,rs.MP3])),...["mp4","m4v"].map((t=>[t,rs.MP4])),...["ogg","oga"].map((t=>[t,rs.OGG])),...["pdf","ps"].map((t=>[t,rs.PDF])),...["png"].map((t=>[t,rs.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,rs.POWERPOINT])),...["rar"].map((t=>[t,rs.RAR])),...["stp"].map((t=>[t,rs.STP])),...["txt","rtf","md","mdown"].map((t=>[t,rs.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,rs.VIDEO])),...["wav"].map((t=>[t,rs.WAV])),...["wma"].map((t=>[t,rs.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,rs.WORD])),...["xml","xsl","rdf"].map((t=>[t,rs.XML])),...["yaml","yml","x-yaml"].map((t=>[t,rs.YAML])),...["zip"].map((t=>[t,rs.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ns||(ns={}));var as=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ss extends Me{constructor(){super(...arguments),this.resolvedIcon=he}render(){const t=this.variant&&Object.values(ns).includes(this.variant)?this.variant:ns.fluid_topics,e=t!==ns.material||!!this.value;return ce`
873
+ class os extends _n{constructor(t){if(super(t),this.et=nt,t.type!==Tn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.vt=void 0,this.et=t;if(t===rt)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:[]}}}os.directiveName="unsafeHTML",os.resultType=1;const is=Zn(os);var rs,ns,as;!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;"}(rs||(rs={})),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;"}(ns||(ns={})),new Map([...["abw"].map((t=>[t,ns.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,ns.AUDIO])),...["avi"].map((t=>[t,ns.AVI])),...["chm","xhs"].map((t=>[t,ns.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,ns.CODE])),...["csv"].map((t=>[t,ns.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ns.DITA])),...["epub"].map((t=>[t,ns.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ns.EXCEL])),...["flac"].map((t=>[t,ns.FLAC])),...["gif"].map((t=>[t,ns.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ns.GZIP])),...["html","htm","xhtml"].map((t=>[t,ns.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,ns.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ns.JPEG])),...["json"].map((t=>[t,ns.JSON])),...["m4a","m4p"].map((t=>[t,ns.M4A])),...["mov","qt"].map((t=>[t,ns.MOV])),...["mp3"].map((t=>[t,ns.MP3])),...["mp4","m4v"].map((t=>[t,ns.MP4])),...["ogg","oga"].map((t=>[t,ns.OGG])),...["pdf","ps"].map((t=>[t,ns.PDF])),...["png"].map((t=>[t,ns.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ns.POWERPOINT])),...["rar"].map((t=>[t,ns.RAR])),...["stp"].map((t=>[t,ns.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ns.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,ns.VIDEO])),...["wav"].map((t=>[t,ns.WAV])),...["wma"].map((t=>[t,ns.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ns.WORD])),...["xml","xsl","rdf"].map((t=>[t,ns.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ns.YAML])),...["zip"].map((t=>[t,ns.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(as||(as={}));var ss=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ls extends Me{constructor(){super(...arguments),this.resolvedIcon=he}render(){const t=this.variant&&Object.values(as).includes(this.variant)?this.variant:as.fluid_topics,e=t!==as.material||!!this.value;return ce`
870
874
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
871
- ${os(this.resolvedIcon)}
875
+ ${is(this.resolvedIcon)}
872
876
  <slot ?hidden=${e}></slot>
873
877
  </i>
874
- `}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 ns.file_format:this.resolvedIcon=null!==(t=rs[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ns.material:this.resolvedIcon=this.value||he;break;default:this.resolvedIcon=null!==(e=is[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ss.elementDefinitions={},ss.styles=On,as([k()],ss.prototype,"variant",void 0),as([k()],ss.prototype,"value",void 0),as([R()],ss.prototype,"resolvedIcon",void 0),as([I("slot")],ss.prototype,"slottedContent",void 0),j("ft-icon")(ss);class ls extends Me{render(){return ce`
878
+ `}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 as.file_format:this.resolvedIcon=null!==(t=ns[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case as.material:this.resolvedIcon=this.value||he;break;default:this.resolvedIcon=null!==(e=rs[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ls.elementDefinitions={},ls.styles=wn,ss([k()],ls.prototype,"variant",void 0),ss([k()],ls.prototype,"value",void 0),ss([R()],ls.prototype,"resolvedIcon",void 0),ss([I("slot")],ls.prototype,"slottedContent",void 0),j("ft-icon")(ls);class cs extends Me{render(){return ce`
875
879
  <div class="ft-loader">
876
880
  <div></div>
877
881
  <div></div>
878
882
  <div></div>
879
883
  <div></div>
880
884
  </div>
881
- `}}ls.styles=vn,j("ft-loader")(ls);var cs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class fs extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Zi].form}constructor(...t){super(t),this[Zi]=this.attachInternals(),this[Zi].role=e}setFormValue(t){this[Zi].setFormValue(t)}}}(Me,"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(ce`
885
+ `}}cs.styles=xn,j("ft-loader")(cs);var fs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hs extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[_i].form}constructor(...t){super(t),this[_i]=this.attachInternals(),this[_i].role=e}setFormValue(t){this[_i].setFormValue(t)}}}(Me,"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(ce`
882
886
  <button part="button"
883
- class="${Ya(this.buttonClasses)}"
887
+ class="${Xa(this.buttonClasses)}"
884
888
  aria-label="${this.getLabel()}"
885
889
  ?disabled=${this.isDisabled()}>
886
890
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
887
891
  <ft-typography part="label"
888
892
  variant=${this.typographyVariant}
889
893
  element="span"
890
- class="ft-button--label ${Vi?"ft-safari-ellipsis-fix":""}"
894
+ class="ft-button--label ${qi?"ft-safari-ellipsis-fix":""}"
891
895
  ?hidden=${!this.hasTextContent()}>
892
896
  <slot @slotchange=${this.onSlotchange}></slot>
893
897
  </ft-typography>
@@ -901,7 +905,7 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
901
905
  </ft-tooltip>
902
906
  `:t}resolveIcon(){return this.loading?ce`
903
907
  <ft-loader part="loader icon"></ft-loader> `:this.icon?ce`
904
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:he}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}}fs.elementDefinitions={"ft-ripple":Ja,"ft-tooltip":ts,"ft-typography":qa,"ft-icon":ss,"ft-loader":ls},cs([k({type:String,reflect:!0})],fs.prototype,"role",void 0),cs([k()],fs.prototype,"type",void 0),cs([k({type:Boolean})],fs.prototype,"disabled",void 0),cs([k()],fs.prototype,"label",void 0),cs([k()],fs.prototype,"icon",void 0),cs([k()],fs.prototype,"iconVariant",void 0),cs([k({type:Boolean})],fs.prototype,"trailingIcon",void 0),cs([k({type:Boolean})],fs.prototype,"loading",void 0),cs([k()],fs.prototype,"tooltipPosition",void 0),cs([k({type:Boolean})],fs.prototype,"hideTooltip",void 0),cs([k({type:Boolean})],fs.prototype,"forceTooltip",void 0),cs([I(".ft-button")],fs.prototype,"button",void 0),cs([I(".ft-button--label slot")],fs.prototype,"slottedContent",void 0);var hs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ps extends fs{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"}}ps.styles=[Ze,Un],hs([k({type:Boolean})],ps.prototype,"primary",void 0),hs([k({type:Boolean})],ps.prototype,"outlined",void 0),hs([k({type:Boolean})],ps.prototype,"dense",void 0),hs([k({type:Boolean})],ps.prototype,"round",void 0);const ds=[Et`
908
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:he}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}}hs.elementDefinitions={"ft-ripple":Qa,"ft-tooltip":es,"ft-typography":Ya,"ft-icon":ls,"ft-loader":cs},fs([k({type:String,reflect:!0})],hs.prototype,"role",void 0),fs([k()],hs.prototype,"type",void 0),fs([k({type:Boolean})],hs.prototype,"disabled",void 0),fs([k()],hs.prototype,"label",void 0),fs([k()],hs.prototype,"icon",void 0),fs([k()],hs.prototype,"iconVariant",void 0),fs([k({type:Boolean})],hs.prototype,"trailingIcon",void 0),fs([k({type:Boolean})],hs.prototype,"loading",void 0),fs([k()],hs.prototype,"tooltipPosition",void 0),fs([k({type:Boolean})],hs.prototype,"hideTooltip",void 0),fs([k({type:Boolean})],hs.prototype,"forceTooltip",void 0),fs([I(".ft-button")],hs.prototype,"button",void 0),fs([I(".ft-button--label slot")],hs.prototype,"slottedContent",void 0);var ps=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ds extends hs{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"}}ds.styles=[_e,In],ps([k({type:Boolean})],ds.prototype,"primary",void 0),ps([k({type:Boolean})],ds.prototype,"outlined",void 0),ps([k({type:Boolean})],ds.prototype,"dense",void 0),ps([k({type:Boolean})],ds.prototype,"round",void 0);const us=[Et`
905
909
  :host {
906
910
  display: inline-block;
907
911
  max-width: 100%;
@@ -980,13 +984,13 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
980
984
  /** Primary styles **/
981
985
 
982
986
  .ft-button--primary {
983
- ${ke(mn.color,Le.primaryIconColor)};
987
+ ${ke(vn.color,Le.primaryIconColor)};
984
988
 
985
- ${ke(fn.color,Le.primaryStateLayerColor)};
986
- ${ke(fn.opacityContentOnSurfaceHover,Le.primaryStateLayerOpacityHover)};
987
- ${ke(fn.opacityContentOnSurfaceFocused,Le.primaryStateLayerOpacityFocus)};
988
- ${ke(fn.opacityContentOnSurfaceSelected,Le.primaryStateLayerOpacityActive)};
989
- ${ke(fn.opacityContentOnSurfacePressed,Le.primaryStateLayerOpacityActive)};
989
+ ${ke(hn.color,Le.primaryStateLayerColor)};
990
+ ${ke(hn.opacityContentOnSurfaceHover,Le.primaryStateLayerOpacityHover)};
991
+ ${ke(hn.opacityContentOnSurfaceFocused,Le.primaryStateLayerOpacityFocus)};
992
+ ${ke(hn.opacityContentOnSurfaceSelected,Le.primaryStateLayerOpacityActive)};
993
+ ${ke(hn.opacityContentOnSurfacePressed,Le.primaryStateLayerOpacityActive)};
990
994
 
991
995
  background-color: ${Le.primaryBackgroundColor};
992
996
  color: ${Le.primaryColor};
@@ -1004,13 +1008,13 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1004
1008
  /** Secondary styles **/
1005
1009
 
1006
1010
  .ft-button--secondary {
1007
- ${ke(mn.color,Le.secondaryIconColor)};
1011
+ ${ke(vn.color,Le.secondaryIconColor)};
1008
1012
 
1009
- ${ke(fn.color,Le.secondaryStateLayerColor)};
1010
- ${ke(fn.opacityContentOnSurfaceHover,Le.secondaryStateLayerOpacityHover)};
1011
- ${ke(fn.opacityContentOnSurfaceFocused,Le.secondaryStateLayerOpacityFocus)};
1012
- ${ke(fn.opacityContentOnSurfaceSelected,Le.secondaryStateLayerOpacityActive)};
1013
- ${ke(fn.opacityContentOnSurfacePressed,Le.secondaryStateLayerOpacityActive)};
1013
+ ${ke(hn.color,Le.secondaryStateLayerColor)};
1014
+ ${ke(hn.opacityContentOnSurfaceHover,Le.secondaryStateLayerOpacityHover)};
1015
+ ${ke(hn.opacityContentOnSurfaceFocused,Le.secondaryStateLayerOpacityFocus)};
1016
+ ${ke(hn.opacityContentOnSurfaceSelected,Le.secondaryStateLayerOpacityActive)};
1017
+ ${ke(hn.opacityContentOnSurfacePressed,Le.secondaryStateLayerOpacityActive)};
1014
1018
 
1015
1019
  background-color: ${Le.secondaryBackgroundColor};
1016
1020
  color: ${Le.secondaryColor};
@@ -1029,13 +1033,13 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1029
1033
  /** Tertiary styles **/
1030
1034
 
1031
1035
  .ft-button--tertiary {
1032
- ${ke(mn.color,Le.tertiaryIconColor)};
1036
+ ${ke(vn.color,Le.tertiaryIconColor)};
1033
1037
 
1034
- ${ke(fn.color,Le.tertiaryStateLayerColor)};
1035
- ${ke(fn.opacityContentOnSurfaceHover,Le.tertiaryStateLayerOpacityHover)};
1036
- ${ke(fn.opacityContentOnSurfaceFocused,Le.tertiaryStateLayerOpacityFocus)};
1037
- ${ke(fn.opacityContentOnSurfaceSelected,Le.tertiaryStateLayerOpacityActive)};
1038
- ${ke(fn.opacityContentOnSurfacePressed,Le.tertiaryStateLayerOpacityActive)};
1038
+ ${ke(hn.color,Le.tertiaryStateLayerColor)};
1039
+ ${ke(hn.opacityContentOnSurfaceHover,Le.tertiaryStateLayerOpacityHover)};
1040
+ ${ke(hn.opacityContentOnSurfaceFocused,Le.tertiaryStateLayerOpacityFocus)};
1041
+ ${ke(hn.opacityContentOnSurfaceSelected,Le.tertiaryStateLayerOpacityActive)};
1042
+ ${ke(hn.opacityContentOnSurfacePressed,Le.tertiaryStateLayerOpacityActive)};
1039
1043
 
1040
1044
  background-color: ${Le.tertiaryBackgroundColor};
1041
1045
  color: ${Le.tertiaryColor};
@@ -1053,13 +1057,13 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1053
1057
  /** Neutral styles **/
1054
1058
 
1055
1059
  .ft-button--neutral {
1056
- ${ke(mn.color,Le.neutralIconColor)};
1060
+ ${ke(vn.color,Le.neutralIconColor)};
1057
1061
 
1058
- ${ke(fn.backgroundColor,Le.neutralStateLayerColor)};
1059
- ${ke(fn.opacityContentOnSurfaceHover,Le.neutralStateLayerOpacityHover)};
1060
- ${ke(fn.opacityContentOnSurfaceFocused,Le.neutralStateLayerOpacityFocus)};
1061
- ${ke(fn.opacityContentOnSurfaceSelected,Le.neutralStateLayerOpacityActive)};
1062
- ${ke(fn.opacityContentOnSurfacePressed,Le.neutralStateLayerOpacityActive)};
1062
+ ${ke(hn.backgroundColor,Le.neutralStateLayerColor)};
1063
+ ${ke(hn.opacityContentOnSurfaceHover,Le.neutralStateLayerOpacityHover)};
1064
+ ${ke(hn.opacityContentOnSurfaceFocused,Le.neutralStateLayerOpacityFocus)};
1065
+ ${ke(hn.opacityContentOnSurfaceSelected,Le.neutralStateLayerOpacityActive)};
1066
+ ${ke(hn.opacityContentOnSurfacePressed,Le.neutralStateLayerOpacityActive)};
1063
1067
 
1064
1068
  background-color: ${Le.neutralBackgroundColor};
1065
1069
  color: ${Le.neutralColor};
@@ -1077,8 +1081,8 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1077
1081
  /** Large styles **/
1078
1082
 
1079
1083
  .ft-button--large {
1080
- ${ke(xn.size,Le.largeIconSize)};
1081
- ${ke(mn.size,Le.largeIconSize)};
1084
+ ${ke(On.size,Le.largeIconSize)};
1085
+ ${ke(vn.size,Le.largeIconSize)};
1082
1086
 
1083
1087
  height: ${Le.largeHeight};
1084
1088
  padding: 0 ${Le.largeHorizontalPadding};
@@ -1100,8 +1104,8 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1100
1104
  /** Small styles **/
1101
1105
 
1102
1106
  .ft-button--small {
1103
- ${ke(xn.size,Le.smallIconSize)};
1104
- ${ke(mn.size,Le.smallIconSize)};
1107
+ ${ke(On.size,Le.smallIconSize)};
1108
+ ${ke(vn.size,Le.smallIconSize)};
1105
1109
 
1106
1110
  height: ${Le.smallHeight};
1107
1111
  padding: 0 ${Le.smallHorizontalPadding};
@@ -1119,14 +1123,14 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1119
1123
  width: ${Le.smallIconOnlyWidth};
1120
1124
  padding: unset;
1121
1125
  }
1122
- `,Te];var us=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ys extends fs{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?Ga.caption1medium:Ga.body2medium}}ys.styles=[Ze,ds],us([k({type:Boolean})],ys.prototype,"primary",void 0),us([k({type:Boolean})],ys.prototype,"secondary",void 0),us([k({type:Boolean})],ys.prototype,"tertiary",void 0),us([k({type:Boolean})],ys.prototype,"neutral",void 0),us([k({type:Boolean})],ys.prototype,"small",void 0),j("ft-button")(ps),j("ftds-button")(ys);const bs=Ee.extend("--ft-checkbox-text-color","",Ae.colorOnSurfaceHigh),gs=Ee.external(Ae.colorPrimary,"Design system"),ms=Ee.external(Ae.colorOnPrimary,"Design system"),vs=Ee.extend("--ft-checkbox-border-color","",Ae.colorOnSurfaceMedium),xs=Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),Os=Et`
1126
+ `,Ze];var ys=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class bs extends hs{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?Va.caption1medium:Va.body2medium}}bs.styles=[_e,us],ys([k({type:Boolean})],bs.prototype,"primary",void 0),ys([k({type:Boolean})],bs.prototype,"secondary",void 0),ys([k({type:Boolean})],bs.prototype,"tertiary",void 0),ys([k({type:Boolean})],bs.prototype,"neutral",void 0),ys([k({type:Boolean})],bs.prototype,"small",void 0),j("ft-button")(ds),j("ftds-button")(bs);const gs=Ee.extend("--ft-checkbox-text-color","",Ae.colorOnSurfaceHigh),ms=Ee.external(Ae.colorPrimary,"Design system"),vs=Ee.external(Ae.colorOnPrimary,"Design system"),xs=Ee.extend("--ft-checkbox-border-color","",Ae.colorOnSurfaceMedium),Os=Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),ws=Et`
1123
1127
  * {
1124
1128
  box-sizing: border-box;
1125
1129
  }
1126
1130
 
1127
1131
  .ft-checkbox {
1128
1132
  box-sizing: border-box;
1129
- color: ${bs};
1133
+ color: ${gs};
1130
1134
 
1131
1135
  display: inline-flex;
1132
1136
  align-items: center;
@@ -1134,7 +1138,7 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1134
1138
  }
1135
1139
 
1136
1140
  .ft-checkbox--disabled {
1137
- color: ${xs};
1141
+ color: ${Os};
1138
1142
  }
1139
1143
 
1140
1144
  input {
@@ -1158,26 +1162,26 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1158
1162
 
1159
1163
  .ft-checkbox--box {
1160
1164
  display: flex;
1161
- border: 2px solid ${vs};
1165
+ border: 2px solid ${xs};
1162
1166
  border-radius: 2px;
1163
1167
 
1164
1168
  width: 18px;
1165
1169
  height: 18px;
1166
1170
 
1167
- color: ${ms};
1171
+ color: ${vs};
1168
1172
  }
1169
1173
 
1170
1174
 
1171
1175
  .ft-checkbox--checked .ft-checkbox--box,
1172
1176
  .ft-checkbox--indeterminate .ft-checkbox--box {
1173
- border-color: ${gs};
1174
- background-color: ${gs};
1177
+ border-color: ${ms};
1178
+ background-color: ${ms};
1175
1179
  }
1176
1180
 
1177
1181
  .ft-checkbox--disabled .ft-checkbox--box {
1178
- border-color: ${xs};
1182
+ border-color: ${Os};
1179
1183
  background-color: transparent;
1180
- color: ${xs};
1184
+ color: ${Os};
1181
1185
  }
1182
1186
 
1183
1187
  .ft-checkbox--checkmark {
@@ -1196,8 +1200,8 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1196
1200
  .ft-checkbox--indeterminate .ft-checkbox--checkmark {
1197
1201
  opacity: 1;
1198
1202
  }
1199
- `;var ws=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ss extends Me{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 ce`
1200
- <label class="${Ya(t)}" for="checkbox-input">
1203
+ `;var Ss=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ns extends Me{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 ce`
1204
+ <label class="${Xa(t)}" for="checkbox-input">
1201
1205
  <div class="ft-checkbox--box-container">
1202
1206
  <ft-ripple
1203
1207
  ?disabled=${this.disabled}
@@ -1222,14 +1226,14 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1222
1226
  <slot></slot>
1223
1227
  </ft-typography>
1224
1228
  </label>
1225
- `}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)}}Ss.elementDefinitions={"ft-ripple":Ja,"ft-typography":qa},Ss.styles=Os,ws([k()],Ss.prototype,"name",void 0),ws([k({type:Boolean,reflect:!0})],Ss.prototype,"checked",void 0),ws([k({type:Boolean})],Ss.prototype,"indeterminate",void 0),ws([k({type:Boolean})],Ss.prototype,"disabled",void 0),ws([I(".ft-checkbox")],Ss.prototype,"container",void 0),ws([I("ft-ripple")],Ss.prototype,"ripple",void 0),j("ft-checkbox")(Ss);const Ns=Ee.extend("--ft-radio-text-color","",Ae.colorOnSurfaceHigh),$s=Ee.external(Ae.colorPrimary,"Design system"),Cs=(Ee.external(Ae.colorOnPrimary,"Design system"),Ee.extend("--ft-radio-border-color","",Ae.colorOnSurfaceMedium)),Es=Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),ks=Et`
1229
+ `}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)}}Ns.elementDefinitions={"ft-ripple":Qa,"ft-typography":Ya},Ns.styles=ws,Ss([k()],Ns.prototype,"name",void 0),Ss([k({type:Boolean,reflect:!0})],Ns.prototype,"checked",void 0),Ss([k({type:Boolean})],Ns.prototype,"indeterminate",void 0),Ss([k({type:Boolean})],Ns.prototype,"disabled",void 0),Ss([I(".ft-checkbox")],Ns.prototype,"container",void 0),Ss([I("ft-ripple")],Ns.prototype,"ripple",void 0),j("ft-checkbox")(Ns);const $s=Ee.extend("--ft-radio-text-color","",Ae.colorOnSurfaceHigh),Cs=Ee.external(Ae.colorPrimary,"Design system"),Es=(Ee.external(Ae.colorOnPrimary,"Design system"),Ee.extend("--ft-radio-border-color","",Ae.colorOnSurfaceMedium)),ks=Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),Rs=Et`
1226
1230
  * {
1227
1231
  box-sizing: border-box;
1228
1232
  }
1229
1233
 
1230
1234
  .ft-radio {
1231
1235
  box-sizing: border-box;
1232
- color: ${Ns};
1236
+ color: ${$s};
1233
1237
 
1234
1238
  display: inline-flex;
1235
1239
  align-items: center;
@@ -1237,7 +1241,7 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1237
1241
  }
1238
1242
 
1239
1243
  .ft-radio--disabled {
1240
- color: ${Es};
1244
+ color: ${ks};
1241
1245
  }
1242
1246
 
1243
1247
  input {
@@ -1260,7 +1264,7 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1260
1264
  }
1261
1265
 
1262
1266
  .ft-radio--box {
1263
- border: 2px solid ${Cs};
1267
+ border: 2px solid ${Es};
1264
1268
  border-radius: 50%;
1265
1269
 
1266
1270
  display: flex;
@@ -1273,7 +1277,7 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1273
1277
 
1274
1278
  .ft-radio--box:after {
1275
1279
  content: " ";
1276
- background-color: ${$s};
1280
+ background-color: ${Cs};
1277
1281
 
1278
1282
  border-radius: 50%;
1279
1283
 
@@ -1285,7 +1289,7 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1285
1289
  }
1286
1290
 
1287
1291
  .ft-radio--checked .ft-radio--box {
1288
- border-color: ${$s};
1292
+ border-color: ${Cs};
1289
1293
  }
1290
1294
 
1291
1295
 
@@ -1294,15 +1298,15 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1294
1298
  }
1295
1299
 
1296
1300
  .ft-radio--disabled .ft-radio--box {
1297
- border-color: ${Es};
1301
+ border-color: ${ks};
1298
1302
  background-color: transparent;
1299
1303
  }
1300
1304
 
1301
1305
  .ft-radio--disabled .ft-radio--box:after {
1302
- background-color: ${Es};
1306
+ background-color: ${ks};
1303
1307
  }
1304
- `;var Rs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Us extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Is extends Me{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 ce`
1305
- <div class="${Ya(t)}">
1308
+ `;var Us=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Is extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Ls extends Me{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 ce`
1309
+ <div class="${Xa(t)}">
1306
1310
  <div class="ft-radio--box-container">
1307
1311
  <ft-ripple
1308
1312
  ?disabled=${this.disabled}
@@ -1326,22 +1330,22 @@ class es extends Zn{constructor(t){if(super(t),this.et=nt,t.type!==Mn)throw Erro
1326
1330
  </ft-typography>
1327
1331
  </label>
1328
1332
  </div>
1329
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Us(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 Us(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Is.elementDefinitions={"ft-ripple":Ja,"ft-typography":qa},Is.styles=ks,Rs([k()],Is.prototype,"value",void 0),Rs([k()],Is.prototype,"name",void 0),Rs([k({type:Boolean,reflect:!0})],Is.prototype,"checked",void 0),Rs([k({type:Boolean})],Is.prototype,"disabled",void 0),Rs([I(".ft-radio")],Is.prototype,"container",void 0),Rs([I("ft-ripple")],Is.prototype,"ripple",void 0),Rs([I("input")],Is.prototype,"input",void 0);const Ls=Et`
1333
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Is(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 Is(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Ls.elementDefinitions={"ft-ripple":Qa,"ft-typography":Ya},Ls.styles=Rs,Us([k()],Ls.prototype,"value",void 0),Us([k()],Ls.prototype,"name",void 0),Us([k({type:Boolean,reflect:!0})],Ls.prototype,"checked",void 0),Us([k({type:Boolean})],Ls.prototype,"disabled",void 0),Us([I(".ft-radio")],Ls.prototype,"container",void 0),Us([I("ft-ripple")],Ls.prototype,"ripple",void 0),Us([I("input")],Ls.prototype,"input",void 0);const As=Et`
1330
1334
  :host {
1331
1335
  display: contents;
1332
1336
  }
1333
- `;var As=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ws extends Me{constructor(){super(...arguments),this.name=""}render(){return ce`
1337
+ `;var Ws=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class js extends Me{constructor(){super(...arguments),this.name=""}render(){return ce`
1334
1338
  <slot @slotchange=${this.onSlotChange}
1335
1339
  @change=${this.onChange}
1336
1340
  @keydown=${this.onKeyDown}
1337
1341
  ></slot>
1338
- `}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)}}Ws.elementDefinitions={},Ws.styles=Ls,As([k()],Ws.prototype,"name",void 0),As([
1342
+ `}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)}}js.elementDefinitions={},js.styles=As,Ws([k()],js.prototype,"name",void 0),Ws([
1339
1343
  /**
1340
1344
  * @license
1341
1345
  * Copyright 2021 Google LLC
1342
1346
  * SPDX-License-Identifier: BSD-3-Clause
1343
1347
  */
1344
- function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],Ws.prototype,"radioButtons",void 0),j("ft-radio")(Is),j("ft-radio-group")(Ws);const js={borderRadiusM:Ee.external(Ae.borderRadiusM,"Design system"),colorOutline:Ee.external(Ae.colorOutline,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ee.external(Ae.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnPrimary:Ee.external(Ae.colorOnPrimary,"Design system"),fontFamily:Ee.external(Ur.fontFamily,"Body2 typography"),fontSize:Ee.external(Ur.fontSize,"Body2 typography"),fontWeight:Ee.external(Ur.fontWeight,"Body2 typography"),letterSpacing:Ee.external(Ur.letterSpacing,"Body2 typography"),lineHeight:Ee.external(Ur.lineHeight,"Body2 typography"),textTransform:Ee.external(Ur.textTransform,"Body2 typography")},Fs=Et`
1348
+ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}()],js.prototype,"radioButtons",void 0),j("ft-radio")(Ls),j("ft-radio-group")(js);const Fs={borderRadiusM:Ee.external(Ae.borderRadiusM,"Design system"),colorOutline:Ee.external(Ae.colorOutline,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ee.external(Ae.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnPrimary:Ee.external(Ae.colorOnPrimary,"Design system"),fontFamily:Ee.external(Ir.fontFamily,"Body2 typography"),fontSize:Ee.external(Ir.fontSize,"Body2 typography"),fontWeight:Ee.external(Ir.fontWeight,"Body2 typography"),letterSpacing:Ee.external(Ir.letterSpacing,"Body2 typography"),lineHeight:Ee.external(Ir.lineHeight,"Body2 typography"),textTransform:Ee.external(Ir.textTransform,"Body2 typography")},zs=Et`
1345
1349
  .ft-filter-level--container {
1346
1350
  display: flex;
1347
1351
  flex-direction: column;
@@ -1355,14 +1359,14 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1355
1359
  flex-shrink: 0;
1356
1360
  text-decoration: none;
1357
1361
  position: relative;
1358
- border-radius: ${js.borderRadiusM};
1362
+ border-radius: ${Fs.borderRadiusM};
1359
1363
  overflow: hidden;
1360
1364
  display: flex;
1361
1365
  align-items: center;
1362
1366
  padding: 4px 4px;
1363
1367
  gap: 4px;
1364
1368
  cursor: pointer;
1365
- color: ${js.colorOnSurface};
1369
+ color: ${Fs.colorOnSurface};
1366
1370
  }
1367
1371
 
1368
1372
  .ft-filter-level--go-back:focus {
@@ -1391,7 +1395,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1391
1395
  }
1392
1396
 
1393
1397
  ft-button {
1394
- ${ke(Sn.color,js.colorOnSurface)};
1398
+ ${ke(Nn.color,Fs.colorOnSurface)};
1395
1399
  }
1396
1400
 
1397
1401
  ft-radio, ft-checkbox {
@@ -1405,9 +1409,9 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1405
1409
 
1406
1410
  .ft-filter-level--no-values {
1407
1411
  margin: 10px 0;
1408
- color: ${js.colorOnSurfaceMedium};
1412
+ color: ${Fs.colorOnSurfaceMedium};
1409
1413
  }
1410
- `;var zs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bs extends Me{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 ce`
1414
+ `;var Bs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ds extends Me{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 ce`
1411
1415
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1412
1416
  ${null==this.parent?null:ce`
1413
1417
  <div tabindex="0"
@@ -1426,7 +1430,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1426
1430
  ${this.noValuesLabel}
1427
1431
  </ft-typography>
1428
1432
  `:he}
1429
- ${Jn(e,(t=>t.value),(t=>{var e;return ce`
1433
+ ${Qn(e,(t=>t.value),(t=>{var e;return ce`
1430
1434
  <div class="ft-filter-level--option" part="options">
1431
1435
  ${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
1432
1436
  ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?he:ce`
@@ -1471,7 +1475,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1471
1475
  @change=${t=>t.stopPropagation()}>
1472
1476
  ${t.renderOption?t.renderOption:t.label}
1473
1477
  </ft-radio>
1474
- `}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}))}}Bs.elementDefinitions={"ft-button":ps,"ft-ripple":Ja,"ft-typography":qa,"ft-checkbox":Ss,"ft-icon":ss,"ft-radio":Is},Bs.styles=Fs,zs([k({type:String})],Bs.prototype,"filterId",void 0),zs([k({type:Object})],Bs.prototype,"parent",void 0),zs([k({type:Array})],Bs.prototype,"options",void 0),zs([k({type:Boolean})],Bs.prototype,"multivalued",void 0),zs([k({type:Boolean})],Bs.prototype,"disabled",void 0),zs([k({type:Boolean})],Bs.prototype,"hideSelectedOptions",void 0),zs([k({type:Boolean})],Bs.prototype,"preventNavigation",void 0),zs([k({type:String})],Bs.prototype,"filter",void 0),zs([k({type:String})],Bs.prototype,"moreValuesButtonLabel",void 0),zs([k({type:String})],Bs.prototype,"noValuesLabel",void 0),zs([k({type:Number})],Bs.prototype,"displayedValuesLimit",void 0),zs([I(".ft-filter-level--container")],Bs.prototype,"container",void 0),zs([R()],Bs.prototype,"displayedPages",void 0);const Ds={buttonsColor:Ee.extend("--ft-snap-scroll-buttons-color","",Ae.colorPrimary),buttonsZIndex:Ee.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Ee.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ee.external(Ae.colorSurface,"Design system")},Ps=Et`
1478
+ `}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}))}}Ds.elementDefinitions={"ft-button":ds,"ft-ripple":Qa,"ft-typography":Ya,"ft-checkbox":Ns,"ft-icon":ls,"ft-radio":Ls},Ds.styles=zs,Bs([k({type:String})],Ds.prototype,"filterId",void 0),Bs([k({type:Object})],Ds.prototype,"parent",void 0),Bs([k({type:Array})],Ds.prototype,"options",void 0),Bs([k({type:Boolean})],Ds.prototype,"multivalued",void 0),Bs([k({type:Boolean})],Ds.prototype,"disabled",void 0),Bs([k({type:Boolean})],Ds.prototype,"hideSelectedOptions",void 0),Bs([k({type:Boolean})],Ds.prototype,"preventNavigation",void 0),Bs([k({type:String})],Ds.prototype,"filter",void 0),Bs([k({type:String})],Ds.prototype,"moreValuesButtonLabel",void 0),Bs([k({type:String})],Ds.prototype,"noValuesLabel",void 0),Bs([k({type:Number})],Ds.prototype,"displayedValuesLimit",void 0),Bs([I(".ft-filter-level--container")],Ds.prototype,"container",void 0),Bs([R()],Ds.prototype,"displayedPages",void 0);const Ps={buttonsColor:Ee.extend("--ft-snap-scroll-buttons-color","",Ae.colorPrimary),buttonsZIndex:Ee.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:Ee.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ee.external(Ae.colorSurface,"Design system")},Ks=Et`
1475
1479
  .ft-snap-scroll {
1476
1480
  box-sizing: border-box;
1477
1481
  position: relative;
@@ -1506,7 +1510,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1506
1510
  flex-wrap: nowrap;
1507
1511
  align-items: flex-start;
1508
1512
  justify-content: flex-start;
1509
- gap: ${Ds.gap};
1513
+ gap: ${Ps.gap};
1510
1514
  }
1511
1515
 
1512
1516
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1549,11 +1553,11 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1549
1553
  .ft-snap-scroll--next {
1550
1554
  position: absolute;
1551
1555
  display: flex;
1552
- z-index: ${Ds.buttonsZIndex};
1556
+ z-index: ${Ps.buttonsZIndex};
1553
1557
  opacity: 1;
1554
1558
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1555
- ${ke(Sn.backgroundColor,"transparent")};
1556
- ${ke(Sn.color,Ds.buttonsColor)};
1559
+ ${ke(Nn.backgroundColor,"transparent")};
1560
+ ${ke(Nn.color,Ps.buttonsColor)};
1557
1561
  }
1558
1562
 
1559
1563
  .ft-snap-scroll--previous[hidden],
@@ -1566,37 +1570,37 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1566
1570
  top: 0;
1567
1571
  left: -1px;
1568
1572
  bottom: 0;
1569
- background: linear-gradient(to right, ${Ds.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1573
+ background: linear-gradient(to right, ${Ps.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1570
1574
  }
1571
1575
 
1572
1576
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1573
1577
  top: -1px;
1574
1578
  left: 0;
1575
1579
  right: 0;
1576
- background: linear-gradient(to bottom, ${Ds.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1580
+ background: linear-gradient(to bottom, ${Ps.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1577
1581
  }
1578
1582
 
1579
1583
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1580
1584
  top: 0;
1581
1585
  right: -1px;
1582
1586
  bottom: 0;
1583
- background: linear-gradient(to left, ${Ds.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1587
+ background: linear-gradient(to left, ${Ps.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1584
1588
  }
1585
1589
 
1586
1590
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1587
1591
  left: 0;
1588
1592
  right: 0;
1589
1593
  bottom: -1px;
1590
- background: linear-gradient(to top, ${Ds.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1594
+ background: linear-gradient(to top, ${Ps.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1591
1595
  }
1592
1596
 
1593
1597
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1594
1598
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1595
1599
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1596
1600
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1597
- background-color: ${Ds.colorSurface};
1601
+ background-color: ${Ps.colorSurface};
1598
1602
  }
1599
- `;var Ks=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ms extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Ts extends Me{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 r(200),this.updateScrollDebouncer=new r(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=Ya({"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":Vi}),e=this.controls&&this.withScroll;return ce`
1603
+ `;var Ms=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ts extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Zs extends Me{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 r(200),this.updateScrollDebouncer=new r(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=Xa({"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":qi}),e=this.controls&&this.withScroll;return ce`
1600
1604
  <div part="container" class="${t}">
1601
1605
  <ft-button
1602
1606
  class="ft-snap-scroll--previous"
@@ -1620,7 +1624,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1620
1624
  @click=${this.next}
1621
1625
  ></ft-button>
1622
1626
  </div>
1623
- `}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 Ms(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)}}Ts.elementDefinitions={"ft-button":ps},Ts.styles=Ps,Ks([k({type:Boolean})],Ts.prototype,"horizontal",void 0),Ks([k({type:Boolean})],Ts.prototype,"hideScrollbar",void 0),Ks([k({type:Boolean})],Ts.prototype,"controls",void 0),Ks([k({type:Boolean})],Ts.prototype,"limitSize",void 0),Ks([R()],Ts.prototype,"elements",void 0),Ks([R()],Ts.prototype,"currentElement",void 0),Ks([R()],Ts.prototype,"withScroll",void 0),Ks([R()],Ts.prototype,"startReached",void 0),Ks([R()],Ts.prototype,"endReached",void 0),Ks([I(".ft-snap-scroll--content")],Ts.prototype,"contentSlot",void 0),j("ft-snap-scroll")(Ts);var Zs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class _s extends CustomEvent{constructor(t){super("change",{detail:t})}}class Hs extends Me{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 r(300),this.changeDebouncer=new r(10),this.lastDispatchedValues=[]}get flatOptions(){return A(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 ce`
1627
+ `}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 Ts(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)}}Zs.elementDefinitions={"ft-button":ds},Zs.styles=Ks,Ms([k({type:Boolean})],Zs.prototype,"horizontal",void 0),Ms([k({type:Boolean})],Zs.prototype,"hideScrollbar",void 0),Ms([k({type:Boolean})],Zs.prototype,"controls",void 0),Ms([k({type:Boolean})],Zs.prototype,"limitSize",void 0),Ms([R()],Zs.prototype,"elements",void 0),Ms([R()],Zs.prototype,"currentElement",void 0),Ms([R()],Zs.prototype,"withScroll",void 0),Ms([R()],Zs.prototype,"startReached",void 0),Ms([R()],Zs.prototype,"endReached",void 0),Ms([I(".ft-snap-scroll--content")],Zs.prototype,"contentSlot",void 0),j("ft-snap-scroll")(Zs);var _s=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Hs extends CustomEvent{constructor(t){super("change",{detail:t})}}class Gs extends Me{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 r(300),this.changeDebouncer=new r(10),this.lastDispatchedValues=[]}get flatOptions(){return A(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 ce`
1624
1628
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1625
1629
  part="container">
1626
1630
  ${this.label||t?ce`
@@ -1692,9 +1696,9 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1692
1696
  .exportpartsPrefixes=${["values","available-values"]}
1693
1697
  noValuesLabel="${this.noValuesLabel}"
1694
1698
  ></ft-filter-level>
1695
- `}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;W(this.lastDispatchedValues,t)||(this.dispatchEvent(new _s(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)}}Hs.elementDefinitions={"ft-button":ps,"ft-filter-level":Bs,"ft-snap-scroll":Ts,"ft-typography":qa},Hs.styles=Bn,Zs([k({type:String})],Hs.prototype,"id",void 0),Zs([k({type:String})],Hs.prototype,"label",void 0),Zs([k({type:String})],Hs.prototype,"filterPlaceHolder",void 0),Zs([k({type:String})],Hs.prototype,"clearButtonLabel",void 0),Zs([k({type:String})],Hs.prototype,"moreValuesButtonLabel",void 0),Zs([k({type:String})],Hs.prototype,"noValuesLabel",void 0),Zs([F([])],Hs.prototype,"options",void 0),Zs([k({type:Boolean})],Hs.prototype,"multivalued",void 0),Zs([k({type:Boolean})],Hs.prototype,"disabled",void 0),Zs([k({type:Boolean})],Hs.prototype,"raiseSelectedOptions",void 0),Zs([k({type:Number})],Hs.prototype,"displayedValuesLimit",void 0),Zs([k({type:Boolean})],Hs.prototype,"hideClearButton",void 0),Zs([I(".ft-filter--slot")],Hs.prototype,"slotElement",void 0),Zs([I(".ft-filter--container")],Hs.prototype,"container",void 0),Zs([I(".ft-filter--values")],Hs.prototype,"valuesContainer",void 0),Zs([I(".ft-filter--levels")],Hs.prototype,"levelsContainer",void 0),Zs([R()],Hs.prototype,"lastLevelHasHiddenvalues",void 0),Zs([I(".ft-filter--filter input")],Hs.prototype,"filterInput",void 0),Zs([function(t){return(e,o)=>U(0,0,{get(){return(this.renderRoot??(L??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],Hs.prototype,"levels",void 0),Zs([R()],Hs.prototype,"withScroll",void 0),Zs([R()],Hs.prototype,"filter",void 0),Zs([R()],Hs.prototype,"slideIn",void 0),Zs([R()],Hs.prototype,"slideOut",void 0);var Gs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Vs extends Me{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return ce`
1699
+ `}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;W(this.lastDispatchedValues,t)||(this.dispatchEvent(new Hs(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)}}Gs.elementDefinitions={"ft-button":ds,"ft-filter-level":Ds,"ft-snap-scroll":Zs,"ft-typography":Ya},Gs.styles=Dn,_s([k({type:String})],Gs.prototype,"id",void 0),_s([k({type:String})],Gs.prototype,"label",void 0),_s([k({type:String})],Gs.prototype,"filterPlaceHolder",void 0),_s([k({type:String})],Gs.prototype,"clearButtonLabel",void 0),_s([k({type:String})],Gs.prototype,"moreValuesButtonLabel",void 0),_s([k({type:String})],Gs.prototype,"noValuesLabel",void 0),_s([F([])],Gs.prototype,"options",void 0),_s([k({type:Boolean})],Gs.prototype,"multivalued",void 0),_s([k({type:Boolean})],Gs.prototype,"disabled",void 0),_s([k({type:Boolean})],Gs.prototype,"raiseSelectedOptions",void 0),_s([k({type:Number})],Gs.prototype,"displayedValuesLimit",void 0),_s([k({type:Boolean})],Gs.prototype,"hideClearButton",void 0),_s([I(".ft-filter--slot")],Gs.prototype,"slotElement",void 0),_s([I(".ft-filter--container")],Gs.prototype,"container",void 0),_s([I(".ft-filter--values")],Gs.prototype,"valuesContainer",void 0),_s([I(".ft-filter--levels")],Gs.prototype,"levelsContainer",void 0),_s([R()],Gs.prototype,"lastLevelHasHiddenvalues",void 0),_s([I(".ft-filter--filter input")],Gs.prototype,"filterInput",void 0),_s([function(t){return(e,o)=>U(0,0,{get(){return(this.renderRoot??(L??=document.createDocumentFragment())).querySelectorAll(t)}})}(".ft-filter--levels ft-filter-level")],Gs.prototype,"levels",void 0),_s([R()],Gs.prototype,"withScroll",void 0),_s([R()],Gs.prototype,"filter",void 0),_s([R()],Gs.prototype,"slideIn",void 0),_s([R()],Gs.prototype,"slideOut",void 0);var Vs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qs extends Me{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return ce`
1696
1700
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1697
- `}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}))}}Vs.elementDefinitions={},Gs([k({type:String})],Vs.prototype,"label",void 0),Gs([k({type:Object,converter:t=>t})],Vs.prototype,"value",void 0),Gs([k({type:Boolean,reflect:!0})],Vs.prototype,"selected",void 0),Gs([k({type:Object})],Vs.prototype,"subOptions",void 0),Gs([F({})],Vs.prototype,"renderOption",void 0),Gs([I(".ft-filter-option--slot")],Vs.prototype,"slotElement",void 0),j("ft-filter")(Hs),j("ft-filter-option")(Vs);const qs=Fa.build("designedSearchLocaleSelector"),Ys={label:"Select a language",allLanguagesWarningMessage:"Alla languages is only recommended when searching for language-agnostic keywords such as product references"};var Xs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Js extends(ga(Ka)){constructor(){super(),this.warningTooltipPosition="left",this.addStore(ea),this.addI18nContext(qs,Ys)}render(){var t,e,o;return(null!==(e=null===(t=this.locales)||void 0===t?void 0:t.length)&&void 0!==e?e:0)<=1?this.editorMode?ce`
1701
+ `}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}))}}qs.elementDefinitions={},Vs([k({type:String})],qs.prototype,"label",void 0),Vs([k({type:Object,converter:t=>t})],qs.prototype,"value",void 0),Vs([k({type:Boolean,reflect:!0})],qs.prototype,"selected",void 0),Vs([k({type:Object})],qs.prototype,"subOptions",void 0),Vs([F({})],qs.prototype,"renderOption",void 0),Vs([I(".ft-filter-option--slot")],qs.prototype,"slotElement",void 0),j("ft-filter")(Gs),j("ft-filter-option")(qs);const Ys=za.build("designedSearchLocaleSelector"),Xs={label:"Select a language",allLanguagesWarningMessage:"Alla languages is only recommended when searching for language-agnostic keywords such as product references"};var Js=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Qs extends(ma(Ma)){constructor(){super(),this.warningTooltipPosition="left",this.addStore(oa),this.addI18nContext(Ys,Xs)}render(){var t,e,o;return(null!==(e=null===(t=this.locales)||void 0===t?void 0:t.length)&&void 0!==e?e:0)<=1?this.editorMode?ce`
1698
1702
  <div class="ft-search-locale-selector--placeholder">
1699
1703
  <ft-typography variant="caption">
1700
1704
  At least 2 search languages are required to display this selector.
@@ -1708,17 +1712,17 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1708
1712
  <div part="container">
1709
1713
  <div part="header">
1710
1714
  <ft-typography variant="overline" part="label">
1711
- ${qs.messages.label()}
1715
+ ${Ys.messages.label()}
1712
1716
  </ft-typography>
1713
1717
  </div>
1714
1718
  <ft-radio-group @change=${t=>this.setContentLocale(t)}>
1715
- ${Jn(null!==(o=this.locales)&&void 0!==o?o:[],(t=>t.lang),(t=>{var e;return ce`
1719
+ ${Qn(null!==(o=this.locales)&&void 0!==o?o:[],(t=>t.lang),(t=>{var e;return ce`
1716
1720
  <ft-radio value="${null!==(e=t.lang)&&void 0!==e?e:"all"}"
1717
1721
  ?checked=${t.lang==this.selectedSearchLocale}>
1718
1722
  ${t.label.trim()}${null==t.lang&&null==this.currentSearchLocale?ce`
1719
1723
  <ft-tooltip part="warning-tooltip"
1720
1724
  position="${this.warningTooltipPosition}"
1721
- text="${qs.messages.allLanguagesWarningMessage()}"
1725
+ text="${Ys.messages.allLanguagesWarningMessage()}"
1722
1726
  inline>
1723
1727
  <ft-icon value="warning" part="warning-icon"></ft-icon>
1724
1728
  </ft-tooltip>
@@ -1727,4 +1731,4 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1727
1731
  `}))}
1728
1732
  </ft-radio-group>
1729
1733
  </div>
1730
- `}setContentLocale(t){var e;this.selectedSearchLocale=null===(e=this.stateManager)||void 0===e?void 0:e.setContentLocale("all"===t.detail?void 0:t.detail)}update(t){super.update(t),t.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}}Js.elementDefinitions={"ft-icon":ss,"ft-tooltip":ts,"ft-filter":Hs,"ft-filter-option":Vs,"ft-radio-group":Ws,"ft-radio":Is,"ft-typography":qa},Js.styles=Pn,Xs([k()],Js.prototype,"warningTooltipPosition",void 0),Xs([Ti({store:ea.name})],Js.prototype,"editorMode",void 0),Xs([Ti({store:"search"})],Js.prototype,"locales",void 0),Xs([Ti({store:"search",selector:t=>t.request.contentLocale})],Js.prototype,"currentSearchLocale",void 0),Xs([R()],Js.prototype,"selectedSearchLocale",void 0),j("ft-search-locale-selector")(Js),t.FtSearchLocaleSelector=Js,t.FtSearchLocaleSelectorCssVariables=Dn,t.styles=Pn}({});
1734
+ `}setContentLocale(t){var e;this.selectedSearchLocale=null===(e=this.stateManager)||void 0===e?void 0:e.setContentLocale("all"===t.detail?void 0:t.detail)}update(t){super.update(t),t.has("currentSearchLocale")&&(this.selectedSearchLocale=this.currentSearchLocale,this.dispatchEvent(new CustomEvent("current-search-locale-change",{detail:this.currentSearchLocale})))}}Qs.elementDefinitions={"ft-icon":ls,"ft-tooltip":es,"ft-filter":Gs,"ft-filter-option":qs,"ft-radio-group":js,"ft-radio":Ls,"ft-typography":Ya},Qs.styles=Kn,Js([k()],Qs.prototype,"warningTooltipPosition",void 0),Js([Zi({store:oa.name})],Qs.prototype,"editorMode",void 0),Js([Zi({store:"search"})],Qs.prototype,"locales",void 0),Js([Zi({store:"search",selector:t=>t.request.contentLocale})],Qs.prototype,"currentSearchLocale",void 0),Js([R()],Qs.prototype,"selectedSearchLocale",void 0),j("ft-search-locale-selector")(Qs),t.FtSearchLocaleSelector=Qs,t.FtSearchLocaleSelectorCssVariables=Pn,t.styles=Kn}({});