@fluid-topics/ft-search-input 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,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=p(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.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 r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=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),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?d(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):u(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r 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 r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(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=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Jn){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,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,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),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 i{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 r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!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,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=p(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.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 r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=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),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?d(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):u(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r 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 r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(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=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Qn){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,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,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),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 i{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 r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!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 2017 Google LLC
@@ -86,7 +86,11 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
86
86
  * @license
87
87
  * Copyright 2019 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
- */class Ae extends we{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)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=Le.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var je,Fe=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ke=Symbol("constructorPrototype"),Pe=Symbol("constructorName"),De=Symbol("exportpartsDebouncer");class Me extends Ae{constructor(){super(),this[je]=new i(5),this[Pe]=this.constructor.name,this[Ke]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pe]&&Object.setPrototypeOf(this,this[Ke])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[De].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,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=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!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],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=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}je=De,Fe([R()],Me.prototype,"exportpartsPrefix",void 0),Fe([A([])],Me.prototype,"exportpartsPrefixes",void 0),Fe([R()],Me.prototype,"customStylesheet",void 0);const Be=Ct`
89
+ */class Ae extends we{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)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=Le.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var je,Fe=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ke=Symbol("constructorPrototype"),Pe=Symbol("constructorName"),De=Symbol("exportpartsDebouncer");class Me extends Ae{constructor(){super(),this[je]=new i(5),this[Pe]=this.constructor.name,this[Ke]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pe]&&Object.setPrototypeOf(this,this[Ke])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[De].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,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=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!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],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=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}je=De,Fe([R()],Me.prototype,"exportpartsPrefix",void 0),Fe([A([])],Me.prototype,"exportpartsPrefixes",void 0),Fe([R()],Me.prototype,"customStylesheet",void 0);const Be=Ce.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Ct`
90
+ .highlight-html-match {
91
+ background: ${Be};
92
+ }
93
+ `;const ze=Ct`
90
94
  .ft-no-text-select {
91
95
  -webkit-touch-callout: none;
92
96
  -webkit-user-select: none;
@@ -95,7 +99,7 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
95
99
  -ms-user-select: none;
96
100
  user-select: none;
97
101
  }
98
- `,ze=Ct`
102
+ `,Te=Ct`
99
103
  .ft-word-wrap {
100
104
  white-space: normal;
101
105
  word-wrap: break-word;
@@ -107,7 +111,7 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
107
111
  -webkit-hyphens: auto;
108
112
  hyphens: auto
109
113
  }
110
- `,Te=Ct`
114
+ `,Ze=Ct`
111
115
  .ft-safari-ellipsis-fix {
112
116
  margin-right: 0;
113
117
 
@@ -118,7 +122,7 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
118
122
  display: inline-block;
119
123
  width: 0;
120
124
  }
121
- `;class Ze{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}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 _e(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var He,Ge,qe;const Ve=Symbol("internalReduxEventsUnsubscribers"),Ye=Symbol("internalStoresUnsubscribers"),Xe=Symbol("internalStores");class Je extends Me{constructor(){super(...arguments),this[He]=new Map,this[Ge]=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[Xe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xe].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Xe].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:_e(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[Xe].delete(e)}setupStore(t,e){this[Xe].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Xe].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[Ye].has(t.store):this[Ye].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Ye].set(t,e.subscribe((()=>this.updateFromStores()))),_e(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 r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Ve].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ye].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ve].forEach((t=>t())),this[Ve]=[]}unsubscribeFromStore(t){this[Ye].has(t)&&this[Ye].get(t)(),this[Ye].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Qe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];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 to(t){return!!t&&!!t[Bo]}function eo(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])||so(t)||co(t))}function oo(t,e,o){void 0===o&&(o=!1),0===ro(t)?(o?Object.keys:To)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function ro(t){var e=t[Bo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:so(t)?2:co(t)?3:0}function io(t,e){return 2===ro(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function no(t,e,o){var r=ro(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function ao(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function so(t){return Fo&&t instanceof Map}function co(t){return Ko&&t instanceof Set}function lo(t){return t.o||t.t}function fo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Zo(t);delete e[Bo];for(var o=To(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function po(t,e){return void 0===e&&(e=!1),uo(t)||to(t)||!eo(t)||(ro(t)>1&&(t.set=t.add=t.clear=t.delete=ho),Object.freeze(t),e&&oo(t,(function(t,e){return po(e,!0)}),!0)),t}function ho(){Qe(2)}function uo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function yo(t){var e=_o[t];return e||Qe(18,t),e}function go(){return Ao}function bo(t,e){e&&(yo("Patches"),t.u=[],t.s=[],t.v=e)}function mo(t){vo(t),t.p.forEach(Oo),t.p=null}function vo(t){t===Ao&&(Ao=t.l)}function xo(t){return Ao={p:[],l:Ao,h:t,m:!0,_:0}}function Oo(t){var e=t[Bo];0===e.i||1===e.i?e.j():e.g=!0}function wo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||yo("ES5").S(e,t,r),r?(o[Bo].P&&(mo(e),Qe(4)),eo(t)&&(t=So(e,t),e.l||Co(e,t)),e.u&&yo("Patches").M(o[Bo].t,t,e.u,e.s)):t=So(e,o,[]),mo(e),e.u&&e.v(e.u,e.s),t!==Do?t:void 0}function So(t,e,o){if(uo(e))return e;var r=e[Bo];if(!r)return oo(e,(function(i,n){return No(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Co(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=fo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),oo(n,(function(e,n){return No(t,r,i,e,n,o,a)})),Co(t,i,!1),o&&t.u&&yo("Patches").N(r,o,t.u,t.s)}return r.o}function No(t,e,o,r,i,n,a){if(to(i)){var s=So(t,i,n&&e&&3!==e.i&&!io(e.R,r)?n.concat(r):void 0);if(no(o,r,s),!to(s))return;t.m=!1}else a&&o.add(i);if(eo(i)&&!uo(i)){if(!t.h.D&&t._<1)return;So(t,i),e&&e.A.l||Co(t,i)}}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[Bo];return(o?lo(o):t)[e]}function $o(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function Ro(t){t.P||(t.P=!0,t.l&&Ro(t.l))}function Uo(t){t.o||(t.o=fo(t.t))}function Io(t,e,o){var r=so(e)?yo("MapSet").F(e,o):co(e)?yo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={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},i=r,n=Ho;o&&(i=[r],n=Go);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):yo("ES5").J(e,o);return(o?o.A:go()).p.push(r),r}function ko(t){return to(t)||Qe(22,t),function t(e){if(!eo(e))return e;var o,r=e[Bo],i=ro(e);if(r){if(!r.P&&(r.i<4||!yo("ES5").K(r)))return r.t;r.I=!0,o=Lo(e,i),r.I=!1}else o=Lo(e,i);return oo(o,(function(e,i){r&&function(t,e){return 2===ro(t)?t.get(e):t[e]}(r.t,e)===i||no(o,e,t(i))})),3===i?new Set(o):o}(t)}function Lo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return fo(t)}He=Ye,Ge=Xe,qe=Ve;var Wo,Ao,jo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Fo="undefined"!=typeof Map,Ko="undefined"!=typeof Set,Po="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Do=jo?Symbol.for("immer-nothing"):((Wo={})["immer-nothing"]=!0,Wo),Mo=jo?Symbol.for("immer-draftable"):"__$immer_draftable",Bo=jo?Symbol.for("immer-state"):"__$immer_state",zo=""+Object.prototype.constructor,To="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Zo=Object.getOwnPropertyDescriptors||function(t){var e={};return To(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},_o={},Ho={get:function(t,e){if(e===Bo)return t;var o=lo(t);if(!io(o,e))return function(t,e,o){var r,i=$o(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!eo(r)?r:r===Eo(t.t,e)?(Uo(t),t.o[e]=Io(t.A.h,r,t)):r},has:function(t,e){return e in lo(t)},ownKeys:function(t){return Reflect.ownKeys(lo(t))},set:function(t,e,o){var r=$o(lo(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Eo(lo(t),e),n=null==i?void 0:i[Bo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ao(o,i)&&(void 0!==o||io(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=lo(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){Qe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Qe(12)}},Go={};oo(Ho,(function(t,e){Go[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Go.deleteProperty=function(t,e){return Go.set.call(this,t,e,void 0)},Go.set=function(t,e,o){return Ho.set.call(this,t[0],e,o,t[0])};var qo=function(){function t(t){var e=this;this.O=Po,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Qe(6),void 0!==r&&"function"!=typeof r&&Qe(7),eo(t)){var s=xo(e),c=Io(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?mo(s):vo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return bo(s,r),wo(t,s)}),(function(t){throw mo(s),t})):(bo(s,r),wo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Do&&(a=void 0),e.D&&po(a,!0),r){var f=[],p=[];yo("Patches").M(t,a,f,p),r(f,p)}return a}Qe(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"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){eo(t)||Qe(8),to(t)&&(t=ko(t));var e=xo(this),o=Io(this,t,void 0);return o[Bo].C=!0,vo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Bo]).A;return bo(o,e),wo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Po&&Qe(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=yo("Patches").$;return to(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Vo=new qo,Yo=Vo.produce;function Xo(t){return Xo="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},Xo(t)}function Jo(t){var e=function(t,e){if("object"!==Xo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xo(e)?e:String(e)}function Qo(t,e,o){return(e=Jo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function tr(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function er(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?tr(Object(o),!0).forEach((function(e){Qo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):tr(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function or(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. "}Vo.produceWithPatches.bind(Vo),Vo.setAutoFreeze.bind(Vo),Vo.setUseProxies.bind(Vo),Vo.applyPatches.bind(Vo),Vo.createDraft.bind(Vo),Vo.finishDraft.bind(Vo);var rr="function"==typeof Symbol&&Symbol.observable||"@@observable",ir=function(){return Math.random().toString(36).substring(7).split("").join(".")},nr={INIT:"@@redux/INIT"+ir(),REPLACE:"@@redux/REPLACE"+ir(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ir()}};function ar(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(or(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(or(1));return o(ar)(t,e)}if("function"!=typeof t)throw new Error(or(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(or(3));return n}function p(t){if("function"!=typeof t)throw new Error(or(4));if(c)throw new Error(or(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(or(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function h(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(or(7));if(void 0===t.type)throw new Error(or(8));if(c)throw new Error(or(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return h({type:nr.INIT}),(r={dispatch:h,subscribe:p,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(or(10));i=t,h({type:nr.REPLACE})}})[rr]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(or(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[rr]=function(){return this},t},r}function sr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}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:nr.INIT}))throw new Error(or(12));if(void 0===o(void 0,{type:nr.PROBE_UNKNOWN_ACTION()}))throw new Error(or(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],p=l(f,e);if(void 0===p)throw e&&e.type,new Error(or(14));i[c]=p,r=r||p!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function cr(){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 lr(){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),r=function(){throw new Error(or(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=cr.apply(void 0,n)(o.dispatch),er(er({},o),{},{dispatch:r})}}}function fr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var pr=fr();pr.withExtraArgument=fr;var hr,ur=pr,dr=(hr=function(t,e){return hr=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])},hr(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}hr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),yr=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},gr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},br=Object.defineProperty,mr=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,Sr=function(t,e,o){return e in t?br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Nr=function(t,e){for(var o in e||(e={}))Or.call(e,o)&&Sr(t,o,e[o]);if(xr)for(var r=0,i=xr(e);r<i.length;r++){o=i[r];wr.call(e,o)&&Sr(t,o,e[o])}return t},Cr=function(t,e){return mr(t,vr(e))},Er="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?cr:cr.apply(null,arguments)};var $r=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return dr(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,gr([void 0],t[0].concat(this)))):new(e.bind.apply(e,gr([void 0],t.concat(this))))},e}(Array),Rr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return dr(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,gr([void 0],t[0].concat(this)))):new(e.bind.apply(e,gr([void 0],t.concat(this))))},e}(Array);function Ur(t){return eo(t)?Yo(t,(function(){})):t}function Ir(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new $r;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(ur.withExtraArgument(o.extraArgument)):r.push(ur));return r}(t)}}function kr(t){var e,o=Ir(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,p=void 0===f?void 0:f,h=r.enhancers,u=void 0===h?void 0:h;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=sr(n)}var d=s;"function"==typeof d&&(d=d(o));var y=lr.apply(void 0,d),g=cr;l&&(g=Er(Nr({trace:!1},"object"==typeof l&&l)));var b=new Rr(y),m=b;return Array.isArray(u)?m=gr([y],u):"function"==typeof u&&(m=u(b)),ar(e,p,g.apply(void 0,m))}function Lr(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Nr(Nr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 Wr(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Ar(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Ur(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Wr(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Nr(Nr({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Wr(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Ur(t())};else{var l=Ur(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=gr([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=[c]),o.reduce((function(t,o){if(o){var r;if(to(t))return void 0===(r=o(t,e))?t:r;if(eo(t))return Yo(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Lr(l,r):Lr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var jr=["name","message","stack","code"],Fr=function(t,e){this.payload=t,this.meta=e},Kr=function(t,e){this.payload=t,this.meta=e},Pr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=jr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Dr(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 r=Lr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Cr(Nr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Lr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Cr(Nr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Lr(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Pr)(t||"Rejected"),meta:Cr(Nr({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,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,c,l){var f,p=(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}(),h=new a;function u(t){f=t,h.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return yr(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(p,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:p,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:p,signal:h.signal,abort:u,rejectWithValue:function(t,e){return new Fr(t,e)},fulfillWithValue:function(t,e){return new Kr(t,e)}})).then((function(e){if(e instanceof Fr)throw e;return e instanceof Kr?r(e.payload,p,t,e.meta):r(e,p,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Fr?n(null,p,t,m.payload,m.meta):n(m,p,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{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:u,requestId:p,arg:t,unwrap:function(){return d.then(Dr)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Mr="listenerMiddleware";Lr(Mr+"/add"),Lr(Mr+"/removeAll"),Lr(Mr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Bo];return Ho.get(e,t)},set:function(e){var o=this[Bo];Ho.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Bo];if(!i.P)switch(i.i){case 5:r(i)&&Ro(i);break;case 4:o(i)&&Ro(i)}}}function o(t){for(var e=t.t,o=t.k,r=To(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Bo){var a=e[n];if(void 0===a&&!io(e,n))return!0;var s=o[n],c=s&&s[Bo];if(c?c.t!==a:!ao(s,a))return!0}}var l=!!e[Bo];return r.length!==To(e).length+(l?0:1)}function r(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 r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){_o[t]||(_o[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Zo(o);delete n[Bo];for(var a=To(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:go(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Bo,{value:n,writable:!0}),i},S:function(t,o,i){i?to(o)&&o[Bo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Bo];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)oo(n,(function(e){e!==Bo&&(void 0!==i[e]||io(i,e)?a[e]||t(n[e]):(a[e]=!0,Ro(o)))})),oo(i,(function(t){void 0!==n[t]||io(n,t)||(a[t]=!1,Ro(o))}));else if(5===s){if(r(o)&&(Ro(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),p=0;p<f;p++)n.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&t(n[p])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Br{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(_e(i))return i;if(null==r)return;const n=Ar({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=kr({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[r.name]=new Br(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 r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]: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 zr=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!L(t,e),attribute:!1,...e};R(i)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}},Tr=Symbol("elementInternals");var Zr,_r,Hr;const Gr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Hr=null===(_r=null===(Zr=window.safari)||void 0===Zr?void 0:Zr.pushNotification)||void 0===_r?void 0:_r.toString())&&void 0!==Hr?Hr:""),qr=Ce.extend("--ft-ripple-color","",ke.colorContent),Vr={color:qr,backgroundColor:Ce.extend("--ft-ripple-background-color","",qr),opacityContentOnSurfacePressed:Ce.external(ke.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ce.external(ke.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ce.external(ke.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ce.external(ke.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ce.create("--ft-ripple-border-radius","","SIZE","0px")},Yr=Ce.extend("--ft-ripple-color","",ke.colorPrimary),Xr=Yr,Jr=Ce.extend("--ft-ripple-background-color","",Yr),Qr=Ce.extend("--ft-ripple-color","",ke.colorSecondary),ti=Qr,ei=Ce.extend("--ft-ripple-background-color","",Qr),oi=Ct`
125
+ `;class _e{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}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,qe,Ve;const Ye=Symbol("internalReduxEventsUnsubscribers"),Xe=Symbol("internalStoresUnsubscribers"),Je=Symbol("internalStores");class Qe extends Me{constructor(){super(...arguments),this[Ge]=new Map,this[qe]=new Map,this[Ve]=[]}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 r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Ye].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),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),r=1;r<e;r++)o[r-1]=arguments[r];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[zo]}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[Bo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Bo])||co(t)||lo(t))}function ro(t,e,o){void 0===o&&(o=!1),0===io(t)?(o?Object.keys:Zo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function io(t){var e=t[zo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:co(t)?2:lo(t)?3:0}function no(t,e){return 2===io(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ao(t,e,o){var r=io(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function so(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function co(t){return Ko&&t instanceof Map}function lo(t){return Po&&t instanceof Set}function fo(t){return t.o||t.t}function po(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=_o(t);delete e[zo];for(var o=Zo(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function ho(t,e){return void 0===e&&(e=!1),yo(t)||eo(t)||!oo(t)||(io(t)>1&&(t.set=t.add=t.clear=t.delete=uo),Object.freeze(t),e&&ro(t,(function(t,e){return ho(e,!0)}),!0)),t}function uo(){to(2)}function yo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function go(t){var e=Ho[t];return e||to(18,t),e}function bo(){return jo}function mo(t,e){e&&(go("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[zo];0===e.i||1===e.i?e.j():e.g=!0}function So(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||go("ES5").S(e,t,r),r?(o[zo].P&&(vo(e),to(4)),oo(t)&&(t=No(e,t),e.l||Eo(e,t)),e.u&&go("Patches").M(o[zo].t,t,e.u,e.s)):t=No(e,o,[]),vo(e),e.u&&e.v(e.u,e.s),t!==Mo?t:void 0}function No(t,e,o){if(yo(e))return e;var r=e[zo];if(!r)return ro(e,(function(i,n){return Co(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Eo(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=po(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),ro(n,(function(e,n){return Co(t,r,i,e,n,o,a)})),Eo(t,i,!1),o&&t.u&&go("Patches").N(r,o,t.u,t.s)}return r.o}function Co(t,e,o,r,i,n,a){if(eo(i)){var s=No(t,i,n&&e&&3!==e.i&&!no(e.R,r)?n.concat(r):void 0);if(ao(o,r,s),!eo(s))return;t.m=!1}else a&&o.add(i);if(oo(i)&&!yo(i)){if(!t.h.D&&t._<1)return;No(t,i),e&&e.A.l||Eo(t,i)}}function Eo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&ho(e,o)}function $o(t,e){var o=t[zo];return(o?fo(o):t)[e]}function Ro(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;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 ko(t,e,o){var r=co(e)?go("MapSet").F(e,o):lo(e)?go("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:bo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Go;o&&(i=[r],n=qo);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):go("ES5").J(e,o);return(o?o.A:bo()).p.push(r),r}function Lo(t){return eo(t)||to(22,t),function t(e){if(!oo(e))return e;var o,r=e[zo],i=io(e);if(r){if(!r.P&&(r.i<4||!go("ES5").K(r)))return r.t;r.I=!0,o=Wo(e,i),r.I=!1}else o=Wo(e,i);return ro(o,(function(e,i){r&&function(t,e){return 2===io(t)?t.get(e):t[e]}(r.t,e)===i||ao(o,e,t(i))})),3===i?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)}Ge=Xe,qe=Je,Ve=Ye;var Ao,jo,Fo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ko="undefined"!=typeof Map,Po="undefined"!=typeof Set,Do="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Mo=Fo?Symbol.for("immer-nothing"):((Ao={})["immer-nothing"]=!0,Ao),Bo=Fo?Symbol.for("immer-draftable"):"__$immer_draftable",zo=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===zo)return t;var o=fo(t);if(!no(o,e))return function(t,e,o){var r,i=Ro(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!oo(r)?r:r===$o(t.t,e)?(Io(t),t.o[e]=ko(t.A.h,r,t)):r},has:function(t,e){return e in fo(t)},ownKeys:function(t){return Reflect.ownKeys(fo(t))},set:function(t,e,o){var r=Ro(fo(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=$o(fo(t),e),n=null==i?void 0:i[zo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(so(o,i)&&(void 0!==o||no(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!==$o(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=fo(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){to(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){to(12)}},qo={};ro(Go,(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 Go.set.call(this,t[0],e,o,t[0])};var Vo=function(){function t(t){var e=this;this.O=Do,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&to(6),void 0!==r&&"function"!=typeof r&&to(7),oo(t)){var s=Oo(e),c=ko(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?vo(s):xo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return mo(s,r),So(t,s)}),(function(t){throw vo(s),t})):(mo(s,r),So(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Mo&&(a=void 0),e.D&&ho(a,!0),r){var f=[],p=[];go("Patches").M(t,a,f,p),r(f,p)}return a}to(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"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=ko(this,t,void 0);return o[zo].C=!0,xo(e),o},e.finishDraft=function(t,e){var o=(t&&t[zo]).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 r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=go("Patches").$;return eo(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Yo=new Vo,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 r=o.call(t,e||"default");if("object"!==Jo(r))return r;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 tr(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 er(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function or(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?er(Object(o),!0).forEach((function(e){tr(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):er(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function rr(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 ir="function"==typeof Symbol&&Symbol.observable||"@@observable",nr=function(){return Math.random().toString(36).substring(7).split("").join(".")},ar={INIT:"@@redux/INIT"+nr(),REPLACE:"@@redux/REPLACE"+nr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+nr()}};function sr(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(rr(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(rr(1));return o(sr)(t,e)}if("function"!=typeof t)throw new Error(rr(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(rr(3));return n}function p(t){if("function"!=typeof t)throw new Error(rr(4));if(c)throw new Error(rr(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(rr(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function h(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(rr(7));if(void 0===t.type)throw new Error(rr(8));if(c)throw new Error(rr(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return h({type:ar.INIT}),(r={dispatch:h,subscribe:p,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(rr(10));i=t,h({type:ar.REPLACE})}})[ir]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(rr(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ir]=function(){return this},t},r}function cr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}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:ar.INIT}))throw new Error(rr(12));if(void 0===o(void 0,{type:ar.PROBE_UNKNOWN_ACTION()}))throw new Error(rr(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],p=l(f,e);if(void 0===p)throw e&&e.type,new Error(rr(14));i[c]=p,r=r||p!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function lr(){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 fr(){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),r=function(){throw new Error(rr(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=lr.apply(void 0,n)(o.dispatch),or(or({},o),{},{dispatch:r})}}}function pr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var hr=pr();hr.withExtraArgument=pr;var ur,dr=hr,yr=(ur=function(t,e){return ur=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])},ur(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}ur(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),gr=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},br=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},mr=Object.defineProperty,vr=Object.defineProperties,xr=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,Sr=Object.prototype.propertyIsEnumerable,Nr=function(t,e,o){return e in t?mr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Cr=function(t,e){for(var o in e||(e={}))wr.call(e,o)&&Nr(t,o,e[o]);if(Or)for(var r=0,i=Or(e);r<i.length;r++){o=i[r];Sr.call(e,o)&&Nr(t,o,e[o])}return t},Er=function(t,e){return vr(t,xr(e))},$r="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?lr:lr.apply(null,arguments)};var Rr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return yr(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,br([void 0],t[0].concat(this)))):new(e.bind.apply(e,br([void 0],t.concat(this))))},e}(Array),Ur=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return yr(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,br([void 0],t[0].concat(this)))):new(e.bind.apply(e,br([void 0],t.concat(this))))},e}(Array);function Ir(t){return oo(t)?Xo(t,(function(){})):t}function kr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Rr;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(dr.withExtraArgument(o.extraArgument)):r.push(dr));return r}(t)}}function Lr(t){var e,o=kr(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,p=void 0===f?void 0:f,h=r.enhancers,u=void 0===h?void 0:h;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=cr(n)}var d=s;"function"==typeof d&&(d=d(o));var y=fr.apply(void 0,d),g=lr;l&&(g=$r(Cr({trace:!1},"object"==typeof l&&l)));var b=new Ur(y),m=b;return Array.isArray(u)?m=br([y],u):"function"==typeof u&&(m=u(b)),sr(e,p,g.apply(void 0,m))}function Wr(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Cr(Cr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 Ar(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function jr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Ir(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Ar(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Cr(Cr({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Ar(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Ir(t())};else{var l=Ir(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=br([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=[c]),o.reduce((function(t,o){if(o){var r;if(eo(t))return void 0===(r=o(t,e))?t:r;if(oo(t))return Xo(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Wr(l,r):Wr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Fr=["name","message","stack","code"],Kr=function(t,e){this.payload=t,this.meta=e},Pr=function(t,e){this.payload=t,this.meta=e},Dr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Fr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Mr(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 r=Wr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Er(Cr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Wr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Er(Cr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Wr(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Dr)(t||"Rejected"),meta:Er(Cr({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,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,c,l){var f,p=(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}(),h=new a;function u(t){f=t,h.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return gr(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(p,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:p,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:p,signal:h.signal,abort:u,rejectWithValue:function(t,e){return new Kr(t,e)},fulfillWithValue:function(t,e){return new Pr(t,e)}})).then((function(e){if(e instanceof Kr)throw e;return e instanceof Pr?r(e.payload,p,t,e.meta):r(e,p,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Kr?n(null,p,t,m.payload,m.meta):n(m,p,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{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:u,requestId:p,arg:t,unwrap:function(){return d.then(Mr)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Br="listenerMiddleware";Wr(Br+"/add"),Wr(Br+"/removeAll"),Wr(Br+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[zo];return Go.get(e,t)},set:function(e){var o=this[zo];Go.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][zo];if(!i.P)switch(i.i){case 5:r(i)&&Uo(i);break;case 4:o(i)&&Uo(i)}}}function o(t){for(var e=t.t,o=t.k,r=Zo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==zo){var a=e[n];if(void 0===a&&!no(e,n))return!0;var s=o[n],c=s&&s[zo];if(c?c.t!==a:!so(s,a))return!0}}var l=!!e[zo];return r.length!==Zo(e).length+(l?0:1)}function r(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 r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Ho[t]||(Ho[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=_o(o);delete n[zo];for(var a=Zo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:bo(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,zo,{value:n,writable:!0}),i},S:function(t,o,i){i?eo(o)&&o[zo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[zo];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)ro(n,(function(e){e!==zo&&(void 0!==i[e]||no(i,e)?a[e]||t(n[e]):(a[e]=!0,Uo(o)))})),ro(i,(function(t){void 0!==n[t]||no(n,t)||(a[t]=!1,Uo(o))}));else if(5===s){if(r(o)&&(Uo(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),p=0;p<f;p++)n.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&t(n[p])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class zr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(He(i))return i;if(null==r)return;const n=jr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Lr({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[r.name]=new zr(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 r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]: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 Tr=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!L(t,e),attribute:!1,...e};R(i)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}},Zr=Symbol("elementInternals");var _r,Hr,Gr;const qr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Gr=null===(Hr=null===(_r=window.safari)||void 0===_r?void 0:_r.pushNotification)||void 0===Hr?void 0:Hr.toString())&&void 0!==Gr?Gr:""),Vr=Ce.extend("--ft-ripple-color","",ke.colorContent),Yr={color:Vr,backgroundColor:Ce.extend("--ft-ripple-background-color","",Vr),opacityContentOnSurfacePressed:Ce.external(ke.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ce.external(ke.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ce.external(ke.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ce.external(ke.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ce.create("--ft-ripple-border-radius","","SIZE","0px")},Xr=Ce.extend("--ft-ripple-color","",ke.colorPrimary),Jr=Xr,Qr=Ce.extend("--ft-ripple-background-color","",Xr),ti=Ce.extend("--ft-ripple-color","",ke.colorSecondary),ei=ti,oi=Ce.extend("--ft-ripple-background-color","",ti),ri=Ct`
122
126
  :host {
123
127
  display: contents;
124
128
  }
@@ -131,7 +135,7 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
131
135
 
132
136
  .ft-ripple:not(.ft-ripple--unbounded) {
133
137
  overflow: hidden;
134
- border-radius: ${Vr.borderRadius};
138
+ border-radius: ${Yr.borderRadius};
135
139
  }
136
140
 
137
141
  .ft-ripple .ft-ripple--background,
@@ -165,27 +169,27 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
165
169
  }
166
170
 
167
171
  .ft-ripple .ft-ripple--background {
168
- background-color: ${Vr.backgroundColor};
172
+ background-color: ${Yr.backgroundColor};
169
173
  }
170
174
 
171
175
  .ft-ripple .ft-ripple--effect {
172
- background-color: ${Vr.color};
176
+ background-color: ${Yr.color};
173
177
  }
174
178
 
175
179
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
176
- background-color: ${ei};
180
+ background-color: ${oi};
177
181
  }
178
182
 
179
183
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
180
- background-color: ${ti};
184
+ background-color: ${ei};
181
185
  }
182
186
 
183
187
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
184
- background-color: ${Jr};
188
+ background-color: ${Qr};
185
189
  }
186
190
 
187
191
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
188
- background-color: ${Xr};
192
+ background-color: ${Jr};
189
193
  }
190
194
 
191
195
  .ft-ripple .ft-ripple--background {
@@ -215,117 +219,117 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
215
219
  }
216
220
 
217
221
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
218
- opacity: ${Vr.opacityContentOnSurfaceHover};
222
+ opacity: ${Yr.opacityContentOnSurfaceHover};
219
223
  }
220
224
 
221
225
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
222
- opacity: ${Vr.opacityContentOnSurfaceSelected};
226
+ opacity: ${Yr.opacityContentOnSurfaceSelected};
223
227
  }
224
228
 
225
229
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
226
- opacity: ${Vr.opacityContentOnSurfaceFocused};
230
+ opacity: ${Yr.opacityContentOnSurfaceFocused};
227
231
  }
228
232
 
229
233
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
230
- opacity: ${Vr.opacityContentOnSurfacePressed};
234
+ opacity: ${Yr.opacityContentOnSurfacePressed};
231
235
  transform: translate(-50%, -50%) scale(1);
232
236
  }
233
- `;const ri=Ce.extend("--ft-typography-font-family","",ke.titleFont),ii=Ce.extend("--ft-typography-font-family","",ke.contentFont),ni={fontFamily:ii,fontSize:Ce.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ce.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ce.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ce.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ce.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ai=Ce.extend("--ft-typography-title-font-family","",ri),si=Ce.extend("--ft-typography-title-font-size","",ni.fontSize,"20px"),ci=Ce.extend("--ft-typography-title-font-weight","",ni.fontWeight,"normal"),li=Ce.extend("--ft-typography-title-letter-spacing","",ni.letterSpacing,"0.15px"),fi=Ce.extend("--ft-typography-title-line-height","",ni.lineHeight,"1.2"),pi=Ce.extend("--ft-typography-title-text-transform","",ni.textTransform,"inherit"),hi=Ce.extend("--ft-typography-title-dense-font-family","",ri),ui=Ce.extend("--ft-typography-title-dense-font-size","",ni.fontSize,"14px"),di=Ce.extend("--ft-typography-title-dense-font-weight","",ni.fontWeight,"normal"),yi=Ce.extend("--ft-typography-title-dense-letter-spacing","",ni.letterSpacing,"0.105px"),gi=Ce.extend("--ft-typography-title-dense-line-height","",ni.lineHeight,"1.7"),bi=Ce.extend("--ft-typography-title-dense-text-transform","",ni.textTransform,"inherit"),mi=Ce.extend("--ft-typography-subtitle1-font-family","",ii),vi=Ce.extend("--ft-typography-subtitle1-font-size","",ni.fontSize,"16px"),xi=Ce.extend("--ft-typography-subtitle1-font-weight","",ni.fontWeight,"600"),Oi=Ce.extend("--ft-typography-subtitle1-letter-spacing","",ni.letterSpacing,"0.144px"),wi=Ce.extend("--ft-typography-subtitle1-line-height","",ni.lineHeight,"1.5"),Si=Ce.extend("--ft-typography-subtitle1-text-transform","",ni.textTransform,"inherit"),Ni=Ce.extend("--ft-typography-subtitle2-font-family","",ii),Ci=Ce.extend("--ft-typography-subtitle2-font-size","",ni.fontSize,"14px"),Ei=Ce.extend("--ft-typography-subtitle2-font-weight","",ni.fontWeight,"normal"),$i=Ce.extend("--ft-typography-subtitle2-letter-spacing","",ni.letterSpacing,"0.098px"),Ri=Ce.extend("--ft-typography-subtitle2-line-height","",ni.lineHeight,"1.7"),Ui=Ce.extend("--ft-typography-subtitle2-text-transform","",ni.textTransform,"inherit"),Ii=Ce.extend("--ft-typography-body1-font-family","",ii),ki=Ce.extend("--ft-typography-body1-font-size","",ni.fontSize,"16px"),Li=Ce.extend("--ft-typography-body1-font-weight","",ni.fontWeight,"normal"),Wi=Ce.extend("--ft-typography-body1-letter-spacing","",ni.letterSpacing,"0.496px"),Ai=Ce.extend("--ft-typography-body1-line-height","",ni.lineHeight,"1.5"),ji=Ce.extend("--ft-typography-body1-text-transform","",ni.textTransform,"inherit"),Fi=Ce.extend("--ft-typography-body2-font-family","",ii),Ki=Ce.extend("--ft-typography-body2-font-size","",ni.fontSize,"14px"),Pi=Ce.extend("--ft-typography-body2-font-weight","",ni.fontWeight,"normal"),Di=Ce.extend("--ft-typography-body2-letter-spacing","",ni.letterSpacing,"0.252px"),Mi=Ce.extend("--ft-typography-body2-line-height","",ni.lineHeight,"1.4"),Bi=Ce.extend("--ft-typography-body2-text-transform","",ni.textTransform,"inherit"),zi=Ce.extend("--ft-typography-caption-font-family","",ii),Ti=Ce.extend("--ft-typography-caption-font-size","",ni.fontSize,"12px"),Zi=Ce.extend("--ft-typography-caption-font-weight","",ni.fontWeight,"normal"),_i=Ce.extend("--ft-typography-caption-letter-spacing","",ni.letterSpacing,"0.396px"),Hi=Ce.extend("--ft-typography-caption-line-height","",ni.lineHeight,"1.33"),Gi=Ce.extend("--ft-typography-caption-text-transform","",ni.textTransform,"inherit"),qi=Ce.extend("--ft-typography-breadcrumb-font-family","",ii),Vi=Ce.extend("--ft-typography-breadcrumb-font-size","",ni.fontSize,"10px"),Yi=Ce.extend("--ft-typography-breadcrumb-font-weight","",ni.fontWeight,"normal"),Xi=Ce.extend("--ft-typography-breadcrumb-letter-spacing","",ni.letterSpacing,"0.33px"),Ji=Ce.extend("--ft-typography-breadcrumb-line-height","",ni.lineHeight,"1.6"),Qi=Ce.extend("--ft-typography-breadcrumb-text-transform","",ni.textTransform,"inherit"),tn=Ce.extend("--ft-typography-overline-font-family","",ii),en=Ce.extend("--ft-typography-overline-font-size","",ni.fontSize,"10px"),on=Ce.extend("--ft-typography-overline-font-weight","",ni.fontWeight,"normal"),rn=Ce.extend("--ft-typography-overline-letter-spacing","",ni.letterSpacing,"1.5px"),nn=Ce.extend("--ft-typography-overline-line-height","",ni.lineHeight,"1.6"),an=Ce.extend("--ft-typography-overline-text-transform","",ni.textTransform,"uppercase"),sn={fontFamily:Ce.extend("--ft-typography-button-font-family","",ii),fontSize:Ce.extend("--ft-typography-button-font-size","",ni.fontSize,"14px"),fontWeight:Ce.extend("--ft-typography-button-font-weight","",ni.fontWeight,"600"),letterSpacing:Ce.extend("--ft-typography-button-letter-spacing","",ni.letterSpacing,"1.246px"),lineHeight:Ce.extend("--ft-typography-button-line-height","",ni.lineHeight,"1.15"),textTransform:Ce.extend("--ft-typography-button-text-transform","",ni.textTransform,"uppercase")},cn=Ct`
237
+ `;const ii=Ce.extend("--ft-typography-font-family","",ke.titleFont),ni=Ce.extend("--ft-typography-font-family","",ke.contentFont),ai={fontFamily:ni,fontSize:Ce.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ce.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ce.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ce.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ce.create("--ft-typography-text-transform","","UNKNOWN","inherit")},si=Ce.extend("--ft-typography-title-font-family","",ii),ci=Ce.extend("--ft-typography-title-font-size","",ai.fontSize,"20px"),li=Ce.extend("--ft-typography-title-font-weight","",ai.fontWeight,"normal"),fi=Ce.extend("--ft-typography-title-letter-spacing","",ai.letterSpacing,"0.15px"),pi=Ce.extend("--ft-typography-title-line-height","",ai.lineHeight,"1.2"),hi=Ce.extend("--ft-typography-title-text-transform","",ai.textTransform,"inherit"),ui=Ce.extend("--ft-typography-title-dense-font-family","",ii),di=Ce.extend("--ft-typography-title-dense-font-size","",ai.fontSize,"14px"),yi=Ce.extend("--ft-typography-title-dense-font-weight","",ai.fontWeight,"normal"),gi=Ce.extend("--ft-typography-title-dense-letter-spacing","",ai.letterSpacing,"0.105px"),bi=Ce.extend("--ft-typography-title-dense-line-height","",ai.lineHeight,"1.7"),mi=Ce.extend("--ft-typography-title-dense-text-transform","",ai.textTransform,"inherit"),vi=Ce.extend("--ft-typography-subtitle1-font-family","",ni),xi=Ce.extend("--ft-typography-subtitle1-font-size","",ai.fontSize,"16px"),Oi=Ce.extend("--ft-typography-subtitle1-font-weight","",ai.fontWeight,"600"),wi=Ce.extend("--ft-typography-subtitle1-letter-spacing","",ai.letterSpacing,"0.144px"),Si=Ce.extend("--ft-typography-subtitle1-line-height","",ai.lineHeight,"1.5"),Ni=Ce.extend("--ft-typography-subtitle1-text-transform","",ai.textTransform,"inherit"),Ci=Ce.extend("--ft-typography-subtitle2-font-family","",ni),Ei=Ce.extend("--ft-typography-subtitle2-font-size","",ai.fontSize,"14px"),$i=Ce.extend("--ft-typography-subtitle2-font-weight","",ai.fontWeight,"normal"),Ri=Ce.extend("--ft-typography-subtitle2-letter-spacing","",ai.letterSpacing,"0.098px"),Ui=Ce.extend("--ft-typography-subtitle2-line-height","",ai.lineHeight,"1.7"),Ii=Ce.extend("--ft-typography-subtitle2-text-transform","",ai.textTransform,"inherit"),ki=Ce.extend("--ft-typography-body1-font-family","",ni),Li=Ce.extend("--ft-typography-body1-font-size","",ai.fontSize,"16px"),Wi=Ce.extend("--ft-typography-body1-font-weight","",ai.fontWeight,"normal"),Ai=Ce.extend("--ft-typography-body1-letter-spacing","",ai.letterSpacing,"0.496px"),ji=Ce.extend("--ft-typography-body1-line-height","",ai.lineHeight,"1.5"),Fi=Ce.extend("--ft-typography-body1-text-transform","",ai.textTransform,"inherit"),Ki=Ce.extend("--ft-typography-body2-font-family","",ni),Pi=Ce.extend("--ft-typography-body2-font-size","",ai.fontSize,"14px"),Di=Ce.extend("--ft-typography-body2-font-weight","",ai.fontWeight,"normal"),Mi=Ce.extend("--ft-typography-body2-letter-spacing","",ai.letterSpacing,"0.252px"),Bi=Ce.extend("--ft-typography-body2-line-height","",ai.lineHeight,"1.4"),zi=Ce.extend("--ft-typography-body2-text-transform","",ai.textTransform,"inherit"),Ti=Ce.extend("--ft-typography-caption-font-family","",ni),Zi=Ce.extend("--ft-typography-caption-font-size","",ai.fontSize,"12px"),_i=Ce.extend("--ft-typography-caption-font-weight","",ai.fontWeight,"normal"),Hi=Ce.extend("--ft-typography-caption-letter-spacing","",ai.letterSpacing,"0.396px"),Gi=Ce.extend("--ft-typography-caption-line-height","",ai.lineHeight,"1.33"),qi=Ce.extend("--ft-typography-caption-text-transform","",ai.textTransform,"inherit"),Vi=Ce.extend("--ft-typography-breadcrumb-font-family","",ni),Yi=Ce.extend("--ft-typography-breadcrumb-font-size","",ai.fontSize,"10px"),Xi=Ce.extend("--ft-typography-breadcrumb-font-weight","",ai.fontWeight,"normal"),Ji=Ce.extend("--ft-typography-breadcrumb-letter-spacing","",ai.letterSpacing,"0.33px"),Qi=Ce.extend("--ft-typography-breadcrumb-line-height","",ai.lineHeight,"1.6"),tn=Ce.extend("--ft-typography-breadcrumb-text-transform","",ai.textTransform,"inherit"),en=Ce.extend("--ft-typography-overline-font-family","",ni),on=Ce.extend("--ft-typography-overline-font-size","",ai.fontSize,"10px"),rn=Ce.extend("--ft-typography-overline-font-weight","",ai.fontWeight,"normal"),nn=Ce.extend("--ft-typography-overline-letter-spacing","",ai.letterSpacing,"1.5px"),an=Ce.extend("--ft-typography-overline-line-height","",ai.lineHeight,"1.6"),sn=Ce.extend("--ft-typography-overline-text-transform","",ai.textTransform,"uppercase"),cn={fontFamily:Ce.extend("--ft-typography-button-font-family","",ni),fontSize:Ce.extend("--ft-typography-button-font-size","",ai.fontSize,"14px"),fontWeight:Ce.extend("--ft-typography-button-font-weight","",ai.fontWeight,"600"),letterSpacing:Ce.extend("--ft-typography-button-letter-spacing","",ai.letterSpacing,"1.246px"),lineHeight:Ce.extend("--ft-typography-button-line-height","",ai.lineHeight,"1.15"),textTransform:Ce.extend("--ft-typography-button-text-transform","",ai.textTransform,"uppercase")},ln=Ct`
234
238
  .ft-typography--title {
235
- font-family: ${ai};
236
- font-size: ${si};
237
- font-weight: ${ci};
238
- letter-spacing: ${li};
239
- line-height: ${fi};
240
- text-transform: ${pi};
241
- }
242
- `,ln=Ct`
243
- .ft-typography--title-dense {
244
- font-family: ${hi};
245
- font-size: ${ui};
246
- font-weight: ${di};
247
- letter-spacing: ${yi};
248
- line-height: ${gi};
249
- text-transform: ${bi};
239
+ font-family: ${si};
240
+ font-size: ${ci};
241
+ font-weight: ${li};
242
+ letter-spacing: ${fi};
243
+ line-height: ${pi};
244
+ text-transform: ${hi};
250
245
  }
251
246
  `,fn=Ct`
252
- .ft-typography--subtitle1 {
253
- font-family: ${mi};
254
- font-size: ${vi};
255
- font-weight: ${xi};
256
- letter-spacing: ${Oi};
257
- line-height: ${wi};
258
- text-transform: ${Si};
247
+ .ft-typography--title-dense {
248
+ font-family: ${ui};
249
+ font-size: ${di};
250
+ font-weight: ${yi};
251
+ letter-spacing: ${gi};
252
+ line-height: ${bi};
253
+ text-transform: ${mi};
259
254
  }
260
255
  `,pn=Ct`
261
- .ft-typography--subtitle2 {
262
- font-family: ${Ni};
263
- font-size: ${Ci};
264
- font-weight: ${Ei};
265
- letter-spacing: ${$i};
266
- line-height: ${Ri};
267
- text-transform: ${Ui};
256
+ .ft-typography--subtitle1 {
257
+ font-family: ${vi};
258
+ font-size: ${xi};
259
+ font-weight: ${Oi};
260
+ letter-spacing: ${wi};
261
+ line-height: ${Si};
262
+ text-transform: ${Ni};
268
263
  }
269
-
270
264
  `,hn=Ct`
271
- .ft-typography--body1 {
272
- font-family: ${Ii};
273
- font-size: ${ki};
274
- font-weight: ${Li};
275
- letter-spacing: ${Wi};
276
- line-height: ${Ai};
277
- text-transform: ${ji};
265
+ .ft-typography--subtitle2 {
266
+ font-family: ${Ci};
267
+ font-size: ${Ei};
268
+ font-weight: ${$i};
269
+ letter-spacing: ${Ri};
270
+ line-height: ${Ui};
271
+ text-transform: ${Ii};
278
272
  }
273
+
279
274
  `,un=Ct`
280
- .ft-typography--body2 {
281
- font-family: ${Fi};
282
- font-size: ${Ki};
283
- font-weight: ${Pi};
284
- letter-spacing: ${Di};
285
- line-height: ${Mi};
286
- text-transform: ${Bi};
275
+ .ft-typography--body1 {
276
+ font-family: ${ki};
277
+ font-size: ${Li};
278
+ font-weight: ${Wi};
279
+ letter-spacing: ${Ai};
280
+ line-height: ${ji};
281
+ text-transform: ${Fi};
287
282
  }
288
283
  `,dn=Ct`
289
- .ft-typography--caption {
290
- font-family: ${zi};
291
- font-size: ${Ti};
292
- font-weight: ${Zi};
293
- letter-spacing: ${_i};
294
- line-height: ${Hi};
295
- text-transform: ${Gi};
284
+ .ft-typography--body2 {
285
+ font-family: ${Ki};
286
+ font-size: ${Pi};
287
+ font-weight: ${Di};
288
+ letter-spacing: ${Mi};
289
+ line-height: ${Bi};
290
+ text-transform: ${zi};
296
291
  }
297
292
  `,yn=Ct`
298
- .ft-typography--breadcrumb {
299
- font-family: ${qi};
300
- font-size: ${Vi};
301
- font-weight: ${Yi};
302
- letter-spacing: ${Xi};
303
- line-height: ${Ji};
304
- text-transform: ${Qi};
293
+ .ft-typography--caption {
294
+ font-family: ${Ti};
295
+ font-size: ${Zi};
296
+ font-weight: ${_i};
297
+ letter-spacing: ${Hi};
298
+ line-height: ${Gi};
299
+ text-transform: ${qi};
305
300
  }
306
301
  `,gn=Ct`
307
- .ft-typography--overline {
308
- font-family: ${tn};
309
- font-size: ${en};
310
- font-weight: ${on};
311
- letter-spacing: ${rn};
312
- line-height: ${nn};
313
- text-transform: ${an};
302
+ .ft-typography--breadcrumb {
303
+ font-family: ${Vi};
304
+ font-size: ${Yi};
305
+ font-weight: ${Xi};
306
+ letter-spacing: ${Ji};
307
+ line-height: ${Qi};
308
+ text-transform: ${tn};
314
309
  }
315
310
  `,bn=Ct`
316
- .ft-typography--button {
317
- font-family: ${sn.fontFamily};
318
- font-size: ${sn.fontSize};
319
- font-weight: ${sn.fontWeight};
320
- letter-spacing: ${sn.letterSpacing};
321
- line-height: ${sn.lineHeight};
322
- text-transform: ${sn.textTransform};
311
+ .ft-typography--overline {
312
+ font-family: ${en};
313
+ font-size: ${on};
314
+ font-weight: ${rn};
315
+ letter-spacing: ${nn};
316
+ line-height: ${an};
317
+ text-transform: ${sn};
323
318
  }
324
319
  `,mn=Ct`
320
+ .ft-typography--button {
321
+ font-family: ${cn.fontFamily};
322
+ font-size: ${cn.fontSize};
323
+ font-weight: ${cn.fontWeight};
324
+ letter-spacing: ${cn.letterSpacing};
325
+ line-height: ${cn.lineHeight};
326
+ text-transform: ${cn.textTransform};
327
+ }
328
+ `,vn=Ct`
325
329
  .ft-typography {
326
330
  vertical-align: inherit;
327
331
  }
328
- `,vn=[Object.keys(Re).map((t=>function(t){const e=Re[t];return Ct`
332
+ `,xn=[Object.keys(Re).map((t=>function(t){const e=Re[t];return Ct`
329
333
  .ft-typography--${Nt(t)} {
330
334
  font-family: ${e.fontFamily};
331
335
  font-size: ${e.fontSize};
@@ -334,7 +338,7 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
334
338
  line-height: ${e.lineHeight};
335
339
  text-transform: ${e.textCase};
336
340
  }
337
- `}(t)))],xn={color:Ce.extend("--ft-loader-color","",ke.colorPrimary),size:Ce.create("--ft-loader-size","","SIZE","80px")},On=Ct`
341
+ `}(t)))],On={color:Ce.extend("--ft-loader-color","",ke.colorPrimary),size:Ce.create("--ft-loader-size","","SIZE","80px")},wn=Ct`
338
342
  :host {
339
343
  line-height: 0;
340
344
  }
@@ -343,8 +347,8 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
343
347
  display: inline-block;
344
348
  position: relative;
345
349
 
346
- width: ${xn.size};
347
- height: ${xn.size};
350
+ width: ${On.size};
351
+ height: ${On.size};
348
352
  }
349
353
 
350
354
  .ft-loader div {
@@ -353,7 +357,7 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
353
357
  width: 25%;
354
358
  height: 25%;
355
359
  border-radius: 50%;
356
- background: ${xn.color};
360
+ background: ${On.color};
357
361
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
358
362
  }
359
363
 
@@ -400,10 +404,10 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
400
404
  transform: translate(0, 0);
401
405
  }
402
406
  100% {
403
- transform: translate(calc(0.35 * ${xn.size}), 0);
407
+ transform: translate(calc(0.35 * ${On.size}), 0);
404
408
  }
405
409
  }
406
- `,wn={size:Ce.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ce.extend("--ft-icon-fluid-topics-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ce.extend("--ft-icon-file-format-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ce.extend("--ft-icon-material-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ce.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Sn=Ct`
410
+ `,Sn={size:Ce.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ce.extend("--ft-icon-fluid-topics-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ce.extend("--ft-icon-file-format-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ce.extend("--ft-icon-material-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ce.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Nn=Ct`
407
411
  :host, i.ft-icon {
408
412
  display: inline-flex;
409
413
  align-items: center;
@@ -412,14 +416,14 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
412
416
  }
413
417
 
414
418
  :host {
415
- width: ${wn.size};
416
- height: ${wn.size};
419
+ width: ${Sn.size};
420
+ height: ${Sn.size};
417
421
  }
418
422
 
419
423
  i.ft-icon {
420
424
  width: 100%;
421
425
  height: 100%;
422
- font-size: ${wn.size};
426
+ font-size: ${Sn.size};
423
427
  line-height: 1;
424
428
  font-weight: normal;
425
429
  text-transform: none;
@@ -430,28 +434,28 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
430
434
  text-rendering: auto;
431
435
  -webkit-font-smoothing: antialiased;
432
436
  -moz-osx-font-smoothing: grayscale;
433
- vertical-align: ${wn.verticalAlign};
437
+ vertical-align: ${Sn.verticalAlign};
434
438
  }
435
439
 
436
440
  i.ft-icon.ft-icon--fluid-topics {
437
- font-family: ${wn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
441
+ font-family: ${Sn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
438
442
 
439
443
  /* Ugly fix because font is broken */
440
- font-size: calc(0.75 * ${wn.size});
441
- line-height: ${wn.size};
444
+ font-size: calc(0.75 * ${Sn.size});
445
+ line-height: ${Sn.size};
442
446
  position: relative;
443
447
  top: -4%;
444
448
  justify-content: center;
445
449
  }
446
450
 
447
451
  .ft-icon--file-format {
448
- font-family: ${wn.fileFormatFontFamily}, ft-mime, sans-serif;
452
+ font-family: ${Sn.fileFormatFontFamily}, ft-mime, sans-serif;
449
453
  }
450
454
 
451
455
  .ft-icon--material {
452
- font-family: ${wn.materialFontFamily}, "Material Icons", sans-serif;
456
+ font-family: ${Sn.materialFontFamily}, "Material Icons", sans-serif;
453
457
  }
454
- `,Nn=Ce.extend("--ft-button-color","",ke.colorPrimary),Cn={backgroundColor:Ce.extend("--ft-button-background-color","",ke.colorSurface),borderRadius:Ce.extend("--ft-button-border-radius","",ke.borderRadiusL),color:Nn,fontSize:Ce.extend("--ft-button-font-size","",sn.fontSize),iconSize:Ce.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ce.extend("--ft-button-ripple-color","",Nn),verticalPadding:Ce.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ce.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ce.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ce.external(ke.colorOpacityDisabled,"Design system")},En=Ce.extend("--ft-button-primary-color","",Ce.extend("--ft-button-color","",ke.colorOnPrimary)),$n={backgroundColor:Ce.extend("--ft-button-primary-background-color","",Ce.extend("--ft-button-background-color","",ke.colorPrimary)),color:En,rippleColor:Ce.extend("--ft-button-primary-ripple-color","",En)},Rn=Ce.extend("--ft-button-dense-border-radius","",Ce.extend("--ft-button-border-radius","",ke.borderRadiusM)),Un=Ce.create("--ft-button-dense-vertical-padding","","SIZE","2px"),In=Ce.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),kn=Ce.create("--ft-button-dense-icon-padding","","SIZE","4px"),Ln=[Ct`
458
+ `,Cn=Ce.extend("--ft-button-color","",ke.colorPrimary),En={backgroundColor:Ce.extend("--ft-button-background-color","",ke.colorSurface),borderRadius:Ce.extend("--ft-button-border-radius","",ke.borderRadiusL),color:Cn,fontSize:Ce.extend("--ft-button-font-size","",cn.fontSize),iconSize:Ce.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ce.extend("--ft-button-ripple-color","",Cn),verticalPadding:Ce.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ce.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ce.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ce.external(ke.colorOpacityDisabled,"Design system")},$n=Ce.extend("--ft-button-primary-color","",Ce.extend("--ft-button-color","",ke.colorOnPrimary)),Rn={backgroundColor:Ce.extend("--ft-button-primary-background-color","",Ce.extend("--ft-button-background-color","",ke.colorPrimary)),color:$n,rippleColor:Ce.extend("--ft-button-primary-ripple-color","",$n)},Un=Ce.extend("--ft-button-dense-border-radius","",Ce.extend("--ft-button-border-radius","",ke.borderRadiusM)),In=Ce.create("--ft-button-dense-vertical-padding","","SIZE","2px"),kn=Ce.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Ln=Ce.create("--ft-button-dense-icon-padding","","SIZE","4px"),Wn=[Ct`
455
459
  :host {
456
460
  display: inline-block;
457
461
  max-width: 100%;
@@ -462,7 +466,7 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
462
466
  box-shadow: 0px 0px 0px transparent;
463
467
  border: 0px solid transparent;
464
468
  text-shadow: 0px 0px 0px transparent;
465
- font-size: ${Cn.fontSize};
469
+ font-size: ${En.fontSize};
466
470
  }
467
471
 
468
472
  button:hover {
@@ -491,31 +495,31 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
491
495
  border: none;
492
496
  pointer-events: auto;
493
497
 
494
- --ft-button-internal-line-height: max(calc(${Cn.fontSize} + 2px), ${Cn.iconSize});
495
- --ft-button-internal-color: ${Cn.color};
496
- ${Ee(wn.size,Cn.iconSize)};
497
- ${Ee(Vr.color,Cn.rippleColor)};
498
+ --ft-button-internal-line-height: max(calc(${En.fontSize} + 2px), ${En.iconSize});
499
+ --ft-button-internal-color: ${En.color};
500
+ ${Ee(Sn.size,En.iconSize)};
501
+ ${Ee(Yr.color,En.rippleColor)};
498
502
 
499
- border-radius: ${Cn.borderRadius};
500
- padding: ${Cn.verticalPadding} ${Cn.horizontalPadding};
501
- background-color: ${Cn.backgroundColor};
503
+ border-radius: ${En.borderRadius};
504
+ padding: ${En.verticalPadding} ${En.horizontalPadding};
505
+ background-color: ${En.backgroundColor};
502
506
  color: var(--ft-button-internal-color);
503
507
  -webkit-mask-image: radial-gradient(white, black);
504
508
  }
505
509
 
506
510
  .ft-button.ft-button--outlined {
507
511
  border: 1px solid var(--ft-button-internal-color);
508
- padding: calc(${Cn.verticalPadding} - 1px) calc(${Cn.horizontalPadding} - 1px);
512
+ padding: calc(${En.verticalPadding} - 1px) calc(${En.horizontalPadding} - 1px);
509
513
  }
510
514
 
511
515
  .ft-button.ft-button--dense {
512
- padding: ${Un} ${In};
513
- border-radius: ${Rn};
514
- gap: ${kn};
516
+ padding: ${In} ${kn};
517
+ border-radius: ${Un};
518
+ gap: ${Ln};
515
519
  }
516
520
 
517
521
  .ft-button.ft-button--dense.ft-button--outlined {
518
- padding: calc(${Un} - 1px) calc(${In} - 1px);
522
+ padding: calc(${In} - 1px) calc(${kn} - 1px);
519
523
  }
520
524
 
521
525
  .ft-button:not([disabled]):hover {
@@ -523,22 +527,22 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
523
527
  }
524
528
 
525
529
  .ft-button--round {
526
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Cn.verticalPadding});
530
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${En.verticalPadding});
527
531
  }
528
532
 
529
533
  .ft-button--round.ft-button--dense {
530
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Un});
534
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${In});
531
535
  }
532
536
 
533
537
  .ft-button[disabled] {
534
538
  filter: grayscale(1);
535
- opacity: ${Cn.opacityDisabled};
539
+ opacity: ${En.opacityDisabled};
536
540
  }
537
541
 
538
542
  .ft-button.ft-button--primary {
539
- background-color: ${$n.backgroundColor};
540
- --ft-button-internal-color: ${$n.color};
541
- ${Ee(Vr.color,$n.rippleColor)};
543
+ background-color: ${Rn.backgroundColor};
544
+ --ft-button-internal-color: ${Rn.color};
545
+ ${Ee(Yr.color,Rn.rippleColor)};
542
546
  }
543
547
 
544
548
  .ft-button:focus {
@@ -551,13 +555,13 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
551
555
  white-space: nowrap;
552
556
  text-overflow: ellipsis;
553
557
  display: block;
554
- margin: 0 ${Cn.iconPadding};
555
- ${Ee(sn.fontSize,"1em")};
556
- ${Ee(sn.lineHeight,"var(--ft-button-internal-line-height)")};
558
+ margin: 0 ${En.iconPadding};
559
+ ${Ee(cn.fontSize,"1em")};
560
+ ${Ee(cn.lineHeight,"var(--ft-button-internal-line-height)")};
557
561
  }
558
562
 
559
563
  .ft-button--dense .ft-button--label {
560
- margin: 0 ${kn};
564
+ margin: 0 ${Ln};
561
565
  }
562
566
 
563
567
  .ft-button--label[hidden] {
@@ -570,13 +574,13 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
570
574
  }
571
575
 
572
576
  .ft-button--label[hidden] + ft-icon {
573
- margin: 0 calc(${Cn.horizontalPadding} * -1);
574
- padding: 0 ${Cn.verticalPadding};
577
+ margin: 0 calc(${En.horizontalPadding} * -1);
578
+ padding: 0 ${En.verticalPadding};
575
579
  }
576
580
 
577
581
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
578
- margin: 0 calc(${In} * -1);
579
- padding: 0 ${Un};
582
+ margin: 0 calc(${kn} * -1);
583
+ padding: 0 ${In};
580
584
  }
581
585
 
582
586
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -585,39 +589,39 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
585
589
  }
586
590
 
587
591
  ft-loader {
588
- ${Ee(xn.size,Cn.iconSize)};
589
- ${Ee(xn.color,"var(--ft-button-internal-color)")};
592
+ ${Ee(On.size,En.iconSize)};
593
+ ${Ee(On.color,"var(--ft-button-internal-color)")};
590
594
  }
591
- `,Be],Wn=1,An=2,jn=t=>(...e)=>({_$litDirective$:t,values:e});let Fn=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)}};
595
+ `,ze],An=1,jn=2,Fn=t=>(...e)=>({_$litDirective$:t,values:e});let Kn=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)}};
592
596
  /**
593
597
  * @license
594
598
  * Copyright 2018 Google LLC
595
599
  * SPDX-License-Identifier: BSD-3-Clause
596
- */const Kn=jn(class extends Fn{constructor(t){if(super(t),t.type!==Wn||"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 r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return ot}});var Pn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Dn 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 i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=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!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-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 se`
600
+ */const Pn=Fn(class extends Kn{constructor(t){if(super(t),t.type!==An||"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 r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return ot}});var Dn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mn 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 i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=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!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-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 se`
597
601
  <style>
598
602
  .ft-ripple .ft-ripple--effect {
599
603
  left: ${this.originX}px;
600
604
  top: ${this.originY}px;
601
605
  }
602
606
  </style>
603
- <div class="${Kn(t)}">
607
+ <div class="${Pn(t)}">
604
608
  <div class="ft-ripple--background"></div>
605
609
  <div class="ft-ripple--effect"></div>
606
610
  </div>
607
- `}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"),r=e("touchend","touchcancel"),i=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",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),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",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),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 r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}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()}}Dn.elementDefinitions={},Dn.styles=oi,Pn([R({type:Boolean})],Dn.prototype,"primary",void 0),Pn([R({type:Boolean})],Dn.prototype,"secondary",void 0),Pn([R({type:Boolean})],Dn.prototype,"unbounded",void 0),Pn([R({type:Boolean})],Dn.prototype,"activated",void 0),Pn([R({type:Boolean})],Dn.prototype,"selected",void 0),Pn([R({type:Boolean})],Dn.prototype,"disabled",void 0),Pn([U()],Dn.prototype,"hovered",void 0),Pn([U()],Dn.prototype,"focused",void 0),Pn([U()],Dn.prototype,"pressed",void 0),Pn([U()],Dn.prototype,"rippling",void 0),Pn([U()],Dn.prototype,"originX",void 0),Pn([U()],Dn.prototype,"originY",void 0),Pn([k(".ft-ripple")],Dn.prototype,"ripple",void 0),Pn([k(".ft-ripple--effect")],Dn.prototype,"rippleEffect",void 0),W("ft-ripple")(Dn);
611
+ `}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"),r=e("touchend","touchcancel"),i=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",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),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",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),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 r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}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()}}Mn.elementDefinitions={},Mn.styles=ri,Dn([R({type:Boolean})],Mn.prototype,"primary",void 0),Dn([R({type:Boolean})],Mn.prototype,"secondary",void 0),Dn([R({type:Boolean})],Mn.prototype,"unbounded",void 0),Dn([R({type:Boolean})],Mn.prototype,"activated",void 0),Dn([R({type:Boolean})],Mn.prototype,"selected",void 0),Dn([R({type:Boolean})],Mn.prototype,"disabled",void 0),Dn([U()],Mn.prototype,"hovered",void 0),Dn([U()],Mn.prototype,"focused",void 0),Dn([U()],Mn.prototype,"pressed",void 0),Dn([U()],Mn.prototype,"rippling",void 0),Dn([U()],Mn.prototype,"originX",void 0),Dn([U()],Mn.prototype,"originY",void 0),Dn([k(".ft-ripple")],Mn.prototype,"ripple",void 0),Dn([k(".ft-ripple--effect")],Mn.prototype,"rippleEffect",void 0),W("ft-ripple")(Mn);
608
612
  /**
609
613
  * @license
610
614
  * Copyright 2020 Google LLC
611
615
  * SPDX-License-Identifier: BSD-3-Clause
612
616
  */
613
- const Mn=Symbol.for(""),Bn=t=>{if(t?.r===Mn)return t?._$litStatic$},zn=t=>({_$litStatic$:t,r:Mn}),Tn=new Map,Zn=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(n=o[l],i=Bn(n));)c+=i+e[++l],f=!0;l!==r&&s.push(n),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=Tn.get(t))&&(a.raw=a,Tn.set(t,e=a)),o=s}return t(e,...o)})(et);var _n;!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"}(_n||(_n={}));var Hn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gn extends Me{constructor(){super(...arguments),this.variant=_n.body1}render(){return this.element?Zn`
614
- <${zn(this.element)}
617
+ const Bn=Symbol.for(""),zn=t=>{if(t?.r===Bn)return t?._$litStatic$},Tn=t=>({_$litStatic$:t,r:Bn}),Zn=new Map,_n=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(n=o[l],i=zn(n));)c+=i+e[++l],f=!0;l!==r&&s.push(n),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=Zn.get(t))&&(a.raw=a,Zn.set(t,e=a)),o=s}return t(e,...o)})(et);var Hn;!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"}(Hn||(Hn={}));var Gn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qn extends Me{constructor(){super(...arguments),this.variant=Hn.body1}render(){return this.element?_n`
618
+ <${Tn(this.element)}
615
619
  class="ft-typography ft-typography--${this.variant}">
616
620
  <slot></slot>
617
- </${zn(this.element)}>
618
- `:Zn`
621
+ </${Tn(this.element)}>
622
+ `:_n`
619
623
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
620
- `}}Gn.styles=[cn,ln,fn,pn,hn,un,dn,yn,gn,bn,mn,...vn],Hn([R()],Gn.prototype,"element",void 0),Hn([R()],Gn.prototype,"variant",void 0),W("ft-typography")(Gn);const qn={distance:Ce.create("--ft-tooltip-distance","","SIZE","4px"),color:Ce.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ce.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ce.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ce.external(ke.borderRadiusS,"Design system"),maxWidth:Ce.create("--ft-tooltip-max-width","","SIZE","150px")},Vn=Ct`
624
+ `}}qn.styles=[ln,fn,pn,hn,un,dn,yn,gn,bn,mn,vn,...xn],Gn([R()],qn.prototype,"element",void 0),Gn([R()],qn.prototype,"variant",void 0),W("ft-typography")(qn);const Vn={distance:Ce.create("--ft-tooltip-distance","","SIZE","4px"),color:Ce.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ce.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ce.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ce.external(ke.borderRadiusS,"Design system"),maxWidth:Ce.create("--ft-tooltip-max-width","","SIZE","150px")},Yn=Ct`
621
625
  .ft-tooltip--container {
622
626
  display: block;
623
627
  }
@@ -632,21 +636,21 @@ const Mn=Symbol.for(""),Bn=t=>{if(t?.r===Mn)return t?._$litStatic$},zn=t=>({_$li
632
636
  box-sizing: border-box;
633
637
  overflow: hidden;
634
638
  width: max-content;
635
- max-width: ${qn.maxWidth};
639
+ max-width: ${Vn.maxWidth};
636
640
  text-align: center;
637
- padding: ${qn.distance};
638
- z-index: ${qn.zIndex};
641
+ padding: ${Vn.distance};
642
+ z-index: ${Vn.zIndex};
639
643
  }
640
644
 
641
645
  .ft-tooltip--content {
642
646
  padding: 4px 8px;
643
- border-radius: ${qn.borderRadiusS};
644
- background-color: ${qn.backgroundColor};
645
- color: ${qn.color};
647
+ border-radius: ${Vn.borderRadiusS};
648
+ background-color: ${Vn.backgroundColor};
649
+ color: ${Vn.color};
646
650
  position: relative;
647
651
  word-break: break-word;
648
652
  }
649
- `;var Yn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xn 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 i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return se`
653
+ `;var Xn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Jn 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 i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return se`
650
654
  <div part="container"
651
655
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
652
656
  @mouseenter=${this.onHover}
@@ -664,34 +668,34 @@ const Mn=Symbol.for(""),Bn=t=>{if(t?.r===Mn)return t?._$litStatic$},zn=t=>({_$li
664
668
  </div>
665
669
  </div>
666
670
  </div>
667
- `}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,r=(t.offsetHeight-o)/2,i=(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+i-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+r-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 c=this.tooltip.getBoundingClientRect();let l=-c.x,f=c.x+c.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(l,f))+"px";let p=-c.y,h=c.y+c.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(p,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${qn.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))}}Xn.elementDefinitions={"ft-typography":Gn},Xn.styles=Vn,Yn([R()],Xn.prototype,"text",void 0),Yn([R({type:Boolean})],Xn.prototype,"manual",void 0),Yn([R({type:Boolean})],Xn.prototype,"inline",void 0),Yn([R({type:Number})],Xn.prototype,"delay",void 0),Yn([R()],Xn.prototype,"position",void 0),Yn([function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}}()],Xn.prototype,"slotNodes",void 0),Yn([k(".ft-tooltip--container")],Xn.prototype,"container",void 0),Yn([k(".ft-tooltip")],Xn.prototype,"tooltip",void 0),Yn([k(".ft-tooltip--content")],Xn.prototype,"tooltipContent",void 0),Yn([U()],Xn.prototype,"visible",void 0),W("ft-tooltip")(Xn);
671
+ `}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,r=(t.offsetHeight-o)/2,i=(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+i-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+r-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 c=this.tooltip.getBoundingClientRect();let l=-c.x,f=c.x+c.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(l,f))+"px";let p=-c.y,h=c.y+c.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(p,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Vn.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))}}Jn.elementDefinitions={"ft-typography":qn},Jn.styles=Yn,Xn([R()],Jn.prototype,"text",void 0),Xn([R({type:Boolean})],Jn.prototype,"manual",void 0),Xn([R({type:Boolean})],Jn.prototype,"inline",void 0),Xn([R({type:Number})],Jn.prototype,"delay",void 0),Xn([R()],Jn.prototype,"position",void 0),Xn([function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}}()],Jn.prototype,"slotNodes",void 0),Xn([k(".ft-tooltip--container")],Jn.prototype,"container",void 0),Xn([k(".ft-tooltip")],Jn.prototype,"tooltip",void 0),Xn([k(".ft-tooltip--content")],Jn.prototype,"tooltipContent",void 0),Xn([U()],Jn.prototype,"visible",void 0),W("ft-tooltip")(Jn);
668
672
  /**
669
673
  * @license
670
674
  * Copyright 2017 Google LLC
671
675
  * SPDX-License-Identifier: BSD-3-Clause
672
676
  */
673
- class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)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:[]}}}Jn.directiveName="unsafeHTML",Jn.resultType=1;const Qn=jn(Jn);var ta,ea;!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;"}(ta||(ta={})),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;"}(ea||(ea={}));const oa=new Map([...["abw"].map((t=>[t,ea.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,ea.AUDIO])),...["avi"].map((t=>[t,ea.AVI])),...["chm","xhs"].map((t=>[t,ea.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,ea.CODE])),...["csv"].map((t=>[t,ea.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ea.DITA])),...["epub"].map((t=>[t,ea.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ea.EXCEL])),...["flac"].map((t=>[t,ea.FLAC])),...["gif"].map((t=>[t,ea.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ea.GZIP])),...["html","htm","xhtml"].map((t=>[t,ea.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,ea.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ea.JPEG])),...["json"].map((t=>[t,ea.JSON])),...["m4a","m4p"].map((t=>[t,ea.M4A])),...["mov","qt"].map((t=>[t,ea.MOV])),...["mp3"].map((t=>[t,ea.MP3])),...["mp4","m4v"].map((t=>[t,ea.MP4])),...["ogg","oga"].map((t=>[t,ea.OGG])),...["pdf","ps"].map((t=>[t,ea.PDF])),...["png"].map((t=>[t,ea.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ea.POWERPOINT])),...["rar"].map((t=>[t,ea.RAR])),...["stp"].map((t=>[t,ea.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ea.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,ea.VIDEO])),...["wav"].map((t=>[t,ea.WAV])),...["wma"].map((t=>[t,ea.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ea.WORD])),...["xml","xsl","rdf"].map((t=>[t,ea.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ea.YAML])),...["zip"].map((t=>[t,ea.ZIP]))]),ra=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var ia;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ia||(ia={}));var na=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class aa extends Me{constructor(){super(...arguments),this.resolvedIcon=le}render(){const t=this.variant&&Object.values(ia).includes(this.variant)?this.variant:ia.fluid_topics,e=t!==ia.material||!!this.value;return se`
677
+ class Qn extends Kn{constructor(t){if(super(t),this.et=rt,t.type!==jn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)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:[]}}}Qn.directiveName="unsafeHTML",Qn.resultType=1;const ta=Fn(Qn);var ea,oa;!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;"}(ea||(ea={})),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;"}(oa||(oa={}));const ra=new Map([...["abw"].map((t=>[t,oa.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,oa.AUDIO])),...["avi"].map((t=>[t,oa.AVI])),...["chm","xhs"].map((t=>[t,oa.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,oa.CODE])),...["csv"].map((t=>[t,oa.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,oa.DITA])),...["epub"].map((t=>[t,oa.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,oa.EXCEL])),...["flac"].map((t=>[t,oa.FLAC])),...["gif"].map((t=>[t,oa.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,oa.GZIP])),...["html","htm","xhtml"].map((t=>[t,oa.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,oa.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,oa.JPEG])),...["json"].map((t=>[t,oa.JSON])),...["m4a","m4p"].map((t=>[t,oa.M4A])),...["mov","qt"].map((t=>[t,oa.MOV])),...["mp3"].map((t=>[t,oa.MP3])),...["mp4","m4v"].map((t=>[t,oa.MP4])),...["ogg","oga"].map((t=>[t,oa.OGG])),...["pdf","ps"].map((t=>[t,oa.PDF])),...["png"].map((t=>[t,oa.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,oa.POWERPOINT])),...["rar"].map((t=>[t,oa.RAR])),...["stp"].map((t=>[t,oa.STP])),...["txt","rtf","md","mdown"].map((t=>[t,oa.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,oa.VIDEO])),...["wav"].map((t=>[t,oa.WAV])),...["wma"].map((t=>[t,oa.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,oa.WORD])),...["xml","xsl","rdf"].map((t=>[t,oa.XML])),...["yaml","yml","x-yaml"].map((t=>[t,oa.YAML])),...["zip"].map((t=>[t,oa.ZIP]))]),ia=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var na;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(na||(na={}));var aa=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class sa extends Me{constructor(){super(...arguments),this.resolvedIcon=le}render(){const t=this.variant&&Object.values(na).includes(this.variant)?this.variant:na.fluid_topics,e=t!==na.material||!!this.value;return se`
674
678
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
675
- ${Qn(this.resolvedIcon)}
679
+ ${ta(this.resolvedIcon)}
676
680
  <slot ?hidden=${e}></slot>
677
681
  </i>
678
- `}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 ia.file_format:this.resolvedIcon=null!==(t=ea[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ia.material:this.resolvedIcon=this.value||le;break;default:this.resolvedIcon=null!==(e=ta[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}aa.elementDefinitions={},aa.styles=Sn,na([R()],aa.prototype,"variant",void 0),na([R()],aa.prototype,"value",void 0),na([U()],aa.prototype,"resolvedIcon",void 0),na([k("slot")],aa.prototype,"slottedContent",void 0),W("ft-icon")(aa);class sa extends Me{render(){return se`
682
+ `}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 na.file_format:this.resolvedIcon=null!==(t=oa[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case na.material:this.resolvedIcon=this.value||le;break;default:this.resolvedIcon=null!==(e=ea[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}sa.elementDefinitions={},sa.styles=Nn,aa([R()],sa.prototype,"variant",void 0),aa([R()],sa.prototype,"value",void 0),aa([U()],sa.prototype,"resolvedIcon",void 0),aa([k("slot")],sa.prototype,"slottedContent",void 0),W("ft-icon")(sa);class ca extends Me{render(){return se`
679
683
  <div class="ft-loader">
680
684
  <div></div>
681
685
  <div></div>
682
686
  <div></div>
683
687
  <div></div>
684
688
  </div>
685
- `}}sa.styles=On,W("ft-loader")(sa);var ca=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class la extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Tr].form}constructor(...t){super(t),this[Tr]=this.attachInternals(),this[Tr].role=e}setFormValue(t){this[Tr].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(se`
689
+ `}}ca.styles=wn,W("ft-loader")(ca);var la=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class fa extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Zr].form}constructor(...t){super(t),this[Zr]=this.attachInternals(),this[Zr].role=e}setFormValue(t){this[Zr].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(se`
686
690
  <button part="button"
687
- class="${Kn(this.buttonClasses)}"
691
+ class="${Pn(this.buttonClasses)}"
688
692
  aria-label="${this.getLabel()}"
689
693
  ?disabled=${this.isDisabled()}>
690
694
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
691
695
  <ft-typography part="label"
692
696
  variant=${this.typographyVariant}
693
697
  element="span"
694
- class="ft-button--label ${Gr?"ft-safari-ellipsis-fix":""}"
698
+ class="ft-button--label ${qr?"ft-safari-ellipsis-fix":""}"
695
699
  ?hidden=${!this.hasTextContent()}>
696
700
  <slot @slotchange=${this.onSlotchange}></slot>
697
701
  </ft-typography>
@@ -705,7 +709,7 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
705
709
  </ft-tooltip>
706
710
  `:t}resolveIcon(){return this.loading?se`
707
711
  <ft-loader part="loader icon"></ft-loader> `:this.icon?se`
708
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:le}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}}la.elementDefinitions={"ft-ripple":Dn,"ft-tooltip":Xn,"ft-typography":Gn,"ft-icon":aa,"ft-loader":sa},ca([R({type:String,reflect:!0})],la.prototype,"role",void 0),ca([R()],la.prototype,"type",void 0),ca([R({type:Boolean})],la.prototype,"disabled",void 0),ca([R()],la.prototype,"label",void 0),ca([R()],la.prototype,"icon",void 0),ca([R()],la.prototype,"iconVariant",void 0),ca([R({type:Boolean})],la.prototype,"trailingIcon",void 0),ca([R({type:Boolean})],la.prototype,"loading",void 0),ca([R()],la.prototype,"tooltipPosition",void 0),ca([R({type:Boolean})],la.prototype,"hideTooltip",void 0),ca([R({type:Boolean})],la.prototype,"forceTooltip",void 0),ca([k(".ft-button")],la.prototype,"button",void 0),ca([k(".ft-button--label slot")],la.prototype,"slottedContent",void 0);var fa=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pa extends la{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"}}pa.styles=[Te,Ln],fa([R({type:Boolean})],pa.prototype,"primary",void 0),fa([R({type:Boolean})],pa.prototype,"outlined",void 0),fa([R({type:Boolean})],pa.prototype,"dense",void 0),fa([R({type:Boolean})],pa.prototype,"round",void 0);const ha=[Ct`
712
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:le}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}}fa.elementDefinitions={"ft-ripple":Mn,"ft-tooltip":Jn,"ft-typography":qn,"ft-icon":sa,"ft-loader":ca},la([R({type:String,reflect:!0})],fa.prototype,"role",void 0),la([R()],fa.prototype,"type",void 0),la([R({type:Boolean})],fa.prototype,"disabled",void 0),la([R()],fa.prototype,"label",void 0),la([R()],fa.prototype,"icon",void 0),la([R()],fa.prototype,"iconVariant",void 0),la([R({type:Boolean})],fa.prototype,"trailingIcon",void 0),la([R({type:Boolean})],fa.prototype,"loading",void 0),la([R()],fa.prototype,"tooltipPosition",void 0),la([R({type:Boolean})],fa.prototype,"hideTooltip",void 0),la([R({type:Boolean})],fa.prototype,"forceTooltip",void 0),la([k(".ft-button")],fa.prototype,"button",void 0),la([k(".ft-button--label slot")],fa.prototype,"slottedContent",void 0);var pa=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ha extends fa{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"}}ha.styles=[Ze,Wn],pa([R({type:Boolean})],ha.prototype,"primary",void 0),pa([R({type:Boolean})],ha.prototype,"outlined",void 0),pa([R({type:Boolean})],ha.prototype,"dense",void 0),pa([R({type:Boolean})],ha.prototype,"round",void 0);const ua=[Ct`
709
713
  :host {
710
714
  display: inline-block;
711
715
  max-width: 100%;
@@ -784,13 +788,13 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
784
788
  /** Primary styles **/
785
789
 
786
790
  .ft-button--primary {
787
- ${Ee(xn.color,Ie.primaryIconColor)};
791
+ ${Ee(On.color,Ie.primaryIconColor)};
788
792
 
789
- ${Ee(Vr.color,Ie.primaryStateLayerColor)};
790
- ${Ee(Vr.opacityContentOnSurfaceHover,Ie.primaryStateLayerOpacityHover)};
791
- ${Ee(Vr.opacityContentOnSurfaceFocused,Ie.primaryStateLayerOpacityFocus)};
792
- ${Ee(Vr.opacityContentOnSurfaceSelected,Ie.primaryStateLayerOpacityActive)};
793
- ${Ee(Vr.opacityContentOnSurfacePressed,Ie.primaryStateLayerOpacityActive)};
793
+ ${Ee(Yr.color,Ie.primaryStateLayerColor)};
794
+ ${Ee(Yr.opacityContentOnSurfaceHover,Ie.primaryStateLayerOpacityHover)};
795
+ ${Ee(Yr.opacityContentOnSurfaceFocused,Ie.primaryStateLayerOpacityFocus)};
796
+ ${Ee(Yr.opacityContentOnSurfaceSelected,Ie.primaryStateLayerOpacityActive)};
797
+ ${Ee(Yr.opacityContentOnSurfacePressed,Ie.primaryStateLayerOpacityActive)};
794
798
 
795
799
  background-color: ${Ie.primaryBackgroundColor};
796
800
  color: ${Ie.primaryColor};
@@ -808,13 +812,13 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
808
812
  /** Secondary styles **/
809
813
 
810
814
  .ft-button--secondary {
811
- ${Ee(xn.color,Ie.secondaryIconColor)};
815
+ ${Ee(On.color,Ie.secondaryIconColor)};
812
816
 
813
- ${Ee(Vr.color,Ie.secondaryStateLayerColor)};
814
- ${Ee(Vr.opacityContentOnSurfaceHover,Ie.secondaryStateLayerOpacityHover)};
815
- ${Ee(Vr.opacityContentOnSurfaceFocused,Ie.secondaryStateLayerOpacityFocus)};
816
- ${Ee(Vr.opacityContentOnSurfaceSelected,Ie.secondaryStateLayerOpacityActive)};
817
- ${Ee(Vr.opacityContentOnSurfacePressed,Ie.secondaryStateLayerOpacityActive)};
817
+ ${Ee(Yr.color,Ie.secondaryStateLayerColor)};
818
+ ${Ee(Yr.opacityContentOnSurfaceHover,Ie.secondaryStateLayerOpacityHover)};
819
+ ${Ee(Yr.opacityContentOnSurfaceFocused,Ie.secondaryStateLayerOpacityFocus)};
820
+ ${Ee(Yr.opacityContentOnSurfaceSelected,Ie.secondaryStateLayerOpacityActive)};
821
+ ${Ee(Yr.opacityContentOnSurfacePressed,Ie.secondaryStateLayerOpacityActive)};
818
822
 
819
823
  background-color: ${Ie.secondaryBackgroundColor};
820
824
  color: ${Ie.secondaryColor};
@@ -833,13 +837,13 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
833
837
  /** Tertiary styles **/
834
838
 
835
839
  .ft-button--tertiary {
836
- ${Ee(xn.color,Ie.tertiaryIconColor)};
840
+ ${Ee(On.color,Ie.tertiaryIconColor)};
837
841
 
838
- ${Ee(Vr.color,Ie.tertiaryStateLayerColor)};
839
- ${Ee(Vr.opacityContentOnSurfaceHover,Ie.tertiaryStateLayerOpacityHover)};
840
- ${Ee(Vr.opacityContentOnSurfaceFocused,Ie.tertiaryStateLayerOpacityFocus)};
841
- ${Ee(Vr.opacityContentOnSurfaceSelected,Ie.tertiaryStateLayerOpacityActive)};
842
- ${Ee(Vr.opacityContentOnSurfacePressed,Ie.tertiaryStateLayerOpacityActive)};
842
+ ${Ee(Yr.color,Ie.tertiaryStateLayerColor)};
843
+ ${Ee(Yr.opacityContentOnSurfaceHover,Ie.tertiaryStateLayerOpacityHover)};
844
+ ${Ee(Yr.opacityContentOnSurfaceFocused,Ie.tertiaryStateLayerOpacityFocus)};
845
+ ${Ee(Yr.opacityContentOnSurfaceSelected,Ie.tertiaryStateLayerOpacityActive)};
846
+ ${Ee(Yr.opacityContentOnSurfacePressed,Ie.tertiaryStateLayerOpacityActive)};
843
847
 
844
848
  background-color: ${Ie.tertiaryBackgroundColor};
845
849
  color: ${Ie.tertiaryColor};
@@ -857,13 +861,13 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
857
861
  /** Neutral styles **/
858
862
 
859
863
  .ft-button--neutral {
860
- ${Ee(xn.color,Ie.neutralIconColor)};
864
+ ${Ee(On.color,Ie.neutralIconColor)};
861
865
 
862
- ${Ee(Vr.backgroundColor,Ie.neutralStateLayerColor)};
863
- ${Ee(Vr.opacityContentOnSurfaceHover,Ie.neutralStateLayerOpacityHover)};
864
- ${Ee(Vr.opacityContentOnSurfaceFocused,Ie.neutralStateLayerOpacityFocus)};
865
- ${Ee(Vr.opacityContentOnSurfaceSelected,Ie.neutralStateLayerOpacityActive)};
866
- ${Ee(Vr.opacityContentOnSurfacePressed,Ie.neutralStateLayerOpacityActive)};
866
+ ${Ee(Yr.backgroundColor,Ie.neutralStateLayerColor)};
867
+ ${Ee(Yr.opacityContentOnSurfaceHover,Ie.neutralStateLayerOpacityHover)};
868
+ ${Ee(Yr.opacityContentOnSurfaceFocused,Ie.neutralStateLayerOpacityFocus)};
869
+ ${Ee(Yr.opacityContentOnSurfaceSelected,Ie.neutralStateLayerOpacityActive)};
870
+ ${Ee(Yr.opacityContentOnSurfacePressed,Ie.neutralStateLayerOpacityActive)};
867
871
 
868
872
  background-color: ${Ie.neutralBackgroundColor};
869
873
  color: ${Ie.neutralColor};
@@ -881,8 +885,8 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
881
885
  /** Large styles **/
882
886
 
883
887
  .ft-button--large {
884
- ${Ee(wn.size,Ie.largeIconSize)};
885
- ${Ee(xn.size,Ie.largeIconSize)};
888
+ ${Ee(Sn.size,Ie.largeIconSize)};
889
+ ${Ee(On.size,Ie.largeIconSize)};
886
890
 
887
891
  height: ${Ie.largeHeight};
888
892
  padding: 0 ${Ie.largeHorizontalPadding};
@@ -904,8 +908,8 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
904
908
  /** Small styles **/
905
909
 
906
910
  .ft-button--small {
907
- ${Ee(wn.size,Ie.smallIconSize)};
908
- ${Ee(xn.size,Ie.smallIconSize)};
911
+ ${Ee(Sn.size,Ie.smallIconSize)};
912
+ ${Ee(On.size,Ie.smallIconSize)};
909
913
 
910
914
  height: ${Ie.smallHeight};
911
915
  padding: 0 ${Ie.smallHorizontalPadding};
@@ -923,7 +927,7 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
923
927
  width: ${Ie.smallIconOnlyWidth};
924
928
  padding: unset;
925
929
  }
926
- `,Be];var ua=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class da extends la{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?_n.caption1medium:_n.body2medium}}da.styles=[Te,ha],ua([R({type:Boolean})],da.prototype,"primary",void 0),ua([R({type:Boolean})],da.prototype,"secondary",void 0),ua([R({type:Boolean})],da.prototype,"tertiary",void 0),ua([R({type:Boolean})],da.prototype,"neutral",void 0),ua([R({type:Boolean})],da.prototype,"small",void 0),W("ft-button")(pa),W("ftds-button")(da);const ya={height:Ce.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Ce.extend("--ft-search-input-border-radius","",ke.borderRadiusS),desktopFiltersHeight:Ce.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Ce.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Ce.external(ke.colorSurface,"Design system"),colorOnSurface:Ce.external(ke.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ce.external(ke.colorOnSurfaceMedium,"Design system"),colorOutline:Ce.external(ke.colorOutline,"Design system"),colorPrimary:Ce.external(ke.colorPrimary,"Design system"),elevation02:Ce.external(ke.elevation02,"Design system"),buttonColor:Ce.external(Cn.color,"Button"),buttonRippleColor:Ce.external(Cn.rippleColor,"Button")},ga=Ct`
930
+ `,ze];var da=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ya extends fa{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?Hn.caption1medium:Hn.body2medium}}ya.styles=[Ze,ua],da([R({type:Boolean})],ya.prototype,"primary",void 0),da([R({type:Boolean})],ya.prototype,"secondary",void 0),da([R({type:Boolean})],ya.prototype,"tertiary",void 0),da([R({type:Boolean})],ya.prototype,"neutral",void 0),da([R({type:Boolean})],ya.prototype,"small",void 0),W("ft-button")(ha),W("ftds-button")(ya);const ga={height:Ce.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Ce.extend("--ft-search-input-border-radius","",ke.borderRadiusS),desktopFiltersHeight:Ce.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Ce.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Ce.external(ke.colorSurface,"Design system"),colorOnSurface:Ce.external(ke.colorOnSurface,"Design system"),colorOnSurfaceMedium:Ce.external(ke.colorOnSurfaceMedium,"Design system"),colorOutline:Ce.external(ke.colorOutline,"Design system"),colorPrimary:Ce.external(ke.colorPrimary,"Design system"),elevation02:Ce.external(ke.elevation02,"Design system"),buttonColor:Ce.external(En.color,"Button"),buttonRippleColor:Ce.external(En.rippleColor,"Button")},ba=Ct`
927
931
  * {
928
932
  box-sizing: border-box;
929
933
  }
@@ -933,11 +937,11 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
933
937
  display: flex;
934
938
  flex-direction: row;
935
939
  align-items: center;
936
- height: ${ya.height};
940
+ height: ${ga.height};
937
941
 
938
- background: ${ya.colorSurface};
939
- border: 1px solid ${ya.colorOutline};
940
- border-radius: ${ya.borderRadius};
942
+ background: ${ga.colorSurface};
943
+ border: 1px solid ${ga.colorOutline};
944
+ border-radius: ${ga.borderRadius};
941
945
  }
942
946
 
943
947
  .ft-search-input--input-container {
@@ -952,23 +956,23 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
952
956
  width: 100%;
953
957
  display: grid;
954
958
  padding: 0 8px;
955
- border-radius: ${ya.borderRadius};
959
+ border-radius: ${ga.borderRadius};
956
960
  }
957
961
 
958
962
  .ft-search-input--input-container:focus-within .ft-search-input--input-outline {
959
- outline: 2px solid ${ya.colorPrimary};
963
+ outline: 2px solid ${ga.colorPrimary};
960
964
  }
961
965
 
962
966
  .ft-search-input--input {
963
967
  height: 100%;
964
968
  border: none;
965
969
  background-color: transparent;
966
- color: ${ya.colorOnSurface};
970
+ color: ${ga.colorOnSurface};
967
971
  outline: none;
968
972
  }
969
973
 
970
974
  .ft-search-input--input::placeholder {
971
- color: ${ya.colorOnSurfaceMedium};
975
+ color: ${ga.colorOnSurfaceMedium};
972
976
  }
973
977
 
974
978
  .ft-search-input--actions {
@@ -978,13 +982,13 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
978
982
  align-items: center;
979
983
  height: 100%;
980
984
 
981
- ${Ee(qn.zIndex,`calc(${ya.floatingZIndex} + 1)`)};
985
+ ${Ee(Vn.zIndex,`calc(${ga.floatingZIndex} + 1)`)};
982
986
  }
983
987
 
984
988
  .ft-search-input > ft-button,
985
989
  .ft-search-input--actions ft-button {
986
990
  flex-shrink: 0;
987
- ${Ee(Cn.backgroundColor,"transparent")};
991
+ ${Ee(En.backgroundColor,"transparent")};
988
992
  }
989
993
 
990
994
  .ft-search-input .ft-search-input--launch-search,
@@ -1002,31 +1006,31 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
1002
1006
 
1003
1007
  .ft-search-input--separator {
1004
1008
  height: 20px;
1005
- border-right: 1px solid ${ya.colorOutline};
1009
+ border-right: 1px solid ${ga.colorOutline};
1006
1010
  }
1007
- `;var ba,ma,va,xa,Oa,wa,Sa,Na,Ca,Ea,$a,Ra,Ua,Ia;!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 r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.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 c(t){this.map={},t instanceof c?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 l(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 p(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=h(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=l(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?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t=l(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),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);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(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(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 c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=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 c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(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 c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(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,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,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",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,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"}(ba||(ba={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ma||(ma={})),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"}(va||(va={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(xa||(xa={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Oa||(Oa={})),function(t){t.ASC="ASC",t.DESC="DESC"}(wa||(wa={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Sa||(Sa={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Na||(Na={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ca||(Ca={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ea||(Ea={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}($a||($a={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Ra||(Ra={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Ua||(Ua={})),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"}(Ia||(Ia={})),Ia.PERSONAL_BOOK_SHARE_USER,Ia.PERSONAL_BOOK_USER,Ia.HTML_EXPORT_USER,Ia.PERSONAL_BOOK_USER,Ia.PDF_EXPORT_USER,Ia.PERSONAL_BOOK_USER,Ia.KHUB_ADMIN,Ia.CONTENT_PUBLISHER,Ia.ADMIN,Ia.KHUB_ADMIN,Ia.USERS_ADMIN,Ia.PORTAL_ADMIN,Ia.DEVELOPER,Ia.BETA_USER,Ia.DEBUG_USER;const ka=Ct`
1008
- `,La=Br.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Wa{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=La.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?Wa.build(t):null!==(e=Wa.API)&&void 0!==e?e:Wa.API=Wa.build()}static await(t){return new Promise((e=>{let o=Wa.get(t);if(o)e(o);else{const r=La.subscribe((()=>{o=Wa.get(t),o&&(r(),e(o))}))}}))}}var Aa;const ja=Symbol("clearAfterUnitTest");class Fa{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Aa]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=La.getState().uiLocale,La.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=La.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 r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};L(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Ze(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})))}}Aa=ja,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Fa((async(t,e)=>(await Wa.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Fa((async(t,e)=>(await Wa.await()).getCustomMessageContext(t,e))));const Ka=window.FluidTopicsI18nService,Pa=window.FluidTopicsCustomI18nService;var Da=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ma 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=()=>Wa.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return se`
1011
+ `;var ma,va,xa,Oa,wa,Sa,Na,Ca,Ea,$a,Ra,Ua,Ia,ka;!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 r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.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 c(t){this.map={},t instanceof c?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 l(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 p(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=h(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=l(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?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t=l(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),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);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(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(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 c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=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 c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(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 c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(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,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,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",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,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"}(ma||(ma={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(va||(va={})),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"}(xa||(xa={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Oa||(Oa={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(wa||(wa={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Sa||(Sa={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Na||(Na={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ca||(Ca={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ea||(Ea={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}($a||($a={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ra||(Ra={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Ua||(Ua={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Ia||(Ia={})),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"}(ka||(ka={})),ka.PERSONAL_BOOK_SHARE_USER,ka.PERSONAL_BOOK_USER,ka.HTML_EXPORT_USER,ka.PERSONAL_BOOK_USER,ka.PDF_EXPORT_USER,ka.PERSONAL_BOOK_USER,ka.KHUB_ADMIN,ka.CONTENT_PUBLISHER,ka.ADMIN,ka.KHUB_ADMIN,ka.USERS_ADMIN,ka.PORTAL_ADMIN,ka.DEVELOPER,ka.BETA_USER,ka.DEBUG_USER;const La=Ct`
1012
+ `,Wa=zr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Aa{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Wa.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?Aa.build(t):null!==(e=Aa.API)&&void 0!==e?e:Aa.API=Aa.build()}static await(t){return new Promise((e=>{let o=Aa.get(t);if(o)e(o);else{const r=Wa.subscribe((()=>{o=Aa.get(t),o&&(r(),e(o))}))}}))}}var ja;const Fa=Symbol("clearAfterUnitTest");class Ka{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[ja]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Wa.getState().uiLocale,Wa.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Wa.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 r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};L(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};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})))}}ja=Fa,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ka((async(t,e)=>(await Aa.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ka((async(t,e)=>(await Aa.await()).getCustomMessageContext(t,e))));const Pa=window.FluidTopicsI18nService,Da=window.FluidTopicsCustomI18nService;var Ma=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ba 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=()=>Aa.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return se`
1009
1013
  <slot></slot>
1010
- `}update(t){super.update(t),t.has("baseUrl")&&La.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&La.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&La.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&La.actions.setNoCustom(this.noCustom),t.has("editorMode")&&La.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&La.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&La.actions.setSession(this.session),t.has("availableUiLocales")&&La.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ka.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()))))}}Ma.elementDefinitions={},Ma.styles=ka,Da([R()],Ma.prototype,"baseUrl",void 0),Da([R()],Ma.prototype,"apiIntegrationIdentifier",void 0),Da([R()],Ma.prototype,"uiLocale",void 0),Da([A([])],Ma.prototype,"availableUiLocales",void 0),Da([R({type:Boolean})],Ma.prototype,"editorMode",void 0),Da([R({type:Boolean})],Ma.prototype,"noCustom",void 0),Da([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ma.prototype,"noCustomComponent",void 0),Da([R({type:Boolean})],Ma.prototype,"withManualResources",void 0),Da([A([])],Ma.prototype,"messageContexts",void 0),Da([A(void 0)],Ma.prototype,"session",void 0),Da([R({type:Object})],Ma.prototype,"apiProvider",void 0);class Ba{async listMySearches(){var t;return(null===(t=La.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Wa.await()).listMySearches(La.getState().session.profile.userId):[]}}const za=new r;class Ta{async listMyBookmarks(){return za.get("bookmarks",(async()=>(await Wa.await()).listMyBookmarks(La.getState().session.profile.userId)))}clearCache(){za.clear("bookmarks")}}const Za=Br.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=La.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ta,La.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=La.getState();L(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(){Za.actions.savedSearches(void 0)}clearMyBookmarks(){Za.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ba,e=await t.listMySearches();Za.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;Za.actions.bookmarks(e)}}},W("ft-app-context")(Ma);class _a extends Event{constructor(){super(_a.eventName)}}_a.eventName="search-context-clear-all-filters";var Ha=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ga extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const qa=Symbol("registerInterval");class Va 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[qa]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[qa]):this.dispatchEvent(new Ga)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=qa,Ha([U()],o.prototype,"stateManager",void 0),o}(Je)){}const Ya=Ct`
1011
- `;var Xa=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ja=Symbol("i18nProperties"),Qa=Symbol("i18nUnsubs");function ts(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Pa:Ka}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[Ja])||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[Ja])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ja]&&new Set([...this[Ja].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Qa].has(t)||this[Qa].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[Qa].forEach((t=>t())),this[Qa].clear()}}return e=Qa,Xa([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class es extends(ts(Me)){}class os extends(ts(Je)){}var rs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class is extends os{constructor(){super(),this.editorMode=!1,this.addStore(La)}render(){return this.key&&this.context?se`
1014
+ `}update(t){super.update(t),t.has("baseUrl")&&Wa.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Wa.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Wa.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Wa.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Wa.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Wa.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Wa.actions.setSession(this.session),t.has("availableUiLocales")&&Wa.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Pa.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()))))}}Ba.elementDefinitions={},Ba.styles=La,Ma([R()],Ba.prototype,"baseUrl",void 0),Ma([R()],Ba.prototype,"apiIntegrationIdentifier",void 0),Ma([R()],Ba.prototype,"uiLocale",void 0),Ma([A([])],Ba.prototype,"availableUiLocales",void 0),Ma([R({type:Boolean})],Ba.prototype,"editorMode",void 0),Ma([R({type:Boolean})],Ba.prototype,"noCustom",void 0),Ma([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ba.prototype,"noCustomComponent",void 0),Ma([R({type:Boolean})],Ba.prototype,"withManualResources",void 0),Ma([A([])],Ba.prototype,"messageContexts",void 0),Ma([A(void 0)],Ba.prototype,"session",void 0),Ma([R({type:Object})],Ba.prototype,"apiProvider",void 0);class za{async listMySearches(){var t;return(null===(t=Wa.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Aa.await()).listMySearches(Wa.getState().session.profile.userId):[]}}const Ta=new r;class Za{async listMyBookmarks(){return Ta.get("bookmarks",(async()=>(await Aa.await()).listMyBookmarks(Wa.getState().session.profile.userId)))}clearCache(){Ta.clear("bookmarks")}}const _a=zr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Wa.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Za,Wa.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Wa.getState();L(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){_a.actions.savedSearches(void 0)}clearMyBookmarks(){_a.actions.bookmarks(void 0)}async reloadMySearches(){const t=new za,e=await t.listMySearches();_a.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;_a.actions.bookmarks(e)}}},W("ft-app-context")(Ba);class Ha extends Event{constructor(){super(Ha.eventName)}}Ha.eventName="search-context-clear-all-filters";var Ga=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qa extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Va=Symbol("registerInterval");class Ya 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[Va]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Va]):this.dispatchEvent(new qa)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Va,Ga([U()],o.prototype,"stateManager",void 0),o}(Qe)){}const Xa=Ct`
1015
+ `;var Ja=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Qa=Symbol("i18nProperties"),ts=Symbol("i18nUnsubs");function es(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Da:Pa}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[Qa])||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[Qa])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Qa]&&new Set([...this[Qa].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ts].has(t)||this[ts].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[ts].forEach((t=>t())),this[ts].clear()}}return e=ts,Ja([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class os extends(es(Me)){}class rs extends(es(Qe)){}var is=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ns extends rs{constructor(){super(),this.editorMode=!1,this.addStore(Wa)}render(){return this.key&&this.context?se`
1012
1016
  <span class="ft-i18n">
1013
1017
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1014
1018
  </span>
1015
- `:this.editorMode?"Select a context and a label key.":le}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}is.elementDefinitions={},is.styles=Ya,rs([zr()],is.prototype,"editorMode",void 0),rs([R()],is.prototype,"context",void 0),rs([R()],is.prototype,"key",void 0),rs([A([])],is.prototype,"args",void 0),rs([R()],is.prototype,"defaultMessage",void 0);class ns{static build(t){return new ns(t)}static fromGwt(t){return new ns(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)=>Ka.resolveMessage(this.name,e,...t)})}}W("ft-i18n")(is);const as=ns.build("designedSearchInput"),ss=Ct`
1019
+ `:this.editorMode?"Select a context and a label key.":le}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ns.elementDefinitions={},ns.styles=Xa,is([Tr()],ns.prototype,"editorMode",void 0),is([R()],ns.prototype,"context",void 0),is([R()],ns.prototype,"key",void 0),is([A([])],ns.prototype,"args",void 0),is([R()],ns.prototype,"defaultMessage",void 0);class as{static build(t){return new as(t)}static fromGwt(t){return new as(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)=>Pa.resolveMessage(this.name,e,...t)})}}W("ft-i18n")(ns);const ss=as.build("designedSearchInput"),cs=Ct`
1016
1020
  * {
1017
1021
  box-sizing: border-box;
1018
1022
  }
1019
1023
 
1020
1024
  .ft-search-input-suggestion {
1021
1025
  position: absolute;
1022
- z-index: ${ya.floatingZIndex};
1026
+ z-index: ${ga.floatingZIndex};
1023
1027
  top: calc(100% + 2px);
1024
1028
  left: -1px;
1025
1029
  right: -1px;
1026
- background: ${ya.colorSurface};
1027
- border: 1px solid ${ya.colorOutline};
1028
- border-radius: 0 0 ${ya.borderRadius} ${ya.borderRadius};
1029
- box-shadow: ${ya.elevation02};
1030
+ background: ${ga.colorSurface};
1031
+ border: 1px solid ${ga.colorOutline};
1032
+ border-radius: 0 0 ${ga.borderRadius} ${ga.borderRadius};
1033
+ box-shadow: ${ga.elevation02};
1030
1034
  }
1031
1035
 
1032
1036
  .ft-search-input-suggestion--suggestion {
@@ -1037,7 +1041,7 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
1037
1041
  padding: 8px;
1038
1042
  gap: 8px;
1039
1043
  cursor: pointer;
1040
- color: ${ya.colorOnSurface};
1044
+ color: ${ga.colorOnSurface};
1041
1045
  min-height: 44px;
1042
1046
  }
1043
1047
 
@@ -1059,11 +1063,11 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
1059
1063
  * @license
1060
1064
  * Copyright 2020 Google LLC
1061
1065
  * SPDX-License-Identifier: BSD-3-Clause
1062
- */,{D:cs}=bt,ls=()=>document.createComment(""),fs=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(ls(),i),n=r.insertBefore(ls(),i);o=new cs(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!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},ps=(t,e,o=t)=>(t._$AI(e,o),t),hs={},us=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}},ds=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},ys=jn(class extends Fn{constructor(t){if(super(t),t.type!==An)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,p=0,h=i.length-1,u=0,d=n.length-1;for(;p<=h&&u<=d;)if(null===i[p])p++;else if(null===i[h])h--;else if(s[p]===a[u])c[u]=ps(i[p],n[u]),p++,u++;else if(s[h]===a[d])c[d]=ps(i[h],n[d]),h--,d--;else if(s[p]===a[d])c[d]=ps(i[p],n[d]),fs(t,c[d+1],i[p]),p++,d--;else if(s[h]===a[u])c[u]=ps(i[h],n[u]),fs(t,i[p],i[h]),h--,u++;else if(void 0===l&&(l=ds(a,u,d),f=ds(s,p,h)),l.has(s[p]))if(l.has(s[h])){const e=f.get(a[u]),o=void 0!==e?i[e]:null;if(null===o){const e=fs(t,i[p]);ps(e,n[u]),c[u]=e}else c[u]=ps(o,n[u]),fs(t,i[p],o),i[e]=null;u++}else us(i[h]),h--;else us(i[p]),p++;for(;u<=d;){const e=fs(t,c[d+1]);ps(e,n[u]),c[u++]=e}for(;p<=h;){const t=i[p++];null!==t&&us(t)}return this.dt=a,((t,e=hs)=>{t._$AH=e})(t,c),ot}});var gs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class bs extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let ms=class extends Va{render(){return se`
1066
+ */,{D:ls}=bt,fs=()=>document.createComment(""),ps=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(fs(),i),n=r.insertBefore(fs(),i);o=new ls(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!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},hs=(t,e,o=t)=>(t._$AI(e,o),t),us={},ds=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}},ys=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},gs=Fn(class extends Kn{constructor(t){if(super(t),t.type!==jn)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,p=0,h=i.length-1,u=0,d=n.length-1;for(;p<=h&&u<=d;)if(null===i[p])p++;else if(null===i[h])h--;else if(s[p]===a[u])c[u]=hs(i[p],n[u]),p++,u++;else if(s[h]===a[d])c[d]=hs(i[h],n[d]),h--,d--;else if(s[p]===a[d])c[d]=hs(i[p],n[d]),ps(t,c[d+1],i[p]),p++,d--;else if(s[h]===a[u])c[u]=hs(i[h],n[u]),ps(t,i[p],i[h]),h--,u++;else if(void 0===l&&(l=ys(a,u,d),f=ys(s,p,h)),l.has(s[p]))if(l.has(s[h])){const e=f.get(a[u]),o=void 0!==e?i[e]:null;if(null===o){const e=ps(t,i[p]);hs(e,n[u]),c[u]=e}else c[u]=hs(o,n[u]),ps(t,i[p],o),i[e]=null;u++}else ds(i[h]),h--;else ds(i[p]),p++;for(;u<=d;){const e=ps(t,c[d+1]);hs(e,n[u]),c[u++]=e}for(;p<=h;){const t=i[p++];null!==t&&ds(t)}return this.dt=a,((t,e=us)=>{t._$AH=e})(t,c),ot}});var bs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ms extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let vs=class extends Ya{render(){return se`
1063
1067
  <div class="ft-search-input-suggestion ft-word-wrap"
1064
1068
  part="container"
1065
1069
  @keydown=${t=>this.onSuggestKeyDown(t)}>
1066
- ${ys(this.suggestResults||[],(t=>t.value),(t=>se`
1070
+ ${gs(this.suggestResults||[],(t=>t.value),(t=>se`
1067
1071
  <a href="#"
1068
1072
  part="suggestion"
1069
1073
  class="ft-search-input-suggestion--suggestion"
@@ -1075,16 +1079,16 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
1075
1079
  </a>
1076
1080
  `))}
1077
1081
  </div>
1078
- `}onSuggestKeyDown(t){var e,o,r,i,n,a;switch(t.key){case"ArrowUp":null===(r=null!==(o=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==o?o:this.getLastSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(a=null!==(n=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===a||a.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new bs(e))}getIcon(t){const e="DOCUMENT"===t.type?ia.file_format:ia.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ta.BOOK:ta.ARTICLE;break;case"DOCUMENT":o=function(t,e){var o,r,i,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,s]=((null!==(o=ra.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=oa.get(s))&&void 0!==r?r:oa.get(e))&&void 0!==i?i:oa.get(a))&&void 0!==n?n:ea.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ta.TOPICS}return se`
1082
+ `}onSuggestKeyDown(t){var e,o,r,i,n,a;switch(t.key){case"ArrowUp":null===(r=null!==(o=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==o?o:this.getLastSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(a=null!==(n=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===a||a.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new ms(e))}getIcon(t){const e="DOCUMENT"===t.type?na.file_format:na.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ea.BOOK:ea.ARTICLE;break;case"DOCUMENT":o=function(t,e){var o,r,i,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,s]=((null!==(o=ia.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=ra.get(s))&&void 0!==r?r:ra.get(e))&&void 0!==i?i:ra.get(a))&&void 0!==n?n:oa.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ea.TOPICS}return se`
1079
1083
  <ft-icon .variant="${e}" .value="${o}" part="suggestion-icon"></ft-icon>
1080
- `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};ms.elementDefinitions={"ft-ripple":Dn,"ft-typography":Gn,"ft-icon":aa},ms.styles=[ze,ss],gs([zr()],ms.prototype,"suggestResults",void 0),ms=gs([(t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})("ft-search-input-suggestion")],ms);var vs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xs extends(ts(Va)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(as)}render(){var t,e;let o={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return se`
1081
- <div class="${Kn(o)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
1084
+ `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};vs.elementDefinitions={"ft-ripple":Mn,"ft-typography":qn,"ft-icon":sa},vs.styles=[Te,cs],bs([Tr()],vs.prototype,"suggestResults",void 0),vs=bs([(t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})("ft-search-input-suggestion")],vs);var xs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Os extends(es(Ya)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(ss)}render(){var t,e;let o={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return se`
1085
+ <div class="${Pn(o)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
1082
1086
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
1083
1087
  <div class="ft-search-input--input-outline" part="input-outline">
1084
1088
  <input class="ft-search-input--input ft-typography--body2"
1085
1089
  part="input"
1086
1090
  type="text"
1087
- placeholder="${as.messages.placeholder()}"
1091
+ placeholder="${ss.messages.placeholder()}"
1088
1092
  .value="${this.liveQuery}"
1089
1093
  @keydown=${t=>this.onSearchBarKeyDown(t)}
1090
1094
  @keyup=${t=>this.onSearchBarKeyUp(t)}>
@@ -1100,7 +1104,7 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
1100
1104
  part="clear-query"
1101
1105
  icon="close"
1102
1106
  round dense
1103
- label="${as.messages.clearButton()}"
1107
+ label="${ss.messages.clearButton()}"
1104
1108
  @click=${()=>this.liveQuery=""}
1105
1109
  ></ft-button>
1106
1110
  <div class="ft-search-input--separator"></div>
@@ -1109,9 +1113,9 @@ class Jn extends Fn{constructor(t){if(super(t),this.et=rt,t.type!==An)throw Erro
1109
1113
  part="launch-search-in-input"
1110
1114
  icon="search"
1111
1115
  round dense
1112
- label="${as.messages.searchButton()}"
1116
+ label="${ss.messages.searchButton()}"
1113
1117
  @click=${()=>this.launchSearch()}
1114
1118
  ></ft-button>
1115
1119
  </div>
1116
1120
  </div>
1117
- `}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var e,o;"Enter"===t.key?(null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(o=this.stateManager)||void 0===o||o.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}xs.elementDefinitions={"ft-search-input-suggestion":ms,"ft-button":pa},xs.styles=[un,ga],vs([zr()],xs.prototype,"request",void 0),vs([zr()],xs.prototype,"liveQuery",void 0),vs([zr()],xs.prototype,"suggestResults",void 0),vs([U()],xs.prototype,"forceCloseSuggestion",void 0),vs([k(".ft-search-input--input")],xs.prototype,"input",void 0),vs([k("ft-search-input-suggestion")],xs.prototype,"suggestion",void 0),W("ft-search-input")(xs),t.FtSearchInput=xs,t.FtSearchInputCssVariables=ya,t.styles=ga}({});
1121
+ `}onSearchBarKeyDown(t){switch(t.key){case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":t.stopPropagation()}}onSearchBarKeyUp(t){var e,o;if("Backspace"===t.key&&t.stopPropagation(),"Enter"===t.key)null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0;else null===(o=this.stateManager)||void 0===o||o.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}Os.elementDefinitions={"ft-search-input-suggestion":vs,"ft-button":ha},Os.styles=[dn,ba],xs([Tr()],Os.prototype,"request",void 0),xs([Tr()],Os.prototype,"liveQuery",void 0),xs([Tr()],Os.prototype,"suggestResults",void 0),xs([U()],Os.prototype,"forceCloseSuggestion",void 0),xs([k(".ft-search-input--input")],Os.prototype,"input",void 0),xs([k("ft-search-input-suggestion")],Os.prototype,"suggestion",void 0),W("ft-search-input")(Os),t.FtSearchInput=Os,t.FtSearchInputCssVariables=ga,t.styles=ba}({});