@fluid-topics/ft-search-saved-searches 1.0.23

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.
@@ -0,0 +1,1026 @@
1
+ !function(t){
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ *
15
+ * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
+ */
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=i.call(n,t);h||(h=u(t),e.call(n,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)o.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=h(i)||window.customElements,r=n._getDefinition(e);return r?p(i,r):o.set(i,n),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,r){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o,r),i.call(this,o,t,r)}else n.call(this,o,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n),i.call(this,n,t,null)}else r.call(this,n)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class o{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),r=e.get(n)||[];this[+i]=t,r.push(t),e.set(n,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(Lr){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{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 i&&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,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const o=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function s(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):o(t,e)
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */}function a(t){return s({...t,state:!0})}
28
+ /**
29
+ * @license
30
+ * Copyright 2017 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */const l=({finisher:t,descriptor:e})=>(i,n)=>{var r;if(void 0===n){const n=null!==(r=i.originalKey)&&void 0!==r?r:i.key,o=null!=e?{kind:"method",placement:"prototype",key:n,descriptor:e(i.key)}:{...i,key:n};return null!=t&&(o.finisher=function(e){t(e,n)}),o}{const r=i.constructor;void 0!==e&&Object.defineProperty(i,n,e(n)),null==t||t(r,n)}}
33
+ /**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */;function c(t,e){return l({descriptor:i=>{const n={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var i,n;return void 0===this[e]&&(this[e]=null!==(n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==n?n:null),this[e]}}return n}})}
38
+ /**
39
+ * @license
40
+ * Copyright 2021 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */var h;const u=null!=(null===(h=window.HTMLSlotElement)||void 0===h?void 0:h.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function f(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,n,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(n=i;0!=n--;)if(!f(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!f(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;for(n=i;0!=n--;){var o=r[n];if(!f(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const d=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function p(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!f(t,e),...null!=e?e:{}})}
43
+ /**
44
+ * @license
45
+ * Copyright 2019 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */const v=window,b=v.ShadowRoot&&(void 0===v.ShadyCSS||v.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,y=Symbol(),g=new WeakMap;let m=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==y)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(b&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=g.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&g.set(e,t))}return t}toString(){return this.cssText}};const x=t=>new m("string"==typeof t?t:t+"",void 0,y),w=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new m(i,t,y)},$=(t,e)=>{b?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=v.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},S=b?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return x(e)})(t):t
48
+ /**
49
+ * @license
50
+ * Copyright 2017 Google LLC
51
+ * SPDX-License-Identifier: BSD-3-Clause
52
+ */;var O;const E=window,k=E.trustedTypes,C=k?k.emptyScript:"",j=E.reactiveElementPolyfillSupport,N={toAttribute(t,e){switch(e){case Boolean:t=t?C:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},R=(t,e)=>e!==t&&(e==e||t==t),A={attribute:!0,type:String,converter:N,reflect:!1,hasChanged:R};let M=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,e=A){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const r=this[t];this[e]=n,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||A}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(S(t))}else void 0!==t&&e.push(S(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return $(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=A){var n;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const o=(void 0!==(null===(n=i.converter)||void 0===n?void 0:n.toAttribute)?i.converter:N).toAttribute(e,i.type);this._$El=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var i;const n=this.constructor,r=n._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=n.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:N;this._$El=r,this[r]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||R)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
53
+ /**
54
+ * @license
55
+ * Copyright 2017 Google LLC
56
+ * SPDX-License-Identifier: BSD-3-Clause
57
+ */
58
+ var U;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:M}),(null!==(O=E.reactiveElementVersions)&&void 0!==O?O:E.reactiveElementVersions=[]).push("1.6.1");const P=window,I=P.trustedTypes,B=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,T="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,L="?"+F,_=`<${L}>`,z=document,D=()=>z.createComment(""),W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,K=Array.isArray,H=t=>K(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),Z="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,G=/>/g,J=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Y=/"/g,Q=/^(?:script|style|textarea|title)$/i,tt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),et=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),nt=new WeakMap,rt=z.createTreeWalker(z,129,null,!1),ot=(t,e)=>{const i=t.length-1,n=[];let r,o=2===e?"<svg>":"",s=q;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===q?"!--"===l[1]?s=V:void 0!==l[1]?s=G:void 0!==l[2]?(Q.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=J):void 0!==l[3]&&(s=J):s===J?">"===l[0]?(s=null!=r?r:q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?J:'"'===l[3]?Y:X):s===Y||s===X?s=J:s===V||s===G?s=q:(s=J,r=void 0);const u=s===J&&t[e+1].startsWith("/>")?" ":"";o+=s===q?i+_:c>=0?(n.push(a),i.slice(0,c)+T+i.slice(c)+F+u):i+F+(-2===c?(n.push(void 0),e):u)}const a=o+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==B?B.createHTML(a):a,n]};class st{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let r=0,o=0;const s=t.length-1,a=this.parts,[l,c]=ot(t,e);if(this.el=st.createElement(l,i),rt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=rt.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(T)||e.startsWith(F)){const i=c[o++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+T).split(F),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?ut:"?"===e[1]?dt:"@"===e[1]?pt:ht})}else a.push({type:6,index:r})}for(const e of t)n.removeAttribute(e)}if(Q.test(n.tagName)){const t=n.textContent.split(F),e=t.length-1;if(e>0){n.textContent=I?I.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],D()),rt.nextNode(),a.push({type:2,index:++r});n.append(t[e],D())}}}else if(8===n.nodeType)if(n.data===L)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=n.data.indexOf(F,t+1));)a.push({type:7,index:r}),t+=F.length-1}r++}}static createElement(t,e){const i=z.createElement("template");return i.innerHTML=t,i}}function at(t,e,i=t,n){var r,o,s,a;if(e===et)return e;let l=void 0!==n?null===(r=i._$Co)||void 0===r?void 0:r[n]:i._$Cl;const c=W(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=at(t,l._$AS(t,e.values),l,n)),e}let lt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:z).importNode(i,!0);rt.currentNode=r;let o=rt.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ct(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new vt(o,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(o=rt.nextNode(),s++)}return r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ct=class t{constructor(t,e,i,n){var r;this.type=2,this._$AH=it,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(r=null==n?void 0:n.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=at(this,t,e),W(t)?t===it||null==t||""===t?(this._$AH!==it&&this._$AR(),this._$AH=it):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):H(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==it&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(z.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=st.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new lt(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=nt.get(t.strings);return void 0===e&&nt.set(t.strings,e=new st(t)),e}T(e){K(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,r=0;for(const o of e)r===i.length?i.push(n=new t(this.k(D()),this.k(D()),this,this.options)):n=i[r],n._$AI(o),r++;r<i.length&&(this._$AR(n&&n._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ht=class{constructor(t,e,i,n,r){this.type=1,this._$AH=it,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=it}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const r=this.strings;let o=!1;if(void 0===r)t=at(this,t,e,0),o=!W(t)||t!==this._$AH&&t!==et,o&&(this._$AH=t);else{const n=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=at(this,n[i+s],e,s),a===et&&(a=this._$AH[s]),o||(o=!W(a)||a!==this._$AH[s]),a===it?t=it:t!==it&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}o&&!n&&this.j(t)}j(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ut=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===it?void 0:t}};const ft=I?I.emptyScript:"";let dt=class extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==it?this.element.setAttribute(this.name,ft):this.element.removeAttribute(this.name)}},pt=class extends ht{constructor(t,e,i,n,r){super(t,e,i,n,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=at(this,t,e,0))&&void 0!==i?i:it)===et)return;const n=this._$AH,r=t===it&&n!==it||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==it&&(n===it||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){at(this,t)}};const bt={O:T,P:F,A:L,C:1,M:ot,L:lt,D:H,R:at,I:ct,V:ht,H:dt,N:pt,U:ut,F:vt},yt=P.litHtmlPolyfillSupport;null==yt||yt(st,ct),(null!==(U=P.litHtmlVersions)&&void 0!==U?U:P.litHtmlVersions=[]).push("2.7.3");
59
+ /**
60
+ * @license
61
+ * Copyright 2017 Google LLC
62
+ * SPDX-License-Identifier: BSD-3-Clause
63
+ */
64
+ var gt,mt;let xt=class extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,r;const o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new ct(e.insertBefore(D(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return et}};xt.finalized=!0,xt._$litElement$=!0,null===(gt=globalThis.litElementHydrateSupport)||void 0===gt||gt.call(globalThis,{LitElement:xt});const wt=globalThis.litElementPolyfillSupport;null==wt||wt({LitElement:xt}),(null!==(mt=globalThis.litElementVersions)&&void 0!==mt?mt:globalThis.litElementVersions=[]).push("3.3.2");class $t{static create(t,e,i){let n=t=>x(null!=t?t:i),r=w`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>w`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),r=w`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>w`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),n=w`var(${x(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>w`var(${x(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function St(t,e){return x(`${t.name}: ${e}`)}const Ot={colorPrimary:$t.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:$t.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:$t.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:$t.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:$t.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:$t.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:$t.create("--ft-color-error","COLOR","#B00020"),colorOutline:$t.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:$t.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:$t.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:$t.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:$t.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:$t.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:$t.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:$t.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:$t.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:$t.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:$t.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:$t.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:$t.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:$t.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:$t.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:$t.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:$t.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:$t.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:$t.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:$t.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:$t.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:$t.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:$t.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:$t.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:$t.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:$t.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:$t.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:$t.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:$t.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:$t.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:$t.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:$t.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:$t.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:$t.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:$t.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:$t.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:$t.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:$t.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:$t.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:$t.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:$t.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:$t.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:$t.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:$t.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:$t.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:$t.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:$t.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:$t.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:$t.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:$t.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:$t.create("--ft-border-radius-XL","SIZE","16px"),titleFont:$t.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:$t.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:$t.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:$t.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Et extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return $(i,t.elementStyles),i}}var kt,Ct=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const jt=Symbol("constructorPrototype"),Nt=Symbol("constructorName"),Rt=Symbol("exportpartsDebouncer");class At extends Et{constructor(){super(),this[kt]=new r(5),this[Nt]=this.constructor.name,this[jt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Nt]&&Object.setPrototypeOf(this,this[jt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).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[Rt].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,i,n,r,o,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==r?r:[],i=null!==(s=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}kt=Rt,Ct([s()],At.prototype,"exportpartsPrefix",void 0),Ct([p([])],At.prototype,"exportpartsPrefixes",void 0),Ct([s()],At.prototype,"customStylesheet",void 0);const Mt=w`
65
+ .ft-no-text-select {
66
+ -webkit-touch-callout: none;
67
+ -webkit-user-select: none;
68
+ -khtml-user-select: none;
69
+ -moz-user-select: none;
70
+ -ms-user-select: none;
71
+ user-select: none;
72
+ }
73
+ `;w`
74
+ .ft-word-wrap {
75
+ white-space: normal;
76
+ word-wrap: break-word;
77
+ -ms-word-break: break-all;
78
+ word-break: break-all;
79
+ word-break: break-word;
80
+ -ms-hyphens: auto;
81
+ -moz-hyphens: auto;
82
+ -webkit-hyphens: auto;
83
+ hyphens: auto
84
+ }
85
+ `;const Ut=w`
86
+ .ft-safari-ellipsis-fix {
87
+ margin-right: 0;
88
+
89
+ }
90
+
91
+ .ft-safari-ellipsis-fix:after {
92
+ content: "\\0000a0";
93
+ display: inline-block;
94
+ width: 0;
95
+ }
96
+ `;class Pt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let r=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;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 i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function It(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Bt(t){return!!t&&!!t[$e]}function Tt(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 i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Se}(t)||Array.isArray(t)||!!t[we]||!!(null===(e=t.constructor)||void 0===e?void 0:e[we])||Wt(t)||Kt(t))}function Ft(t,e,i){void 0===i&&(i=!1),0===Lt(t)?(i?Object.keys:Oe)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Lt(t){var e=t[$e];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Wt(t)?2:Kt(t)?3:0}function _t(t,e){return 2===Lt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function zt(t,e,i){var n=Lt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Dt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Wt(t){return ye&&t instanceof Map}function Kt(t){return ge&&t instanceof Set}function Ht(t){return t.o||t.t}function Zt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ee(t);delete e[$e];for(var i=Oe(e),n=0;n<i.length;n++){var r=i[n],o=e[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function qt(t,e){return void 0===e&&(e=!1),Gt(t)||Bt(t)||!Tt(t)||(Lt(t)>1&&(t.set=t.add=t.clear=t.delete=Vt),Object.freeze(t),e&&Ft(t,(function(t,e){return qt(e,!0)}),!0)),t}function Vt(){It(2)}function Gt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Jt(t){var e=ke[t];return e||It(18,t),e}function Xt(){return ve}function Yt(t,e){e&&(Jt("Patches"),t.u=[],t.s=[],t.v=e)}function Qt(t){te(t),t.p.forEach(ie),t.p=null}function te(t){t===ve&&(ve=t.l)}function ee(t){return ve={p:[],l:ve,h:t,m:!0,_:0}}function ie(t){var e=t[$e];0===e.i||1===e.i?e.j():e.g=!0}function ne(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||Jt("ES5").S(e,t,n),n?(i[$e].P&&(Qt(e),It(4)),Tt(t)&&(t=re(e,t),e.l||se(e,t)),e.u&&Jt("Patches").M(i[$e].t,t,e.u,e.s)):t=re(e,i,[]),Qt(e),e.u&&e.v(e.u,e.s),t!==xe?t:void 0}function re(t,e,i){if(Gt(e))return e;var n=e[$e];if(!n)return Ft(e,(function(r,o){return oe(t,n,e,r,o,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return se(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var r=4===n.i||5===n.i?n.o=Zt(n.k):n.o,o=r,s=!1;3===n.i&&(o=new Set(r),r.clear(),s=!0),Ft(o,(function(e,o){return oe(t,n,r,e,o,i,s)})),se(t,r,!1),i&&t.u&&Jt("Patches").N(n,i,t.u,t.s)}return n.o}function oe(t,e,i,n,r,o,s){if(Bt(r)){var a=re(t,r,o&&e&&3!==e.i&&!_t(e.R,n)?o.concat(n):void 0);if(zt(i,n,a),!Bt(a))return;t.m=!1}else s&&i.add(r);if(Tt(r)&&!Gt(r)){if(!t.h.D&&t._<1)return;re(t,r),e&&e.A.l||se(t,r)}}function se(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&qt(e,i)}function ae(t,e){var i=t[$e];return(i?Ht(i):t)[e]}function le(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ce(t){t.P||(t.P=!0,t.l&&ce(t.l))}function he(t){t.o||(t.o=Zt(t.t))}function ue(t,e,i){var n=Wt(e)?Jt("MapSet").F(e,i):Kt(e)?Jt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Xt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=n,o=Ce;i&&(r=[n],o=je);var s=Proxy.revocable(r,o),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Jt("ES5").J(e,i);return(i?i.A:Xt()).p.push(n),n}function fe(t){return Bt(t)||It(22,t),function t(e){if(!Tt(e))return e;var i,n=e[$e],r=Lt(e);if(n){if(!n.P&&(n.i<4||!Jt("ES5").K(n)))return n.t;n.I=!0,i=de(e,r),n.I=!1}else i=de(e,r);return Ft(i,(function(e,r){n&&function(t,e){return 2===Lt(t)?t.get(e):t[e]}(n.t,e)===r||zt(i,e,t(r))})),3===r?new Set(i):i}(t)}function de(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zt(t)}var pe,ve,be="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ye="undefined"!=typeof Map,ge="undefined"!=typeof Set,me="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,xe=be?Symbol.for("immer-nothing"):((pe={})["immer-nothing"]=!0,pe),we=be?Symbol.for("immer-draftable"):"__$immer_draftable",$e=be?Symbol.for("immer-state"):"__$immer_state",Se=""+Object.prototype.constructor,Oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ee=Object.getOwnPropertyDescriptors||function(t){var e={};return Oe(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},ke={},Ce={get:function(t,e){if(e===$e)return t;var i=Ht(t);if(!_t(i,e))return function(t,e,i){var n,r=le(e,i);return r?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Tt(n)?n:n===ae(t.t,e)?(he(t),t.o[e]=ue(t.A.h,n,t)):n},has:function(t,e){return e in Ht(t)},ownKeys:function(t){return Reflect.ownKeys(Ht(t))},set:function(t,e,i){var n=le(Ht(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var r=ae(Ht(t),e),o=null==r?void 0:r[$e];if(o&&o.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Dt(i,r)&&(void 0!==i||_t(t.t,e)))return!0;he(t),ce(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ae(t.t,e)||e in t.t?(t.R[e]=!1,he(t),ce(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Ht(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){It(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){It(12)}},je={};Ft(Ce,(function(t,e){je[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),je.deleteProperty=function(t,e){return je.set.call(this,t,e,void 0)},je.set=function(t,e,i){return Ce.set.call(this,t[0],e,i,t[0])};var Ne=function(){function t(t){var e=this;this.O=me,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var o=e;return function(t){var e=this;void 0===t&&(t=r);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return o.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&It(6),void 0!==n&&"function"!=typeof n&&It(7),Tt(t)){var a=ee(e),l=ue(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Qt(a):te(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Yt(a,n),ne(t,a)}),(function(t){throw Qt(a),t})):(Yt(a,n),ne(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===xe&&(s=void 0),e.D&&qt(s,!0),n){var h=[],u=[];Jt("Patches").M(t,s,h,u),n(h,u)}return s}It(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var n,r,o=e.produce(t,i,(function(t,e){n=t,r=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,n,r]})):[o,n,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Tt(t)||It(8),Bt(t)&&(t=fe(t));var e=ee(this),i=ue(this,t,void 0);return i[$e].C=!0,te(e),i},e.finishDraft=function(t,e){var i=(t&&t[$e]).A;return Yt(i,e),ne(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!me&&It(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var r=Jt("Patches").$;return Bt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Re=new Ne,Ae=Re.produce;function Me(t){return Me="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},Me(t)}function Ue(t){var e=function(t,e){if("object"!==Me(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Me(e)?e:String(e)}function Pe(t,e,i){return(e=Ue(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ie(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Be(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(i),!0).forEach((function(e){Pe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ie(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Te(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. "}Re.produceWithPatches.bind(Re),Re.setAutoFreeze.bind(Re),Re.setUseProxies.bind(Re),Re.applyPatches.bind(Re),Re.createDraft.bind(Re),Re.finishDraft.bind(Re);var Fe="function"==typeof Symbol&&Symbol.observable||"@@observable",Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},_e={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function ze(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Te(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Te(1));return i(ze)(t,e)}if("function"!=typeof t)throw new Error(Te(2));var r=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(Te(3));return o}function u(t){if("function"!=typeof t)throw new Error(Te(4));if(l)throw new Error(Te(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Te(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(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(Te(7));if(void 0===t.type)throw new Error(Te(8));if(l)throw new Error(Te(9));try{l=!0,o=r(o,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:_e.INIT}),(n={dispatch:f,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Te(10));r=t,f({type:_e.REPLACE})}})[Fe]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Te(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Fe]=function(){return this},t},n}function De(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var r=e[n];"function"==typeof t[r]&&(i[r]=t[r])}var o,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:_e.INIT}))throw new Error(Te(12));if(void 0===i(void 0,{type:_e.PROBE_UNKNOWN_ACTION()}))throw new Error(Te(13))}))}(i)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var n=!1,r={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Te(14));r[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?r:t}}function We(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];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 Ke(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Te(15))},r={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=e.map((function(t){return t(r)}));return n=We.apply(void 0,o)(i.dispatch),Be(Be({},i),{},{dispatch:n})}}}function He(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,n,t):e(r)}}}}var Ze=He();Ze.withExtraArgument=He;var qe,Ve=Ze,Ge=(qe=function(t,e){return qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},qe(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 i(){this.constructor=t}qe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Je=function(t,e){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Xe=function(t,e){for(var i=0,n=e.length,r=t.length;i<n;i++,r++)t[r]=e[i];return t},Ye=Object.defineProperty,Qe=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},oi=function(t,e){for(var i in e||(e={}))ii.call(e,i)&&ri(t,i,e[i]);if(ei)for(var n=0,r=ei(e);n<r.length;n++){i=r[n];ni.call(e,i)&&ri(t,i,e[i])}return t},si=function(t,e){return Qe(t,ti(e))},ai="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?We:We.apply(null,arguments)};var li=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ge(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Xe([void 0],t[0].concat(this)))):new(e.bind.apply(e,Xe([void 0],t.concat(this))))},e}(Array),ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ge(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Xe([void 0],t[0].concat(this)))):new(e.bind.apply(e,Xe([void 0],t.concat(this))))},e}(Array);function hi(t){return Tt(t)?Ae(t,(function(){})):t}function ui(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new li;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Ve.withExtraArgument(i.extraArgument)):n.push(Ve));return n}(t)}}function fi(t){var e,i=ui(),n=t||{},r=n.reducer,o=void 0===r?void 0:r,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,h=n.preloadedState,u=void 0===h?void 0:h,f=n.enhancers,d=void 0===f?void 0:f;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(o))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=De(o)}var p=a;"function"==typeof p&&(p=p(i));var v=Ke.apply(void 0,p),b=We;c&&(b=ai(oi({trace:!1},"object"==typeof c&&c)));var y=new ci(v),g=y;return Array.isArray(d)?g=Xe([v],d):"function"==typeof d&&(g=d(y)),ze(e,u,b.apply(void 0,g))}function di(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return oi(oi({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function pi(t){var e,i={},n=[],r={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,r},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,n,e]}function vi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:hi(t.initialState),r=t.reducers||{},o=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?pi(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,o=e[1],s=void 0===o?[]:o,l=e[2],c=void 0===l?void 0:l,h=oi(oi({},r),a);return function(t,e,i,n){void 0===i&&(i=[]);var r,o="function"==typeof e?pi(e):[e,i,n],s=o[0],a=o[1],l=o[2];if(function(t){return"function"==typeof t}(t))r=function(){return hi(t())};else{var c=hi(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var i=Xe([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Bt(t))return void 0===(n=i(t,e))?t:n;if(Tt(t))return Ae(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return h.getInitialState=r,h}(n,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,n=s;i<n.length;i++){var r=n[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return o.forEach((function(t){var i,n,o=r[t],c=e+"/"+t;"reducer"in o?(i=o.reducer,n=o.prepare):i=o,s[t]=i,a[c]=i,l[t]=n?di(c,n):di(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var bi=["name","message","stack","code"],yi=function(t,e){this.payload=t,this.meta=e},gi=function(t,e){this.payload=t,this.meta=e},mi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=bi;i<n.length;i++){var r=n[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function xi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=di(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:si(oi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=di(t+"/pending",(function(t,e,i){return{payload:void 0,meta:si(oi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),o=di(t+"/rejected",(function(t,e,n,r,o){return{payload:r,error:(i&&i.serializeError||mi)(t||"Rejected"),meta:si(oi({},o||{}),{arg:n,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var h,u=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),f=new s;function d(t){h=t,f.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return Je(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:f.signal,abort:d,rejectWithValue:function(t,e){return new yi(t,e)},fulfillWithValue:function(t,e){return new gi(t,e)}})).then((function(e){if(e instanceof yi)throw e;return e instanceof gi?n(e.payload,u,t,e.meta):n(e,u,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof yi?o(null,u,t,g.payload,g.meta):o(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&o.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{r(v.next(t))}catch(t){e(t)}},n=function(t){try{r(v.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};r((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:u,arg:t,unwrap:function(){return p.then(xi)}})}}),{pending:r,rejected:o,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var wi,$i,Si="listenerMiddleware";di(Si+"/add"),di(Si+"/removeAll"),di(Si+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[$e];return Ce.get(e,t)},set:function(e){var i=this[$e];Ce.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][$e];if(!r.P)switch(r.i){case 5:n(r)&&ce(r);break;case 4:i(r)&&ce(r)}}}function i(t){for(var e=t.t,i=t.k,n=Oe(i),r=n.length-1;r>=0;r--){var o=n[r];if(o!==$e){var s=e[o];if(void 0===s&&!_t(e,o))return!0;var a=i[o],l=a&&a[$e];if(l?l.t!==s:!Dt(a,s))return!0}}var c=!!e[$e];return n.length!==Oe(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var r={};!function(t,e){ke[t]||(ke[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),r=function(e,i){if(e){for(var n=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(n,""+r,t(r,!0));return n}var o=Ee(i);delete o[$e];for(var s=Oe(o),a=0;a<s.length;a++){var l=s[a];o[l]=t(l,e||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(i),o)}(n,e),o={i:n?5:4,A:i?i.A:Xt(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,$e,{value:o,writable:!0}),r},S:function(t,i,r){r?Bt(i)&&i[$e].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[$e];if(i){var r=i.t,o=i.k,s=i.R,a=i.i;if(4===a)Ft(o,(function(e){e!==$e&&(void 0!==r[e]||_t(r,e)?s[e]||t(o[e]):(s[e]=!0,ce(i)))})),Ft(r,(function(t){void 0!==o[t]||_t(o,t)||(s[t]=!1,ce(i))}));else if(5===a){if(n(i)&&(ce(i),s.length=!0),o.length<r.length)for(var l=o.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<o.length;c++)s[c]=!0;for(var h=Math.min(o.length,r.length),u=0;u<h;u++)o.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(o[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const Oi=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const r={hasChanged:(t,e)=>!f(t,e),attribute:!1,...e};s(r)(t,i);const o=t;o.reduxProperties=o.reduxProperties||new Map,o.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},Ei=Symbol("internalStoresUnsubscribers"),ki=Symbol("internalStores");class Ci extends At{constructor(){super(...arguments),this[wi]=new Map,this[$i]=new Map}getUnnamedStore(){if(this[ki].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ki].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ki].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:ji(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ki].delete(e)}setupStore(t,e){this[ki].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ki].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[Ei].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Ei]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[Ei].has(t)&&this[Ei].get(t)(),this[Ei].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function ji(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}wi=Ei,$i=ki;class Ni{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(ji(n))return n;if(null==i)return;const r=vi(i),o=fi({reducer:r.reducer});return window.ftReduxStores[i.name]=new Ni(r,o)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}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()}}var Ri,Ai,Mi;const Ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mi=null===(Ai=null===(Ri=window.safari)||void 0===Ri?void 0:Ri.pushNotification)||void 0===Ai?void 0:Ai.toString())&&void 0!==Mi?Mi:""),Pi=1,Ii=2,Bi=t=>(...e)=>({_$litDirective$:t,values:e});
97
+ /**
98
+ * @license
99
+ * Copyright 2017 Google LLC
100
+ * SPDX-License-Identifier: BSD-3-Clause
101
+ */class Ti{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
102
+ /**
103
+ * @license
104
+ * Copyright 2018 Google LLC
105
+ * SPDX-License-Identifier: BSD-3-Clause
106
+ */const Fi=Bi(class extends Ti{constructor(t){var e;if(super(t),t.type!==Pi||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return et}}),Li=$t.extend("--ft-ripple-color",Ot.colorContent),_i={color:Li,backgroundColor:$t.extend("--ft-ripple-background-color",Li),opacityContentOnSurfacePressed:$t.external(Ot.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(Ot.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(Ot.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(Ot.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},zi=$t.extend("--ft-ripple-color",Ot.colorPrimary),Di=zi,Wi=$t.extend("--ft-ripple-background-color",zi),Ki=$t.extend("--ft-ripple-color",Ot.colorSecondary),Hi=Ki,Zi=$t.extend("--ft-ripple-background-color",Ki),qi=w`
107
+ :host {
108
+ display: contents;
109
+ }
110
+
111
+ .ft-ripple {
112
+ position: absolute;
113
+ inset: 0;
114
+ pointer-events: none;
115
+ }
116
+
117
+ .ft-ripple:not(.ft-ripple--unbounded) {
118
+ overflow: hidden;
119
+ border-radius: ${_i.borderRadius};
120
+ }
121
+
122
+ .ft-ripple .ft-ripple--background,
123
+ .ft-ripple .ft-ripple--effect {
124
+ position: absolute;
125
+ opacity: 0;
126
+ }
127
+
128
+ .ft-ripple .ft-ripple--background {
129
+ background-color: ${_i.backgroundColor};
130
+ }
131
+
132
+ .ft-ripple .ft-ripple--effect {
133
+ background-color: ${_i.color};
134
+ }
135
+
136
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
137
+ background-color: ${Zi};
138
+ }
139
+
140
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
141
+ background-color: ${Hi};
142
+ }
143
+
144
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
145
+ background-color: ${Wi};
146
+ }
147
+
148
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
149
+ background-color: ${Di};
150
+ }
151
+
152
+ .ft-ripple .ft-ripple--background {
153
+ top: 0;
154
+ left: 0;
155
+ height: 100%;
156
+ width: 100%;
157
+ transition: opacity 75ms linear;
158
+ }
159
+
160
+ .ft-ripple .ft-ripple--effect,
161
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
162
+ border-radius: 50%;
163
+ }
164
+
165
+ .ft-ripple .ft-ripple--effect {
166
+ transform: translate(-50%, -50%) scale(0.15);
167
+ transition: transform 300ms ease, opacity 75ms linear;
168
+ }
169
+
170
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
171
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
172
+ left: 50%;
173
+ top: 50%;
174
+ }
175
+
176
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
177
+ transform: translate(-50%, -50%);
178
+ }
179
+
180
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
181
+ opacity: ${_i.opacityContentOnSurfaceHover};
182
+ }
183
+
184
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
185
+ opacity: ${_i.opacityContentOnSurfaceSelected};
186
+ }
187
+
188
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
189
+ opacity: ${_i.opacityContentOnSurfaceFocused};
190
+ }
191
+
192
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
193
+ opacity: ${_i.opacityContentOnSurfacePressed};
194
+ transform: translate(-50%, -50%) scale(1);
195
+ }
196
+ `;var Vi=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Gi extends At{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,i;let{x:n,y:r}=this.getCoordinates(t),o=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=n?n-o.x:o.width/2),this.originY=Math.round(null!=r?r-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return tt`
197
+ <style>
198
+ .ft-ripple .ft-ripple--effect,
199
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
200
+ width: ${this.rippleSize}px;
201
+ height: ${this.rippleSize}px;
202
+ }
203
+
204
+ .ft-ripple .ft-ripple--effect {
205
+ left: ${this.originX}px;
206
+ top: ${this.originY}px;
207
+ }
208
+ </style>
209
+ <div class="${Fi(t)}">
210
+ <div class="ft-ripple--background"></div>
211
+ <div class="ft-ripple--effect"></div>
212
+ </div>
213
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}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)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let n,r;return null!=e.x?({x:n,y:r}=e):null!=i.touches&&(n=i.touches[0].clientX,r=i.touches[0].clientY),{x:n,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Gi.elementDefinitions={},Gi.styles=qi,Vi([s({type:Boolean})],Gi.prototype,"primary",void 0),Vi([s({type:Boolean})],Gi.prototype,"secondary",void 0),Vi([s({type:Boolean})],Gi.prototype,"unbounded",void 0),Vi([s({type:Boolean})],Gi.prototype,"activated",void 0),Vi([s({type:Boolean})],Gi.prototype,"selected",void 0),Vi([s({type:Boolean})],Gi.prototype,"disabled",void 0),Vi([a()],Gi.prototype,"hovered",void 0),Vi([a()],Gi.prototype,"focused",void 0),Vi([a()],Gi.prototype,"pressed",void 0),Vi([a()],Gi.prototype,"rippling",void 0),Vi([a()],Gi.prototype,"rippleSize",void 0),Vi([a()],Gi.prototype,"originX",void 0),Vi([a()],Gi.prototype,"originY",void 0),Vi([c(".ft-ripple")],Gi.prototype,"ripple",void 0),Vi([c(".ft-ripple--effect")],Gi.prototype,"rippleEffect",void 0),d("ft-ripple")(Gi);
214
+ /**
215
+ * @license
216
+ * Copyright 2020 Google LLC
217
+ * SPDX-License-Identifier: BSD-3-Clause
218
+ */
219
+ const Ji=Symbol.for(""),Xi=t=>{if((null==t?void 0:t.r)===Ji)return null==t?void 0:t._$litStatic$},Yi=t=>({_$litStatic$:t,r:Ji}),Qi=new Map,tn=(t=>(e,...i)=>{const n=i.length;let r,o;const s=[],a=[];let l,c=0,h=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(o=i[c],r=Xi(o));)l+=r+e[++c],h=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(e[n]),h){const t=s.join("$$lit$$");void 0===(e=Qi.get(t))&&(s.raw=s,Qi.set(t,e=s)),i=a}return t(e,...i)})(tt);var en;!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"}(en||(en={}));const nn=$t.extend("--ft-typography-font-family",Ot.titleFont),rn=$t.extend("--ft-typography-font-family",Ot.contentFont),on={fontFamily:rn,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},sn=$t.extend("--ft-typography-title-font-family",nn),an=$t.extend("--ft-typography-title-font-size",on.fontSize,"20px"),ln=$t.extend("--ft-typography-title-font-weight",on.fontWeight,"normal"),cn=$t.extend("--ft-typography-title-letter-spacing",on.letterSpacing,"0.15px"),hn=$t.extend("--ft-typography-title-line-height",on.lineHeight,"1.2"),un=$t.extend("--ft-typography-title-text-transform",on.textTransform,"inherit"),fn=$t.extend("--ft-typography-title-dense-font-family",nn),dn=$t.extend("--ft-typography-title-dense-font-size",on.fontSize,"14px"),pn=$t.extend("--ft-typography-title-dense-font-weight",on.fontWeight,"normal"),vn=$t.extend("--ft-typography-title-dense-letter-spacing",on.letterSpacing,"0.105px"),bn=$t.extend("--ft-typography-title-dense-line-height",on.lineHeight,"1.7"),yn=$t.extend("--ft-typography-title-dense-text-transform",on.textTransform,"inherit"),gn=$t.extend("--ft-typography-subtitle1-font-family",rn),mn=$t.extend("--ft-typography-subtitle1-font-size",on.fontSize,"16px"),xn=$t.extend("--ft-typography-subtitle1-font-weight",on.fontWeight,"600"),wn=$t.extend("--ft-typography-subtitle1-letter-spacing",on.letterSpacing,"0.144px"),$n=$t.extend("--ft-typography-subtitle1-line-height",on.lineHeight,"1.5"),Sn=$t.extend("--ft-typography-subtitle1-text-transform",on.textTransform,"inherit"),On=$t.extend("--ft-typography-subtitle2-font-family",rn),En=$t.extend("--ft-typography-subtitle2-font-size",on.fontSize,"14px"),kn=$t.extend("--ft-typography-subtitle2-font-weight",on.fontWeight,"normal"),Cn=$t.extend("--ft-typography-subtitle2-letter-spacing",on.letterSpacing,"0.098px"),jn=$t.extend("--ft-typography-subtitle2-line-height",on.lineHeight,"1.7"),Nn=$t.extend("--ft-typography-subtitle2-text-transform",on.textTransform,"inherit"),Rn=$t.extend("--ft-typography-body1-font-family",rn),An=$t.extend("--ft-typography-body1-font-size",on.fontSize,"16px"),Mn=$t.extend("--ft-typography-body1-font-weight",on.fontWeight,"normal"),Un=$t.extend("--ft-typography-body1-letter-spacing",on.letterSpacing,"0.496px"),Pn=$t.extend("--ft-typography-body1-line-height",on.lineHeight,"1.5"),In=$t.extend("--ft-typography-body1-text-transform",on.textTransform,"inherit"),Bn={fontFamily:$t.extend("--ft-typography-body2-font-family",rn),fontSize:$t.extend("--ft-typography-body2-font-size",on.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-body2-font-weight",on.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body2-letter-spacing",on.letterSpacing,"0.252px"),lineHeight:$t.extend("--ft-typography-body2-line-height",on.lineHeight,"1.4"),textTransform:$t.extend("--ft-typography-body2-text-transform",on.textTransform,"inherit")},Tn=$t.extend("--ft-typography-caption-font-family",rn),Fn=$t.extend("--ft-typography-caption-font-size",on.fontSize,"12px"),Ln=$t.extend("--ft-typography-caption-font-weight",on.fontWeight,"normal"),_n=$t.extend("--ft-typography-caption-letter-spacing",on.letterSpacing,"0.396px"),zn=$t.extend("--ft-typography-caption-line-height",on.lineHeight,"1.33"),Dn=$t.extend("--ft-typography-caption-text-transform",on.textTransform,"inherit"),Wn=$t.extend("--ft-typography-breadcrumb-font-family",rn),Kn=$t.extend("--ft-typography-breadcrumb-font-size",on.fontSize,"10px"),Hn=$t.extend("--ft-typography-breadcrumb-font-weight",on.fontWeight,"normal"),Zn=$t.extend("--ft-typography-breadcrumb-letter-spacing",on.letterSpacing,"0.33px"),qn=$t.extend("--ft-typography-breadcrumb-line-height",on.lineHeight,"1.6"),Vn=$t.extend("--ft-typography-breadcrumb-text-transform",on.textTransform,"inherit"),Gn=$t.extend("--ft-typography-overline-font-family",rn),Jn=$t.extend("--ft-typography-overline-font-size",on.fontSize,"10px"),Xn=$t.extend("--ft-typography-overline-font-weight",on.fontWeight,"normal"),Yn=$t.extend("--ft-typography-overline-letter-spacing",on.letterSpacing,"1.5px"),Qn=$t.extend("--ft-typography-overline-line-height",on.lineHeight,"1.6"),tr=$t.extend("--ft-typography-overline-text-transform",on.textTransform,"uppercase"),er={fontFamily:$t.extend("--ft-typography-button-font-family",rn),fontSize:$t.extend("--ft-typography-button-font-size",on.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",on.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",on.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",on.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",on.textTransform,"uppercase")},ir=w`
220
+ .ft-typography--title {
221
+ font-family: ${sn};
222
+ font-size: ${an};
223
+ font-weight: ${ln};
224
+ letter-spacing: ${cn};
225
+ line-height: ${hn};
226
+ text-transform: ${un};
227
+ }
228
+ `,nr=w`
229
+ .ft-typography--title-dense {
230
+ font-family: ${fn};
231
+ font-size: ${dn};
232
+ font-weight: ${pn};
233
+ letter-spacing: ${vn};
234
+ line-height: ${bn};
235
+ text-transform: ${yn};
236
+ }
237
+ `,rr=w`
238
+ .ft-typography--subtitle1 {
239
+ font-family: ${gn};
240
+ font-size: ${mn};
241
+ font-weight: ${xn};
242
+ letter-spacing: ${wn};
243
+ line-height: ${$n};
244
+ text-transform: ${Sn};
245
+ }
246
+ `,or=w`
247
+ .ft-typography--subtitle2 {
248
+ font-family: ${On};
249
+ font-size: ${En};
250
+ font-weight: ${kn};
251
+ letter-spacing: ${Cn};
252
+ line-height: ${jn};
253
+ text-transform: ${Nn};
254
+ }
255
+
256
+ `,sr=w`
257
+ .ft-typography--body1 {
258
+ font-family: ${Rn};
259
+ font-size: ${An};
260
+ font-weight: ${Mn};
261
+ letter-spacing: ${Un};
262
+ line-height: ${Pn};
263
+ text-transform: ${In};
264
+ }
265
+ `,ar=w`
266
+ .ft-typography--body2 {
267
+ font-family: ${Bn.fontFamily};
268
+ font-size: ${Bn.fontSize};
269
+ font-weight: ${Bn.fontWeight};
270
+ letter-spacing: ${Bn.letterSpacing};
271
+ line-height: ${Bn.lineHeight};
272
+ text-transform: ${Bn.textTransform};
273
+ }
274
+ `,lr=w`
275
+ .ft-typography--caption {
276
+ font-family: ${Tn};
277
+ font-size: ${Fn};
278
+ font-weight: ${Ln};
279
+ letter-spacing: ${_n};
280
+ line-height: ${zn};
281
+ text-transform: ${Dn};
282
+ }
283
+ `,cr=w`
284
+ .ft-typography--breadcrumb {
285
+ font-family: ${Wn};
286
+ font-size: ${Kn};
287
+ font-weight: ${Hn};
288
+ letter-spacing: ${Zn};
289
+ line-height: ${qn};
290
+ text-transform: ${Vn};
291
+ }
292
+ `,hr=w`
293
+ .ft-typography--overline {
294
+ font-family: ${Gn};
295
+ font-size: ${Jn};
296
+ font-weight: ${Xn};
297
+ letter-spacing: ${Yn};
298
+ line-height: ${Qn};
299
+ text-transform: ${tr};
300
+ }
301
+ `,ur=w`
302
+ .ft-typography--button {
303
+ font-family: ${er.fontFamily};
304
+ font-size: ${er.fontSize};
305
+ font-weight: ${er.fontWeight};
306
+ letter-spacing: ${er.letterSpacing};
307
+ line-height: ${er.lineHeight};
308
+ text-transform: ${er.textTransform};
309
+ }
310
+ `,fr=w`
311
+ .ft-typography {
312
+ vertical-align: inherit;
313
+ }
314
+ `;var dr=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class pr extends At{constructor(){super(...arguments),this.variant=en.body1}render(){return this.element?tn`
315
+ <${Yi(this.element)}
316
+ class="ft-typography ft-typography--${this.variant}">
317
+ <slot></slot>
318
+ </${Yi(this.element)}>
319
+ `:tn`
320
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
321
+ `}}pr.styles=[ir,nr,rr,or,sr,ar,lr,cr,hr,ur,fr],dr([s()],pr.prototype,"element",void 0),dr([s()],pr.prototype,"variant",void 0),d("ft-typography")(pr);const vr={padding:$t.create("--ft-card-padding","SIZE","12px"),outlineStyle:$t.create("--ft-card-outline-style","UNKNOWN","solid"),outlineWidth:$t.create("--ft-card-outline-width","SIZE","0"),outlineColor:$t.extend("--ft-card-outline-color",Ot.colorPrimary),borderRadius:$t.extend("--ft-card-border-radius",Ot.borderRadiusM),selectedOutlineStyle:$t.create("--ft-card-selected-outline-style","UNKNOWN","solid"),selectedOutlineWidth:$t.create("--ft-card-selected-outline-width","SIZE","2px"),selectedOutlineColor:$t.extend("--ft-card-selected-outline-color",Ot.colorPrimary),selectedBorderRadius:$t.extend("--ft-card-selected-border-radius",Ot.borderRadiusM),colorSurface:$t.external(Ot.colorSurface,"Design system"),colorOnSurfaceMedium:$t.external(Ot.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:$t.external(Ot.colorOnSurfaceHigh,"Design system"),elevation02:$t.external(Ot.elevation02,"Design system"),elevation04:$t.external(Ot.elevation04,"Design system")},br=w`
322
+ :host {
323
+ display: block;
324
+ }
325
+
326
+ #container {
327
+ padding: ${vr.padding};
328
+ outline-style: ${vr.outlineStyle};
329
+ outline-width: ${vr.outlineWidth};
330
+ outline-color: ${vr.outlineColor};
331
+ border-radius: ${vr.borderRadius};
332
+ ${St(_i.borderRadius,vr.borderRadius)};
333
+ box-shadow: ${vr.elevation02};
334
+ position: relative;
335
+ width: 100%;
336
+ height: 100%;
337
+ display: grid;
338
+ grid-template:
339
+ "header actions"
340
+ "content content";
341
+ grid-template-columns: minmax(0, 1fr) max-content;
342
+ grid-template-rows: max-content minmax(0, 1fr);
343
+ grid-gap: 8px;
344
+ box-sizing: border-box;
345
+ background-color: ${vr.colorSurface};
346
+ transition: box-shadow 0.2s linear, color 0.2s linear;
347
+ }
348
+
349
+ #container.no-header {
350
+ grid-template: "content";
351
+ }
352
+
353
+ #container.no-header #header, #container.no-header #action {
354
+ display: none;
355
+ }
356
+
357
+ #container.selected {
358
+ outline-style: ${vr.selectedOutlineStyle};
359
+ outline-width: ${vr.selectedOutlineWidth};
360
+ outline-color: ${vr.selectedOutlineColor};
361
+ border-radius: ${vr.selectedBorderRadius};
362
+ ${St(_i.borderRadius,vr.selectedBorderRadius)};
363
+ box-shadow: ${vr.elevation04};
364
+ }
365
+
366
+ #container.clickable {
367
+ cursor: pointer;
368
+ }
369
+
370
+ #container.clickable:hover {
371
+ box-shadow: ${vr.elevation04};
372
+ }
373
+
374
+ #header {
375
+ grid-area: header;
376
+ }
377
+
378
+ .title {
379
+ text-overflow: ellipsis;
380
+ overflow: hidden;
381
+ color: ${vr.colorOnSurfaceHigh};
382
+ }
383
+
384
+ #content {
385
+ min-width: 0; /* like with flexbox, some items have a hard time shrinking when necessary */
386
+ grid-area: content;
387
+ color: ${vr.colorOnSurfaceMedium};
388
+ }
389
+
390
+ #action {
391
+ grid-area: actions;
392
+ }
393
+ `;var yr,gr,mr,xr,wr=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class $r extends At{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return tt`
394
+ <div id="container" part="container" class=${Fi(t)}>
395
+ ${this.clickable?tt`
396
+ <ft-ripple primary ?selected=${this.selected}></ft-ripple>
397
+ `:it}
398
+ <div id="header" part="header">
399
+ <ft-typography class="title" element="span" variant="title">${this.title}</ft-typography>
400
+ <slot name="header"></slot>
401
+ </div>
402
+ <div id="action" part="action">
403
+ <slot name="action"></slot>
404
+ </div>
405
+ <div id="content" part="content">
406
+ <ft-typography variant="body2"><slot></slot></ft-typography>
407
+ </div>
408
+ </div>
409
+ `}}$r.elementDefinitions={"ft-ripple":Gi,"ft-typography":pr},$r.styles=br,wr([s()],$r.prototype,"title",void 0),wr([s({type:Boolean})],$r.prototype,"clickable",void 0),wr([s({type:Boolean})],$r.prototype,"selected",void 0),wr([s({type:Boolean})],$r.prototype,"noHeader",void 0),d("ft-card")($r);const Sr={activeButtonTextColor:$t.extend("--ft-search-saved-searches-active-button-text-color",Ot.colorPrimary),activeSearchBackgroundColor:$t.extend("--ft-search-saved-searches-active-search-background-color",Ot.colorContent),activeSearchBorderStyle:$t.create("--ft-search-saved-searches-active-search-border-style","UNKNOWN",null!==(yr=vr.selectedOutlineStyle.lastResortDefaultValue())&&void 0!==yr?yr:"solid"),activeSearchBorderColor:$t.extend("--ft-search-saved-searches-active-search-border-color",Ot.colorPrimary),activeSearchBorderWidth:$t.create("--ft-search-saved-searches-active-search-border-width","SIZE",null!==(gr=vr.selectedOutlineWidth.lastResortDefaultValue())&&void 0!==gr?gr:"2px"),activeSearchBorderRadius:$t.extend("--ft-search-saved-searches-active-search-border-radius",Ot.borderRadiusM),inactiveButtonTextColor:$t.extend("--ft-search-saved-searches-inactive-button-text-color",Ot.colorPrimary),inactiveSearchBackgroundColor:$t.extend("--ft-search-saved-searches-inactive-search-background-color",Ot.colorContent),inactiveSearchBorderStyle:$t.create("--ft-search-saved-searches-inactive-search-border-style","UNKNOWN",null!==(mr=vr.outlineStyle.lastResortDefaultValue())&&void 0!==mr?mr:"solid"),inactiveSearchBorderColor:$t.extend("--ft-search-saved-searches-inactive-search-border-color",Ot.colorPrimary),inactiveSearchBorderWidth:$t.create("--ft-search-saved-searches-inactive-search-border-width","SIZE",null!==(xr=vr.outlineWidth.lastResortDefaultValue())&&void 0!==xr?xr:"0"),inactiveSearchBorderRadius:$t.extend("--ft-search-saved-searches-inactive-search-border-radius",Ot.borderRadiusM)},Or=w`
410
+ #container {
411
+ display: flex;
412
+ flex-direction: column;
413
+ gap: 24px;
414
+ margin: 3px;
415
+ }
416
+ `,Er=w`
417
+ `,kr=Ni.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 Cr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=kr.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?Cr.build(t):null!==(e=Cr.API)&&void 0!==e?e:Cr.API=Cr.build()}static await(t){return new Promise((e=>{let i=Cr.get(t);if(i)e(i);else{const n=kr.subscribe((()=>{i=Cr.get(t),i&&(n(),e(i))}))}}))}}var jr;const Nr=Symbol("clearAfterUnitTest");class Rr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[jr]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=kr.getState().uiLocale,kr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=kr.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 i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};f(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,r,o;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==r?r:{};return new Pt(null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},s).resolve(e,...i)}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 i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.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})))}}jr=Nr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Rr((async(t,e)=>(await Cr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Rr((async(t,e)=>(await Cr.await()).getCustomMessageContext(t,e))));const Ar=window.FluidTopicsI18nService,Mr=window.FluidTopicsCustomI18nService;var Ur=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Pr extends At{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=()=>Cr.get(),this.cache=new n,this.cleanSessionDebouncer=new r}render(){return tt`
418
+ <slot></slot>
419
+ `}updated(t){super.updated(t),t.has("baseUrl")&&kr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&kr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&kr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&kr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&kr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&kr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&kr.actions.setSession(this.session),t.has("availableUiLocales")&&kr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ar.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()))))}}Pr.elementDefinitions={},Pr.styles=Er,Ur([s()],Pr.prototype,"baseUrl",void 0),Ur([s()],Pr.prototype,"apiIntegrationIdentifier",void 0),Ur([s()],Pr.prototype,"uiLocale",void 0),Ur([p([])],Pr.prototype,"availableUiLocales",void 0),Ur([s({type:Boolean})],Pr.prototype,"editorMode",void 0),Ur([s({type:Boolean})],Pr.prototype,"noCustom",void 0),Ur([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Pr.prototype,"noCustomComponent",void 0),Ur([s({type:Boolean})],Pr.prototype,"withManualResources",void 0),Ur([p([])],Pr.prototype,"messageContexts",void 0),Ur([p(void 0)],Pr.prototype,"session",void 0),Ur([s({type:Object})],Pr.prototype,"apiProvider",void 0),d("ft-app-context")(Pr);var Ir=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Br extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Tr=Symbol("registerInterval");class Fr extends(function(t){var e;class i 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[Tr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Tr]):this.dispatchEvent(new Br)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Tr,Ir([a()],i.prototype,"stateManager",void 0),i}(Ci)){}
420
+ /**
421
+ * @license
422
+ * Copyright 2017 Google LLC
423
+ * SPDX-License-Identifier: BSD-3-Clause
424
+ */class Lr extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===it||null==t)return this.ft=void 0,this.et=t;if(t===et)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Lr.directiveName="unsafeHTML",Lr.resultType=1;const _r=Bi(Lr);var zr,Dr;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_BAR_STACKED="&#xe968;",t.CHART_HEATMAP="&#xe969;",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.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;"}(zr||(zr={})),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;"}(Dr||(Dr={})),new Map([...["abw"].map((t=>[t,Dr.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,Dr.AUDIO])),...["avi"].map((t=>[t,Dr.AVI])),...["chm","xhs"].map((t=>[t,Dr.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,Dr.CODE])),...["csv"].map((t=>[t,Dr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Dr.DITA])),...["epub"].map((t=>[t,Dr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Dr.EXCEL])),...["flac"].map((t=>[t,Dr.FLAC])),...["gif"].map((t=>[t,Dr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Dr.GZIP])),...["html","htm","xhtml"].map((t=>[t,Dr.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,Dr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Dr.JPEG])),...["json"].map((t=>[t,Dr.JSON])),...["m4a","m4p"].map((t=>[t,Dr.M4A])),...["mov","qt"].map((t=>[t,Dr.MOV])),...["mp3"].map((t=>[t,Dr.MP3])),...["mp4","m4v"].map((t=>[t,Dr.MP4])),...["ogg","oga"].map((t=>[t,Dr.OGG])),...["pdf","ps"].map((t=>[t,Dr.PDF])),...["png"].map((t=>[t,Dr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Dr.POWERPOINT])),...["rar"].map((t=>[t,Dr.RAR])),...["stp"].map((t=>[t,Dr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Dr.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,Dr.VIDEO])),...["wav"].map((t=>[t,Dr.WAV])),...["wma"].map((t=>[t,Dr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Dr.WORD])),...["xml","xsl","rdf"].map((t=>[t,Dr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Dr.YAML])),...["zip"].map((t=>[t,Dr.ZIP]))]);const Wr={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},Kr=w`
425
+ :host, i.ft-icon {
426
+ display: inline-flex;
427
+ align-items: center;
428
+ flex-shrink: 0;
429
+ flex-grow: 0;
430
+ }
431
+
432
+ :host {
433
+ width: ${Wr.size};
434
+ height: ${Wr.size};
435
+ }
436
+
437
+ i.ft-icon {
438
+ width: 100%;
439
+ height: 100%;
440
+ font-size: ${Wr.size};
441
+ line-height: 1;
442
+ font-weight: normal;
443
+ text-transform: none;
444
+ font-style: normal;
445
+ font-variant: normal;
446
+ speak: none;
447
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
448
+ text-rendering: auto;
449
+ -webkit-font-smoothing: antialiased;
450
+ -moz-osx-font-smoothing: grayscale;
451
+ vertical-align: ${Wr.verticalAlign};
452
+ }
453
+
454
+ i.ft-icon.ft-icon--fluid-topics {
455
+ font-family: ${Wr.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
456
+
457
+ /* Ugly fix because font is broken */
458
+ font-size: calc(0.75 * ${Wr.size});
459
+ line-height: ${Wr.size};
460
+ position: relative;
461
+ top: -4%;
462
+ justify-content: center;
463
+ }
464
+
465
+ .ft-icon--file-format {
466
+ font-family: ${Wr.fileFormatFontFamily}, ft-mime, sans-serif;
467
+ }
468
+
469
+ .ft-icon--material {
470
+ font-family: ${Wr.materialFontFamily}, "Material Icons", sans-serif;
471
+ }
472
+ `;var Hr;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Hr||(Hr={}));var Zr=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class qr extends At{constructor(){super(...arguments),this.resolvedIcon=it}render(){const t=this.variant&&Object.values(Hr).includes(this.variant)?this.variant:Hr.fluid_topics,e=t!==Hr.material||!!this.value;return tt`
473
+ <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
474
+ ${_r(this.resolvedIcon)}
475
+ <slot ?hidden=${e}></slot>
476
+ </i>
477
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Hr.file_format:this.resolvedIcon=null!==(t=Dr[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Hr.material:this.resolvedIcon=this.value||it;break;default:this.resolvedIcon=null!==(e=zr[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}qr.elementDefinitions={},qr.styles=Kr,Zr([s()],qr.prototype,"variant",void 0),Zr([s()],qr.prototype,"value",void 0),Zr([a()],qr.prototype,"resolvedIcon",void 0),Zr([c("slot")],qr.prototype,"slottedContent",void 0),d("ft-icon")(qr);const Vr=$t.create("--ft-tooltip-distance","SIZE","4px"),Gr=$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),Jr=$t.create("--ft-tooltip-background-color","COLOR","#666666"),Xr=$t.create("--ft-tooltip-z-index","NUMBER","1"),Yr=$t.external(Ot.borderRadiusS,"Design system"),Qr=$t.create("--ft-tooltip-max-width","SIZE","150px"),to=w`
478
+ .ft-tooltip--container {
479
+ display: block;
480
+ position: relative;
481
+ }
482
+
483
+ .ft-tooltip--inline {
484
+ display: inline-block;
485
+ max-width: 100%;
486
+ }
487
+
488
+ .ft-tooltip {
489
+ position: absolute;
490
+ box-sizing: border-box;
491
+ overflow: hidden;
492
+ width: max-content;
493
+ max-width: ${Qr};
494
+ text-align: center;
495
+ padding: ${Vr};
496
+ z-index: ${Xr};
497
+ }
498
+
499
+ .ft-tooltip--content {
500
+ padding: 4px 8px;
501
+ border-radius: ${Yr};
502
+ background-color: ${Jr};
503
+ color: ${Gr};
504
+ top: -500px;
505
+ left: -500px;
506
+ position: relative;
507
+ word-break: break-word;
508
+ }
509
+ `;var eo=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class io extends At{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return tt`
510
+ <div part="container"
511
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
512
+ @mouseenter=${this.onHover}
513
+ @mouseleave=${this.onOut}
514
+ @focusin=${this.onHover}
515
+ @focusout=${this.onOut}
516
+ @touchstart=${this.onTouch}>
517
+ <slot></slot>
518
+ <div part="tooltip" role="tooltip" inert
519
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
520
+ ?hidden=${!this.visible}>
521
+ <div part="tooltip-content" class="ft-tooltip--content">
522
+ <slot name="text"></slot>
523
+ <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
524
+ </div>
525
+ </div>
526
+ </div>
527
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(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=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,n=(e.width-this.tooltip.clientWidth)/2;let r=0,o=0;switch(this.validPosition){case"top":o=-this.tooltip.clientHeight,r=n;break;case"bottom":o=e.height,r=n;break;case"left":o=i,r=-this.tooltip.clientWidth;break;case"right":o=i,r=e.width}e.left+r+this.tooltip.clientWidth>window.innerWidth&&(r=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+r<0&&(r=4-e.left);const s=this.tooltip.style;s.left=r+"px",s.top=o+"px",s.maxWidth=`max(${e.width}px, ${Qr})`}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())}}io.elementDefinitions={"ft-typography":pr},io.styles=to,eo([s()],io.prototype,"text",void 0),eo([s({type:Boolean})],io.prototype,"manual",void 0),eo([s({type:Boolean})],io.prototype,"inline",void 0),eo([s({type:Number})],io.prototype,"delay",void 0),eo([s()],io.prototype,"position",void 0),eo([
528
+ /**
529
+ * @license
530
+ * Copyright 2017 Google LLC
531
+ * SPDX-License-Identifier: BSD-3-Clause
532
+ */
533
+ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const r="slot"+(e?`[name=${e}]`:":not([name])"),o=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(r),s=null!=o?u(o,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:r,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(r?`[name=${r}]`:":not([name])"),o=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==o?void 0:o.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],io.prototype,"slotNodes",void 0),eo([c(".ft-tooltip--container")],io.prototype,"container",void 0),eo([c("slot")],io.prototype,"target",void 0),eo([c(".ft-tooltip")],io.prototype,"tooltip",void 0),eo([c(".ft-tooltip--content")],io.prototype,"tooltipContent",void 0),eo([a()],io.prototype,"visible",void 0),d("ft-tooltip")(io);const no={color:$t.extend("--ft-loader-color",Ot.colorPrimary),size:$t.create("--ft-loader-size","SIZE","80px")},ro=w`
534
+ :host {
535
+ line-height: 0;
536
+ }
537
+
538
+ .ft-loader {
539
+ display: inline-block;
540
+ position: relative;
541
+
542
+ width: ${no.size};
543
+ height: ${no.size};
544
+ }
545
+
546
+ .ft-loader div {
547
+ position: absolute;
548
+ top: 37.5%;
549
+ width: 25%;
550
+ height: 25%;
551
+ border-radius: 50%;
552
+ background: ${no.color};
553
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
554
+ }
555
+
556
+ .ft-loader div:nth-child(1) {
557
+ left: 2.5%;
558
+ animation: appear 0.6s infinite;
559
+ }
560
+
561
+ .ft-loader div:nth-child(2) {
562
+ left: 2.5%;
563
+ animation: move 0.6s infinite;
564
+ }
565
+
566
+ .ft-loader div:nth-child(3) {
567
+ left: 37.5%;
568
+ animation: move 0.6s infinite;
569
+ }
570
+
571
+ .ft-loader div:nth-child(4) {
572
+ left: 72.5%;
573
+ animation: disappear 0.6s infinite;
574
+ }
575
+
576
+ @keyframes appear {
577
+ 0% {
578
+ transform: scale(0);
579
+ }
580
+ 100% {
581
+ transform: scale(1);
582
+ }
583
+ }
584
+
585
+ @keyframes disappear {
586
+ 0% {
587
+ transform: scale(1);
588
+ }
589
+ 100% {
590
+ transform: scale(0);
591
+ }
592
+ }
593
+
594
+ @keyframes move {
595
+ 0% {
596
+ transform: translate(0, 0);
597
+ }
598
+ 100% {
599
+ transform: translate(calc(0.35 * ${no.size}), 0);
600
+ }
601
+ }
602
+ `;class oo extends At{render(){return tt`
603
+ <div class="ft-loader">
604
+ <div></div>
605
+ <div></div>
606
+ <div></div>
607
+ <div></div>
608
+ </div>
609
+ `}}oo.styles=ro,d("ft-loader")(oo);const so=$t.extend("--ft-button-color",Ot.colorPrimary),ao={backgroundColor:$t.extend("--ft-button-background-color",Ot.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",Ot.borderRadiusL),color:so,fontSize:$t.extend("--ft-button-font-size",er.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",so),verticalPadding:$t.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:$t.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:$t.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:$t.external(Ot.colorOpacityDisabled,"Design system")},lo=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",Ot.colorOnPrimary)),co={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",Ot.colorPrimary)),color:lo,rippleColor:$t.extend("--ft-button-primary-ripple-color",lo)},ho=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",Ot.borderRadiusM)),uo=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),fo=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),po=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),vo=[w`
610
+ :host {
611
+ display: inline-block;
612
+ max-width: 100%;
613
+ pointer-events: none;
614
+ }
615
+
616
+ button {
617
+ box-shadow: 0px 0px 0px transparent;
618
+ border: 0px solid transparent;
619
+ text-shadow: 0px 0px 0px transparent;
620
+ font-size: ${ao.fontSize};
621
+ }
622
+
623
+ button:hover {
624
+ box-shadow: 0px 0px 0px transparent;
625
+ border: 0px solid transparent;
626
+ text-shadow: 0px 0px 0px transparent;
627
+ }
628
+
629
+ button:active {
630
+ outline: none;
631
+ border: none;
632
+ }
633
+
634
+ button:focus {
635
+ outline: 0;
636
+ }
637
+
638
+ .ft-button {
639
+ position: relative;
640
+ display: flex;
641
+ justify-content: center;
642
+ align-items: center;
643
+ width: 100%;
644
+ overflow: hidden;
645
+ box-sizing: border-box;
646
+ border: none;
647
+ pointer-events: auto;
648
+
649
+ --ft-button-internal-line-height: max(calc(${ao.fontSize} + 2px), ${ao.iconSize});
650
+ --ft-button-internal-color: ${ao.color};
651
+ ${St(Wr.size,ao.iconSize)};
652
+ ${St(_i.color,ao.rippleColor)};
653
+
654
+ border-radius: ${ao.borderRadius};
655
+ padding: ${ao.verticalPadding} ${ao.horizontalPadding};
656
+ background-color: ${ao.backgroundColor};
657
+ color: var(--ft-button-internal-color);
658
+ -webkit-mask-image: radial-gradient(white, black);
659
+ }
660
+
661
+ .ft-button.ft-button--outlined {
662
+ border: 1px solid var(--ft-button-internal-color);
663
+ padding: calc(${ao.verticalPadding} - 1px) calc(${ao.horizontalPadding} - 1px);
664
+ }
665
+
666
+ .ft-button.ft-button--dense {
667
+ padding: ${uo} ${fo};
668
+ border-radius: ${ho};
669
+ gap: ${po};
670
+ }
671
+
672
+ .ft-button.ft-button--dense.ft-button--outlined {
673
+ padding: calc(${uo} - 1px) calc(${fo} - 1px);
674
+ }
675
+
676
+ .ft-button:not([disabled]):hover {
677
+ cursor: pointer;
678
+ }
679
+
680
+ .ft-button--round {
681
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ao.verticalPadding});
682
+ }
683
+
684
+ .ft-button--round.ft-button--dense {
685
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${uo});
686
+ }
687
+
688
+ .ft-button[disabled] {
689
+ filter: grayscale(1);
690
+ opacity: ${ao.opacityDisabled};
691
+ }
692
+
693
+ .ft-button.ft-button--primary {
694
+ background-color: ${co.backgroundColor};
695
+ --ft-button-internal-color: ${co.color};
696
+ ${St(_i.color,co.rippleColor)};
697
+ }
698
+
699
+ .ft-button:focus {
700
+ outline: none;
701
+ }
702
+
703
+ .ft-button--label {
704
+ position: relative;
705
+ overflow: hidden;
706
+ white-space: nowrap;
707
+ text-overflow: ellipsis;
708
+ display: block;
709
+ margin: 0 ${ao.iconPadding};
710
+ ${St(er.fontSize,"1em")};
711
+ ${St(er.lineHeight,"var(--ft-button-internal-line-height)")};
712
+ }
713
+
714
+ .ft-button--dense .ft-button--label {
715
+ margin: 0 ${po};
716
+ }
717
+
718
+ .ft-button--label[hidden] {
719
+ display: none;
720
+ }
721
+
722
+ ft-icon {
723
+ flex-shrink: 0;
724
+ position: relative;
725
+ }
726
+
727
+ .ft-button--label[hidden] + ft-icon {
728
+ margin: 0 calc(${ao.horizontalPadding} * -1);
729
+ padding: 0 ${ao.verticalPadding};
730
+ }
731
+
732
+ .ft-button--dense .ft-button--label[hidden] + ft-icon {
733
+ margin: 0 calc(${fo} * -1);
734
+ padding: 0 ${uo};
735
+ }
736
+
737
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
738
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
739
+ order: -1;
740
+ }
741
+
742
+ ft-loader {
743
+ ${St(no.size,ao.iconSize)};
744
+ ${St(no.color,"var(--ft-button-internal-color)")};
745
+ }
746
+ `,Mt];var bo=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class yo extends At{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!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=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(tt`
747
+ <button part="button"
748
+ class="${Fi(t)}"
749
+ aria-label="${this.getLabel()}"
750
+ ?disabled=${this.isDisabled()}>
751
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
752
+ <ft-typography part="label"
753
+ variant="button"
754
+ element="span"
755
+ class="ft-button--label ${Ui?"ft-safari-ellipsis-fix":""}"
756
+ ?hidden=${!this.hasTextContent()}>
757
+ <slot @slotchange=${this.onSlotchange}></slot>
758
+ </ft-typography>
759
+ ${this.resolveIcon()}
760
+ </button>
761
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?tt`
762
+ <ft-tooltip part="tooltip"
763
+ text="${this.getLabel()}"
764
+ position="${this.tooltipPosition}">
765
+ ${t}
766
+ </ft-tooltip>
767
+ `:t}resolveIcon(){return this.loading?tt`
768
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?tt`
769
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}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}}yo.elementDefinitions={"ft-ripple":Gi,"ft-tooltip":io,"ft-typography":pr,"ft-icon":qr,"ft-loader":oo},yo.styles=[Ut,vo],bo([s({type:String,reflect:!0})],yo.prototype,"role",void 0),bo([s({type:Boolean})],yo.prototype,"primary",void 0),bo([s({type:Boolean})],yo.prototype,"outlined",void 0),bo([s({type:Boolean})],yo.prototype,"disabled",void 0),bo([s({type:Boolean})],yo.prototype,"dense",void 0),bo([s({type:Boolean})],yo.prototype,"round",void 0),bo([s()],yo.prototype,"label",void 0),bo([s()],yo.prototype,"icon",void 0),bo([s()],yo.prototype,"iconVariant",void 0),bo([s({type:Boolean})],yo.prototype,"trailingIcon",void 0),bo([s({type:Boolean})],yo.prototype,"loading",void 0),bo([s()],yo.prototype,"tooltipPosition",void 0),bo([s({type:Boolean})],yo.prototype,"hideTooltip",void 0),bo([s({type:Boolean})],yo.prototype,"forceTooltip",void 0),bo([c(".ft-button")],yo.prototype,"button",void 0),bo([c(".ft-button--label slot")],yo.prototype,"slottedContent",void 0),d("ft-button")(yo);const go=w`
770
+ `;var mo=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const xo=Symbol("i18nProperties"),wo=Symbol("i18nUnsubs");function $o(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Mr:Ar}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[xo])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[xo])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[xo]&&new Set([...this[xo].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[wo].has(t)||this[wo].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[wo].forEach((t=>t())),this[wo].clear()}}return e=wo,mo([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class So extends($o(At)){}class Oo extends($o(Ci)){}var Eo=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class ko extends Oo{constructor(){super(),this.editorMode=!1,this.addStore(kr)}render(){return this.key&&this.context?tt`
771
+ <span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
772
+ `:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ko.elementDefinitions={},ko.styles=go,Eo([Oi()],ko.prototype,"editorMode",void 0),Eo([s()],ko.prototype,"context",void 0),Eo([s()],ko.prototype,"key",void 0),Eo([p([])],ko.prototype,"args",void 0),Eo([s()],ko.prototype,"defaultMessage",void 0);class Co{static build(t){return new Co(t)}static fromGwt(t){return new Co(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Ar.resolveMessage(this.name,e,...t)})}}d("ft-i18n")(ko);const jo=Co.build("savedSearchesComponent"),No={displaySavedSearchesHere:"Display saved searches here.",missingRole:"Saved search unavailable: missing role {0}.",keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search"},Ro=$t.extend("--ft-chip-color",Ot.colorOnSurface),Ao={backgroundColor:$t.extend("--ft-chip-background-color",Ot.colorSurface),color:Ro,fontSize:$t.extend("--ft-chip-font-size",Bn.fontSize),iconSize:$t.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:$t.extend("--ft-chip-ripple-color",Ro),horizontalPadding:$t.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:$t.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:$t.external(Ot.colorOutline,"Design system"),opacityDisabled:$t.external(Ot.colorOpacityDisabled,"Design system")},Mo=$t.extend("--ft-chip-highlighted-color",$t.extend("--ft-chip-color",Ot.colorOnPrimary)),Uo={backgroundColor:$t.extend("--ft-chip-highlighted-background-color",$t.extend("--ft-chip-background-color",Ot.colorPrimary)),color:Mo,rippleColor:$t.extend("--ft-chip-highlighted-ripple-color",Mo)},Po=$t.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Io=$t.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Bo=[Mt,w`
773
+ :host {
774
+ display: inline-block;
775
+ max-width: 100%;
776
+ pointer-events: none;
777
+ }
778
+
779
+ .ft-chip {
780
+ position: relative;
781
+ display: flex;
782
+ justify-content: center;
783
+ align-items: center;
784
+ width: 100%;
785
+ box-sizing: border-box;
786
+ pointer-events: auto;
787
+
788
+ --ft-chip-internal-font-size: ${Ao.fontSize};
789
+ --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
790
+ ${St(Wr.size,Ao.iconSize)};
791
+ --ft-chip-internal-vertical-padding: ${Ao.verticalPadding};
792
+ --ft-chip-internal-horizontal-padding: ${Ao.horizontalPadding};
793
+ --ft-chip-internal-icon-padding: 3px;
794
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Ao.iconSize});
795
+
796
+ border: 1px solid ${Ao.colorOutline};
797
+ color: ${Ao.color};
798
+ ${St(_i.color,Ao.rippleColor)};
799
+ border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
800
+ padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
801
+ background-color: ${Ao.backgroundColor};
802
+ line-height: var(--ft-chip-internal-content-height);
803
+ }
804
+
805
+ .ft-chip > *:not(ft-ripple) {
806
+ position: relative;
807
+ }
808
+
809
+ .ft-chip--dense {
810
+ --ft-chip-internal-icon-padding: 3px;
811
+ --ft-chip-internal-vertical-padding: ${Io};
812
+ --ft-chip-internal-horizontal-padding: ${Po};
813
+ --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
814
+ }
815
+
816
+ .ft-chip--no-content {
817
+ --ft-chip-internal-horizontal-padding: var(--ft-chip-horizontal-padding, var(--ft-chip-internal-vertical-padding));
818
+ }
819
+
820
+ .ft-chip--disabled {
821
+ cursor: default;
822
+ pointer-events: none;
823
+ filter: grayscale(1);
824
+ opacity: ${Ao.opacityDisabled};
825
+ }
826
+
827
+ .ft-chip--highlighted {
828
+ border: none;
829
+ padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
830
+ background-color: ${Uo.backgroundColor};
831
+ ${St(_i.color,Uo.rippleColor)};
832
+ color: ${Uo.color};
833
+ }
834
+
835
+ .ft-chip--clickable {
836
+ cursor: pointer;
837
+ -webkit-mask-image: radial-gradient(white, black);
838
+ }
839
+
840
+ .ft-chip:focus {
841
+ outline: none;
842
+ }
843
+
844
+ .ft-chip--icon-container {
845
+ display: inline-flex;
846
+ position: relative;
847
+ overflow: hidden;
848
+ border-radius: 100%;
849
+ justify-content: center;
850
+ align-items: center;
851
+ flex-shrink: 0;
852
+
853
+ padding: var(--ft-chip-internal-icon-padding);
854
+ margin: calc((-1) * var(--ft-chip-internal-icon-padding));
855
+ }
856
+
857
+ .ft-chip--icon-container > *:not(ft-ripple) {
858
+ position: relative;
859
+ }
860
+
861
+ .ft-chip--icon-button {
862
+ ${St(ao.iconSize,Ao.iconSize)};
863
+ ${St(ao.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
864
+ ${St(ao.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
865
+ margin: calc((-1) * var(--ft-chip-internal-icon-padding));
866
+ }
867
+
868
+ .ft-chip--label {
869
+ vertical-align: bottom;
870
+ display: block;
871
+ margin: 0 var(--ft-chip-internal-horizontal-padding);
872
+ ${St(Bn.fontSize,"var(--ft-chip-internal-font-size)")};
873
+ ${St(Bn.lineHeight,"var(--ft-chip-internal-content-height)")};
874
+ }
875
+
876
+ .ft-chip--safari-fix .ft-chip--label {
877
+ margin-right: 0;
878
+ }
879
+
880
+ .ft-chip:not(.ft-chip--multi-line) .ft-chip--label {
881
+ overflow: hidden;
882
+ white-space: nowrap;
883
+ text-overflow: ellipsis;
884
+ }
885
+
886
+ .ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after {
887
+ content: "\\0000a0";
888
+ display: inline-block;
889
+ width: 0;
890
+ }
891
+
892
+ .ft-chip--no-content .ft-chip--label {
893
+ display: none;
894
+ }
895
+
896
+ .ft-chip--no-content .ft-chip--label + .ft-chip--icon-container {
897
+ width: var(--ft-chip-internal-content-height);
898
+ height: var(--ft-chip-internal-content-height);
899
+ }
900
+
901
+ .ft-chip--icon-container:focus {
902
+ outline: none;
903
+ }
904
+
905
+ .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container,
906
+ .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
907
+ order: -1;
908
+ }
909
+ `];var To=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Fo extends CustomEvent{constructor(){super("icon-click")}}class Lo extends At{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Ui};return tt`
910
+ <div class="${Fi(t)}"
911
+ aria-label="${this.getLabel()}"
912
+ tabindex="${this.interactionsOnChip?0:-1}"
913
+ @keyup=${this.onKeyUp}>
914
+ <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
915
+ <ft-typography variant="body2" element="span" class="ft-chip--label">
916
+ <slot @slotchange=${this.onSlotchange}></slot>
917
+ </ft-typography>
918
+ ${this.internalIcon?this.renderIcon():null}
919
+ </div>
920
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?tt`
921
+ <ft-button round
922
+ class="ft-chip--icon-button"
923
+ @click=${this.onIconClick}
924
+ .iconVariant=${this.iconVariant}
925
+ icon="${this.internalIcon}"
926
+ label="${this.iconLabel}"
927
+ ></ft-button>
928
+ `:tt`
929
+ <div class="ft-chip--icon-container ft-no-text-select">
930
+ <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
931
+ </div>
932
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Fo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Fo))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Lo.elementDefinitions={"ft-ripple":Gi,"ft-typography":pr,"ft-icon":qr,"ft-button":yo},Lo.styles=Bo,To([s({type:Boolean})],Lo.prototype,"highlighted",void 0),To([s({type:Boolean})],Lo.prototype,"removable",void 0),To([s({type:Boolean})],Lo.prototype,"disabled",void 0),To([s({type:Boolean})],Lo.prototype,"clickable",void 0),To([s({type:Boolean})],Lo.prototype,"iconClickable",void 0),To([s({type:Boolean})],Lo.prototype,"dense",void 0),To([s({type:Boolean})],Lo.prototype,"multiLine",void 0),To([s()],Lo.prototype,"label",void 0),To([s()],Lo.prototype,"iconLabel",void 0),To([s()],Lo.prototype,"icon",void 0),To([s()],Lo.prototype,"iconVariant",void 0),To([s({type:Boolean})],Lo.prototype,"trailingIcon",void 0),To([c("ft-typography slot")],Lo.prototype,"slottedContent",void 0),d("ft-chip")(Lo);var _o=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class zo extends($o(Fr)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.selected=!1,this.addI18nContext(jo,No)}render(){var t;return tt`
933
+ <ft-card title="${null===(t=this.search)||void 0===t?void 0:t.title}" clickable ?selected="${this.selected}">
934
+ ${this.renderAlertStatus()}
935
+ <div id="container">
936
+ ${this.renderDescription()}
937
+ ${this.renderSearchFilters()}
938
+ ${this.renderSearchButton()}
939
+ </div>
940
+ </ft-card>
941
+ `}renderDescription(){var t;return this.showDescription?tt`<div id="description" class="content">${null===(t=this.search)||void 0===t?void 0:t.description}</div>`:it}renderSearchButton(){return this.showSearchButton?tt`<div id="searchButton" class="content"><ft-button id="search" icon="search">${jo.messages.search()}</ft-button></div>`:it}renderAlertStatus(){var t;return this.showAlertStatus&&(null===(t=this.search)||void 0===t?void 0:t.alert)?tt`<ft-icon id="alertStatus" slot="header">alert</ft-icon>`:it}renderSearchFilters(){var t,e,i,n,r,o,s,a,l,c,h,u,f,d;return this.showSearchFilters?tt`<div id="searchFilters" class="content">
942
+ ${null!==(e=null===(t=this.search)||void 0===t?void 0:t.searchRequest.query.length)&&void 0!==e&&e?this.renderMetadata(jo.messages.keywords(),null===(i=this.search)||void 0===i?void 0:i.searchRequest.query,!0):it}
943
+ ${null===(n=this.search)||void 0===n?void 0:n.searchRequest.filters.map((t=>this.renderMetadata(t.label,t.values)))}
944
+ ${null!==(s=null===(o=null===(r=this.search)||void 0===r?void 0:r.searchRequest.contentLocale)||void 0===o?void 0:o.length)&&void 0!==s&&s?this.renderMetadata(jo.messages.language(),null===(a=this.search)||void 0===a?void 0:a.searchRequest.contentLocale,!0):it}
945
+ ${null!==(h=null===(c=null===(l=this.search)||void 0===l?void 0:l.searchRequest.sort[0])||void 0===c?void 0:c.key.length)&&void 0!==h&&h?this.renderMetadata(jo.messages.sort(),this.mapSortKey(null===(u=this.search)||void 0===u?void 0:u.searchRequest.sort[0].key),!0):it}
946
+ ${(null===(f=this.search)||void 0===f?void 0:f.searchRequest.periodFilter)?this.renderMetadata(jo.messages.period(),this.mapPeriodFilter(null===(d=this.search)||void 0===d?void 0:d.searchRequest.periodFilter),!0):it}
947
+ </div>`:it}renderMetadata(t,e,i=!1){return tt`<ft-chip dense ?highlighted=${i}><span class="metadata-label">${t}</span><span class="metadata-values">${Array.isArray(e)?e.join(", "):e}</span></ft-chip>`}mapSortKey(t){switch(t){case"afs:relevance":return jo.messages.relevance();case"ft:lastEdition":return jo.messages.lastUpdate();default:return t}}mapPeriodFilter(t){switch(t.periodType){case"LAST_WEEK":return jo.messages.lastWeek();case"LAST_MONTH":return jo.messages.lastMonth();case"LAST_YEAR":return jo.messages.lastYear();case"CUSTOM":return jo.messages.customPeriod();default:return"--"}}}zo.elementDefinitions={"ft-icon":qr,"ft-card":$r,"ft-chip":Lo,"ft-button":yo},zo.styles=w`
948
+ ft-card {
949
+ ${St(vr.outlineStyle,Sr.inactiveSearchBorderStyle)};
950
+ ${St(vr.outlineWidth,Sr.inactiveSearchBorderWidth)};
951
+ ${St(vr.outlineColor,Sr.inactiveSearchBorderColor)};
952
+ ${St(vr.borderRadius,Sr.inactiveSearchBorderRadius)};
953
+ ${St(vr.selectedOutlineStyle,Sr.activeSearchBorderStyle)};
954
+ ${St(vr.selectedOutlineWidth,Sr.activeSearchBorderWidth)};
955
+ ${St(vr.selectedOutlineColor,Sr.activeSearchBorderColor)};
956
+ ${St(vr.selectedBorderRadius,Sr.activeSearchBorderRadius)};
957
+ ${St(_i.backgroundColor,Sr.inactiveSearchBackgroundColor)};
958
+ }
959
+
960
+ ft-card[selected] {
961
+ ${St(_i.backgroundColor,Sr.activeSearchBackgroundColor)};
962
+ }
963
+
964
+ #search {
965
+ ${St(ao.color,Sr.inactiveButtonTextColor)};
966
+ }
967
+
968
+ ft-card[selected] #search {
969
+ ${St(ao.color,Sr.activeButtonTextColor)};
970
+ }
971
+
972
+ #searchFilters {
973
+ display: flex;
974
+ gap: 4px;
975
+ flex-wrap: wrap;
976
+ }
977
+
978
+ .content {
979
+ margin-bottom: 8px;
980
+ }
981
+
982
+ .content:last-child {
983
+ margin-bottom: 0;
984
+ }
985
+
986
+ ft-card::part(header) {
987
+ display: flex;
988
+ justify-content: space-between;
989
+ }
990
+
991
+ .metadata-label:after {
992
+ content: ":";
993
+ margin-right: 0.4em;
994
+ margin-left: 0.2em;
995
+ }
996
+ `,_o([s()],zo.prototype,"search",void 0),_o([s({type:Boolean})],zo.prototype,"showDescription",void 0),_o([s({type:Boolean})],zo.prototype,"showSearchFilters",void 0),_o([s({type:Boolean})],zo.prototype,"showSearchButton",void 0),_o([s({type:Boolean})],zo.prototype,"showAlertStatus",void 0),_o([s({type:Boolean})],zo.prototype,"selected",void 0);
997
+ /**
998
+ * @license
999
+ * Copyright 2020 Google LLC
1000
+ * SPDX-License-Identifier: BSD-3-Clause
1001
+ */
1002
+ const{I:Do}=bt,Wo=()=>document.createComment(""),Ko=(t,e,i)=>{var n;const r=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(Wo(),o),n=r.insertBefore(Wo(),o);i=new Do(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==o||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,o),t=e}}}return i},Ho=(t,e,i=t)=>(t._$AI(e,i),t),Zo={},qo=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Vo=(t,e,i)=>{const n=new Map;for(let r=e;r<=i;r++)n.set(t[r],r);return n},Go=Bi(class extends Ti{constructor(t){if(super(t),t.type!==Ii)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const r=[],o=[];let s=0;for(const e of t)r[s]=n?n(e,s):s,o[s]=i(e,s),s++;return{values:o,keys:r}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var r;const o=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(o))return this.ht=a,s;const l=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],c=[];let h,u,f=0,d=o.length-1,p=0,v=s.length-1;for(;f<=d&&p<=v;)if(null===o[f])f++;else if(null===o[d])d--;else if(l[f]===a[p])c[p]=Ho(o[f],s[p]),f++,p++;else if(l[d]===a[v])c[v]=Ho(o[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=Ho(o[f],s[v]),Ko(t,c[v+1],o[f]),f++,v--;else if(l[d]===a[p])c[p]=Ho(o[d],s[p]),Ko(t,o[f],o[d]),d--,p++;else if(void 0===h&&(h=Vo(a,p,v),u=Vo(l,f,d)),h.has(l[f]))if(h.has(l[d])){const e=u.get(a[p]),i=void 0!==e?o[e]:null;if(null===i){const e=Ko(t,o[f]);Ho(e,s[p]),c[p]=e}else c[p]=Ho(i,s[p]),Ko(t,o[f],i),o[e]=null;p++}else qo(o[d]),d--;else qo(o[f]),f++;for(;p<=v;){const e=Ko(t,c[v+1]);Ho(e,s[p]),c[p++]=e}for(;f<=d;){const t=o[f++];null!==t&&qo(t)}return this.ht=a,((t,e=Zo)=>{t._$AH=e})(t,c),et}}),Jo=require("./node-ponyfill"),Xo=Jo.fetch.bind({});
1003
+ /**
1004
+ * @license
1005
+ * Copyright 2017 Google LLC
1006
+ * SPDX-License-Identifier: BSD-3-Clause
1007
+ */var Yo,Qo,ts,es,is,ns,rs,os,ss;Xo.polyfill=!0,global.fetch||(global.fetch=Xo,global.Response=Jo.Response,global.Headers=Jo.Headers,global.Request=Jo.Request),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Yo||(Yo={})),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"}(Qo||(Qo={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(ts||(ts={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(es||(es={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(is||(is={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(ns||(ns={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(rs||(rs={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(os||(os={})),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"}(ss||(ss={}));class as{async listMySearches(){var t;return(null===(t=kr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Cr.await()).listMySearches(kr.getState().session.profile.userId):[]}}const ls=Ni.get({name:"ft-user-assets",reducers:{setSavedSearches:(t,e)=>{t.savedSearches=e.payload}},initialState:{savedSearches:void 0}});const cs=new class{clear(){this.clearMySearches()}clearMySearches(){ls.actions.setSavedSearches(void 0)}async reloadMySearches(){const t=new as,e=await t.listMySearches();ls.actions.setSavedSearches(e)}};var hs=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class us extends($o(Fr)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=ss.SAVED_SEARCH_USER,this.addStore(kr),this.addStore(ls),this.addI18nContext(jo,No)}render(){var t;return this.editorMode&&!this.userHasRights?tt`<ft-typography>${jo.messages.missingRole(this.requiredRole)}</ft-typography>`:this.editorMode&&this.isEmpty?tt`<ft-typography>${jo.messages.displaySavedSearchesHere()}</ft-typography>`:this.userHasRights&&!this.isEmpty?tt`
1008
+ <div id="container">
1009
+ ${Go(null!==(t=this.savedSearches)&&void 0!==t?t:[],(t=>t.id),(t=>tt`
1010
+ <ft-search-saved-search
1011
+ .search=${t}
1012
+ ?showDescription=${this.showDescription}
1013
+ ?showSearchFilters=${this.showSearchFilters}
1014
+ ?showSearchButton=${this.showSearchButton}
1015
+ ?showAlertStatus=${this.showAlertStatus}
1016
+ ?selected=${this.isSelected(t.searchRequest)}
1017
+ @click=${e=>this.setSearch(t.searchRequest)}
1018
+ ></ft-search-saved-search>`))}
1019
+ </div>
1020
+ `:tt`
1021
+ <style>
1022
+ :host {
1023
+ display: none !important;
1024
+ }
1025
+ </style>
1026
+ `}get userHasRights(){var t;return!!(null===(t=this.user)||void 0===t?void 0:t.roles.includes(this.requiredRole))}get isEmpty(){var t;return 0==(null!==(t=this.savedSearches)&&void 0!==t?t:[]).length}isSelected(t){var e;const i=null===(e=this.stateManager)||void 0===e?void 0:e.store.getState().request;return null!=i&&f(i.query,t.query)&&f([...i.filters],[...t.filters])&&f([...i.sort].map(this.mapFtSearchSortCriterion),[...t.sort].map(this.mapFtSearchSortCriterion))&&f(i.contentLocale,t.contentLocale)&&f(i.periodFilter,t.periodFilter)}mapFtSearchSortCriterion(t){return{...t}}toFtSearchRequest(t){return null==this.stateManager?void 0:{...this.stateManager.store.getState().request,periodFilter:t.periodFilter,query:t.query,filters:t.filters.map(this.mapSearchFilter),sort:t.sort,contentLocale:t.contentLocale}}mapSearchFilter(t){return{key:t.key,values:t.values,negative:t.negative}}connectedCallback(){super.connectedCallback(),cs.reloadMySearches()}setSearch(t){var e;const i=this.toFtSearchRequest(t);null!=i&&(null===(e=this.stateManager)||void 0===e||e.setRequest(i))}update(t){super.update(t),(t.has("user")||t.has("savedSearches"))&&null==this.savedSearches&&cs.reloadMySearches()}}us.styles=Or,us.elementDefinitions={"ft-search-saved-search":zo,"ft-typography":pr},hs([s({type:Boolean})],us.prototype,"showDescription",void 0),hs([s({type:Boolean})],us.prototype,"showSearchFilters",void 0),hs([s({type:Boolean})],us.prototype,"showSearchButton",void 0),hs([s({type:Boolean})],us.prototype,"showAlertStatus",void 0),hs([Oi({store:ls.name})],us.prototype,"savedSearches",void 0),hs([Oi({store:kr.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],us.prototype,"user",void 0),hs([Oi({store:"search"})],us.prototype,"request",void 0),hs([Oi({store:kr.name})],us.prototype,"editorMode",void 0),d("ft-search-saved-searches")(us),t.FtSearchSavedSearches=us,t.FtSearchSavedSearchesCssVariables=Sr,t.styles=Or}({});