@fluid-topics/ft-search-saved-searches 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);p(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?u(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(va){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);p(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?u(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Oa){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -53,7 +53,7 @@ const E={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S},$=(t=E,e,
53
53
  * @license
54
54
  * Copyright 2017 Google LLC
55
55
  * SPDX-License-Identifier: BSD-3-Clause
56
- */const j=globalThis,B=j.trustedTypes,F=B?B.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,D="?"+P,z=`<${D}>`,M=document,T=()=>M.createComment(""),Z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,H=t=>_(t)||"function"==typeof t?.[Symbol.iterator],G="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,Y=/>/g,X=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/g,Q=/"/g,tt=/^(?:script|style|textarea|title)$/i,et=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ot=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),it=new WeakMap,nt=M.createTreeWalker(M,129);function at(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==F?F.createHTML(e):e}const st=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=V;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===V?"!--"===c[1]?a=q:void 0!==c[1]?a=Y:void 0!==c[2]?(tt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=X):void 0!==c[3]&&(a=X):a===X?">"===c[0]?(a=i??V,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?X:'"'===c[3]?Q:J):a===Q||a===J?a=X:a===q||a===Y?a=V:(a=X,i=void 0);const h=a===X&&t[e+1].startsWith("/>")?" ":"";n+=a===V?o+z:l>=0?(r.push(s),o.slice(0,l)+K+o.slice(l)+P+h):o+P+(-2===l?e:h)}return[at(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let ct=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=st(e,o);if(this.el=t.createElement(l,r),nt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=nt.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(K)){const e=f[a++],o=i.getAttribute(t).split(P),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?dt:"?"===r[1]?ut:"@"===r[1]?yt:pt}),i.removeAttribute(t)}else t.startsWith(P)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(tt.test(i.tagName)){const t=i.textContent.split(P),e=t.length-1;if(e>0){i.textContent=B?B.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],T()),nt.nextNode(),c.push({type:2,index:++n});i.append(t[e],T())}}}else if(8===i.nodeType)if(i.data===D)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(P,t+1));)c.push({type:7,index:n}),t+=P.length-1}n++}}static createElement(t,e){const o=M.createElement("template");return o.innerHTML=t,o}};function lt(t,e,o=t,r){if(e===ot)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=Z(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=lt(t,i._$AS(t,e.values),i,r)),e}let ft=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){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??M).importNode(e,!0);nt.currentNode=r;let i=nt.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ht(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new gt(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=nt.nextNode(),n++)}return nt.currentNode=M,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},ht=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=lt(this,t,e),Z(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==ot&&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!==rt&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ct.createElement(at(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ft(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=it.get(t.strings);return void 0===e&&it.set(t.strings,e=new ct(t)),e}T(e){_(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(T()),this.k(T()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=rt}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=lt(this,t,e,0),n=!Z(t)||t!==this._$AH&&t!==ot,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=lt(this,r[o+a],e,a),s===ot&&(s=this._$AH[a]),n||=!Z(s)||s!==this._$AH[a],s===rt?t=rt:t!==rt&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends pt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===rt?void 0:t}},ut=class extends pt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==rt)}},yt=class extends pt{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=lt(this,t,e,0)??rt)===ot)return;const o=this._$AH,r=t===rt&&o!==rt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==rt&&(o===rt||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){lt(this,t)}};const bt={j:K,P,A:D,C:1,M:st,L:ft,R:H,V:lt,D:ht,I:pt,H:ut,N:yt,U:dt,B:gt},mt=j.litHtmlPolyfillSupport;mt?.(ct,ht),(j.litHtmlVersions??=[]).push("3.1.0");
56
+ */const j=globalThis,F=j.trustedTypes,B=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,D="?"+P,z=`<${D}>`,M=document,T=()=>M.createComment(""),Z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,H=t=>_(t)||"function"==typeof t?.[Symbol.iterator],G="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,Y=/>/g,X=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/g,Q=/"/g,tt=/^(?:script|style|textarea|title)$/i,et=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ot=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),it=new WeakMap,nt=M.createTreeWalker(M,129);function at(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==B?B.createHTML(e):e}const st=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=V;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===V?"!--"===c[1]?a=q:void 0!==c[1]?a=Y:void 0!==c[2]?(tt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=X):void 0!==c[3]&&(a=X):a===X?">"===c[0]?(a=i??V,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?X:'"'===c[3]?Q:J):a===Q||a===J?a=X:a===q||a===Y?a=V:(a=X,i=void 0);const h=a===X&&t[e+1].startsWith("/>")?" ":"";n+=a===V?o+z:l>=0?(r.push(s),o.slice(0,l)+K+o.slice(l)+P+h):o+P+(-2===l?e:h)}return[at(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let ct=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=st(e,o);if(this.el=t.createElement(l,r),nt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=nt.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(K)){const e=f[a++],o=i.getAttribute(t).split(P),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?dt:"?"===r[1]?ut:"@"===r[1]?yt:pt}),i.removeAttribute(t)}else t.startsWith(P)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(tt.test(i.tagName)){const t=i.textContent.split(P),e=t.length-1;if(e>0){i.textContent=F?F.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],T()),nt.nextNode(),c.push({type:2,index:++n});i.append(t[e],T())}}}else if(8===i.nodeType)if(i.data===D)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(P,t+1));)c.push({type:7,index:n}),t+=P.length-1}n++}}static createElement(t,e){const o=M.createElement("template");return o.innerHTML=t,o}};function lt(t,e,o=t,r){if(e===ot)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=Z(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=lt(t,i._$AS(t,e.values),i,r)),e}let ft=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){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??M).importNode(e,!0);nt.currentNode=r;let i=nt.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ht(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new gt(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=nt.nextNode(),n++)}return nt.currentNode=M,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},ht=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=lt(this,t,e),Z(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==ot&&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!==rt&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ct.createElement(at(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ft(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=it.get(t.strings);return void 0===e&&it.set(t.strings,e=new ct(t)),e}T(e){_(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(T()),this.k(T()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=rt}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=lt(this,t,e,0),n=!Z(t)||t!==this._$AH&&t!==ot,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=lt(this,r[o+a],e,a),s===ot&&(s=this._$AH[a]),n||=!Z(s)||s!==this._$AH[a],s===rt?t=rt:t!==rt&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends pt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===rt?void 0:t}},ut=class extends pt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==rt)}},yt=class extends pt{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=lt(this,t,e,0)??rt)===ot)return;const o=this._$AH,r=t===rt&&o!==rt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==rt&&(o===rt||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){lt(this,t)}};const bt={j:K,P,A:D,C:1,M:st,L:ft,R:H,V:lt,D:ht,I:pt,H:ut,N:yt,U:dt,B:gt},mt=j.litHtmlPolyfillSupport;mt?.(ct,ht),(j.litHtmlVersions??=[]).push("3.1.0");
57
57
  /**
58
58
  * @license
59
59
  * Copyright 2019 Google LLC
@@ -64,7 +64,7 @@ const vt=globalThis,Ot=vt.ShadowRoot&&(void 0===vt.ShadyCSS||vt.ShadyCSS.nativeS
64
64
  * @license
65
65
  * Copyright 2017 Google LLC
66
66
  * SPDX-License-Identifier: BSD-3-Clause
67
- */,{is:$t,defineProperty:Rt,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:kt,getOwnPropertySymbols:It,getPrototypeOf:Lt}=Object,Wt=globalThis,At=Wt.trustedTypes,jt=At?At.emptyScript:"",Bt=Wt.reactiveElementPolyfillSupport,Ft=(t,e)=>t,Kt={toAttribute(t,e){switch(e){case Boolean:t=t?jt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Pt=(t,e)=>!$t(t,e),Dt={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Pt};Symbol.metadata??=Symbol("metadata"),Wt.litPropertyMetadata??=new WeakMap;let zt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Dt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&Rt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=Ut(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Dt}static _$Ei(){if(this.hasOwnProperty(Ft("elementProperties")))return;const t=Lt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ft("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ft("properties"))){const t=this.properties,e=[...kt(t),...It(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Et(t))}else void 0!==t&&e.push(Et(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Ot)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=vt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Kt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Kt;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Pt)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};zt.elementStyles=[],zt.shadowRootOptions={mode:"open"},zt[Ft("elementProperties")]=new Map,zt[Ft("finalized")]=new Map,Bt?.({ReactiveElement:zt}),(Wt.reactiveElementVersions??=[]).push("2.0.2");
67
+ */,{is:$t,defineProperty:Rt,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:kt,getOwnPropertySymbols:It,getPrototypeOf:Lt}=Object,Wt=globalThis,At=Wt.trustedTypes,jt=At?At.emptyScript:"",Ft=Wt.reactiveElementPolyfillSupport,Bt=(t,e)=>t,Kt={toAttribute(t,e){switch(e){case Boolean:t=t?jt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Pt=(t,e)=>!$t(t,e),Dt={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Pt};Symbol.metadata??=Symbol("metadata"),Wt.litPropertyMetadata??=new WeakMap;let zt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Dt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&Rt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=Ut(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Dt}static _$Ei(){if(this.hasOwnProperty(Bt("elementProperties")))return;const t=Lt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Bt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bt("properties"))){const t=this.properties,e=[...kt(t),...It(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Et(t))}else void 0!==t&&e.push(Et(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Ot)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=vt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Kt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Kt;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Pt)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};zt.elementStyles=[],zt.shadowRootOptions={mode:"open"},zt[Bt("elementProperties")]=new Map,zt[Bt("finalized")]=new Map,Ft?.({ReactiveElement:zt}),(Wt.reactiveElementVersions??=[]).push("2.0.2");
68
68
  /**
69
69
  * @license
70
70
  * Copyright 2017 Google LLC
@@ -81,7 +81,11 @@ let we=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
81
81
  * @license
82
82
  * Copyright 2019 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
- */class Ae extends we{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=Le.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var je,Be=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Fe=Symbol("constructorPrototype"),Ke=Symbol("constructorName"),Pe=Symbol("exportpartsDebouncer");class De extends Ae{constructor(){super(),this[je]=new i(5),this[Ke]=this.constructor.name,this[Fe]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ke]&&Object.setPrototypeOf(this,this[Fe])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Pe].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}je=Pe,Be([R()],De.prototype,"exportpartsPrefix",void 0),Be([A([])],De.prototype,"exportpartsPrefixes",void 0),Be([R()],De.prototype,"customStylesheet",void 0);const ze=Ct`
84
+ */class Ae extends we{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=Le.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var je,Fe=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Be=Symbol("constructorPrototype"),Ke=Symbol("constructorName"),Pe=Symbol("exportpartsDebouncer");class De extends Ae{constructor(){super(),this[je]=new i(5),this[Ke]=this.constructor.name,this[Be]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ke]&&Object.setPrototypeOf(this,this[Be])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Pe].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}je=Pe,Fe([R()],De.prototype,"exportpartsPrefix",void 0),Fe([A([])],De.prototype,"exportpartsPrefixes",void 0),Fe([R()],De.prototype,"customStylesheet",void 0);const ze=Ce.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Ct`
85
+ .highlight-html-match {
86
+ background: ${ze};
87
+ }
88
+ `;const Me=Ct`
85
89
  .ft-no-text-select {
86
90
  -webkit-touch-callout: none;
87
91
  -webkit-user-select: none;
@@ -102,7 +106,7 @@ let we=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
102
106
  -webkit-hyphens: auto;
103
107
  hyphens: auto
104
108
  }
105
- `;const Me=Ct`
109
+ `;const Te=Ct`
106
110
  .ft-safari-ellipsis-fix {
107
111
  margin-right: 0;
108
112
 
@@ -113,17 +117,17 @@ let we=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
113
117
  display: inline-block;
114
118
  width: 0;
115
119
  }
116
- `;class Te{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function Ze(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var _e,He,Ge;const Ve=Symbol("internalReduxEventsUnsubscribers"),qe=Symbol("internalStoresUnsubscribers"),Ye=Symbol("internalStores");class Xe extends De{constructor(){super(...arguments),this[_e]=new Map,this[He]=new Map,this[Ge]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ye].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ye].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ye].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ze(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ye].delete(e)}setupStore(t,e){this[Ye].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ye].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[qe].has(t.store):this[qe].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[qe].set(t,e.subscribe((()=>this.updateFromStores()))),Ze(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Ve].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[qe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ve].forEach((t=>t())),this[Ve]=[]}unsubscribeFromStore(t){this[qe].has(t)&&this[qe].get(t)(),this[qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Je(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qe(t){return!!t&&!!t[Do]}function to(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===zo}(t)||Array.isArray(t)||!!t[Po]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Po])||ao(t)||so(t))}function eo(t,e,o){void 0===o&&(o=!1),0===oo(t)?(o?Object.keys:Mo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function oo(t){var e=t[Do];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ao(t)?2:so(t)?3:0}function ro(t,e){return 2===oo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function io(t,e,o){var r=oo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function no(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ao(t){return jo&&t instanceof Map}function so(t){return Bo&&t instanceof Set}function co(t){return t.o||t.t}function lo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=To(t);delete e[Do];for(var o=Mo(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function fo(t,e){return void 0===e&&(e=!1),po(t)||Qe(t)||!to(t)||(oo(t)>1&&(t.set=t.add=t.clear=t.delete=ho),Object.freeze(t),e&&eo(t,(function(t,e){return fo(e,!0)}),!0)),t}function ho(){Je(2)}function po(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function uo(t){var e=Zo[t];return e||Je(18,t),e}function yo(){return Wo}function go(t,e){e&&(uo("Patches"),t.u=[],t.s=[],t.v=e)}function bo(t){mo(t),t.p.forEach(Oo),t.p=null}function mo(t){t===Wo&&(Wo=t.l)}function vo(t){return Wo={p:[],l:Wo,h:t,m:!0,_:0}}function Oo(t){var e=t[Do];0===e.i||1===e.i?e.j():e.g=!0}function xo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||uo("ES5").S(e,t,r),r?(o[Do].P&&(bo(e),Je(4)),to(t)&&(t=wo(e,t),e.l||No(e,t)),e.u&&uo("Patches").M(o[Do].t,t,e.u,e.s)):t=wo(e,o,[]),bo(e),e.u&&e.v(e.u,e.s),t!==Ko?t:void 0}function wo(t,e,o){if(po(e))return e;var r=e[Do];if(!r)return eo(e,(function(i,n){return So(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return No(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=lo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),eo(n,(function(e,n){return So(t,r,i,e,n,o,a)})),No(t,i,!1),o&&t.u&&uo("Patches").N(r,o,t.u,t.s)}return r.o}function So(t,e,o,r,i,n,a){if(Qe(i)){var s=wo(t,i,n&&e&&3!==e.i&&!ro(e.R,r)?n.concat(r):void 0);if(io(o,r,s),!Qe(s))return;t.m=!1}else a&&o.add(i);if(to(i)&&!po(i)){if(!t.h.D&&t._<1)return;wo(t,i),e&&e.A.l||No(t,i)}}function No(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&fo(e,o)}function Co(t,e){var o=t[Do];return(o?co(o):t)[e]}function Eo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function $o(t){t.P||(t.P=!0,t.l&&$o(t.l))}function Ro(t){t.o||(t.o=lo(t.t))}function Uo(t,e,o){var r=ao(e)?uo("MapSet").F(e,o):so(e)?uo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:yo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=_o;o&&(i=[r],n=Ho);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):uo("ES5").J(e,o);return(o?o.A:yo()).p.push(r),r}function ko(t){return Qe(t)||Je(22,t),function t(e){if(!to(e))return e;var o,r=e[Do],i=oo(e);if(r){if(!r.P&&(r.i<4||!uo("ES5").K(r)))return r.t;r.I=!0,o=Io(e,i),r.I=!1}else o=Io(e,i);return eo(o,(function(e,i){r&&function(t,e){return 2===oo(t)?t.get(e):t[e]}(r.t,e)===i||io(o,e,t(i))})),3===i?new Set(o):o}(t)}function Io(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return lo(t)}_e=qe,He=Ye,Ge=Ve;var Lo,Wo,Ao="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),jo="undefined"!=typeof Map,Bo="undefined"!=typeof Set,Fo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ko=Ao?Symbol.for("immer-nothing"):((Lo={})["immer-nothing"]=!0,Lo),Po=Ao?Symbol.for("immer-draftable"):"__$immer_draftable",Do=Ao?Symbol.for("immer-state"):"__$immer_state",zo=""+Object.prototype.constructor,Mo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,To=Object.getOwnPropertyDescriptors||function(t){var e={};return Mo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Zo={},_o={get:function(t,e){if(e===Do)return t;var o=co(t);if(!ro(o,e))return function(t,e,o){var r,i=Eo(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!to(r)?r:r===Co(t.t,e)?(Ro(t),t.o[e]=Uo(t.A.h,r,t)):r},has:function(t,e){return e in co(t)},ownKeys:function(t){return Reflect.ownKeys(co(t))},set:function(t,e,o){var r=Eo(co(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Co(co(t),e),n=null==i?void 0:i[Do];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(no(o,i)&&(void 0!==o||ro(t.t,e)))return!0;Ro(t),$o(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Co(t.t,e)||e in t.t?(t.R[e]=!1,Ro(t),$o(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=co(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){Je(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Je(12)}},Ho={};eo(_o,(function(t,e){Ho[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ho.deleteProperty=function(t,e){return Ho.set.call(this,t,e,void 0)},Ho.set=function(t,e,o){return _o.set.call(this,t[0],e,o,t[0])};var Go=function(){function t(t){var e=this;this.O=Fo,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Je(6),void 0!==r&&"function"!=typeof r&&Je(7),to(t)){var s=vo(e),c=Uo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?bo(s):mo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return go(s,r),xo(t,s)}),(function(t){throw bo(s),t})):(go(s,r),xo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Ko&&(a=void 0),e.D&&fo(a,!0),r){var f=[],h=[];uo("Patches").M(t,a,f,h),r(f,h)}return a}Je(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){to(t)||Je(8),Qe(t)&&(t=ko(t));var e=vo(this),o=Uo(this,t,void 0);return o[Do].C=!0,mo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Do]).A;return go(o,e),xo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Fo&&Je(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=uo("Patches").$;return Qe(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Vo=new Go,qo=Vo.produce;function Yo(t){return Yo="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},Yo(t)}function Xo(t){var e=function(t,e){if("object"!==Yo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yo(e)?e:String(e)}function Jo(t,e,o){return(e=Xo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Qo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function tr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Qo(Object(o),!0).forEach((function(e){Jo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Qo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function er(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Vo.produceWithPatches.bind(Vo),Vo.setAutoFreeze.bind(Vo),Vo.setUseProxies.bind(Vo),Vo.applyPatches.bind(Vo),Vo.createDraft.bind(Vo),Vo.finishDraft.bind(Vo);var or="function"==typeof Symbol&&Symbol.observable||"@@observable",rr=function(){return Math.random().toString(36).substring(7).split("").join(".")},ir={INIT:"@@redux/INIT"+rr(),REPLACE:"@@redux/REPLACE"+rr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+rr()}};function nr(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(er(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(er(1));return o(nr)(t,e)}if("function"!=typeof t)throw new Error(er(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(er(3));return n}function h(t){if("function"!=typeof t)throw new Error(er(4));if(c)throw new Error(er(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(er(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(er(7));if(void 0===t.type)throw new Error(er(8));if(c)throw new Error(er(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:ir.INIT}),(r={dispatch:p,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(er(10));i=t,p({type:ir.REPLACE})}})[or]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(er(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[or]=function(){return this},t},r}function ar(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ir.INIT}))throw new Error(er(12));if(void 0===o(void 0,{type:ir.PROBE_UNKNOWN_ACTION()}))throw new Error(er(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(er(14));i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function sr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function cr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(er(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=sr.apply(void 0,n)(o.dispatch),tr(tr({},o),{},{dispatch:r})}}}function lr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var fr=lr();fr.withExtraArgument=lr;var hr,pr=fr,dr=(hr=function(t,e){return hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},hr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}hr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ur=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},yr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},gr=Object.defineProperty,br=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,wr=function(t,e,o){return e in t?gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Sr=function(t,e){for(var o in e||(e={}))Or.call(e,o)&&wr(t,o,e[o]);if(vr)for(var r=0,i=vr(e);r<i.length;r++){o=i[r];xr.call(e,o)&&wr(t,o,e[o])}return t},Nr=function(t,e){return br(t,mr(e))},Cr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?sr:sr.apply(null,arguments)};var Er=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return dr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,yr([void 0],t.concat(this))))},e}(Array),$r=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return dr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,yr([void 0],t.concat(this))))},e}(Array);function Rr(t){return to(t)?qo(t,(function(){})):t}function Ur(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Er;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(pr.withExtraArgument(o.extraArgument)):r.push(pr));return r}(t)}}function kr(t){var e,o=Ur(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,p=r.enhancers,d=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ar(n)}var u=s;"function"==typeof u&&(u=u(o));var y=cr.apply(void 0,u),g=sr;l&&(g=Cr(Sr({trace:!1},"object"==typeof l&&l)));var b=new $r(y),m=b;return Array.isArray(d)?m=yr([y],d):"function"==typeof d&&(m=d(b)),nr(e,h,g.apply(void 0,m))}function Ir(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Sr(Sr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Lr(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Wr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Rr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Lr(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Sr(Sr({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Lr(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Rr(t())};else{var l=Rr(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=yr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(Qe(t))return void 0===(r=o(t,e))?t:r;if(to(t))return qo(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Ir(l,r):Ir(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Ar=["name","message","stack","code"],jr=function(t,e){this.payload=t,this.meta=e},Br=function(t,e){this.payload=t,this.meta=e},Fr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Ar;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Kr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Ir(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Nr(Sr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Ir(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Nr(Sr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ir(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Fr)(t||"Rejected"),meta:Nr(Sr({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new a;function d(t){f=t,p.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,m;return ur(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new jr(t,e)},fulfillWithValue:function(t,e){return new Br(t,e)}})).then((function(e){if(e instanceof jr)throw e;return e instanceof Br?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof jr?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var O}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:d,requestId:h,arg:t,unwrap:function(){return u.then(Kr)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Pr="listenerMiddleware";Ir(Pr+"/add"),Ir(Pr+"/removeAll"),Ir(Pr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Do];return _o.get(e,t)},set:function(e){var o=this[Do];_o.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Do];if(!i.P)switch(i.i){case 5:r(i)&&$o(i);break;case 4:o(i)&&$o(i)}}}function o(t){for(var e=t.t,o=t.k,r=Mo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Do){var a=e[n];if(void 0===a&&!ro(e,n))return!0;var s=o[n],c=s&&s[Do];if(c?c.t!==a:!no(s,a))return!0}}var l=!!e[Do];return r.length!==Mo(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Zo[t]||(Zo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=To(o);delete n[Do];for(var a=Mo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:yo(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Do,{value:n,writable:!0}),i},S:function(t,o,i){i?Qe(o)&&o[Do].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Do];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)eo(n,(function(e){e!==Do&&(void 0!==i[e]||ro(i,e)?a[e]||t(n[e]):(a[e]=!0,$o(o)))})),eo(i,(function(t){void 0!==n[t]||ro(n,t)||(a[t]=!1,$o(o))}));else if(5===s){if(r(o)&&($o(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Dr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Ze(i))return i;if(null==r)return;const n=Wr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=kr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Dr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const zr=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!L(t,e),attribute:!1,...e};R(i)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}},Mr=Symbol("elementInternals");var Tr,Zr,_r;const Hr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(_r=null===(Zr=null===(Tr=window.safari)||void 0===Tr?void 0:Tr.pushNotification)||void 0===Zr?void 0:Zr.toString())&&void 0!==_r?_r:""),Gr=1,Vr=2,qr=t=>(...e)=>({_$litDirective$:t,values:e});
120
+ `;class Ze{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function _e(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var He,Ge,Ve;const qe=Symbol("internalReduxEventsUnsubscribers"),Ye=Symbol("internalStoresUnsubscribers"),Xe=Symbol("internalStores");class Je extends De{constructor(){super(...arguments),this[He]=new Map,this[Ge]=new Map,this[Ve]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Xe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xe].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Xe].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:_e(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Xe].delete(e)}setupStore(t,e){this[Xe].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Xe].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Ye].has(t.store):this[Ye].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Ye].set(t,e.subscribe((()=>this.updateFromStores()))),_e(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[qe].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ye].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[qe].forEach((t=>t())),this[qe]=[]}unsubscribeFromStore(t){this[Ye].has(t)&&this[Ye].get(t)(),this[Ye].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Qe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function to(t){return!!t&&!!t[zo]}function eo(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Mo}(t)||Array.isArray(t)||!!t[Do]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Do])||so(t)||co(t))}function oo(t,e,o){void 0===o&&(o=!1),0===ro(t)?(o?Object.keys:To)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function ro(t){var e=t[zo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:so(t)?2:co(t)?3:0}function io(t,e){return 2===ro(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function no(t,e,o){var r=ro(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function ao(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function so(t){return Fo&&t instanceof Map}function co(t){return Bo&&t instanceof Set}function lo(t){return t.o||t.t}function fo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Zo(t);delete e[zo];for(var o=To(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function ho(t,e){return void 0===e&&(e=!1),uo(t)||to(t)||!eo(t)||(ro(t)>1&&(t.set=t.add=t.clear=t.delete=po),Object.freeze(t),e&&oo(t,(function(t,e){return ho(e,!0)}),!0)),t}function po(){Qe(2)}function uo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function yo(t){var e=_o[t];return e||Qe(18,t),e}function go(){return Ao}function bo(t,e){e&&(yo("Patches"),t.u=[],t.s=[],t.v=e)}function mo(t){vo(t),t.p.forEach(xo),t.p=null}function vo(t){t===Ao&&(Ao=t.l)}function Oo(t){return Ao={p:[],l:Ao,h:t,m:!0,_:0}}function xo(t){var e=t[zo];0===e.i||1===e.i?e.j():e.g=!0}function wo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||yo("ES5").S(e,t,r),r?(o[zo].P&&(mo(e),Qe(4)),eo(t)&&(t=So(e,t),e.l||Co(e,t)),e.u&&yo("Patches").M(o[zo].t,t,e.u,e.s)):t=So(e,o,[]),mo(e),e.u&&e.v(e.u,e.s),t!==Po?t:void 0}function So(t,e,o){if(uo(e))return e;var r=e[zo];if(!r)return oo(e,(function(i,n){return No(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Co(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=fo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),oo(n,(function(e,n){return No(t,r,i,e,n,o,a)})),Co(t,i,!1),o&&t.u&&yo("Patches").N(r,o,t.u,t.s)}return r.o}function No(t,e,o,r,i,n,a){if(to(i)){var s=So(t,i,n&&e&&3!==e.i&&!io(e.R,r)?n.concat(r):void 0);if(no(o,r,s),!to(s))return;t.m=!1}else a&&o.add(i);if(eo(i)&&!uo(i)){if(!t.h.D&&t._<1)return;So(t,i),e&&e.A.l||Co(t,i)}}function Co(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&ho(e,o)}function Eo(t,e){var o=t[zo];return(o?lo(o):t)[e]}function $o(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function Ro(t){t.P||(t.P=!0,t.l&&Ro(t.l))}function Uo(t){t.o||(t.o=fo(t.t))}function ko(t,e,o){var r=so(e)?yo("MapSet").F(e,o):co(e)?yo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:go(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Ho;o&&(i=[r],n=Go);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):yo("ES5").J(e,o);return(o?o.A:go()).p.push(r),r}function Io(t){return to(t)||Qe(22,t),function t(e){if(!eo(e))return e;var o,r=e[zo],i=ro(e);if(r){if(!r.P&&(r.i<4||!yo("ES5").K(r)))return r.t;r.I=!0,o=Lo(e,i),r.I=!1}else o=Lo(e,i);return oo(o,(function(e,i){r&&function(t,e){return 2===ro(t)?t.get(e):t[e]}(r.t,e)===i||no(o,e,t(i))})),3===i?new Set(o):o}(t)}function Lo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return fo(t)}He=Ye,Ge=Xe,Ve=qe;var Wo,Ao,jo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Fo="undefined"!=typeof Map,Bo="undefined"!=typeof Set,Ko="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Po=jo?Symbol.for("immer-nothing"):((Wo={})["immer-nothing"]=!0,Wo),Do=jo?Symbol.for("immer-draftable"):"__$immer_draftable",zo=jo?Symbol.for("immer-state"):"__$immer_state",Mo=""+Object.prototype.constructor,To="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Zo=Object.getOwnPropertyDescriptors||function(t){var e={};return To(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},_o={},Ho={get:function(t,e){if(e===zo)return t;var o=lo(t);if(!io(o,e))return function(t,e,o){var r,i=$o(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!eo(r)?r:r===Eo(t.t,e)?(Uo(t),t.o[e]=ko(t.A.h,r,t)):r},has:function(t,e){return e in lo(t)},ownKeys:function(t){return Reflect.ownKeys(lo(t))},set:function(t,e,o){var r=$o(lo(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Eo(lo(t),e),n=null==i?void 0:i[zo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ao(o,i)&&(void 0!==o||io(t.t,e)))return!0;Uo(t),Ro(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Eo(t.t,e)||e in t.t?(t.R[e]=!1,Uo(t),Ro(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=lo(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){Qe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Qe(12)}},Go={};oo(Ho,(function(t,e){Go[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Go.deleteProperty=function(t,e){return Go.set.call(this,t,e,void 0)},Go.set=function(t,e,o){return Ho.set.call(this,t[0],e,o,t[0])};var Vo=function(){function t(t){var e=this;this.O=Ko,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Qe(6),void 0!==r&&"function"!=typeof r&&Qe(7),eo(t)){var s=Oo(e),c=ko(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?mo(s):vo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return bo(s,r),wo(t,s)}),(function(t){throw mo(s),t})):(bo(s,r),wo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Po&&(a=void 0),e.D&&ho(a,!0),r){var f=[],h=[];yo("Patches").M(t,a,f,h),r(f,h)}return a}Qe(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){eo(t)||Qe(8),to(t)&&(t=Io(t));var e=Oo(this),o=ko(this,t,void 0);return o[zo].C=!0,vo(e),o},e.finishDraft=function(t,e){var o=(t&&t[zo]).A;return bo(o,e),wo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ko&&Qe(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=yo("Patches").$;return to(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),qo=new Vo,Yo=qo.produce;function Xo(t){return Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(t)}function Jo(t){var e=function(t,e){if("object"!==Xo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xo(e)?e:String(e)}function Qo(t,e,o){return(e=Jo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function tr(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function er(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?tr(Object(o),!0).forEach((function(e){Qo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):tr(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function or(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}qo.produceWithPatches.bind(qo),qo.setAutoFreeze.bind(qo),qo.setUseProxies.bind(qo),qo.applyPatches.bind(qo),qo.createDraft.bind(qo),qo.finishDraft.bind(qo);var rr="function"==typeof Symbol&&Symbol.observable||"@@observable",ir=function(){return Math.random().toString(36).substring(7).split("").join(".")},nr={INIT:"@@redux/INIT"+ir(),REPLACE:"@@redux/REPLACE"+ir(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ir()}};function ar(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(or(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(or(1));return o(ar)(t,e)}if("function"!=typeof t)throw new Error(or(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(or(3));return n}function h(t){if("function"!=typeof t)throw new Error(or(4));if(c)throw new Error(or(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(or(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function p(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(or(7));if(void 0===t.type)throw new Error(or(8));if(c)throw new Error(or(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:nr.INIT}),(r={dispatch:p,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(or(10));i=t,p({type:nr.REPLACE})}})[rr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(or(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[rr]=function(){return this},t},r}function sr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:nr.INIT}))throw new Error(or(12));if(void 0===o(void 0,{type:nr.PROBE_UNKNOWN_ACTION()}))throw new Error(or(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(or(14));i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function cr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function lr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(or(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=cr.apply(void 0,n)(o.dispatch),er(er({},o),{},{dispatch:r})}}}function fr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var hr=fr();hr.withExtraArgument=fr;var pr,dr=hr,ur=(pr=function(t,e){return pr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},pr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}pr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),yr=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},gr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},br=Object.defineProperty,mr=Object.defineProperties,vr=Object.getOwnPropertyDescriptors,Or=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,Sr=function(t,e,o){return e in t?br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Nr=function(t,e){for(var o in e||(e={}))xr.call(e,o)&&Sr(t,o,e[o]);if(Or)for(var r=0,i=Or(e);r<i.length;r++){o=i[r];wr.call(e,o)&&Sr(t,o,e[o])}return t},Cr=function(t,e){return mr(t,vr(e))},Er="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?cr:cr.apply(null,arguments)};var $r=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return ur(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,gr([void 0],t[0].concat(this)))):new(e.bind.apply(e,gr([void 0],t.concat(this))))},e}(Array),Rr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return ur(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,gr([void 0],t[0].concat(this)))):new(e.bind.apply(e,gr([void 0],t.concat(this))))},e}(Array);function Ur(t){return eo(t)?Yo(t,(function(){})):t}function kr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new $r;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(dr.withExtraArgument(o.extraArgument)):r.push(dr));return r}(t)}}function Ir(t){var e,o=kr(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,p=r.enhancers,d=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=sr(n)}var u=s;"function"==typeof u&&(u=u(o));var y=lr.apply(void 0,u),g=cr;l&&(g=Er(Nr({trace:!1},"object"==typeof l&&l)));var b=new Rr(y),m=b;return Array.isArray(d)?m=gr([y],d):"function"==typeof d&&(m=d(b)),ar(e,h,g.apply(void 0,m))}function Lr(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Nr(Nr({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Wr(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Ar(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Ur(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Wr(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Nr(Nr({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Wr(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Ur(t())};else{var l=Ur(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=gr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(to(t))return void 0===(r=o(t,e))?t:r;if(eo(t))return Yo(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Lr(l,r):Lr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var jr=["name","message","stack","code"],Fr=function(t,e){this.payload=t,this.meta=e},Br=function(t,e){this.payload=t,this.meta=e},Kr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=jr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Pr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Lr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Cr(Nr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Lr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Cr(Nr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Lr(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Kr)(t||"Rejected"),meta:Cr(Nr({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new a;function d(t){f=t,p.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,m;return yr(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new Fr(t,e)},fulfillWithValue:function(t,e){return new Br(t,e)}})).then((function(e){if(e instanceof Fr)throw e;return e instanceof Br?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Fr?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var O}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:d,requestId:h,arg:t,unwrap:function(){return u.then(Pr)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Dr="listenerMiddleware";Lr(Dr+"/add"),Lr(Dr+"/removeAll"),Lr(Dr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[zo];return Ho.get(e,t)},set:function(e){var o=this[zo];Ho.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][zo];if(!i.P)switch(i.i){case 5:r(i)&&Ro(i);break;case 4:o(i)&&Ro(i)}}}function o(t){for(var e=t.t,o=t.k,r=To(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==zo){var a=e[n];if(void 0===a&&!io(e,n))return!0;var s=o[n],c=s&&s[zo];if(c?c.t!==a:!ao(s,a))return!0}}var l=!!e[zo];return r.length!==To(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){_o[t]||(_o[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Zo(o);delete n[zo];for(var a=To(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:go(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,zo,{value:n,writable:!0}),i},S:function(t,o,i){i?to(o)&&o[zo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[zo];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)oo(n,(function(e){e!==zo&&(void 0!==i[e]||io(i,e)?a[e]||t(n[e]):(a[e]=!0,Ro(o)))})),oo(i,(function(t){void 0!==n[t]||io(n,t)||(a[t]=!1,Ro(o))}));else if(5===s){if(r(o)&&(Ro(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class zr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(_e(i))return i;if(null==r)return;const n=Ar({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Ir({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new zr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Mr=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!L(t,e),attribute:!1,...e};R(i)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}},Tr=Symbol("elementInternals");var Zr,_r,Hr;const Gr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Hr=null===(_r=null===(Zr=window.safari)||void 0===Zr?void 0:Zr.pushNotification)||void 0===_r?void 0:_r.toString())&&void 0!==Hr?Hr:""),Vr=1,qr=2,Yr=t=>(...e)=>({_$litDirective$:t,values:e});
117
121
  /**
118
122
  * @license
119
123
  * Copyright 2017 Google LLC
120
124
  * SPDX-License-Identifier: BSD-3-Clause
121
- */let Yr=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
125
+ */let Xr=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
122
126
  /**
123
127
  * @license
124
128
  * Copyright 2018 Google LLC
125
129
  * SPDX-License-Identifier: BSD-3-Clause
126
- */const Xr=qr(class extends Yr{constructor(t){if(super(t),t.type!==Gr||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return ot}}),Jr=Ce.extend("--ft-ripple-color","",Ie.colorContent),Qr={color:Jr,backgroundColor:Ce.extend("--ft-ripple-background-color","",Jr),opacityContentOnSurfacePressed:Ce.external(Ie.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ce.external(Ie.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ce.external(Ie.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ce.external(Ie.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ce.create("--ft-ripple-border-radius","","SIZE","0px")},ti=Ce.extend("--ft-ripple-color","",Ie.colorPrimary),ei=ti,oi=Ce.extend("--ft-ripple-background-color","",ti),ri=Ce.extend("--ft-ripple-color","",Ie.colorSecondary),ii=ri,ni=Ce.extend("--ft-ripple-background-color","",ri),ai=Ct`
130
+ */const Jr=Yr(class extends Xr{constructor(t){if(super(t),t.type!==Vr||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return ot}}),Qr=Ce.extend("--ft-ripple-color","",Ie.colorContent),ti={color:Qr,backgroundColor:Ce.extend("--ft-ripple-background-color","",Qr),opacityContentOnSurfacePressed:Ce.external(Ie.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ce.external(Ie.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ce.external(Ie.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ce.external(Ie.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ce.create("--ft-ripple-border-radius","","SIZE","0px")},ei=Ce.extend("--ft-ripple-color","",Ie.colorPrimary),oi=ei,ri=Ce.extend("--ft-ripple-background-color","",ei),ii=Ce.extend("--ft-ripple-color","",Ie.colorSecondary),ni=ii,ai=Ce.extend("--ft-ripple-background-color","",ii),si=Ct`
127
131
  :host {
128
132
  display: contents;
129
133
  }
@@ -136,7 +140,7 @@ let we=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
136
140
 
137
141
  .ft-ripple:not(.ft-ripple--unbounded) {
138
142
  overflow: hidden;
139
- border-radius: ${Qr.borderRadius};
143
+ border-radius: ${ti.borderRadius};
140
144
  }
141
145
 
142
146
  .ft-ripple .ft-ripple--background,
@@ -170,27 +174,27 @@ let we=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
170
174
  }
171
175
 
172
176
  .ft-ripple .ft-ripple--background {
173
- background-color: ${Qr.backgroundColor};
177
+ background-color: ${ti.backgroundColor};
174
178
  }
175
179
 
176
180
  .ft-ripple .ft-ripple--effect {
177
- background-color: ${Qr.color};
181
+ background-color: ${ti.color};
178
182
  }
179
183
 
180
184
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
181
- background-color: ${ni};
185
+ background-color: ${ai};
182
186
  }
183
187
 
184
188
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
185
- background-color: ${ii};
189
+ background-color: ${ni};
186
190
  }
187
191
 
188
192
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
189
- background-color: ${oi};
193
+ background-color: ${ri};
190
194
  }
191
195
 
192
196
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
193
- background-color: ${ei};
197
+ background-color: ${oi};
194
198
  }
195
199
 
196
200
  .ft-ripple .ft-ripple--background {
@@ -220,134 +224,134 @@ let we=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
220
224
  }
221
225
 
222
226
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
223
- opacity: ${Qr.opacityContentOnSurfaceHover};
227
+ opacity: ${ti.opacityContentOnSurfaceHover};
224
228
  }
225
229
 
226
230
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
227
- opacity: ${Qr.opacityContentOnSurfaceSelected};
231
+ opacity: ${ti.opacityContentOnSurfaceSelected};
228
232
  }
229
233
 
230
234
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
231
- opacity: ${Qr.opacityContentOnSurfaceFocused};
235
+ opacity: ${ti.opacityContentOnSurfaceFocused};
232
236
  }
233
237
 
234
238
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
235
- opacity: ${Qr.opacityContentOnSurfacePressed};
239
+ opacity: ${ti.opacityContentOnSurfacePressed};
236
240
  transform: translate(-50%, -50%) scale(1);
237
241
  }
238
- `;var si=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ci extends De{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return se`
242
+ `;var ci=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class li extends De{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return se`
239
243
  <style>
240
244
  .ft-ripple .ft-ripple--effect {
241
245
  left: ${this.originX}px;
242
246
  top: ${this.originY}px;
243
247
  }
244
248
  </style>
245
- <div class="${Xr(t)}">
249
+ <div class="${Jr(t)}">
246
250
  <div class="ft-ripple--background"></div>
247
251
  <div class="ft-ripple--effect"></div>
248
252
  </div>
249
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),r=e("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ci.elementDefinitions={},ci.styles=ai,si([R({type:Boolean})],ci.prototype,"primary",void 0),si([R({type:Boolean})],ci.prototype,"secondary",void 0),si([R({type:Boolean})],ci.prototype,"unbounded",void 0),si([R({type:Boolean})],ci.prototype,"activated",void 0),si([R({type:Boolean})],ci.prototype,"selected",void 0),si([R({type:Boolean})],ci.prototype,"disabled",void 0),si([U()],ci.prototype,"hovered",void 0),si([U()],ci.prototype,"focused",void 0),si([U()],ci.prototype,"pressed",void 0),si([U()],ci.prototype,"rippling",void 0),si([U()],ci.prototype,"originX",void 0),si([U()],ci.prototype,"originY",void 0),si([I(".ft-ripple")],ci.prototype,"ripple",void 0),si([I(".ft-ripple--effect")],ci.prototype,"rippleEffect",void 0),W("ft-ripple")(ci);
253
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),r=e("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}li.elementDefinitions={},li.styles=si,ci([R({type:Boolean})],li.prototype,"primary",void 0),ci([R({type:Boolean})],li.prototype,"secondary",void 0),ci([R({type:Boolean})],li.prototype,"unbounded",void 0),ci([R({type:Boolean})],li.prototype,"activated",void 0),ci([R({type:Boolean})],li.prototype,"selected",void 0),ci([R({type:Boolean})],li.prototype,"disabled",void 0),ci([U()],li.prototype,"hovered",void 0),ci([U()],li.prototype,"focused",void 0),ci([U()],li.prototype,"pressed",void 0),ci([U()],li.prototype,"rippling",void 0),ci([U()],li.prototype,"originX",void 0),ci([U()],li.prototype,"originY",void 0),ci([I(".ft-ripple")],li.prototype,"ripple",void 0),ci([I(".ft-ripple--effect")],li.prototype,"rippleEffect",void 0),W("ft-ripple")(li);
250
254
  /**
251
255
  * @license
252
256
  * Copyright 2020 Google LLC
253
257
  * SPDX-License-Identifier: BSD-3-Clause
254
258
  */
255
- const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$litStatic$:t,r:li}),pi=new Map,di=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(n=o[l],i=fi(n));)c+=i+e[++l],f=!0;l!==r&&s.push(n),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=pi.get(t))&&(a.raw=a,pi.set(t,e=a)),o=s}return t(e,...o)})(et);var ui;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(ui||(ui={}));const yi=Ce.extend("--ft-typography-font-family","",Ie.titleFont),gi=Ce.extend("--ft-typography-font-family","",Ie.contentFont),bi={fontFamily:gi,fontSize:Ce.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ce.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ce.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ce.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ce.create("--ft-typography-text-transform","","UNKNOWN","inherit")},mi=Ce.extend("--ft-typography-title-font-family","",yi),vi=Ce.extend("--ft-typography-title-font-size","",bi.fontSize,"20px"),Oi=Ce.extend("--ft-typography-title-font-weight","",bi.fontWeight,"normal"),xi=Ce.extend("--ft-typography-title-letter-spacing","",bi.letterSpacing,"0.15px"),wi=Ce.extend("--ft-typography-title-line-height","",bi.lineHeight,"1.2"),Si=Ce.extend("--ft-typography-title-text-transform","",bi.textTransform,"inherit"),Ni=Ce.extend("--ft-typography-title-dense-font-family","",yi),Ci=Ce.extend("--ft-typography-title-dense-font-size","",bi.fontSize,"14px"),Ei=Ce.extend("--ft-typography-title-dense-font-weight","",bi.fontWeight,"normal"),$i=Ce.extend("--ft-typography-title-dense-letter-spacing","",bi.letterSpacing,"0.105px"),Ri=Ce.extend("--ft-typography-title-dense-line-height","",bi.lineHeight,"1.7"),Ui=Ce.extend("--ft-typography-title-dense-text-transform","",bi.textTransform,"inherit"),ki=Ce.extend("--ft-typography-subtitle1-font-family","",gi),Ii=Ce.extend("--ft-typography-subtitle1-font-size","",bi.fontSize,"16px"),Li=Ce.extend("--ft-typography-subtitle1-font-weight","",bi.fontWeight,"600"),Wi=Ce.extend("--ft-typography-subtitle1-letter-spacing","",bi.letterSpacing,"0.144px"),Ai=Ce.extend("--ft-typography-subtitle1-line-height","",bi.lineHeight,"1.5"),ji=Ce.extend("--ft-typography-subtitle1-text-transform","",bi.textTransform,"inherit"),Bi=Ce.extend("--ft-typography-subtitle2-font-family","",gi),Fi=Ce.extend("--ft-typography-subtitle2-font-size","",bi.fontSize,"14px"),Ki=Ce.extend("--ft-typography-subtitle2-font-weight","",bi.fontWeight,"normal"),Pi=Ce.extend("--ft-typography-subtitle2-letter-spacing","",bi.letterSpacing,"0.098px"),Di=Ce.extend("--ft-typography-subtitle2-line-height","",bi.lineHeight,"1.7"),zi=Ce.extend("--ft-typography-subtitle2-text-transform","",bi.textTransform,"inherit"),Mi=Ce.extend("--ft-typography-body1-font-family","",gi),Ti=Ce.extend("--ft-typography-body1-font-size","",bi.fontSize,"16px"),Zi=Ce.extend("--ft-typography-body1-font-weight","",bi.fontWeight,"normal"),_i=Ce.extend("--ft-typography-body1-letter-spacing","",bi.letterSpacing,"0.496px"),Hi=Ce.extend("--ft-typography-body1-line-height","",bi.lineHeight,"1.5"),Gi=Ce.extend("--ft-typography-body1-text-transform","",bi.textTransform,"inherit"),Vi={fontFamily:Ce.extend("--ft-typography-body2-font-family","",gi),fontSize:Ce.extend("--ft-typography-body2-font-size","",bi.fontSize,"14px"),fontWeight:Ce.extend("--ft-typography-body2-font-weight","",bi.fontWeight,"normal"),letterSpacing:Ce.extend("--ft-typography-body2-letter-spacing","",bi.letterSpacing,"0.252px"),lineHeight:Ce.extend("--ft-typography-body2-line-height","",bi.lineHeight,"1.4"),textTransform:Ce.extend("--ft-typography-body2-text-transform","",bi.textTransform,"inherit")},qi=Ce.extend("--ft-typography-caption-font-family","",gi),Yi=Ce.extend("--ft-typography-caption-font-size","",bi.fontSize,"12px"),Xi=Ce.extend("--ft-typography-caption-font-weight","",bi.fontWeight,"normal"),Ji=Ce.extend("--ft-typography-caption-letter-spacing","",bi.letterSpacing,"0.396px"),Qi=Ce.extend("--ft-typography-caption-line-height","",bi.lineHeight,"1.33"),tn=Ce.extend("--ft-typography-caption-text-transform","",bi.textTransform,"inherit"),en=Ce.extend("--ft-typography-breadcrumb-font-family","",gi),on=Ce.extend("--ft-typography-breadcrumb-font-size","",bi.fontSize,"10px"),rn=Ce.extend("--ft-typography-breadcrumb-font-weight","",bi.fontWeight,"normal"),nn=Ce.extend("--ft-typography-breadcrumb-letter-spacing","",bi.letterSpacing,"0.33px"),an=Ce.extend("--ft-typography-breadcrumb-line-height","",bi.lineHeight,"1.6"),sn=Ce.extend("--ft-typography-breadcrumb-text-transform","",bi.textTransform,"inherit"),cn=Ce.extend("--ft-typography-overline-font-family","",gi),ln=Ce.extend("--ft-typography-overline-font-size","",bi.fontSize,"10px"),fn=Ce.extend("--ft-typography-overline-font-weight","",bi.fontWeight,"normal"),hn=Ce.extend("--ft-typography-overline-letter-spacing","",bi.letterSpacing,"1.5px"),pn=Ce.extend("--ft-typography-overline-line-height","",bi.lineHeight,"1.6"),dn=Ce.extend("--ft-typography-overline-text-transform","",bi.textTransform,"uppercase"),un={fontFamily:Ce.extend("--ft-typography-button-font-family","",gi),fontSize:Ce.extend("--ft-typography-button-font-size","",bi.fontSize,"14px"),fontWeight:Ce.extend("--ft-typography-button-font-weight","",bi.fontWeight,"600"),letterSpacing:Ce.extend("--ft-typography-button-letter-spacing","",bi.letterSpacing,"1.246px"),lineHeight:Ce.extend("--ft-typography-button-line-height","",bi.lineHeight,"1.15"),textTransform:Ce.extend("--ft-typography-button-text-transform","",bi.textTransform,"uppercase")},yn=Ct`
259
+ const fi=Symbol.for(""),hi=t=>{if(t?.r===fi)return t?._$litStatic$},pi=t=>({_$litStatic$:t,r:fi}),di=new Map,ui=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(n=o[l],i=hi(n));)c+=i+e[++l],f=!0;l!==r&&s.push(n),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=di.get(t))&&(a.raw=a,di.set(t,e=a)),o=s}return t(e,...o)})(et);var yi;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(yi||(yi={}));const gi=Ce.extend("--ft-typography-font-family","",Ie.titleFont),bi=Ce.extend("--ft-typography-font-family","",Ie.contentFont),mi={fontFamily:bi,fontSize:Ce.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ce.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ce.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ce.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ce.create("--ft-typography-text-transform","","UNKNOWN","inherit")},vi=Ce.extend("--ft-typography-title-font-family","",gi),Oi=Ce.extend("--ft-typography-title-font-size","",mi.fontSize,"20px"),xi=Ce.extend("--ft-typography-title-font-weight","",mi.fontWeight,"normal"),wi=Ce.extend("--ft-typography-title-letter-spacing","",mi.letterSpacing,"0.15px"),Si=Ce.extend("--ft-typography-title-line-height","",mi.lineHeight,"1.2"),Ni=Ce.extend("--ft-typography-title-text-transform","",mi.textTransform,"inherit"),Ci=Ce.extend("--ft-typography-title-dense-font-family","",gi),Ei=Ce.extend("--ft-typography-title-dense-font-size","",mi.fontSize,"14px"),$i=Ce.extend("--ft-typography-title-dense-font-weight","",mi.fontWeight,"normal"),Ri=Ce.extend("--ft-typography-title-dense-letter-spacing","",mi.letterSpacing,"0.105px"),Ui=Ce.extend("--ft-typography-title-dense-line-height","",mi.lineHeight,"1.7"),ki=Ce.extend("--ft-typography-title-dense-text-transform","",mi.textTransform,"inherit"),Ii=Ce.extend("--ft-typography-subtitle1-font-family","",bi),Li=Ce.extend("--ft-typography-subtitle1-font-size","",mi.fontSize,"16px"),Wi=Ce.extend("--ft-typography-subtitle1-font-weight","",mi.fontWeight,"600"),Ai=Ce.extend("--ft-typography-subtitle1-letter-spacing","",mi.letterSpacing,"0.144px"),ji=Ce.extend("--ft-typography-subtitle1-line-height","",mi.lineHeight,"1.5"),Fi=Ce.extend("--ft-typography-subtitle1-text-transform","",mi.textTransform,"inherit"),Bi=Ce.extend("--ft-typography-subtitle2-font-family","",bi),Ki=Ce.extend("--ft-typography-subtitle2-font-size","",mi.fontSize,"14px"),Pi=Ce.extend("--ft-typography-subtitle2-font-weight","",mi.fontWeight,"normal"),Di=Ce.extend("--ft-typography-subtitle2-letter-spacing","",mi.letterSpacing,"0.098px"),zi=Ce.extend("--ft-typography-subtitle2-line-height","",mi.lineHeight,"1.7"),Mi=Ce.extend("--ft-typography-subtitle2-text-transform","",mi.textTransform,"inherit"),Ti=Ce.extend("--ft-typography-body1-font-family","",bi),Zi=Ce.extend("--ft-typography-body1-font-size","",mi.fontSize,"16px"),_i=Ce.extend("--ft-typography-body1-font-weight","",mi.fontWeight,"normal"),Hi=Ce.extend("--ft-typography-body1-letter-spacing","",mi.letterSpacing,"0.496px"),Gi=Ce.extend("--ft-typography-body1-line-height","",mi.lineHeight,"1.5"),Vi=Ce.extend("--ft-typography-body1-text-transform","",mi.textTransform,"inherit"),qi={fontFamily:Ce.extend("--ft-typography-body2-font-family","",bi),fontSize:Ce.extend("--ft-typography-body2-font-size","",mi.fontSize,"14px"),fontWeight:Ce.extend("--ft-typography-body2-font-weight","",mi.fontWeight,"normal"),letterSpacing:Ce.extend("--ft-typography-body2-letter-spacing","",mi.letterSpacing,"0.252px"),lineHeight:Ce.extend("--ft-typography-body2-line-height","",mi.lineHeight,"1.4"),textTransform:Ce.extend("--ft-typography-body2-text-transform","",mi.textTransform,"inherit")},Yi=Ce.extend("--ft-typography-caption-font-family","",bi),Xi=Ce.extend("--ft-typography-caption-font-size","",mi.fontSize,"12px"),Ji=Ce.extend("--ft-typography-caption-font-weight","",mi.fontWeight,"normal"),Qi=Ce.extend("--ft-typography-caption-letter-spacing","",mi.letterSpacing,"0.396px"),tn=Ce.extend("--ft-typography-caption-line-height","",mi.lineHeight,"1.33"),en=Ce.extend("--ft-typography-caption-text-transform","",mi.textTransform,"inherit"),on=Ce.extend("--ft-typography-breadcrumb-font-family","",bi),rn=Ce.extend("--ft-typography-breadcrumb-font-size","",mi.fontSize,"10px"),nn=Ce.extend("--ft-typography-breadcrumb-font-weight","",mi.fontWeight,"normal"),an=Ce.extend("--ft-typography-breadcrumb-letter-spacing","",mi.letterSpacing,"0.33px"),sn=Ce.extend("--ft-typography-breadcrumb-line-height","",mi.lineHeight,"1.6"),cn=Ce.extend("--ft-typography-breadcrumb-text-transform","",mi.textTransform,"inherit"),ln=Ce.extend("--ft-typography-overline-font-family","",bi),fn=Ce.extend("--ft-typography-overline-font-size","",mi.fontSize,"10px"),hn=Ce.extend("--ft-typography-overline-font-weight","",mi.fontWeight,"normal"),pn=Ce.extend("--ft-typography-overline-letter-spacing","",mi.letterSpacing,"1.5px"),dn=Ce.extend("--ft-typography-overline-line-height","",mi.lineHeight,"1.6"),un=Ce.extend("--ft-typography-overline-text-transform","",mi.textTransform,"uppercase"),yn={fontFamily:Ce.extend("--ft-typography-button-font-family","",bi),fontSize:Ce.extend("--ft-typography-button-font-size","",mi.fontSize,"14px"),fontWeight:Ce.extend("--ft-typography-button-font-weight","",mi.fontWeight,"600"),letterSpacing:Ce.extend("--ft-typography-button-letter-spacing","",mi.letterSpacing,"1.246px"),lineHeight:Ce.extend("--ft-typography-button-line-height","",mi.lineHeight,"1.15"),textTransform:Ce.extend("--ft-typography-button-text-transform","",mi.textTransform,"uppercase")},gn=Ct`
256
260
  .ft-typography--title {
257
- font-family: ${mi};
258
- font-size: ${vi};
259
- font-weight: ${Oi};
260
- letter-spacing: ${xi};
261
- line-height: ${wi};
262
- text-transform: ${Si};
263
- }
264
- `,gn=Ct`
265
- .ft-typography--title-dense {
266
- font-family: ${Ni};
267
- font-size: ${Ci};
268
- font-weight: ${Ei};
269
- letter-spacing: ${$i};
270
- line-height: ${Ri};
271
- text-transform: ${Ui};
261
+ font-family: ${vi};
262
+ font-size: ${Oi};
263
+ font-weight: ${xi};
264
+ letter-spacing: ${wi};
265
+ line-height: ${Si};
266
+ text-transform: ${Ni};
272
267
  }
273
268
  `,bn=Ct`
274
- .ft-typography--subtitle1 {
275
- font-family: ${ki};
276
- font-size: ${Ii};
277
- font-weight: ${Li};
278
- letter-spacing: ${Wi};
279
- line-height: ${Ai};
280
- text-transform: ${ji};
269
+ .ft-typography--title-dense {
270
+ font-family: ${Ci};
271
+ font-size: ${Ei};
272
+ font-weight: ${$i};
273
+ letter-spacing: ${Ri};
274
+ line-height: ${Ui};
275
+ text-transform: ${ki};
281
276
  }
282
277
  `,mn=Ct`
278
+ .ft-typography--subtitle1 {
279
+ font-family: ${Ii};
280
+ font-size: ${Li};
281
+ font-weight: ${Wi};
282
+ letter-spacing: ${Ai};
283
+ line-height: ${ji};
284
+ text-transform: ${Fi};
285
+ }
286
+ `,vn=Ct`
283
287
  .ft-typography--subtitle2 {
284
288
  font-family: ${Bi};
285
- font-size: ${Fi};
286
- font-weight: ${Ki};
287
- letter-spacing: ${Pi};
288
- line-height: ${Di};
289
- text-transform: ${zi};
289
+ font-size: ${Ki};
290
+ font-weight: ${Pi};
291
+ letter-spacing: ${Di};
292
+ line-height: ${zi};
293
+ text-transform: ${Mi};
290
294
  }
291
295
 
292
- `,vn=Ct`
293
- .ft-typography--body1 {
294
- font-family: ${Mi};
295
- font-size: ${Ti};
296
- font-weight: ${Zi};
297
- letter-spacing: ${_i};
298
- line-height: ${Hi};
299
- text-transform: ${Gi};
300
- }
301
296
  `,On=Ct`
302
- .ft-typography--body2 {
303
- font-family: ${Vi.fontFamily};
304
- font-size: ${Vi.fontSize};
305
- font-weight: ${Vi.fontWeight};
306
- letter-spacing: ${Vi.letterSpacing};
307
- line-height: ${Vi.lineHeight};
308
- text-transform: ${Vi.textTransform};
297
+ .ft-typography--body1 {
298
+ font-family: ${Ti};
299
+ font-size: ${Zi};
300
+ font-weight: ${_i};
301
+ letter-spacing: ${Hi};
302
+ line-height: ${Gi};
303
+ text-transform: ${Vi};
309
304
  }
310
305
  `,xn=Ct`
311
- .ft-typography--caption {
312
- font-family: ${qi};
313
- font-size: ${Yi};
314
- font-weight: ${Xi};
315
- letter-spacing: ${Ji};
316
- line-height: ${Qi};
317
- text-transform: ${tn};
306
+ .ft-typography--body2 {
307
+ font-family: ${qi.fontFamily};
308
+ font-size: ${qi.fontSize};
309
+ font-weight: ${qi.fontWeight};
310
+ letter-spacing: ${qi.letterSpacing};
311
+ line-height: ${qi.lineHeight};
312
+ text-transform: ${qi.textTransform};
318
313
  }
319
314
  `,wn=Ct`
320
- .ft-typography--breadcrumb {
321
- font-family: ${en};
322
- font-size: ${on};
323
- font-weight: ${rn};
324
- letter-spacing: ${nn};
325
- line-height: ${an};
326
- text-transform: ${sn};
315
+ .ft-typography--caption {
316
+ font-family: ${Yi};
317
+ font-size: ${Xi};
318
+ font-weight: ${Ji};
319
+ letter-spacing: ${Qi};
320
+ line-height: ${tn};
321
+ text-transform: ${en};
327
322
  }
328
323
  `,Sn=Ct`
329
- .ft-typography--overline {
330
- font-family: ${cn};
331
- font-size: ${ln};
332
- font-weight: ${fn};
333
- letter-spacing: ${hn};
334
- line-height: ${pn};
335
- text-transform: ${dn};
324
+ .ft-typography--breadcrumb {
325
+ font-family: ${on};
326
+ font-size: ${rn};
327
+ font-weight: ${nn};
328
+ letter-spacing: ${an};
329
+ line-height: ${sn};
330
+ text-transform: ${cn};
336
331
  }
337
332
  `,Nn=Ct`
338
- .ft-typography--button {
339
- font-family: ${un.fontFamily};
340
- font-size: ${un.fontSize};
341
- font-weight: ${un.fontWeight};
342
- letter-spacing: ${un.letterSpacing};
343
- line-height: ${un.lineHeight};
344
- text-transform: ${un.textTransform};
333
+ .ft-typography--overline {
334
+ font-family: ${ln};
335
+ font-size: ${fn};
336
+ font-weight: ${hn};
337
+ letter-spacing: ${pn};
338
+ line-height: ${dn};
339
+ text-transform: ${un};
345
340
  }
346
341
  `,Cn=Ct`
342
+ .ft-typography--button {
343
+ font-family: ${yn.fontFamily};
344
+ font-size: ${yn.fontSize};
345
+ font-weight: ${yn.fontWeight};
346
+ letter-spacing: ${yn.letterSpacing};
347
+ line-height: ${yn.lineHeight};
348
+ text-transform: ${yn.textTransform};
349
+ }
350
+ `,En=Ct`
347
351
  .ft-typography {
348
352
  vertical-align: inherit;
349
353
  }
350
- `,En=[Object.keys(Re).map((t=>function(t){const e=Re[t];return Ct`
354
+ `,$n=[Object.keys(Re).map((t=>function(t){const e=Re[t];return Ct`
351
355
  .ft-typography--${Nt(t)} {
352
356
  font-family: ${e.fontFamily};
353
357
  font-size: ${e.fontSize};
@@ -356,29 +360,29 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
356
360
  line-height: ${e.lineHeight};
357
361
  text-transform: ${e.textCase};
358
362
  }
359
- `}(t)))];var $n=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Rn extends De{constructor(){super(...arguments),this.variant=ui.body1}render(){return this.element?di`
360
- <${hi(this.element)}
363
+ `}(t)))];var Rn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Un extends De{constructor(){super(...arguments),this.variant=yi.body1}render(){return this.element?ui`
364
+ <${pi(this.element)}
361
365
  class="ft-typography ft-typography--${this.variant}">
362
366
  <slot></slot>
363
- </${hi(this.element)}>
364
- `:di`
367
+ </${pi(this.element)}>
368
+ `:ui`
365
369
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
366
- `}}Rn.styles=[yn,gn,bn,mn,vn,On,xn,wn,Sn,Nn,Cn,...En],$n([R()],Rn.prototype,"element",void 0),$n([R()],Rn.prototype,"variant",void 0),W("ft-typography")(Rn);const Un={padding:Ce.create("--ft-card-padding","","SIZE","12px"),borderRadius:Ce.extend("--ft-card-border-radius","",Ie.borderRadiusM),borderStyle:Ce.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:Ce.extend("--ft-card-border-color","",Ie.colorOutline),hoverBorderColor:Ce.extend("--ft-card-hover-border-color","",Ie.colorPrimary),outlineStyle:Ce.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:Ce.create("--ft-card-outline-width","","SIZE","0"),outlineColor:Ce.extend("--ft-card-outline-color","",Ie.colorPrimary),selectedOutlineStyle:Ce.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:Ce.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:Ce.extend("--ft-card-selected-outline-color","",Ie.colorPrimary),selectedBorderRadius:Ce.extend("--ft-card-selected-border-radius","",Ie.borderRadiusM),colorSurface:Ce.external(Ie.colorSurface,"Design system"),colorOnSurfaceMedium:Ce.external(Ie.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:Ce.external(Ie.colorOnSurfaceHigh,"Design system"),elevation02:Ce.external(Ie.elevation02,"Design system"),elevation04:Ce.external(Ie.elevation04,"Design system")},kn=Ct`
370
+ `}}Un.styles=[gn,bn,mn,vn,On,xn,wn,Sn,Nn,Cn,En,...$n],Rn([R()],Un.prototype,"element",void 0),Rn([R()],Un.prototype,"variant",void 0),W("ft-typography")(Un);const kn={padding:Ce.create("--ft-card-padding","","SIZE","12px"),borderRadius:Ce.extend("--ft-card-border-radius","",Ie.borderRadiusM),borderStyle:Ce.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:Ce.extend("--ft-card-border-color","",Ie.colorOutline),hoverBorderColor:Ce.extend("--ft-card-hover-border-color","",Ie.colorPrimary),outlineStyle:Ce.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:Ce.create("--ft-card-outline-width","","SIZE","0"),outlineColor:Ce.extend("--ft-card-outline-color","",Ie.colorPrimary),selectedOutlineStyle:Ce.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:Ce.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:Ce.extend("--ft-card-selected-outline-color","",Ie.colorPrimary),selectedBorderRadius:Ce.extend("--ft-card-selected-border-radius","",Ie.borderRadiusM),colorSurface:Ce.external(Ie.colorSurface,"Design system"),colorOnSurfaceMedium:Ce.external(Ie.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:Ce.external(Ie.colorOnSurfaceHigh,"Design system"),elevation02:Ce.external(Ie.elevation02,"Design system"),elevation04:Ce.external(Ie.elevation04,"Design system")},In=Ct`
367
371
  :host {
368
372
  display: block;
369
373
  }
370
374
 
371
375
  #container {
372
- padding: ${Un.padding};
373
- outline-style: ${Un.outlineStyle};
374
- outline-width: ${Un.outlineWidth};
375
- outline-color: ${Un.outlineColor};
376
- border-color: ${Un.borderColor};
377
- border-style: ${Un.borderStyle};
376
+ padding: ${kn.padding};
377
+ outline-style: ${kn.outlineStyle};
378
+ outline-width: ${kn.outlineWidth};
379
+ outline-color: ${kn.outlineColor};
380
+ border-color: ${kn.borderColor};
381
+ border-style: ${kn.borderStyle};
378
382
  border-width: 1px;
379
- border-radius: ${Un.borderRadius};
380
- ${Ee(Qr.borderRadius,Un.borderRadius)};
381
- box-shadow: ${Un.elevation02};
383
+ border-radius: ${kn.borderRadius};
384
+ ${Ee(ti.borderRadius,kn.borderRadius)};
385
+ box-shadow: ${kn.elevation02};
382
386
  position: relative;
383
387
  width: 100%;
384
388
  height: 100%;
@@ -390,7 +394,7 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
390
394
  grid-template-rows: max-content minmax(0, 1fr);
391
395
  grid-gap: 8px;
392
396
  box-sizing: border-box;
393
- background-color: ${Un.colorSurface};
397
+ background-color: ${kn.colorSurface};
394
398
  transition: box-shadow 0.2s linear, color 0.2s linear;
395
399
  }
396
400
 
@@ -403,12 +407,12 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
403
407
  }
404
408
 
405
409
  #container.selected {
406
- outline-style: ${Un.selectedOutlineStyle};
407
- outline-width: ${Un.selectedOutlineWidth};
408
- outline-color: ${Un.selectedOutlineColor};
409
- border-radius: ${Un.selectedBorderRadius};
410
- ${Ee(Qr.borderRadius,Un.selectedBorderRadius)};
411
- box-shadow: ${Un.elevation04};
410
+ outline-style: ${kn.selectedOutlineStyle};
411
+ outline-width: ${kn.selectedOutlineWidth};
412
+ outline-color: ${kn.selectedOutlineColor};
413
+ border-radius: ${kn.selectedBorderRadius};
414
+ ${Ee(ti.borderRadius,kn.selectedBorderRadius)};
415
+ box-shadow: ${kn.elevation04};
412
416
  }
413
417
 
414
418
  #container.clickable {
@@ -416,8 +420,8 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
416
420
  }
417
421
 
418
422
  #container.clickable:hover {
419
- box-shadow: ${Un.elevation04};
420
- border-color: ${Un.hoverBorderColor};
423
+ box-shadow: ${kn.elevation04};
424
+ border-color: ${kn.hoverBorderColor};
421
425
  }
422
426
 
423
427
  #header {
@@ -428,21 +432,21 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
428
432
  text-overflow: ellipsis;
429
433
  overflow: hidden;
430
434
  word-break: break-word;
431
- color: ${Un.colorOnSurfaceHigh};
435
+ color: ${kn.colorOnSurfaceHigh};
432
436
  }
433
437
 
434
438
  #content {
435
439
  word-break: break-word;
436
440
  min-width: 0; /* like with flexbox, some items have a hard time shrinking when necessary */
437
441
  grid-area: content;
438
- color: ${Un.colorOnSurfaceMedium};
442
+ color: ${kn.colorOnSurfaceMedium};
439
443
  }
440
444
 
441
445
  #action {
442
446
  grid-area: actions;
443
447
  }
444
- `;var In,Ln,Wn,An,jn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bn extends De{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 se`
445
- <div id="container" part="container" class=${Xr(t)}>
448
+ `;var Ln,Wn,An,jn,Fn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bn extends De{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 se`
449
+ <div id="container" part="container" class=${Jr(t)}>
446
450
  ${this.clickable?se`
447
451
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
448
452
  `:le}
@@ -459,25 +463,25 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
459
463
  </ft-typography>
460
464
  </div>
461
465
  </div>
462
- `}}Bn.elementDefinitions={"ft-ripple":ci,"ft-typography":Rn},Bn.styles=kn,jn([R()],Bn.prototype,"title",void 0),jn([R({type:Boolean})],Bn.prototype,"clickable",void 0),jn([R({type:Boolean})],Bn.prototype,"selected",void 0),jn([R({type:Boolean})],Bn.prototype,"noHeader",void 0),W("ft-card")(Bn);const Fn={color:Ce.extend("--ft-search-saved-searches-color","",Ie.colorOnSurface),activeButtonTextColor:Ce.extend("--ft-search-saved-searches-active-button-text-color","",Ie.colorPrimary),activeSearchBackgroundColor:Ce.extend("--ft-search-saved-searches-active-search-background-color","",Ie.colorContent),activeSearchBorderStyle:Ce.create("--ft-search-saved-searches-active-search-border-style","","BORDER-STYLE",null!==(In=Un.selectedOutlineStyle.lastResortDefaultValue())&&void 0!==In?In:"solid"),activeSearchBorderColor:Ce.extend("--ft-search-saved-searches-active-search-border-color","",Ie.colorPrimary),activeSearchBorderWidth:Ce.create("--ft-search-saved-searches-active-search-border-width","","SIZE",null!==(Ln=Un.selectedOutlineWidth.lastResortDefaultValue())&&void 0!==Ln?Ln:"2px"),activeSearchBorderRadius:Ce.extend("--ft-search-saved-searches-active-search-border-radius","",Ie.borderRadiusM),inactiveButtonTextColor:Ce.extend("--ft-search-saved-searches-inactive-button-text-color","",Ie.colorPrimary),inactiveSearchBackgroundColor:Ce.extend("--ft-search-saved-searches-inactive-search-background-color","",Ie.colorContent),inactiveSearchBorderStyle:Ce.create("--ft-search-saved-searches-inactive-search-border-style","","BORDER-STYLE",null!==(Wn=Un.outlineStyle.lastResortDefaultValue())&&void 0!==Wn?Wn:"solid"),inactiveSearchBorderColor:Ce.extend("--ft-search-saved-searches-inactive-search-border-color","",Ie.colorPrimary),inactiveSearchBorderWidth:Ce.create("--ft-search-saved-searches-inactive-search-border-width","","SIZE",null!==(An=Un.outlineWidth.lastResortDefaultValue())&&void 0!==An?An:"0"),inactiveSearchBorderRadius:Ce.extend("--ft-search-saved-searches-inactive-search-border-radius","",Ie.borderRadiusM)},Kn=Ct`
466
+ `}}Bn.elementDefinitions={"ft-ripple":li,"ft-typography":Un},Bn.styles=In,Fn([R()],Bn.prototype,"title",void 0),Fn([R({type:Boolean})],Bn.prototype,"clickable",void 0),Fn([R({type:Boolean})],Bn.prototype,"selected",void 0),Fn([R({type:Boolean})],Bn.prototype,"noHeader",void 0),W("ft-card")(Bn);const Kn={color:Ce.extend("--ft-search-saved-searches-color","",Ie.colorOnSurface),activeButtonTextColor:Ce.extend("--ft-search-saved-searches-active-button-text-color","",Ie.colorPrimary),activeSearchBackgroundColor:Ce.extend("--ft-search-saved-searches-active-search-background-color","",Ie.colorContent),activeSearchBorderStyle:Ce.create("--ft-search-saved-searches-active-search-border-style","","BORDER-STYLE",null!==(Ln=kn.selectedOutlineStyle.lastResortDefaultValue())&&void 0!==Ln?Ln:"solid"),activeSearchBorderColor:Ce.extend("--ft-search-saved-searches-active-search-border-color","",Ie.colorPrimary),activeSearchBorderWidth:Ce.create("--ft-search-saved-searches-active-search-border-width","","SIZE",null!==(Wn=kn.selectedOutlineWidth.lastResortDefaultValue())&&void 0!==Wn?Wn:"2px"),activeSearchBorderRadius:Ce.extend("--ft-search-saved-searches-active-search-border-radius","",Ie.borderRadiusM),inactiveButtonTextColor:Ce.extend("--ft-search-saved-searches-inactive-button-text-color","",Ie.colorPrimary),inactiveSearchBackgroundColor:Ce.extend("--ft-search-saved-searches-inactive-search-background-color","",Ie.colorContent),inactiveSearchBorderStyle:Ce.create("--ft-search-saved-searches-inactive-search-border-style","","BORDER-STYLE",null!==(An=kn.outlineStyle.lastResortDefaultValue())&&void 0!==An?An:"solid"),inactiveSearchBorderColor:Ce.extend("--ft-search-saved-searches-inactive-search-border-color","",Ie.colorPrimary),inactiveSearchBorderWidth:Ce.create("--ft-search-saved-searches-inactive-search-border-width","","SIZE",null!==(jn=kn.outlineWidth.lastResortDefaultValue())&&void 0!==jn?jn:"0"),inactiveSearchBorderRadius:Ce.extend("--ft-search-saved-searches-inactive-search-border-radius","",Ie.borderRadiusM)},Pn=Ct`
463
467
  #container {
464
468
  display: flex;
465
469
  flex-direction: column;
466
470
  gap: 24px;
467
471
  margin: 3px;
468
472
 
469
- ${Ee(Un.colorOnSurfaceHigh,Fn.color)};
470
- ${Ee(Un.colorOnSurfaceMedium,Fn.color)};
473
+ ${Ee(kn.colorOnSurfaceHigh,Kn.color)};
474
+ ${Ee(kn.colorOnSurfaceMedium,Kn.color)};
471
475
  }
472
- `,Pn=Ct`
473
- `,Dn=Dr.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 zn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Dn.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?zn.build(t):null!==(e=zn.API)&&void 0!==e?e:zn.API=zn.build()}static await(t){return new Promise((e=>{let o=zn.get(t);if(o)e(o);else{const r=Dn.subscribe((()=>{o=zn.get(t),o&&(r(),e(o))}))}}))}}var Mn;const Tn=Symbol("clearAfterUnitTest");class Zn{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Mn]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Dn.getState().uiLocale,Dn.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Dn.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};L(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Te(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Mn=Tn,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Zn((async(t,e)=>(await zn.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Zn((async(t,e)=>(await zn.await()).getCustomMessageContext(t,e))));const _n=window.FluidTopicsI18nService,Hn=window.FluidTopicsCustomI18nService;var Gn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Vn extends De{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=()=>zn.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return se`
476
+ `,Dn=Ct`
477
+ `,zn=zr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Mn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=zn.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?Mn.build(t):null!==(e=Mn.API)&&void 0!==e?e:Mn.API=Mn.build()}static await(t){return new Promise((e=>{let o=Mn.get(t);if(o)e(o);else{const r=zn.subscribe((()=>{o=Mn.get(t),o&&(r(),e(o))}))}}))}}var Tn;const Zn=Symbol("clearAfterUnitTest");class _n{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Tn]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=zn.getState().uiLocale,zn.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=zn.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};L(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Ze(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Tn=Zn,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new _n((async(t,e)=>(await Mn.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new _n((async(t,e)=>(await Mn.await()).getCustomMessageContext(t,e))));const Hn=window.FluidTopicsI18nService,Gn=window.FluidTopicsCustomI18nService;var Vn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qn extends De{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=()=>Mn.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return se`
474
478
  <slot></slot>
475
- `}update(t){super.update(t),t.has("baseUrl")&&Dn.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Dn.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Dn.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Dn.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Dn.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Dn.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Dn.actions.setSession(this.session),t.has("availableUiLocales")&&Dn.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>_n.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()))))}}Vn.elementDefinitions={},Vn.styles=Pn,Gn([R()],Vn.prototype,"baseUrl",void 0),Gn([R()],Vn.prototype,"apiIntegrationIdentifier",void 0),Gn([R()],Vn.prototype,"uiLocale",void 0),Gn([A([])],Vn.prototype,"availableUiLocales",void 0),Gn([R({type:Boolean})],Vn.prototype,"editorMode",void 0),Gn([R({type:Boolean})],Vn.prototype,"noCustom",void 0),Gn([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Vn.prototype,"noCustomComponent",void 0),Gn([R({type:Boolean})],Vn.prototype,"withManualResources",void 0),Gn([A([])],Vn.prototype,"messageContexts",void 0),Gn([A(void 0)],Vn.prototype,"session",void 0),Gn([R({type:Object})],Vn.prototype,"apiProvider",void 0);class qn{async listMySearches(){var t;return(null===(t=Dn.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await zn.await()).listMySearches(Dn.getState().session.profile.userId):[]}}const Yn=new r;class Xn{async listMyBookmarks(){return Yn.get("bookmarks",(async()=>(await zn.await()).listMyBookmarks(Dn.getState().session.profile.userId)))}clearCache(){Yn.clear("bookmarks")}}const Jn=Dr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Qn=new class{constructor(){this.currentSession=Dn.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xn,Dn.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Dn.getState();L(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Jn.actions.savedSearches(void 0)}clearMyBookmarks(){Jn.actions.bookmarks(void 0)}async reloadMySearches(){const t=new qn,e=await t.listMySearches();Jn.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Jn.actions.bookmarks(e)}}};var ta,ea,oa,ra,ia,na,aa,sa,ca,la,fa,ha,pa,da;W("ft-app-context")(Vn),function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),u.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(ta||(ta={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ea||(ea={})),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"}(oa||(oa={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(ra||(ra={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(ia||(ia={})),function(t){t.ASC="ASC",t.DESC="DESC"}(na||(na={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(aa||(aa={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(sa||(sa={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ca||(ca={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(la||(la={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(fa||(fa={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(ha||(ha={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(pa||(pa={})),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"}(da||(da={})),da.PERSONAL_BOOK_SHARE_USER,da.PERSONAL_BOOK_USER,da.HTML_EXPORT_USER,da.PERSONAL_BOOK_USER,da.PDF_EXPORT_USER,da.PERSONAL_BOOK_USER,da.KHUB_ADMIN,da.CONTENT_PUBLISHER,da.ADMIN,da.KHUB_ADMIN,da.USERS_ADMIN,da.PORTAL_ADMIN,da.DEVELOPER,da.BETA_USER,da.DEBUG_USER;class ua extends Event{constructor(){super(ua.eventName)}}ua.eventName="search-context-clear-all-filters";var ya=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ga extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const ba=Symbol("registerInterval");class ma extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ba]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ba]):this.dispatchEvent(new ga)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ba,ya([U()],o.prototype,"stateManager",void 0),o}(Xe)){}
479
+ `}update(t){super.update(t),t.has("baseUrl")&&zn.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&zn.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&zn.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&zn.actions.setNoCustom(this.noCustom),t.has("editorMode")&&zn.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&zn.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&zn.actions.setSession(this.session),t.has("availableUiLocales")&&zn.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Hn.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()))))}}qn.elementDefinitions={},qn.styles=Dn,Vn([R()],qn.prototype,"baseUrl",void 0),Vn([R()],qn.prototype,"apiIntegrationIdentifier",void 0),Vn([R()],qn.prototype,"uiLocale",void 0),Vn([A([])],qn.prototype,"availableUiLocales",void 0),Vn([R({type:Boolean})],qn.prototype,"editorMode",void 0),Vn([R({type:Boolean})],qn.prototype,"noCustom",void 0),Vn([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],qn.prototype,"noCustomComponent",void 0),Vn([R({type:Boolean})],qn.prototype,"withManualResources",void 0),Vn([A([])],qn.prototype,"messageContexts",void 0),Vn([A(void 0)],qn.prototype,"session",void 0),Vn([R({type:Object})],qn.prototype,"apiProvider",void 0);class Yn{async listMySearches(){var t;return(null===(t=zn.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Mn.await()).listMySearches(zn.getState().session.profile.userId):[]}}const Xn=new r;class Jn{async listMyBookmarks(){return Xn.get("bookmarks",(async()=>(await Mn.await()).listMyBookmarks(zn.getState().session.profile.userId)))}clearCache(){Xn.clear("bookmarks")}}const Qn=zr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ta=new class{constructor(){this.currentSession=zn.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Jn,zn.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=zn.getState();L(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Qn.actions.savedSearches(void 0)}clearMyBookmarks(){Qn.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Yn,e=await t.listMySearches();Qn.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Qn.actions.bookmarks(e)}}};var ea,oa,ra,ia,na,aa,sa,ca,la,fa,ha,pa,da,ua;W("ft-app-context")(qn),function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),u.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(ea||(ea={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(oa||(oa={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(ra||(ra={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(ia||(ia={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(na||(na={})),function(t){t.ASC="ASC",t.DESC="DESC"}(aa||(aa={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(sa||(sa={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(ca||(ca={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(la||(la={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(fa||(fa={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ha||(ha={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(pa||(pa={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(da||(da={})),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"}(ua||(ua={})),ua.PERSONAL_BOOK_SHARE_USER,ua.PERSONAL_BOOK_USER,ua.HTML_EXPORT_USER,ua.PERSONAL_BOOK_USER,ua.PDF_EXPORT_USER,ua.PERSONAL_BOOK_USER,ua.KHUB_ADMIN,ua.CONTENT_PUBLISHER,ua.ADMIN,ua.KHUB_ADMIN,ua.USERS_ADMIN,ua.PORTAL_ADMIN,ua.DEVELOPER,ua.BETA_USER,ua.DEBUG_USER;class ya extends Event{constructor(){super(ya.eventName)}}ya.eventName="search-context-clear-all-filters";var ga=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ba extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const ma=Symbol("registerInterval");class va extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ma]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ma]):this.dispatchEvent(new ba)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ma,ga([U()],o.prototype,"stateManager",void 0),o}(Je)){}
476
480
  /**
477
481
  * @license
478
482
  * Copyright 2017 Google LLC
479
483
  * SPDX-License-Identifier: BSD-3-Clause
480
- */class va extends Yr{constructor(t){if(super(t),this.et=rt,t.type!==Vr)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}va.directiveName="unsafeHTML",va.resultType=1;const Oa=qr(va);var xa,wa;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(xa||(xa={})),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;"}(wa||(wa={})),new Map([...["abw"].map((t=>[t,wa.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,wa.AUDIO])),...["avi"].map((t=>[t,wa.AVI])),...["chm","xhs"].map((t=>[t,wa.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,wa.CODE])),...["csv"].map((t=>[t,wa.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,wa.DITA])),...["epub"].map((t=>[t,wa.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,wa.EXCEL])),...["flac"].map((t=>[t,wa.FLAC])),...["gif"].map((t=>[t,wa.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,wa.GZIP])),...["html","htm","xhtml"].map((t=>[t,wa.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,wa.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,wa.JPEG])),...["json"].map((t=>[t,wa.JSON])),...["m4a","m4p"].map((t=>[t,wa.M4A])),...["mov","qt"].map((t=>[t,wa.MOV])),...["mp3"].map((t=>[t,wa.MP3])),...["mp4","m4v"].map((t=>[t,wa.MP4])),...["ogg","oga"].map((t=>[t,wa.OGG])),...["pdf","ps"].map((t=>[t,wa.PDF])),...["png"].map((t=>[t,wa.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,wa.POWERPOINT])),...["rar"].map((t=>[t,wa.RAR])),...["stp"].map((t=>[t,wa.STP])),...["txt","rtf","md","mdown"].map((t=>[t,wa.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,wa.VIDEO])),...["wav"].map((t=>[t,wa.WAV])),...["wma"].map((t=>[t,wa.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,wa.WORD])),...["xml","xsl","rdf"].map((t=>[t,wa.XML])),...["yaml","yml","x-yaml"].map((t=>[t,wa.YAML])),...["zip"].map((t=>[t,wa.ZIP]))]);const Sa={size:Ce.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ce.extend("--ft-icon-fluid-topics-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ce.extend("--ft-icon-file-format-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ce.extend("--ft-icon-material-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ce.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Na=Ct`
484
+ */class Oa extends Xr{constructor(t){if(super(t),this.et=rt,t.type!==qr)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Oa.directiveName="unsafeHTML",Oa.resultType=1;const xa=Yr(Oa);var wa,Sa;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(wa||(wa={})),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;"}(Sa||(Sa={})),new Map([...["abw"].map((t=>[t,Sa.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,Sa.AUDIO])),...["avi"].map((t=>[t,Sa.AVI])),...["chm","xhs"].map((t=>[t,Sa.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,Sa.CODE])),...["csv"].map((t=>[t,Sa.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Sa.DITA])),...["epub"].map((t=>[t,Sa.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Sa.EXCEL])),...["flac"].map((t=>[t,Sa.FLAC])),...["gif"].map((t=>[t,Sa.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Sa.GZIP])),...["html","htm","xhtml"].map((t=>[t,Sa.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,Sa.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Sa.JPEG])),...["json"].map((t=>[t,Sa.JSON])),...["m4a","m4p"].map((t=>[t,Sa.M4A])),...["mov","qt"].map((t=>[t,Sa.MOV])),...["mp3"].map((t=>[t,Sa.MP3])),...["mp4","m4v"].map((t=>[t,Sa.MP4])),...["ogg","oga"].map((t=>[t,Sa.OGG])),...["pdf","ps"].map((t=>[t,Sa.PDF])),...["png"].map((t=>[t,Sa.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Sa.POWERPOINT])),...["rar"].map((t=>[t,Sa.RAR])),...["stp"].map((t=>[t,Sa.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Sa.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,Sa.VIDEO])),...["wav"].map((t=>[t,Sa.WAV])),...["wma"].map((t=>[t,Sa.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Sa.WORD])),...["xml","xsl","rdf"].map((t=>[t,Sa.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Sa.YAML])),...["zip"].map((t=>[t,Sa.ZIP]))]);const Na={size:Ce.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ce.extend("--ft-icon-fluid-topics-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ce.extend("--ft-icon-file-format-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ce.extend("--ft-icon-material-font-family","",Ce.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ce.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ca=Ct`
481
485
  :host, i.ft-icon {
482
486
  display: inline-flex;
483
487
  align-items: center;
@@ -486,14 +490,14 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
486
490
  }
487
491
 
488
492
  :host {
489
- width: ${Sa.size};
490
- height: ${Sa.size};
493
+ width: ${Na.size};
494
+ height: ${Na.size};
491
495
  }
492
496
 
493
497
  i.ft-icon {
494
498
  width: 100%;
495
499
  height: 100%;
496
- font-size: ${Sa.size};
500
+ font-size: ${Na.size};
497
501
  line-height: 1;
498
502
  font-weight: normal;
499
503
  text-transform: none;
@@ -504,33 +508,33 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
504
508
  text-rendering: auto;
505
509
  -webkit-font-smoothing: antialiased;
506
510
  -moz-osx-font-smoothing: grayscale;
507
- vertical-align: ${Sa.verticalAlign};
511
+ vertical-align: ${Na.verticalAlign};
508
512
  }
509
513
 
510
514
  i.ft-icon.ft-icon--fluid-topics {
511
- font-family: ${Sa.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
515
+ font-family: ${Na.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
512
516
 
513
517
  /* Ugly fix because font is broken */
514
- font-size: calc(0.75 * ${Sa.size});
515
- line-height: ${Sa.size};
518
+ font-size: calc(0.75 * ${Na.size});
519
+ line-height: ${Na.size};
516
520
  position: relative;
517
521
  top: -4%;
518
522
  justify-content: center;
519
523
  }
520
524
 
521
525
  .ft-icon--file-format {
522
- font-family: ${Sa.fileFormatFontFamily}, ft-mime, sans-serif;
526
+ font-family: ${Na.fileFormatFontFamily}, ft-mime, sans-serif;
523
527
  }
524
528
 
525
529
  .ft-icon--material {
526
- font-family: ${Sa.materialFontFamily}, "Material Icons", sans-serif;
530
+ font-family: ${Na.materialFontFamily}, "Material Icons", sans-serif;
527
531
  }
528
- `;var Ca;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ca||(Ca={}));var Ea=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class $a extends De{constructor(){super(...arguments),this.resolvedIcon=le}render(){const t=this.variant&&Object.values(Ca).includes(this.variant)?this.variant:Ca.fluid_topics,e=t!==Ca.material||!!this.value;return se`
532
+ `;var Ea;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ea||(Ea={}));var $a=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ra extends De{constructor(){super(...arguments),this.resolvedIcon=le}render(){const t=this.variant&&Object.values(Ea).includes(this.variant)?this.variant:Ea.fluid_topics,e=t!==Ea.material||!!this.value;return se`
529
533
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
530
- ${Oa(this.resolvedIcon)}
534
+ ${xa(this.resolvedIcon)}
531
535
  <slot ?hidden=${e}></slot>
532
536
  </i>
533
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Ca.file_format:this.resolvedIcon=null!==(t=wa[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ca.material:this.resolvedIcon=this.value||le;break;default:this.resolvedIcon=null!==(e=xa[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}$a.elementDefinitions={},$a.styles=Na,Ea([R()],$a.prototype,"variant",void 0),Ea([R()],$a.prototype,"value",void 0),Ea([U()],$a.prototype,"resolvedIcon",void 0),Ea([I("slot")],$a.prototype,"slottedContent",void 0),W("ft-icon")($a);const Ra={color:Ce.extend("--ft-loader-color","",Ie.colorPrimary),size:Ce.create("--ft-loader-size","","SIZE","80px")},Ua=Ct`
537
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Ea.file_format:this.resolvedIcon=null!==(t=Sa[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ea.material:this.resolvedIcon=this.value||le;break;default:this.resolvedIcon=null!==(e=wa[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ra.elementDefinitions={},Ra.styles=Ca,$a([R()],Ra.prototype,"variant",void 0),$a([R()],Ra.prototype,"value",void 0),$a([U()],Ra.prototype,"resolvedIcon",void 0),$a([I("slot")],Ra.prototype,"slottedContent",void 0),W("ft-icon")(Ra);const Ua={color:Ce.extend("--ft-loader-color","",Ie.colorPrimary),size:Ce.create("--ft-loader-size","","SIZE","80px")},ka=Ct`
534
538
  :host {
535
539
  line-height: 0;
536
540
  }
@@ -539,8 +543,8 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
539
543
  display: inline-block;
540
544
  position: relative;
541
545
 
542
- width: ${Ra.size};
543
- height: ${Ra.size};
546
+ width: ${Ua.size};
547
+ height: ${Ua.size};
544
548
  }
545
549
 
546
550
  .ft-loader div {
@@ -549,7 +553,7 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
549
553
  width: 25%;
550
554
  height: 25%;
551
555
  border-radius: 50%;
552
- background: ${Ra.color};
556
+ background: ${Ua.color};
553
557
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
554
558
  }
555
559
 
@@ -596,10 +600,10 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
596
600
  transform: translate(0, 0);
597
601
  }
598
602
  100% {
599
- transform: translate(calc(0.35 * ${Ra.size}), 0);
603
+ transform: translate(calc(0.35 * ${Ua.size}), 0);
600
604
  }
601
605
  }
602
- `,ka=Ce.extend("--ft-button-color","",Ie.colorPrimary),Ia={backgroundColor:Ce.extend("--ft-button-background-color","",Ie.colorSurface),borderRadius:Ce.extend("--ft-button-border-radius","",Ie.borderRadiusL),color:ka,fontSize:Ce.extend("--ft-button-font-size","",un.fontSize),iconSize:Ce.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ce.extend("--ft-button-ripple-color","",ka),verticalPadding:Ce.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ce.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ce.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ce.external(Ie.colorOpacityDisabled,"Design system")},La=Ce.extend("--ft-button-primary-color","",Ce.extend("--ft-button-color","",Ie.colorOnPrimary)),Wa={backgroundColor:Ce.extend("--ft-button-primary-background-color","",Ce.extend("--ft-button-background-color","",Ie.colorPrimary)),color:La,rippleColor:Ce.extend("--ft-button-primary-ripple-color","",La)},Aa=Ce.extend("--ft-button-dense-border-radius","",Ce.extend("--ft-button-border-radius","",Ie.borderRadiusM)),ja=Ce.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Ba=Ce.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Fa=Ce.create("--ft-button-dense-icon-padding","","SIZE","4px"),Ka=[Ct`
606
+ `,Ia=Ce.extend("--ft-button-color","",Ie.colorPrimary),La={backgroundColor:Ce.extend("--ft-button-background-color","",Ie.colorSurface),borderRadius:Ce.extend("--ft-button-border-radius","",Ie.borderRadiusL),color:Ia,fontSize:Ce.extend("--ft-button-font-size","",yn.fontSize),iconSize:Ce.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ce.extend("--ft-button-ripple-color","",Ia),verticalPadding:Ce.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ce.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ce.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ce.external(Ie.colorOpacityDisabled,"Design system")},Wa=Ce.extend("--ft-button-primary-color","",Ce.extend("--ft-button-color","",Ie.colorOnPrimary)),Aa={backgroundColor:Ce.extend("--ft-button-primary-background-color","",Ce.extend("--ft-button-background-color","",Ie.colorPrimary)),color:Wa,rippleColor:Ce.extend("--ft-button-primary-ripple-color","",Wa)},ja=Ce.extend("--ft-button-dense-border-radius","",Ce.extend("--ft-button-border-radius","",Ie.borderRadiusM)),Fa=Ce.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Ba=Ce.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Ka=Ce.create("--ft-button-dense-icon-padding","","SIZE","4px"),Pa=[Ct`
603
607
  :host {
604
608
  display: inline-block;
605
609
  max-width: 100%;
@@ -610,7 +614,7 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
610
614
  box-shadow: 0px 0px 0px transparent;
611
615
  border: 0px solid transparent;
612
616
  text-shadow: 0px 0px 0px transparent;
613
- font-size: ${Ia.fontSize};
617
+ font-size: ${La.fontSize};
614
618
  }
615
619
 
616
620
  button:hover {
@@ -639,31 +643,31 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
639
643
  border: none;
640
644
  pointer-events: auto;
641
645
 
642
- --ft-button-internal-line-height: max(calc(${Ia.fontSize} + 2px), ${Ia.iconSize});
643
- --ft-button-internal-color: ${Ia.color};
644
- ${Ee(Sa.size,Ia.iconSize)};
645
- ${Ee(Qr.color,Ia.rippleColor)};
646
+ --ft-button-internal-line-height: max(calc(${La.fontSize} + 2px), ${La.iconSize});
647
+ --ft-button-internal-color: ${La.color};
648
+ ${Ee(Na.size,La.iconSize)};
649
+ ${Ee(ti.color,La.rippleColor)};
646
650
 
647
- border-radius: ${Ia.borderRadius};
648
- padding: ${Ia.verticalPadding} ${Ia.horizontalPadding};
649
- background-color: ${Ia.backgroundColor};
651
+ border-radius: ${La.borderRadius};
652
+ padding: ${La.verticalPadding} ${La.horizontalPadding};
653
+ background-color: ${La.backgroundColor};
650
654
  color: var(--ft-button-internal-color);
651
655
  -webkit-mask-image: radial-gradient(white, black);
652
656
  }
653
657
 
654
658
  .ft-button.ft-button--outlined {
655
659
  border: 1px solid var(--ft-button-internal-color);
656
- padding: calc(${Ia.verticalPadding} - 1px) calc(${Ia.horizontalPadding} - 1px);
660
+ padding: calc(${La.verticalPadding} - 1px) calc(${La.horizontalPadding} - 1px);
657
661
  }
658
662
 
659
663
  .ft-button.ft-button--dense {
660
- padding: ${ja} ${Ba};
661
- border-radius: ${Aa};
662
- gap: ${Fa};
664
+ padding: ${Fa} ${Ba};
665
+ border-radius: ${ja};
666
+ gap: ${Ka};
663
667
  }
664
668
 
665
669
  .ft-button.ft-button--dense.ft-button--outlined {
666
- padding: calc(${ja} - 1px) calc(${Ba} - 1px);
670
+ padding: calc(${Fa} - 1px) calc(${Ba} - 1px);
667
671
  }
668
672
 
669
673
  .ft-button:not([disabled]):hover {
@@ -671,22 +675,22 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
671
675
  }
672
676
 
673
677
  .ft-button--round {
674
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ia.verticalPadding});
678
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${La.verticalPadding});
675
679
  }
676
680
 
677
681
  .ft-button--round.ft-button--dense {
678
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ja});
682
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Fa});
679
683
  }
680
684
 
681
685
  .ft-button[disabled] {
682
686
  filter: grayscale(1);
683
- opacity: ${Ia.opacityDisabled};
687
+ opacity: ${La.opacityDisabled};
684
688
  }
685
689
 
686
690
  .ft-button.ft-button--primary {
687
- background-color: ${Wa.backgroundColor};
688
- --ft-button-internal-color: ${Wa.color};
689
- ${Ee(Qr.color,Wa.rippleColor)};
691
+ background-color: ${Aa.backgroundColor};
692
+ --ft-button-internal-color: ${Aa.color};
693
+ ${Ee(ti.color,Aa.rippleColor)};
690
694
  }
691
695
 
692
696
  .ft-button:focus {
@@ -699,13 +703,13 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
699
703
  white-space: nowrap;
700
704
  text-overflow: ellipsis;
701
705
  display: block;
702
- margin: 0 ${Ia.iconPadding};
703
- ${Ee(un.fontSize,"1em")};
704
- ${Ee(un.lineHeight,"var(--ft-button-internal-line-height)")};
706
+ margin: 0 ${La.iconPadding};
707
+ ${Ee(yn.fontSize,"1em")};
708
+ ${Ee(yn.lineHeight,"var(--ft-button-internal-line-height)")};
705
709
  }
706
710
 
707
711
  .ft-button--dense .ft-button--label {
708
- margin: 0 ${Fa};
712
+ margin: 0 ${Ka};
709
713
  }
710
714
 
711
715
  .ft-button--label[hidden] {
@@ -718,13 +722,13 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
718
722
  }
719
723
 
720
724
  .ft-button--label[hidden] + ft-icon {
721
- margin: 0 calc(${Ia.horizontalPadding} * -1);
722
- padding: 0 ${Ia.verticalPadding};
725
+ margin: 0 calc(${La.horizontalPadding} * -1);
726
+ padding: 0 ${La.verticalPadding};
723
727
  }
724
728
 
725
729
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
726
730
  margin: 0 calc(${Ba} * -1);
727
- padding: 0 ${ja};
731
+ padding: 0 ${Fa};
728
732
  }
729
733
 
730
734
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -733,10 +737,10 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
733
737
  }
734
738
 
735
739
  ft-loader {
736
- ${Ee(Ra.size,Ia.iconSize)};
737
- ${Ee(Ra.color,"var(--ft-button-internal-color)")};
740
+ ${Ee(Ua.size,La.iconSize)};
741
+ ${Ee(Ua.color,"var(--ft-button-internal-color)")};
738
742
  }
739
- `,ze],Pa=Ce.create("--ft-tooltip-distance","","SIZE","4px"),Da=Ce.create("--ft-tooltip-color","","COLOR","#FFFFFF"),za=Ce.create("--ft-tooltip-background-color","","COLOR","#666666"),Ma=Ce.create("--ft-tooltip-z-index","","NUMBER","100"),Ta=Ce.external(Ie.borderRadiusS,"Design system"),Za=Ce.create("--ft-tooltip-max-width","","SIZE","150px"),_a=Ct`
743
+ `,Me],Da=Ce.create("--ft-tooltip-distance","","SIZE","4px"),za=Ce.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ma=Ce.create("--ft-tooltip-background-color","","COLOR","#666666"),Ta=Ce.create("--ft-tooltip-z-index","","NUMBER","100"),Za=Ce.external(Ie.borderRadiusS,"Design system"),_a=Ce.create("--ft-tooltip-max-width","","SIZE","150px"),Ha=Ct`
740
744
  .ft-tooltip--container {
741
745
  display: block;
742
746
  }
@@ -751,21 +755,21 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
751
755
  box-sizing: border-box;
752
756
  overflow: hidden;
753
757
  width: max-content;
754
- max-width: ${Za};
758
+ max-width: ${_a};
755
759
  text-align: center;
756
- padding: ${Pa};
757
- z-index: ${Ma};
760
+ padding: ${Da};
761
+ z-index: ${Ta};
758
762
  }
759
763
 
760
764
  .ft-tooltip--content {
761
765
  padding: 4px 8px;
762
- border-radius: ${Ta};
763
- background-color: ${za};
764
- color: ${Da};
766
+ border-radius: ${Za};
767
+ background-color: ${Ma};
768
+ color: ${za};
765
769
  position: relative;
766
770
  word-break: break-word;
767
771
  }
768
- `;var Ha=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ga extends De{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return se`
772
+ `;var Ga=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Va extends De{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return se`
769
773
  <div part="container"
770
774
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
771
775
  @mouseenter=${this.onHover}
@@ -783,23 +787,23 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
783
787
  </div>
784
788
  </div>
785
789
  </div>
786
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,o=this.tooltip.offsetHeight,r=(t.offsetHeight-o)/2,i=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const c=this.tooltip.getBoundingClientRect();let l=-c.x,f=c.x+c.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(l,f))+"px";let h=-c.y,p=c.y+c.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,p))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Za})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Ga.elementDefinitions={"ft-typography":Rn},Ga.styles=_a,Ha([R()],Ga.prototype,"text",void 0),Ha([R({type:Boolean})],Ga.prototype,"manual",void 0),Ha([R({type:Boolean})],Ga.prototype,"inline",void 0),Ha([R({type:Number})],Ga.prototype,"delay",void 0),Ha([R()],Ga.prototype,"position",void 0),Ha([function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return k(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}}()],Ga.prototype,"slotNodes",void 0),Ha([I(".ft-tooltip--container")],Ga.prototype,"container",void 0),Ha([I(".ft-tooltip")],Ga.prototype,"tooltip",void 0),Ha([I(".ft-tooltip--content")],Ga.prototype,"tooltipContent",void 0),Ha([U()],Ga.prototype,"visible",void 0),W("ft-tooltip")(Ga);class Va extends De{render(){return se`
790
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,o=this.tooltip.offsetHeight,r=(t.offsetHeight-o)/2,i=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+r-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const c=this.tooltip.getBoundingClientRect();let l=-c.x,f=c.x+c.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(l,f))+"px";let h=-c.y,p=c.y+c.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,p))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${_a})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Va.elementDefinitions={"ft-typography":Un},Va.styles=Ha,Ga([R()],Va.prototype,"text",void 0),Ga([R({type:Boolean})],Va.prototype,"manual",void 0),Ga([R({type:Boolean})],Va.prototype,"inline",void 0),Ga([R({type:Number})],Va.prototype,"delay",void 0),Ga([R()],Va.prototype,"position",void 0),Ga([function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return k(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}}()],Va.prototype,"slotNodes",void 0),Ga([I(".ft-tooltip--container")],Va.prototype,"container",void 0),Ga([I(".ft-tooltip")],Va.prototype,"tooltip",void 0),Ga([I(".ft-tooltip--content")],Va.prototype,"tooltipContent",void 0),Ga([U()],Va.prototype,"visible",void 0),W("ft-tooltip")(Va);class qa extends De{render(){return se`
787
791
  <div class="ft-loader">
788
792
  <div></div>
789
793
  <div></div>
790
794
  <div></div>
791
795
  <div></div>
792
796
  </div>
793
- `}}Va.styles=Ua,W("ft-loader")(Va);var qa=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ya extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Mr].form}constructor(...t){super(t),this[Mr]=this.attachInternals(),this[Mr].role=e}setFormValue(t){this[Mr].setFormValue(t)}}}(De,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(se`
797
+ `}}qa.styles=ka,W("ft-loader")(qa);var Ya=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xa extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Tr].form}constructor(...t){super(t),this[Tr]=this.attachInternals(),this[Tr].role=e}setFormValue(t){this[Tr].setFormValue(t)}}}(De,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(se`
794
798
  <button part="button"
795
- class="${Xr(this.buttonClasses)}"
799
+ class="${Jr(this.buttonClasses)}"
796
800
  aria-label="${this.getLabel()}"
797
801
  ?disabled=${this.isDisabled()}>
798
802
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
799
803
  <ft-typography part="label"
800
804
  variant=${this.typographyVariant}
801
805
  element="span"
802
- class="ft-button--label ${Hr?"ft-safari-ellipsis-fix":""}"
806
+ class="ft-button--label ${Gr?"ft-safari-ellipsis-fix":""}"
803
807
  ?hidden=${!this.hasTextContent()}>
804
808
  <slot @slotchange=${this.onSlotchange}></slot>
805
809
  </ft-typography>
@@ -813,7 +817,7 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
813
817
  </ft-tooltip>
814
818
  `:t}resolveIcon(){return this.loading?se`
815
819
  <ft-loader part="loader icon"></ft-loader> `:this.icon?se`
816
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:le}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ya.elementDefinitions={"ft-ripple":ci,"ft-tooltip":Ga,"ft-typography":Rn,"ft-icon":$a,"ft-loader":Va},qa([R({type:String,reflect:!0})],Ya.prototype,"role",void 0),qa([R()],Ya.prototype,"type",void 0),qa([R({type:Boolean})],Ya.prototype,"disabled",void 0),qa([R()],Ya.prototype,"label",void 0),qa([R()],Ya.prototype,"icon",void 0),qa([R()],Ya.prototype,"iconVariant",void 0),qa([R({type:Boolean})],Ya.prototype,"trailingIcon",void 0),qa([R({type:Boolean})],Ya.prototype,"loading",void 0),qa([R()],Ya.prototype,"tooltipPosition",void 0),qa([R({type:Boolean})],Ya.prototype,"hideTooltip",void 0),qa([R({type:Boolean})],Ya.prototype,"forceTooltip",void 0),qa([I(".ft-button")],Ya.prototype,"button",void 0),qa([I(".ft-button--label slot")],Ya.prototype,"slottedContent",void 0);var Xa=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ja extends Ya{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Ja.styles=[Me,Ka],Xa([R({type:Boolean})],Ja.prototype,"primary",void 0),Xa([R({type:Boolean})],Ja.prototype,"outlined",void 0),Xa([R({type:Boolean})],Ja.prototype,"dense",void 0),Xa([R({type:Boolean})],Ja.prototype,"round",void 0);const Qa=[Ct`
820
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:le}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Xa.elementDefinitions={"ft-ripple":li,"ft-tooltip":Va,"ft-typography":Un,"ft-icon":Ra,"ft-loader":qa},Ya([R({type:String,reflect:!0})],Xa.prototype,"role",void 0),Ya([R()],Xa.prototype,"type",void 0),Ya([R({type:Boolean})],Xa.prototype,"disabled",void 0),Ya([R()],Xa.prototype,"label",void 0),Ya([R()],Xa.prototype,"icon",void 0),Ya([R()],Xa.prototype,"iconVariant",void 0),Ya([R({type:Boolean})],Xa.prototype,"trailingIcon",void 0),Ya([R({type:Boolean})],Xa.prototype,"loading",void 0),Ya([R()],Xa.prototype,"tooltipPosition",void 0),Ya([R({type:Boolean})],Xa.prototype,"hideTooltip",void 0),Ya([R({type:Boolean})],Xa.prototype,"forceTooltip",void 0),Ya([I(".ft-button")],Xa.prototype,"button",void 0),Ya([I(".ft-button--label slot")],Xa.prototype,"slottedContent",void 0);var Ja=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Qa extends Xa{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Qa.styles=[Te,Pa],Ja([R({type:Boolean})],Qa.prototype,"primary",void 0),Ja([R({type:Boolean})],Qa.prototype,"outlined",void 0),Ja([R({type:Boolean})],Qa.prototype,"dense",void 0),Ja([R({type:Boolean})],Qa.prototype,"round",void 0);const ts=[Ct`
817
821
  :host {
818
822
  display: inline-block;
819
823
  max-width: 100%;
@@ -892,13 +896,13 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
892
896
  /** Primary styles **/
893
897
 
894
898
  .ft-button--primary {
895
- ${Ee(Ra.color,ke.primaryIconColor)};
899
+ ${Ee(Ua.color,ke.primaryIconColor)};
896
900
 
897
- ${Ee(Qr.color,ke.primaryStateLayerColor)};
898
- ${Ee(Qr.opacityContentOnSurfaceHover,ke.primaryStateLayerOpacityHover)};
899
- ${Ee(Qr.opacityContentOnSurfaceFocused,ke.primaryStateLayerOpacityFocus)};
900
- ${Ee(Qr.opacityContentOnSurfaceSelected,ke.primaryStateLayerOpacityActive)};
901
- ${Ee(Qr.opacityContentOnSurfacePressed,ke.primaryStateLayerOpacityActive)};
901
+ ${Ee(ti.color,ke.primaryStateLayerColor)};
902
+ ${Ee(ti.opacityContentOnSurfaceHover,ke.primaryStateLayerOpacityHover)};
903
+ ${Ee(ti.opacityContentOnSurfaceFocused,ke.primaryStateLayerOpacityFocus)};
904
+ ${Ee(ti.opacityContentOnSurfaceSelected,ke.primaryStateLayerOpacityActive)};
905
+ ${Ee(ti.opacityContentOnSurfacePressed,ke.primaryStateLayerOpacityActive)};
902
906
 
903
907
  background-color: ${ke.primaryBackgroundColor};
904
908
  color: ${ke.primaryColor};
@@ -916,13 +920,13 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
916
920
  /** Secondary styles **/
917
921
 
918
922
  .ft-button--secondary {
919
- ${Ee(Ra.color,ke.secondaryIconColor)};
923
+ ${Ee(Ua.color,ke.secondaryIconColor)};
920
924
 
921
- ${Ee(Qr.color,ke.secondaryStateLayerColor)};
922
- ${Ee(Qr.opacityContentOnSurfaceHover,ke.secondaryStateLayerOpacityHover)};
923
- ${Ee(Qr.opacityContentOnSurfaceFocused,ke.secondaryStateLayerOpacityFocus)};
924
- ${Ee(Qr.opacityContentOnSurfaceSelected,ke.secondaryStateLayerOpacityActive)};
925
- ${Ee(Qr.opacityContentOnSurfacePressed,ke.secondaryStateLayerOpacityActive)};
925
+ ${Ee(ti.color,ke.secondaryStateLayerColor)};
926
+ ${Ee(ti.opacityContentOnSurfaceHover,ke.secondaryStateLayerOpacityHover)};
927
+ ${Ee(ti.opacityContentOnSurfaceFocused,ke.secondaryStateLayerOpacityFocus)};
928
+ ${Ee(ti.opacityContentOnSurfaceSelected,ke.secondaryStateLayerOpacityActive)};
929
+ ${Ee(ti.opacityContentOnSurfacePressed,ke.secondaryStateLayerOpacityActive)};
926
930
 
927
931
  background-color: ${ke.secondaryBackgroundColor};
928
932
  color: ${ke.secondaryColor};
@@ -941,13 +945,13 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
941
945
  /** Tertiary styles **/
942
946
 
943
947
  .ft-button--tertiary {
944
- ${Ee(Ra.color,ke.tertiaryIconColor)};
948
+ ${Ee(Ua.color,ke.tertiaryIconColor)};
945
949
 
946
- ${Ee(Qr.color,ke.tertiaryStateLayerColor)};
947
- ${Ee(Qr.opacityContentOnSurfaceHover,ke.tertiaryStateLayerOpacityHover)};
948
- ${Ee(Qr.opacityContentOnSurfaceFocused,ke.tertiaryStateLayerOpacityFocus)};
949
- ${Ee(Qr.opacityContentOnSurfaceSelected,ke.tertiaryStateLayerOpacityActive)};
950
- ${Ee(Qr.opacityContentOnSurfacePressed,ke.tertiaryStateLayerOpacityActive)};
950
+ ${Ee(ti.color,ke.tertiaryStateLayerColor)};
951
+ ${Ee(ti.opacityContentOnSurfaceHover,ke.tertiaryStateLayerOpacityHover)};
952
+ ${Ee(ti.opacityContentOnSurfaceFocused,ke.tertiaryStateLayerOpacityFocus)};
953
+ ${Ee(ti.opacityContentOnSurfaceSelected,ke.tertiaryStateLayerOpacityActive)};
954
+ ${Ee(ti.opacityContentOnSurfacePressed,ke.tertiaryStateLayerOpacityActive)};
951
955
 
952
956
  background-color: ${ke.tertiaryBackgroundColor};
953
957
  color: ${ke.tertiaryColor};
@@ -965,13 +969,13 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
965
969
  /** Neutral styles **/
966
970
 
967
971
  .ft-button--neutral {
968
- ${Ee(Ra.color,ke.neutralIconColor)};
972
+ ${Ee(Ua.color,ke.neutralIconColor)};
969
973
 
970
- ${Ee(Qr.backgroundColor,ke.neutralStateLayerColor)};
971
- ${Ee(Qr.opacityContentOnSurfaceHover,ke.neutralStateLayerOpacityHover)};
972
- ${Ee(Qr.opacityContentOnSurfaceFocused,ke.neutralStateLayerOpacityFocus)};
973
- ${Ee(Qr.opacityContentOnSurfaceSelected,ke.neutralStateLayerOpacityActive)};
974
- ${Ee(Qr.opacityContentOnSurfacePressed,ke.neutralStateLayerOpacityActive)};
974
+ ${Ee(ti.backgroundColor,ke.neutralStateLayerColor)};
975
+ ${Ee(ti.opacityContentOnSurfaceHover,ke.neutralStateLayerOpacityHover)};
976
+ ${Ee(ti.opacityContentOnSurfaceFocused,ke.neutralStateLayerOpacityFocus)};
977
+ ${Ee(ti.opacityContentOnSurfaceSelected,ke.neutralStateLayerOpacityActive)};
978
+ ${Ee(ti.opacityContentOnSurfacePressed,ke.neutralStateLayerOpacityActive)};
975
979
 
976
980
  background-color: ${ke.neutralBackgroundColor};
977
981
  color: ${ke.neutralColor};
@@ -989,8 +993,8 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
989
993
  /** Large styles **/
990
994
 
991
995
  .ft-button--large {
992
- ${Ee(Sa.size,ke.largeIconSize)};
993
- ${Ee(Ra.size,ke.largeIconSize)};
996
+ ${Ee(Na.size,ke.largeIconSize)};
997
+ ${Ee(Ua.size,ke.largeIconSize)};
994
998
 
995
999
  height: ${ke.largeHeight};
996
1000
  padding: 0 ${ke.largeHorizontalPadding};
@@ -1012,8 +1016,8 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1012
1016
  /** Small styles **/
1013
1017
 
1014
1018
  .ft-button--small {
1015
- ${Ee(Sa.size,ke.smallIconSize)};
1016
- ${Ee(Ra.size,ke.smallIconSize)};
1019
+ ${Ee(Na.size,ke.smallIconSize)};
1020
+ ${Ee(Ua.size,ke.smallIconSize)};
1017
1021
 
1018
1022
  height: ${ke.smallHeight};
1019
1023
  padding: 0 ${ke.smallHorizontalPadding};
@@ -1031,12 +1035,12 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1031
1035
  width: ${ke.smallIconOnlyWidth};
1032
1036
  padding: unset;
1033
1037
  }
1034
- `,ze];var ts=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class es extends Ya{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?ui.caption1medium:ui.body2medium}}es.styles=[Me,Qa],ts([R({type:Boolean})],es.prototype,"primary",void 0),ts([R({type:Boolean})],es.prototype,"secondary",void 0),ts([R({type:Boolean})],es.prototype,"tertiary",void 0),ts([R({type:Boolean})],es.prototype,"neutral",void 0),ts([R({type:Boolean})],es.prototype,"small",void 0),W("ft-button")(Ja),W("ftds-button")(es);const os=Ct`
1035
- `;var rs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const is=Symbol("i18nProperties"),ns=Symbol("i18nUnsubs");function as(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Hn:_n}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[is])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[is])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[is]&&new Set([...this[is].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ns].has(t)||this[ns].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[ns].forEach((t=>t())),this[ns].clear()}}return e=ns,rs([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class ss extends(as(De)){}class cs extends(as(Xe)){}var ls=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class fs extends cs{constructor(){super(),this.editorMode=!1,this.addStore(Dn)}render(){return this.key&&this.context?se`
1038
+ `,Me];var es=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class os extends Xa{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?yi.caption1medium:yi.body2medium}}os.styles=[Te,ts],es([R({type:Boolean})],os.prototype,"primary",void 0),es([R({type:Boolean})],os.prototype,"secondary",void 0),es([R({type:Boolean})],os.prototype,"tertiary",void 0),es([R({type:Boolean})],os.prototype,"neutral",void 0),es([R({type:Boolean})],os.prototype,"small",void 0),W("ft-button")(Qa),W("ftds-button")(os);const rs=Ct`
1039
+ `;var is=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const ns=Symbol("i18nProperties"),as=Symbol("i18nUnsubs");function ss(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Gn:Hn}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[ns])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[ns])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ns]&&new Set([...this[ns].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[as].has(t)||this[as].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[as].forEach((t=>t())),this[as].clear()}}return e=as,is([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class cs extends(ss(De)){}class ls extends(ss(Je)){}var fs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class hs extends ls{constructor(){super(),this.editorMode=!1,this.addStore(zn)}render(){return this.key&&this.context?se`
1036
1040
  <span class="ft-i18n">
1037
1041
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1038
1042
  </span>
1039
- `:this.editorMode?"Select a context and a label key.":le}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}fs.elementDefinitions={},fs.styles=os,ls([zr()],fs.prototype,"editorMode",void 0),ls([R()],fs.prototype,"context",void 0),ls([R()],fs.prototype,"key",void 0),ls([A([])],fs.prototype,"args",void 0),ls([R()],fs.prototype,"defaultMessage",void 0);class hs{static build(t){return new hs(t)}static fromGwt(t){return new hs(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>_n.resolveMessage(this.name,e,...t)})}}W("ft-i18n")(fs);const ps=hs.build("savedSearchesComponent"),ds={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",in:"In",titles:"Titles",resultsType:"Results type",documentsOnly:"Documents only"},us=Ce.extend("--ft-chip-color","",Ie.colorOnSurface),ys={backgroundColor:Ce.extend("--ft-chip-background-color","",Ie.colorSurface),color:us,fontSize:Ce.extend("--ft-chip-font-size","",Vi.fontSize),iconSize:Ce.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:Ce.extend("--ft-chip-ripple-color","",us),horizontalPadding:Ce.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Ce.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:Ce.external(Ie.colorOutline,"Design system"),opacityDisabled:Ce.external(Ie.colorOpacityDisabled,"Design system")},gs=Ce.extend("--ft-chip-highlighted-color","",Ce.extend("--ft-chip-color","",Ie.colorOnPrimary)),bs={backgroundColor:Ce.extend("--ft-chip-highlighted-background-color","",Ce.extend("--ft-chip-background-color","",Ie.colorPrimary)),color:gs,rippleColor:Ce.extend("--ft-chip-highlighted-ripple-color","",gs)},ms=Ce.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),vs=Ce.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),Os=[ze,Ct`
1043
+ `:this.editorMode?"Select a context and a label key.":le}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}hs.elementDefinitions={},hs.styles=rs,fs([Mr()],hs.prototype,"editorMode",void 0),fs([R()],hs.prototype,"context",void 0),fs([R()],hs.prototype,"key",void 0),fs([A([])],hs.prototype,"args",void 0),fs([R()],hs.prototype,"defaultMessage",void 0);class ps{static build(t){return new ps(t)}static fromGwt(t){return new ps(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Hn.resolveMessage(this.name,e,...t)})}}W("ft-i18n")(hs);const ds=ps.build("savedSearchesComponent"),us={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",in:"In",titles:"Titles",resultsType:"Results type",documentsOnly:"Documents only"},ys=Ce.extend("--ft-chip-color","",Ie.colorOnSurface),gs={backgroundColor:Ce.extend("--ft-chip-background-color","",Ie.colorSurface),color:ys,fontSize:Ce.extend("--ft-chip-font-size","",qi.fontSize),iconSize:Ce.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:Ce.extend("--ft-chip-ripple-color","",ys),horizontalPadding:Ce.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:Ce.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:Ce.external(Ie.colorOutline,"Design system"),opacityDisabled:Ce.external(Ie.colorOpacityDisabled,"Design system")},bs=Ce.extend("--ft-chip-highlighted-color","",Ce.extend("--ft-chip-color","",Ie.colorOnPrimary)),ms={backgroundColor:Ce.extend("--ft-chip-highlighted-background-color","",Ce.extend("--ft-chip-background-color","",Ie.colorPrimary)),color:bs,rippleColor:Ce.extend("--ft-chip-highlighted-ripple-color","",bs)},vs=Ce.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),Os=Ce.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),xs=[Me,Ct`
1040
1044
  :host {
1041
1045
  display: inline-block;
1042
1046
  max-width: 100%;
@@ -1052,20 +1056,20 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1052
1056
  box-sizing: border-box;
1053
1057
  pointer-events: auto;
1054
1058
 
1055
- --ft-chip-internal-font-size: ${ys.fontSize};
1059
+ --ft-chip-internal-font-size: ${gs.fontSize};
1056
1060
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
1057
- ${Ee(Sa.size,ys.iconSize)};
1058
- --ft-chip-internal-vertical-padding: ${ys.verticalPadding};
1059
- --ft-chip-internal-horizontal-padding: ${ys.horizontalPadding};
1061
+ ${Ee(Na.size,gs.iconSize)};
1062
+ --ft-chip-internal-vertical-padding: ${gs.verticalPadding};
1063
+ --ft-chip-internal-horizontal-padding: ${gs.horizontalPadding};
1060
1064
  --ft-chip-internal-icon-padding: 3px;
1061
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ys.iconSize});
1065
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${gs.iconSize});
1062
1066
 
1063
- border: 1px solid ${ys.colorOutline};
1064
- color: ${ys.color};
1065
- ${Ee(Qr.color,ys.rippleColor)};
1067
+ border: 1px solid ${gs.colorOutline};
1068
+ color: ${gs.color};
1069
+ ${Ee(ti.color,gs.rippleColor)};
1066
1070
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
1067
1071
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
1068
- background-color: ${ys.backgroundColor};
1072
+ background-color: ${gs.backgroundColor};
1069
1073
  line-height: var(--ft-chip-internal-content-height);
1070
1074
  }
1071
1075
 
@@ -1075,8 +1079,8 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1075
1079
 
1076
1080
  .ft-chip--dense {
1077
1081
  --ft-chip-internal-icon-padding: 3px;
1078
- --ft-chip-internal-vertical-padding: ${vs};
1079
- --ft-chip-internal-horizontal-padding: ${ms};
1082
+ --ft-chip-internal-vertical-padding: ${Os};
1083
+ --ft-chip-internal-horizontal-padding: ${vs};
1080
1084
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
1081
1085
  }
1082
1086
 
@@ -1088,15 +1092,15 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1088
1092
  cursor: default;
1089
1093
  pointer-events: none;
1090
1094
  filter: grayscale(1);
1091
- opacity: ${ys.opacityDisabled};
1095
+ opacity: ${gs.opacityDisabled};
1092
1096
  }
1093
1097
 
1094
1098
  .ft-chip--highlighted {
1095
1099
  border: none;
1096
1100
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
1097
- background-color: ${bs.backgroundColor};
1098
- ${Ee(Qr.color,bs.rippleColor)};
1099
- color: ${bs.color};
1101
+ background-color: ${ms.backgroundColor};
1102
+ ${Ee(ti.color,ms.rippleColor)};
1103
+ color: ${ms.color};
1100
1104
  }
1101
1105
 
1102
1106
  .ft-chip--clickable {
@@ -1126,9 +1130,9 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1126
1130
  }
1127
1131
 
1128
1132
  .ft-chip--icon-button {
1129
- ${Ee(Ia.iconSize,ys.iconSize)};
1130
- ${Ee(Ia.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1131
- ${Ee(Ia.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1133
+ ${Ee(La.iconSize,gs.iconSize)};
1134
+ ${Ee(La.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1135
+ ${Ee(La.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1132
1136
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
1133
1137
  }
1134
1138
 
@@ -1136,8 +1140,8 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1136
1140
  vertical-align: bottom;
1137
1141
  display: block;
1138
1142
  margin: 0 var(--ft-chip-internal-horizontal-padding);
1139
- ${Ee(Vi.fontSize,"var(--ft-chip-internal-font-size)")};
1140
- ${Ee(Vi.lineHeight,"var(--ft-chip-internal-content-height)")};
1143
+ ${Ee(qi.fontSize,"var(--ft-chip-internal-font-size)")};
1144
+ ${Ee(qi.lineHeight,"var(--ft-chip-internal-content-height)")};
1141
1145
  }
1142
1146
 
1143
1147
  .ft-chip--safari-fix .ft-chip--label {
@@ -1173,8 +1177,8 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1173
1177
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1174
1178
  order: -1;
1175
1179
  }
1176
- `];var xs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ws extends CustomEvent{constructor(){super("icon-click")}}class Ss extends De{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":Hr};return se`
1177
- <div class="${Xr(t)}"
1180
+ `];var ws=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ss extends CustomEvent{constructor(){super("icon-click")}}class Ns extends De{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":Gr};return se`
1181
+ <div class="${Jr(t)}"
1178
1182
  aria-label="${this.getLabel()}"
1179
1183
  tabindex="${this.interactionsOnChip?0:-1}"
1180
1184
  @keyup=${this.onKeyUp}>
@@ -1196,7 +1200,7 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1196
1200
  <div class="ft-chip--icon-container ft-no-text-select">
1197
1201
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
1198
1202
  </div>
1199
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ws))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ws))}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)}}Ss.elementDefinitions={"ft-ripple":ci,"ft-typography":Rn,"ft-icon":$a,"ft-button":Ja},Ss.styles=Os,xs([R({type:Boolean})],Ss.prototype,"highlighted",void 0),xs([R({type:Boolean})],Ss.prototype,"removable",void 0),xs([R({type:Boolean})],Ss.prototype,"disabled",void 0),xs([R({type:Boolean})],Ss.prototype,"clickable",void 0),xs([R({type:Boolean})],Ss.prototype,"iconClickable",void 0),xs([R({type:Boolean})],Ss.prototype,"dense",void 0),xs([R({type:Boolean})],Ss.prototype,"multiLine",void 0),xs([R()],Ss.prototype,"label",void 0),xs([R()],Ss.prototype,"iconLabel",void 0),xs([R()],Ss.prototype,"icon",void 0),xs([R()],Ss.prototype,"iconVariant",void 0),xs([R({type:Boolean})],Ss.prototype,"trailingIcon",void 0),xs([I("ft-typography slot")],Ss.prototype,"slottedContent",void 0),W("ft-chip")(Ss);var Ns=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Cs extends(as(ma)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.selected=!1,this.addI18nContext(ps,ds)}render(){var t;return se`
1203
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ss))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ss))}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)}}Ns.elementDefinitions={"ft-ripple":li,"ft-typography":Un,"ft-icon":Ra,"ft-button":Qa},Ns.styles=xs,ws([R({type:Boolean})],Ns.prototype,"highlighted",void 0),ws([R({type:Boolean})],Ns.prototype,"removable",void 0),ws([R({type:Boolean})],Ns.prototype,"disabled",void 0),ws([R({type:Boolean})],Ns.prototype,"clickable",void 0),ws([R({type:Boolean})],Ns.prototype,"iconClickable",void 0),ws([R({type:Boolean})],Ns.prototype,"dense",void 0),ws([R({type:Boolean})],Ns.prototype,"multiLine",void 0),ws([R()],Ns.prototype,"label",void 0),ws([R()],Ns.prototype,"iconLabel",void 0),ws([R()],Ns.prototype,"icon",void 0),ws([R()],Ns.prototype,"iconVariant",void 0),ws([R({type:Boolean})],Ns.prototype,"trailingIcon",void 0),ws([I("ft-typography slot")],Ns.prototype,"slottedContent",void 0),W("ft-chip")(Ns);var Cs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Es extends(ss(va)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.selected=!1,this.addI18nContext(ds,us)}render(){var t;return se`
1200
1204
  <ft-card title="${null===(t=this.search)||void 0===t?void 0:t.title}" clickable ?selected="${this.selected}">
1201
1205
  ${this.renderAlertStatus()}
1202
1206
  <div id="container">
@@ -1205,37 +1209,37 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1205
1209
  ${this.renderSearchButton()}
1206
1210
  </div>
1207
1211
  </ft-card>
1208
- `}renderDescription(){var t;return this.showDescription?se`<div id="description" class="content">${null===(t=this.search)||void 0===t?void 0:t.description}</div>`:le}renderSearchButton(){return this.showSearchButton?se`<div id="searchButton" class="content"><ft-button id="search" icon="search">${ps.messages.search()}</ft-button></div>`:le}renderAlertStatus(){var t;return this.showAlertStatus&&(null===(t=this.search)||void 0===t?void 0:t.alert)?se`<ft-icon id="alertStatus" slot="header">alert</ft-icon>`:le}renderSearchFilters(){var t,e,o,r,i,n,a,s,c,l,f,h,p,d,u,y;return this.showSearchFilters?se`<div id="searchFilters" class="content">
1209
- ${null!==(e=null===(t=this.search)||void 0===t?void 0:t.searchRequest.query.length)&&void 0!==e&&e?this.renderMetadata(ps.messages.keywords(),null===(o=this.search)||void 0===o?void 0:o.searchRequest.query,!0):le}
1210
- ${(null===(r=this.search)||void 0===r?void 0:r.searchRequest.virtualField)==sa.TITLE_ONLY?this.renderMetadata(ps.messages.in(),ps.messages.titles(),!0):le}
1211
- ${(null===(i=this.search)||void 0===i?void 0:i.searchRequest.scope)==pa.DOCUMENTS?this.renderMetadata(ps.messages.resultsType(),ps.messages.documentsOnly(),!0):le}
1212
+ `}renderDescription(){var t;return this.showDescription?se`<div id="description" class="content">${null===(t=this.search)||void 0===t?void 0:t.description}</div>`:le}renderSearchButton(){return this.showSearchButton?se`<div id="searchButton" class="content"><ft-button id="search" icon="search">${ds.messages.search()}</ft-button></div>`:le}renderAlertStatus(){var t;return this.showAlertStatus&&(null===(t=this.search)||void 0===t?void 0:t.alert)?se`<ft-icon id="alertStatus" slot="header">alert</ft-icon>`:le}renderSearchFilters(){var t,e,o,r,i,n,a,s,c,l,f,h,p,d,u,y;return this.showSearchFilters?se`<div id="searchFilters" class="content">
1213
+ ${null!==(e=null===(t=this.search)||void 0===t?void 0:t.searchRequest.query.length)&&void 0!==e&&e?this.renderMetadata(ds.messages.keywords(),null===(o=this.search)||void 0===o?void 0:o.searchRequest.query,!0):le}
1214
+ ${(null===(r=this.search)||void 0===r?void 0:r.searchRequest.virtualField)==ca.TITLE_ONLY?this.renderMetadata(ds.messages.in(),ds.messages.titles(),!0):le}
1215
+ ${(null===(i=this.search)||void 0===i?void 0:i.searchRequest.scope)==da.DOCUMENTS?this.renderMetadata(ds.messages.resultsType(),ds.messages.documentsOnly(),!0):le}
1212
1216
  ${null===(n=this.search)||void 0===n?void 0:n.searchRequest.filters.map((t=>this.renderMetadata(t.label,t.values)))}
1213
- ${null!==(c=null===(s=null===(a=this.search)||void 0===a?void 0:a.searchRequest.contentLocale)||void 0===s?void 0:s.length)&&void 0!==c&&c?this.renderMetadata(ps.messages.language(),null===(l=this.search)||void 0===l?void 0:l.searchRequest.contentLocale,!0):le}
1214
- ${null!==(p=null===(h=null===(f=this.search)||void 0===f?void 0:f.searchRequest.sort[0])||void 0===h?void 0:h.key.length)&&void 0!==p&&p?this.renderMetadata(ps.messages.sort(),this.mapSortKey(null===(d=this.search)||void 0===d?void 0:d.searchRequest.sort[0].key),!0):le}
1215
- ${(null===(u=this.search)||void 0===u?void 0:u.searchRequest.periodFilter)?this.renderMetadata(ps.messages.period(),this.mapPeriodFilter(null===(y=this.search)||void 0===y?void 0:y.searchRequest.periodFilter),!0):le}
1216
- </div>`:le}renderMetadata(t,e,o=!1){return se`<ft-chip dense ?highlighted=${o}><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 ps.messages.relevance();case"ft:lastEdition":return ps.messages.lastUpdate();default:return t}}mapPeriodFilter(t){switch(t.periodType){case"LAST_WEEK":return ps.messages.lastWeek();case"LAST_MONTH":return ps.messages.lastMonth();case"LAST_YEAR":return ps.messages.lastYear();case"CUSTOM":return ps.messages.customPeriod();default:return"--"}}}Cs.elementDefinitions={"ft-icon":$a,"ft-card":Bn,"ft-chip":Ss,"ft-button":Ja},Cs.styles=Ct`
1217
+ ${null!==(c=null===(s=null===(a=this.search)||void 0===a?void 0:a.searchRequest.contentLocale)||void 0===s?void 0:s.length)&&void 0!==c&&c?this.renderMetadata(ds.messages.language(),null===(l=this.search)||void 0===l?void 0:l.searchRequest.contentLocale,!0):le}
1218
+ ${null!==(p=null===(h=null===(f=this.search)||void 0===f?void 0:f.searchRequest.sort[0])||void 0===h?void 0:h.key.length)&&void 0!==p&&p?this.renderMetadata(ds.messages.sort(),this.mapSortKey(null===(d=this.search)||void 0===d?void 0:d.searchRequest.sort[0].key),!0):le}
1219
+ ${(null===(u=this.search)||void 0===u?void 0:u.searchRequest.periodFilter)?this.renderMetadata(ds.messages.period(),this.mapPeriodFilter(null===(y=this.search)||void 0===y?void 0:y.searchRequest.periodFilter),!0):le}
1220
+ </div>`:le}renderMetadata(t,e,o=!1){return se`<ft-chip dense ?highlighted=${o}><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 ds.messages.relevance();case"ft:lastEdition":return ds.messages.lastUpdate();default:return t}}mapPeriodFilter(t){switch(t.periodType){case"LAST_WEEK":return ds.messages.lastWeek();case"LAST_MONTH":return ds.messages.lastMonth();case"LAST_YEAR":return ds.messages.lastYear();case"CUSTOM":return ds.messages.customPeriod();default:return"--"}}}Es.elementDefinitions={"ft-icon":Ra,"ft-card":Bn,"ft-chip":Ns,"ft-button":Qa},Es.styles=Ct`
1217
1221
  ft-card {
1218
- ${Ee(Un.outlineStyle,Fn.inactiveSearchBorderStyle)};
1219
- ${Ee(Un.outlineWidth,Fn.inactiveSearchBorderWidth)};
1220
- ${Ee(Un.outlineColor,Fn.inactiveSearchBorderColor)};
1221
- ${Ee(Un.borderRadius,Fn.inactiveSearchBorderRadius)};
1222
- ${Ee(Un.selectedOutlineStyle,Fn.activeSearchBorderStyle)};
1223
- ${Ee(Un.selectedOutlineWidth,Fn.activeSearchBorderWidth)};
1224
- ${Ee(Un.selectedOutlineColor,Fn.activeSearchBorderColor)};
1225
- ${Ee(Un.selectedBorderRadius,Fn.activeSearchBorderRadius)};
1226
- ${Ee(Qr.backgroundColor,Fn.inactiveSearchBackgroundColor)};
1222
+ ${Ee(kn.outlineStyle,Kn.inactiveSearchBorderStyle)};
1223
+ ${Ee(kn.outlineWidth,Kn.inactiveSearchBorderWidth)};
1224
+ ${Ee(kn.outlineColor,Kn.inactiveSearchBorderColor)};
1225
+ ${Ee(kn.borderRadius,Kn.inactiveSearchBorderRadius)};
1226
+ ${Ee(kn.selectedOutlineStyle,Kn.activeSearchBorderStyle)};
1227
+ ${Ee(kn.selectedOutlineWidth,Kn.activeSearchBorderWidth)};
1228
+ ${Ee(kn.selectedOutlineColor,Kn.activeSearchBorderColor)};
1229
+ ${Ee(kn.selectedBorderRadius,Kn.activeSearchBorderRadius)};
1230
+ ${Ee(ti.backgroundColor,Kn.inactiveSearchBackgroundColor)};
1227
1231
  }
1228
1232
 
1229
1233
  ft-card[selected] {
1230
- ${Ee(Qr.backgroundColor,Fn.activeSearchBackgroundColor)};
1234
+ ${Ee(ti.backgroundColor,Kn.activeSearchBackgroundColor)};
1231
1235
  }
1232
1236
 
1233
1237
  #search {
1234
- ${Ee(Ia.color,Fn.inactiveButtonTextColor)};
1238
+ ${Ee(La.color,Kn.inactiveButtonTextColor)};
1235
1239
  }
1236
1240
 
1237
1241
  ft-card[selected] #search {
1238
- ${Ee(Ia.color,Fn.activeButtonTextColor)};
1242
+ ${Ee(La.color,Kn.activeButtonTextColor)};
1239
1243
  }
1240
1244
 
1241
1245
  #searchFilters {
@@ -1264,24 +1268,24 @@ const li=Symbol.for(""),fi=t=>{if(t?.r===li)return t?._$litStatic$},hi=t=>({_$li
1264
1268
  }
1265
1269
 
1266
1270
  #alertStatus {
1267
- color: ${Fn.color};
1271
+ color: ${Kn.color};
1268
1272
  }
1269
- `,Ns([R()],Cs.prototype,"search",void 0),Ns([R({type:Boolean})],Cs.prototype,"showDescription",void 0),Ns([R({type:Boolean})],Cs.prototype,"showSearchFilters",void 0),Ns([R({type:Boolean})],Cs.prototype,"showSearchButton",void 0),Ns([R({type:Boolean})],Cs.prototype,"showAlertStatus",void 0),Ns([R({type:Boolean})],Cs.prototype,"selected",void 0);
1273
+ `,Cs([R()],Es.prototype,"search",void 0),Cs([R({type:Boolean})],Es.prototype,"showDescription",void 0),Cs([R({type:Boolean})],Es.prototype,"showSearchFilters",void 0),Cs([R({type:Boolean})],Es.prototype,"showSearchButton",void 0),Cs([R({type:Boolean})],Es.prototype,"showAlertStatus",void 0),Cs([R({type:Boolean})],Es.prototype,"selected",void 0);
1270
1274
  /**
1271
1275
  * @license
1272
1276
  * Copyright 2020 Google LLC
1273
1277
  * SPDX-License-Identifier: BSD-3-Clause
1274
1278
  */
1275
- const{D:Es}=bt,$s=()=>document.createComment(""),Rs=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore($s(),i),n=r.insertBefore($s(),i);o=new Es(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},Us=(t,e,o=t)=>(t._$AI(e,o),t),ks={},Is=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Ls=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},Ws=qr(class extends Yr{constructor(t){if(super(t),t.type!==Vr)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,h=0,p=i.length-1,d=0,u=n.length-1;for(;h<=p&&d<=u;)if(null===i[h])h++;else if(null===i[p])p--;else if(s[h]===a[d])c[d]=Us(i[h],n[d]),h++,d++;else if(s[p]===a[u])c[u]=Us(i[p],n[u]),p--,u--;else if(s[h]===a[u])c[u]=Us(i[h],n[u]),Rs(t,c[u+1],i[h]),h++,u--;else if(s[p]===a[d])c[d]=Us(i[p],n[d]),Rs(t,i[h],i[p]),p--,d++;else if(void 0===l&&(l=Ls(a,d,u),f=Ls(s,h,p)),l.has(s[h]))if(l.has(s[p])){const e=f.get(a[d]),o=void 0!==e?i[e]:null;if(null===o){const e=Rs(t,i[h]);Us(e,n[d]),c[d]=e}else c[d]=Us(o,n[d]),Rs(t,i[h],o),i[e]=null;d++}else Is(i[p]),p--;else Is(i[h]),h++;for(;d<=u;){const e=Rs(t,c[u+1]);Us(e,n[d]),c[d++]=e}for(;h<=p;){const t=i[h++];null!==t&&Is(t)}return this.dt=a,((t,e=ks)=>{t._$AH=e})(t,c),ot}});
1279
+ const{D:$s}=bt,Rs=()=>document.createComment(""),Us=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(Rs(),i),n=r.insertBefore(Rs(),i);o=new $s(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},ks=(t,e,o=t)=>(t._$AI(e,o),t),Is={},Ls=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Ws=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},As=Yr(class extends Xr{constructor(t){if(super(t),t.type!==qr)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,h=0,p=i.length-1,d=0,u=n.length-1;for(;h<=p&&d<=u;)if(null===i[h])h++;else if(null===i[p])p--;else if(s[h]===a[d])c[d]=ks(i[h],n[d]),h++,d++;else if(s[p]===a[u])c[u]=ks(i[p],n[u]),p--,u--;else if(s[h]===a[u])c[u]=ks(i[h],n[u]),Us(t,c[u+1],i[h]),h++,u--;else if(s[p]===a[d])c[d]=ks(i[p],n[d]),Us(t,i[h],i[p]),p--,d++;else if(void 0===l&&(l=Ws(a,d,u),f=Ws(s,h,p)),l.has(s[h]))if(l.has(s[p])){const e=f.get(a[d]),o=void 0!==e?i[e]:null;if(null===o){const e=Us(t,i[h]);ks(e,n[d]),c[d]=e}else c[d]=ks(o,n[d]),Us(t,i[h],o),i[e]=null;d++}else Ls(i[p]),p--;else Ls(i[h]),h++;for(;d<=u;){const e=Us(t,c[u+1]);ks(e,n[d]),c[d++]=e}for(;h<=p;){const t=i[h++];null!==t&&Ls(t)}return this.dt=a,((t,e=Is)=>{t._$AH=e})(t,c),ot}});
1276
1280
  /**
1277
1281
  * @license
1278
1282
  * Copyright 2017 Google LLC
1279
1283
  * SPDX-License-Identifier: BSD-3-Clause
1280
- */var As=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class js extends(as(ma)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=da.SAVED_SEARCH_USER,this.addStore(Dn),this.addStore(Jn),this.addI18nContext(ps,ds)}render(){var t;return this.editorMode&&!this.userHasRights?se`
1281
- <ft-typography>${ps.messages.missingRole(this.requiredRole)}</ft-typography>`:this.editorMode&&this.isEmpty?se`
1282
- <ft-typography>${ps.messages.displaySavedSearchesHere()}</ft-typography>`:this.userHasRights&&!this.isEmpty?se`
1284
+ */var js=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Fs extends(ss(va)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=ua.SAVED_SEARCH_USER,this.addStore(zn),this.addStore(Qn),this.addI18nContext(ds,us)}render(){var t;return this.editorMode&&!this.userHasRights?se`
1285
+ <ft-typography>${ds.messages.missingRole(this.requiredRole)}</ft-typography>`:this.editorMode&&this.isEmpty?se`
1286
+ <ft-typography>${ds.messages.displaySavedSearchesHere()}</ft-typography>`:this.userHasRights&&!this.isEmpty?se`
1283
1287
  <div id="container">
1284
- ${Ws(null!==(t=this.savedSearches)&&void 0!==t?t:[],(t=>t.id),(t=>se`
1288
+ ${As(null!==(t=this.savedSearches)&&void 0!==t?t:[],(t=>t.id),(t=>se`
1285
1289
  <ft-search-saved-search
1286
1290
  .search=${t}
1287
1291
  ?showDescription=${this.showDescription}
@@ -1298,4 +1302,4 @@ const{D:Es}=bt,$s=()=>document.createComment(""),Rs=(t,e,o)=>{const r=t._$AA.par
1298
1302
  display: none !important;
1299
1303
  }
1300
1304
  </style>
1301
- `}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 o=null===(e=this.stateManager)||void 0===e?void 0:e.store.getState().request;return null!=o&&L(o.query,t.query)&&L([...o.filters],[...t.filters].map(this.mapSearchFilter))&&L([...o.sort].map(this.mapFtSearchSortCriterion),[...t.sort].map(this.mapFtSearchSortCriterion))&&L(o.contentLocale,t.contentLocale)&&L(o.periodFilter,t.periodFilter)&&L(o.virtualField,t.virtualField)&&L(o.scope,t.scope)}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,virtualField:t.virtualField,scope:t.scope}}mapSearchFilter(t){return{key:t.key,values:t.values,negative:t.negative}}connectedCallback(){super.connectedCallback(),Qn.reloadMySearches()}setSearch(t){var e;const o=this.toFtSearchRequest(t);null!=o&&(null===(e=this.stateManager)||void 0===e||e.setRequest(o))}update(t){super.update(t),(t.has("user")||t.has("savedSearches"))&&null==this.savedSearches&&Qn.reloadMySearches()}}js.styles=Kn,js.elementDefinitions={"ft-search-saved-search":Cs,"ft-typography":Rn},As([R({type:Boolean})],js.prototype,"showDescription",void 0),As([R({type:Boolean})],js.prototype,"showSearchFilters",void 0),As([R({type:Boolean})],js.prototype,"showSearchButton",void 0),As([R({type:Boolean})],js.prototype,"showAlertStatus",void 0),As([zr({store:Jn.name})],js.prototype,"savedSearches",void 0),As([zr({store:Dn.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],js.prototype,"user",void 0),As([zr({store:"search"})],js.prototype,"request",void 0),As([zr({store:Dn.name})],js.prototype,"editorMode",void 0),W("ft-search-saved-searches")(js),t.FtSearchSavedSearches=js,t.FtSearchSavedSearchesCssVariables=Fn,t.styles=Kn}({});
1305
+ `}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 o=null===(e=this.stateManager)||void 0===e?void 0:e.store.getState().request;return null!=o&&L(o.query,t.query)&&L([...o.filters],[...t.filters].map(this.mapSearchFilter))&&L([...o.sort].map(this.mapFtSearchSortCriterion),[...t.sort].map(this.mapFtSearchSortCriterion))&&L(o.contentLocale,t.contentLocale)&&L(o.periodFilter,t.periodFilter)&&L(o.virtualField,t.virtualField)&&L(o.scope,t.scope)}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,virtualField:t.virtualField,scope:t.scope}}mapSearchFilter(t){return{key:t.key,values:t.values,negative:t.negative}}connectedCallback(){super.connectedCallback(),ta.reloadMySearches()}setSearch(t){var e;const o=this.toFtSearchRequest(t);null!=o&&(null===(e=this.stateManager)||void 0===e||e.setRequest(o))}update(t){super.update(t),(t.has("user")||t.has("savedSearches"))&&null==this.savedSearches&&ta.reloadMySearches()}}Fs.styles=Pn,Fs.elementDefinitions={"ft-search-saved-search":Es,"ft-typography":Un},js([R({type:Boolean})],Fs.prototype,"showDescription",void 0),js([R({type:Boolean})],Fs.prototype,"showSearchFilters",void 0),js([R({type:Boolean})],Fs.prototype,"showSearchButton",void 0),js([R({type:Boolean})],Fs.prototype,"showAlertStatus",void 0),js([Mr({store:Qn.name})],Fs.prototype,"savedSearches",void 0),js([Mr({store:zn.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Fs.prototype,"user",void 0),js([Mr({store:"search"})],Fs.prototype,"request",void 0),js([Mr({store:zn.name})],Fs.prototype,"editorMode",void 0),W("ft-search-saved-searches")(Fs),t.FtSearchSavedSearches=Fs,t.FtSearchSavedSearchesCssVariables=Kn,t.styles=Pn}({});