@fluid-topics/ft-search-results-number 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,o=window.customElements.define,e=window.customElements.get,r=window.customElements,n=new WeakMap,i=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=n.prototype.attributeChangedCallback,c=new Set(n.observedAttributes||[]);u(n,c,s);const l={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(n,l);let f=e.call(r,t);f||(f=h(t),o.call(r,t,f)),this===window.customElements&&(a.set(n,l),l.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)i.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),n.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!l(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},h=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=f(e)||window.customElements,n=r._getDefinition(o);return n?d(e,n):i.set(e,r),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i,n),e.call(this,i,t,n)}else r.call(this,i,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r),e.call(this,r,t,null)}else n.call(this,r)});const i=t.prototype.toggleAttribute;i&&(t.prototype.toggleAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const o=this.getAttribute(n);e.call(this,n,t,o)}else i.call(this,n,r)})},p=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):p(e)},d=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),n.set(t,o),c=t;try{new o.elementClass}catch(t){p(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||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,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.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,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===n.get(e).formAssociated)return r?.call(this,...o);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 i{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),n=o.get(r)||[];this[+e]=t,n.push(t),o.set(r,n)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=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,[]),o=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||o.push(e)}return new i(o)}})}}try{window.customElements.define("custom-element",null)}catch(Rn){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o extends Error{constructor(t,o,e){super(t),this.canceledPromiseResult=o,this.canceledPromiseError=e}}class e extends Promise{constructor(t){super(((e,r)=>t((t=>{this.isCanceled?r(new o("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?r(new o("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,o){this.loaders[t]=o,this.finalContent.delete(t)}registerFinal(t,o){this.loaders[t]=o,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 e&&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,o){this.forceClear(t),this.register(t,(async()=>o)),this.content[t]=o}setFinal(t,o){this.forceClear(t),this.registerFinal(t,(async()=>o)),this.content[t]=o}async get(t,o,r){if(void 0===this.content[t]){if(null==(o=null!=o?o:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new e(((o,e)=>t.then(o).catch(e))))(o());return this.content[t]=n,n.then((o=>(this.content[t]=o,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),o)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}n(!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,o=window.customElements.define,e=window.customElements.get,r=window.customElements,n=new WeakMap,i=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=n.prototype.attributeChangedCallback,c=new Set(n.observedAttributes||[]);u(n,c,s);const l={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(n,l);let f=e.call(r,t);f||(f=h(t),o.call(r,t,f)),this===window.customElements&&(a.set(n,l),l.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)i.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),n.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!l(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},h=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=f(e)||window.customElements,n=r._getDefinition(o);return n?d(e,n):i.set(e,r),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i,n),e.call(this,i,t,n)}else r.call(this,i,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r),e.call(this,r,t,null)}else n.call(this,r)});const i=t.prototype.toggleAttribute;i&&(t.prototype.toggleAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const o=this.getAttribute(n);e.call(this,n,t,o)}else i.call(this,n,r)})},p=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):p(e)},d=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),n.set(t,o),c=t;try{new o.elementClass}catch(t){p(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||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,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.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,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===n.get(e).formAssociated)return r?.call(this,...o);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 i{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),n=o.get(r)||[];this[+e]=t,n.push(t),o.set(r,n)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=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,[]),o=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||o.push(e)}return new i(o)}})}}try{window.customElements.define("custom-element",null)}catch(Un){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o extends Error{constructor(t,o,e){super(t),this.canceledPromiseResult=o,this.canceledPromiseError=e}}class e extends Promise{constructor(t){super(((e,r)=>t((t=>{this.isCanceled?r(new o("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?r(new o("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,o){this.loaders[t]=o,this.finalContent.delete(t)}registerFinal(t,o){this.loaders[t]=o,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 e&&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,o){this.forceClear(t),this.register(t,(async()=>o)),this.content[t]=o}setFinal(t,o){this.forceClear(t),this.registerFinal(t,(async()=>o)),this.content[t]=o}async get(t,o,r){if(void 0===this.content[t]){if(null==(o=null!=o?o:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new e(((o,e)=>t.then(o).catch(e))))(o());return this.content[t]=n,n.then((o=>(this.content[t]=o,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),o)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}n(!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
@@ -66,7 +66,11 @@ let bo=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
66
66
  * @license
67
67
  * Copyright 2019 Google LLC
68
68
  * SPDX-License-Identifier: BSD-3-Clause
69
- */class Ro extends bo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=Co.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,Io=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};const Lo=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),Ao=Symbol("exportpartsDebouncer");class ko extends Ro{constructor(){super(),this[Uo]=new n(5),this[Wo]=this.constructor.name,this[Lo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Lo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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[Ao].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 o,e,r,n,i,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!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(n=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==n?n:[],e=null!==(a=null===(i=t.getAttribute("exportparts"))||void 0===i?void 0:i.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).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((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Uo=Ao,Io([U()],ko.prototype,"exportpartsPrefix",void 0),Io([A([])],ko.prototype,"exportpartsPrefixes",void 0),Io([U()],ko.prototype,"customStylesheet",void 0),Ot`
69
+ */class Ro extends bo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=Co.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,Io=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};const Lo=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),Ao=Symbol("exportpartsDebouncer");class ko extends Ro{constructor(){super(),this[Uo]=new n(5),this[Wo]=this.constructor.name,this[Lo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Lo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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[Ao].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 o,e,r,n,i,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!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(n=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==n?n:[],e=null!==(a=null===(i=t.getAttribute("exportparts"))||void 0===i?void 0:i.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).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((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Uo=Ao,Io([U()],ko.prototype,"exportpartsPrefix",void 0),Io([A([])],ko.prototype,"exportpartsPrefixes",void 0),Io([U()],ko.prototype,"customStylesheet",void 0);const $o=vo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Ot`
70
+ .highlight-html-match {
71
+ background: ${$o};
72
+ }
73
+ `,Ot`
70
74
  .ft-no-text-select {
71
75
  -webkit-touch-callout: none;
72
76
  -webkit-user-select: none;
@@ -98,112 +102,112 @@ let bo=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
98
102
  display: inline-block;
99
103
  width: 0;
100
104
  }
101
- `;class $o{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var e,r;t=this.resolvePluralKey(t,o);let n=null!==(r=null!==(e=this.labels[t])&&void 0!==e?e:this.defaultLabels[t])&&void 0!==r?r:"";return o.forEach(((t,o)=>n=n.replace(new RegExp(`\\{${o}([^}]*)\\}`,"g"),((o,e)=>this.formatValue(t,e))))),n}resolvePluralKey(t,o){for(let e of o)if("number"==typeof e){const o=`${String(t)}[\\=${e}]`;if(o in this.labels||o in this.defaultLabels)return o}return t}formatValue(t,o){return t instanceof Date?this.formatDate(t,o):null!=t?t:""}formatDate(t,o){const e=e=>(null==o?void 0:o.includes("date"))?t.toLocaleDateString(e):(null==o?void 0:o.includes("time"))?t.toLocaleTimeString(e):t.toLocaleString(e);try{return e(document.documentElement.lang)}catch(t){return e()}}}function Ko(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var Po,jo,Fo;const Mo=Symbol("internalReduxEventsUnsubscribers"),Do=Symbol("internalStoresUnsubscribers"),Zo=Symbol("internalStores");class To extends ko{constructor(){super(...arguments),this[Po]=new Map,this[jo]=new Map,this[Fo]=[]}update(t){var o;super.update(t),(null===(o=this.reduxReactiveProperties)||void 0===o?void 0:o.some((o=>t.has(o))))&&this.updateFromStores()}getUnnamedStore(){if(this[Zo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Zo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Zo].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Ko(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Zo].delete(o)}setupStore(t,o){this[Zo].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Zo].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Do].has(t.store):this[Do].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Do].set(t,o.subscribe((()=>this.updateFromStores()))),Ko(o)&&o.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Mo].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Do].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Mo].forEach((t=>t())),this[Mo]=[]}unsubscribeFromStore(t){this[Do].has(t)&&this[Do].get(t)(),this[Do].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function _o(t){for(var o=arguments.length,e=Array(o>1?o-1:0),r=1;r<o;r++)e[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(e.length?" "+e.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zo(t){return!!t&&!!t[Le]}function Bo(t){var o;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;var e=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return e===Object||"function"==typeof e&&Function.toString.call(e)===We}(t)||Array.isArray(t)||!!t[Ie]||!!(null===(o=t.constructor)||void 0===o?void 0:o[Ie])||Xo(t)||Jo(t))}function Ho(t,o,e){void 0===e&&(e=!1),0===Go(t)?(e?Object.keys:Ae)(t).forEach((function(r){e&&"symbol"==typeof r||o(r,t[r],t)})):t.forEach((function(e,r){return o(r,e,t)}))}function Go(t){var o=t[Le];return o?o.i>3?o.i-4:o.i:Array.isArray(t)?1:Xo(t)?2:Jo(t)?3:0}function qo(t,o){return 2===Go(t)?t.has(o):Object.prototype.hasOwnProperty.call(t,o)}function Yo(t,o,e){var r=Go(t);2===r?t.set(o,e):3===r?t.add(e):t[o]=e}function Vo(t,o){return t===o?0!==t||1/t==1/o:t!=t&&o!=o}function Xo(t){return Ce&&t instanceof Map}function Jo(t){return Ee&&t instanceof Set}function Qo(t){return t.o||t.t}function te(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var o=ke(t);delete o[Le];for(var e=Ae(o),r=0;r<e.length;r++){var n=e[r],i=o[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(o[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),o)}function oe(t,o){return void 0===o&&(o=!1),re(t)||zo(t)||!Bo(t)||(Go(t)>1&&(t.set=t.add=t.clear=t.delete=ee),Object.freeze(t),o&&Ho(t,(function(t,o){return oe(o,!0)}),!0)),t}function ee(){_o(2)}function re(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ne(t){var o=$e[t];return o||_o(18,t),o}function ie(){return Ne}function ae(t,o){o&&(ne("Patches"),t.u=[],t.s=[],t.v=o)}function se(t){ce(t),t.p.forEach(fe),t.p=null}function ce(t){t===Ne&&(Ne=t.l)}function le(t){return Ne={p:[],l:Ne,h:t,m:!0,_:0}}function fe(t){var o=t[Le];0===o.i||1===o.i?o.j():o.g=!0}function he(t,o){o._=o.p.length;var e=o.p[0],r=void 0!==t&&t!==e;return o.h.O||ne("ES5").S(o,t,r),r?(e[Le].P&&(se(o),_o(4)),Bo(t)&&(t=ue(o,t),o.l||de(o,t)),o.u&&ne("Patches").M(e[Le].t,t,o.u,o.s)):t=ue(o,e,[]),se(o),o.u&&o.v(o.u,o.s),t!==Ue?t:void 0}function ue(t,o,e){if(re(o))return o;var r=o[Le];if(!r)return Ho(o,(function(n,i){return pe(t,r,o,n,i,e)}),!0),o;if(r.A!==t)return o;if(!r.P)return de(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=te(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),Ho(i,(function(o,i){return pe(t,r,n,o,i,e,a)})),de(t,n,!1),e&&t.u&&ne("Patches").N(r,e,t.u,t.s)}return r.o}function pe(t,o,e,r,n,i,a){if(zo(n)){var s=ue(t,n,i&&o&&3!==o.i&&!qo(o.R,r)?i.concat(r):void 0);if(Yo(e,r,s),!zo(s))return;t.m=!1}else a&&e.add(n);if(Bo(n)&&!re(n)){if(!t.h.D&&t._<1)return;ue(t,n),o&&o.A.l||de(t,n)}}function de(t,o,e){void 0===e&&(e=!1),!t.l&&t.h.D&&t.m&&oe(o,e)}function ye(t,o){var e=t[Le];return(e?Qo(e):t)[o]}function ge(t,o){if(o in t)for(var e=Object.getPrototypeOf(t);e;){var r=Object.getOwnPropertyDescriptor(e,o);if(r)return r;e=Object.getPrototypeOf(e)}}function be(t){t.P||(t.P=!0,t.l&&be(t.l))}function me(t){t.o||(t.o=te(t.t))}function Oe(t,o,e){var r=Xo(o)?ne("MapSet").F(o,e):Jo(o)?ne("MapSet").T(o,e):t.O?function(t,o){var e=Array.isArray(t),r={i:e?1:0,A:o?o.A:ie(),P:!1,I:!1,R:{},l:o,t,k:null,o:null,j:null,C:!1},n=r,i=Ke;e&&(n=[r],i=Pe);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(o,e):ne("ES5").J(o,e);return(e?e.A:ie()).p.push(r),r}function ve(t){return zo(t)||_o(22,t),function t(o){if(!Bo(o))return o;var e,r=o[Le],n=Go(o);if(r){if(!r.P&&(r.i<4||!ne("ES5").K(r)))return r.t;r.I=!0,e=Se(o,n),r.I=!1}else e=Se(o,n);return Ho(e,(function(o,n){r&&function(t,o){return 2===Go(t)?t.get(o):t[o]}(r.t,o)===n||Yo(e,o,t(n))})),3===n?new Set(e):e}(t)}function Se(t,o){switch(o){case 2:return new Map(t);case 3:return Array.from(t)}return te(t)}Po=Do,jo=Zo,Fo=Mo;var we,Ne,xe="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ce="undefined"!=typeof Map,Ee="undefined"!=typeof Set,Re="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ue=xe?Symbol.for("immer-nothing"):((we={})["immer-nothing"]=!0,we),Ie=xe?Symbol.for("immer-draftable"):"__$immer_draftable",Le=xe?Symbol.for("immer-state"):"__$immer_state",We=""+Object.prototype.constructor,Ae="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ke=Object.getOwnPropertyDescriptors||function(t){var o={};return Ae(t).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(t,e)})),o},$e={},Ke={get:function(t,o){if(o===Le)return t;var e=Qo(t);if(!qo(e,o))return function(t,o,e){var r,n=ge(o,e);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,e,o);var r=e[o];return t.I||!Bo(r)?r:r===ye(t.t,o)?(me(t),t.o[o]=Oe(t.A.h,r,t)):r},has:function(t,o){return o in Qo(t)},ownKeys:function(t){return Reflect.ownKeys(Qo(t))},set:function(t,o,e){var r=ge(Qo(t),o);if(null==r?void 0:r.set)return r.set.call(t.k,e),!0;if(!t.P){var n=ye(Qo(t),o),i=null==n?void 0:n[Le];if(i&&i.t===e)return t.o[o]=e,t.R[o]=!1,!0;if(Vo(e,n)&&(void 0!==e||qo(t.t,o)))return!0;me(t),be(t)}return t.o[o]===e&&(void 0!==e||o in t.o)||Number.isNaN(e)&&Number.isNaN(t.o[o])||(t.o[o]=e,t.R[o]=!0),!0},deleteProperty:function(t,o){return void 0!==ye(t.t,o)||o in t.t?(t.R[o]=!1,me(t),be(t)):delete t.R[o],t.o&&delete t.o[o],!0},getOwnPropertyDescriptor:function(t,o){var e=Qo(t),r=Reflect.getOwnPropertyDescriptor(e,o);return r?{writable:!0,configurable:1!==t.i||"length"!==o,enumerable:r.enumerable,value:e[o]}:r},defineProperty:function(){_o(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){_o(12)}},Pe={};Ho(Ke,(function(t,o){Pe[t]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}})),Pe.deleteProperty=function(t,o){return Pe.set.call(this,t,o,void 0)},Pe.set=function(t,o,e){return Ke.set.call(this,t[0],o,e,t[0])};var je=function(){function t(t){var o=this;this.O=Re,this.D=!0,this.produce=function(t,e,r){if("function"==typeof t&&"function"!=typeof e){var n=e;e=t;var i=o;return function(t){var o=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=e).call.apply(r,[o,t].concat(a))}))}}var a;if("function"!=typeof e&&_o(6),void 0!==r&&"function"!=typeof r&&_o(7),Bo(t)){var s=le(o),c=Oe(o,t,void 0),l=!0;try{a=e(c),l=!1}finally{l?se(s):ce(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return ae(s,r),he(t,s)}),(function(t){throw se(s),t})):(ae(s,r),he(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=e(t))&&(a=t),a===Ue&&(a=void 0),o.D&&oe(a,!0),r){var f=[],h=[];ne("Patches").M(t,a,f,h),r(f,h)}return a}_o(21,t)},this.produceWithPatches=function(t,e){if("function"==typeof t)return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return o.produceWithPatches(e,(function(o){return t.apply(void 0,[o].concat(n))}))};var r,n,i=o.produce(t,e,(function(t,o){r=t,n=o}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"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 o=t.prototype;return o.createDraft=function(t){Bo(t)||_o(8),zo(t)&&(t=ve(t));var o=le(this),e=Oe(this,t,void 0);return e[Le].C=!0,ce(o),e},o.finishDraft=function(t,o){var e=(t&&t[Le]).A;return ae(e,o),he(void 0,e)},o.setAutoFreeze=function(t){this.D=t},o.setUseProxies=function(t){t&&!Re&&_o(20),this.O=t},o.applyPatches=function(t,o){var e;for(e=o.length-1;e>=0;e--){var r=o[e];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}e>-1&&(o=o.slice(e+1));var n=ne("Patches").$;return zo(t)?n(t,o):this.produce(t,(function(t){return n(t,o)}))},t}(),Fe=new je,Me=Fe.produce;function De(t){return De="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},De(t)}function Ze(t){var o=function(t,o){if("object"!==De(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,o||"default");if("object"!==De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}(t,"string");return"symbol"===De(o)?o:String(o)}function Te(t,o,e){return(o=Ze(o))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function _e(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,r)}return e}function ze(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?_e(Object(e),!0).forEach((function(o){Te(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_e(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}function Be(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. "}Fe.produceWithPatches.bind(Fe),Fe.setAutoFreeze.bind(Fe),Fe.setUseProxies.bind(Fe),Fe.applyPatches.bind(Fe),Fe.createDraft.bind(Fe),Fe.finishDraft.bind(Fe);var He="function"==typeof Symbol&&Symbol.observable||"@@observable",Ge=function(){return Math.random().toString(36).substring(7).split("").join(".")},qe={INIT:"@@redux/INIT"+Ge(),REPLACE:"@@redux/REPLACE"+Ge(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ge()}};function Ye(t,o,e){var r;if("function"==typeof o&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(Be(0));if("function"==typeof o&&void 0===e&&(e=o,o=void 0),void 0!==e){if("function"!=typeof e)throw new Error(Be(1));return e(Ye)(t,o)}if("function"!=typeof t)throw new Error(Be(2));var n=t,i=o,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Be(3));return i}function h(t){if("function"!=typeof t)throw new Error(Be(4));if(c)throw new Error(Be(5));var o=!0;return l(),s.push(t),function(){if(o){if(c)throw new Error(Be(6));o=!1,l();var e=s.indexOf(t);s.splice(e,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(t)===o}(t))throw new Error(Be(7));if(void 0===t.type)throw new Error(Be(8));if(c)throw new Error(Be(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var o=a=s,e=0;e<o.length;e++){(0,o[e])()}return t}return u({type:qe.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Be(10));n=t,u({type:qe.REPLACE})}})[He]=function(){var t,o=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Be(11));function e(){t.next&&t.next(f())}return e(),{unsubscribe:o(e)}}})[He]=function(){return this},t},r}function Ve(t){for(var o=Object.keys(t),e={},r=0;r<o.length;r++){var n=o[r];"function"==typeof t[n]&&(e[n]=t[n])}var i,a=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(o){var e=t[o];if(void 0===e(void 0,{type:qe.INIT}))throw new Error(Be(12));if(void 0===e(void 0,{type:qe.PROBE_UNKNOWN_ACTION()}))throw new Error(Be(13))}))}(e)}catch(t){i=t}return function(t,o){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=e[c],f=t[c],h=l(f,o);if(void 0===h)throw o&&o.type,new Error(Be(14));n[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function Xe(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return 0===o.length?function(t){return t}:1===o.length?o[0]:o.reduce((function(t,o){return function(){return t(o.apply(void 0,arguments))}}))}function Je(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),r=function(){throw new Error(Be(15))},n={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=o.map((function(t){return t(n)}));return r=Xe.apply(void 0,i)(e.dispatch),ze(ze({},e),{},{dispatch:r})}}}function Qe(t){return function(o){var e=o.dispatch,r=o.getState;return function(o){return function(n){return"function"==typeof n?n(e,r,t):o(n)}}}}var tr=Qe();tr.withExtraArgument=Qe;var or,er=tr,rr=(or=function(t,o){return or=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])},or(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}or(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),nr=function(t,o){var e,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=o.call(t,a)}catch(t){i=[6,t],r=0}finally{e=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},ir=function(t,o){for(var e=0,r=o.length,n=t.length;e<r;e++,n++)t[n]=o[e];return t},ar=Object.defineProperty,sr=Object.defineProperties,cr=Object.getOwnPropertyDescriptors,lr=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,ur=function(t,o,e){return o in t?ar(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e},pr=function(t,o){for(var e in o||(o={}))fr.call(o,e)&&ur(t,e,o[e]);if(lr)for(var r=0,n=lr(o);r<n.length;r++){e=n[r];hr.call(o,e)&&ur(t,e,o[e])}return t},dr=function(t,o){return sr(t,cr(o))},yr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Xe:Xe.apply(null,arguments)};var gr=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e)||this;return Object.setPrototypeOf(n,o.prototype),n}return rr(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,ir([void 0],t[0].concat(this)))):new(o.bind.apply(o,ir([void 0],t.concat(this))))},o}(Array),br=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e)||this;return Object.setPrototypeOf(n,o.prototype),n}return rr(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,ir([void 0],t[0].concat(this)))):new(o.bind.apply(o,ir([void 0],t.concat(this))))},o}(Array);function mr(t){return Bo(t)?Me(t,(function(){})):t}function Or(){return function(t){return function(t){void 0===t&&(t={});var o=t.thunk,e=void 0===o||o;t.immutableCheck,t.serializableCheck;var r=new gr;e&&(!function(t){return"boolean"==typeof t}(e)?r.push(er.withExtraArgument(e.extraArgument)):r.push(er));return r}(t)}}function vr(t){var o,e=Or(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?e():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof i)o=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;for(var e=o;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return o===e}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');o=Ve(i)}var d=s;"function"==typeof d&&(d=d(e));var y=Je.apply(void 0,d),g=Xe;l&&(g=yr(pr({trace:!1},"object"==typeof l&&l)));var b=new br(y),m=b;return Array.isArray(p)?m=ir([y],p):"function"==typeof p&&(m=p(b)),Ye(o,h,g.apply(void 0,m))}function Sr(t,o){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(o){var n=o.apply(void 0,e);if(!n)throw new Error("prepareAction did not return an object");return pr(pr({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:e[0]}}return e.toString=function(){return""+t},e.type=t,e.match=function(o){return o.type===t},e}function wr(t){var o,e={},r=[],n={addCase:function(t,o){var r="string"==typeof t?t:t.type;if(r in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[r]=o,n},addMatcher:function(t,o){return r.push({matcher:t,reducer:o}),n},addDefaultCase:function(t){return o=t,n}};return t(n),[e,r,o]}function Nr(t){var o=t.name;if(!o)throw new Error("`name` is a required option for createSlice");var e,r="function"==typeof t.initialState?t.initialState:mr(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var o="function"==typeof t.extraReducers?wr(t.extraReducers):[t.extraReducers],e=o[0],n=void 0===e?{}:e,i=o[1],a=void 0===i?[]:i,c=o[2],l=void 0===c?void 0:c,f=pr(pr({},n),s);return function(t,o,e,r){void 0===e&&(e=[]);var n,i="function"==typeof o?wr(o):[o,e,r],a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return mr(t())};else{var l=mr(t);n=function(){return l}}function f(t,o){void 0===t&&(t=n());var e=ir([a[o.type]],s.filter((function(t){return(0,t.matcher)(o)})).map((function(t){return t.reducer})));return 0===e.filter((function(t){return!!t})).length&&(e=[c]),e.reduce((function(t,e){if(e){var r;if(zo(t))return void 0===(r=e(t,o))?t:r;if(Bo(t))return Me(t,(function(t){return e(t,o)}));if(void 0===(r=e(t,o))){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=n,f}(r,(function(t){for(var o in f)t.addCase(o,f[o]);for(var e=0,r=a;e<r.length;e++){var n=r[e];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var e,r,i=n[t],l=o+"/"+t;"reducer"in i?(e=i.reducer,r=i.prepare):e=i,a[t]=e,s[l]=e,c[t]=r?Sr(l,r):Sr(l)})),{name:o,reducer:function(t,o){return e||(e=l()),e(t,o)},actions:c,caseReducers:a,getInitialState:function(){return e||(e=l()),e.getInitialState()}}}var xr=["name","message","stack","code"],Cr=function(t,o){this.payload=t,this.meta=o},Er=function(t,o){this.payload=t,this.meta=o},Rr=function(t){if("object"==typeof t&&null!==t){for(var o={},e=0,r=xr;e<r.length;e++){var n=r[e];"string"==typeof t[n]&&(o[n]=t[n])}return o}return{message:String(t)}};function Ur(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,o,e){var r=Sr(t+"/fulfilled",(function(t,o,e,r){return{payload:t,meta:dr(pr({},r||{}),{arg:e,requestId:o,requestStatus:"fulfilled"})}})),n=Sr(t+"/pending",(function(t,o,e){return{payload:void 0,meta:dr(pr({},e||{}),{arg:o,requestId:t,requestStatus:"pending"})}})),i=Sr(t+"/rejected",(function(t,o,r,n,i){return{payload:n,error:(e&&e.serializeError||Rr)(t||"Rejected"),meta:dr(pr({},i||{}),{arg:r,requestId:o,rejectedWithValue:!!n,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==e?void 0:e.idGenerator)?e.idGenerator(t):function(t){void 0===t&&(t=21);for(var o="",e=t;e--;)o+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return o}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return nr(this,(function(O){switch(O.label){case 0:return O.trys.push([0,4,,5]),g=null==(a=null==e?void 0:e.condition)?void 0:a.call(e,t,{getState:c,extra:l}),null===(v=g)||"object"!=typeof v||"function"!=typeof v.then?[3,2]:[4,g];case 1:g=O.sent(),O.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,o){return u.signal.addEventListener("abort",(function(){return o({name:"AbortError",message:f||"Aborted"})}))})),s(n(h,t,null==(d=null==e?void 0:e.getPendingMeta)?void 0:d.call(e,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(o(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,o){return new Cr(t,o)},fulfillWithValue:function(t,o){return new Er(t,o)}})).then((function(o){if(o instanceof Cr)throw o;return o instanceof Er?r(o.payload,h,t,o.meta):r(o,h,t)}))])];case 3:return y=O.sent(),[3,5];case 4:return m=O.sent(),y=m instanceof Cr?i(null,h,t,m.payload,m.meta):i(m,h,t),[3,5];case 5:return e&&!e.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var v}))},new Promise((function(t,o){var e=function(t){try{n(y.next(t))}catch(t){o(t)}},r=function(t){try{n(y.throw(t))}catch(t){o(t)}},n=function(o){return o.done?t(o.value):Promise.resolve(o.value).then(e,r)};n((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Ur)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Ir="listenerMiddleware";Sr(Ir+"/add"),Sr(Ir+"/removeAll"),Sr(Ir+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,o){var e=n[t];return e?e.enumerable=o:n[t]=e={configurable:!0,enumerable:o,get:function(){var o=this[Le];return Ke.get(o,t)},set:function(o){var e=this[Le];Ke.set(e,t,o)}},e}function o(t){for(var o=t.length-1;o>=0;o--){var n=t[o][Le];if(!n.P)switch(n.i){case 5:r(n)&&be(n);break;case 4:e(n)&&be(n)}}}function e(t){for(var o=t.t,e=t.k,r=Ae(e),n=r.length-1;n>=0;n--){var i=r[n];if(i!==Le){var a=o[i];if(void 0===a&&!qo(o,i))return!0;var s=e[i],c=s&&s[Le];if(c?c.t!==a:!Vo(s,a))return!0}}var l=!!o[Le];return r.length!==Ae(o).length+(l?0:1)}function r(t){var o=t.k;if(o.length!==t.t.length)return!0;var e=Object.getOwnPropertyDescriptor(o,o.length-1);if(e&&!e.get)return!0;for(var r=0;r<o.length;r++)if(!o.hasOwnProperty(r))return!0;return!1}var n={};!function(t,o){$e[t]||($e[t]=o)}("ES5",{J:function(o,e){var r=Array.isArray(o),n=function(o,e){if(o){for(var r=Array(e.length),n=0;n<e.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=ke(e);delete i[Le];for(var a=Ae(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,o||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(e),i)}(r,o),i={i:r?5:4,A:e?e.A:ie(),P:!1,I:!1,R:{},l:e,t:o,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Le,{value:i,writable:!0}),n},S:function(t,e,n){n?zo(e)&&e[Le].A===t&&o(t.p):(t.u&&function t(o){if(o&&"object"==typeof o){var e=o[Le];if(e){var n=e.t,i=e.k,a=e.R,s=e.i;if(4===s)Ho(i,(function(o){o!==Le&&(void 0!==n[o]||qo(n,o)?a[o]||t(i[o]):(a[o]=!0,be(e)))})),Ho(n,(function(t){void 0!==i[t]||qo(i,t)||(a[t]=!1,be(e))}));else if(5===s){if(r(e)&&(be(e),a.length=!0),i.length<n.length)for(var c=i.length;c<n.length;c++)a[c]=!1;else for(var l=n.length;l<i.length;l++)a[l]=!0;for(var f=Math.min(i.length,n.length),h=0;h<f;h++)i.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(i[h])}}}}(t.p[0]),o(t.p))},K:function(t){return 4===t.i?e(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Lr{static get(t){var o;const e="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Ko(n))return n;if(null==r)return;const i=Nr({...r,reducers:null!==(o=r.reducers)&&void 0!==o?o:{}}),a=vr({reducer:(t,o)=>{var e;switch(o.type){case"CLEAR_FT_REDUX_STORE":return i.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(e=o.overwrites)&&void 0!==e?e:{}};default:return i.reducer(t,o)}}});return window.ftReduxStores[r.name]=new Lr(i,a)}constructor(t,o){this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,o,e)=>{const r=o,n=t[r];return n?(...t)=>{const o=n(...t);return this.reduxStore.dispatch(o),o}: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 Wr=t=>{const o=null!=t?t:{};return(t,e)=>{var r;const n={hasChanged:(t,o)=>!L(t,o),attribute:!1,...o};U(n)(t,e);const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}};var Ar,kr;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(kr=null===(Ar=window.safari)||void 0===Ar?void 0:Ar.pushNotification)||void 0===kr||kr.toString());const $r=Ot`
105
+ `;class Ko{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var e,r;t=this.resolvePluralKey(t,o);let n=null!==(r=null!==(e=this.labels[t])&&void 0!==e?e:this.defaultLabels[t])&&void 0!==r?r:"";return o.forEach(((t,o)=>n=n.replace(new RegExp(`\\{${o}([^}]*)\\}`,"g"),((o,e)=>this.formatValue(t,e))))),n}resolvePluralKey(t,o){for(let e of o)if("number"==typeof e){const o=`${String(t)}[\\=${e}]`;if(o in this.labels||o in this.defaultLabels)return o}return t}formatValue(t,o){return t instanceof Date?this.formatDate(t,o):null!=t?t:""}formatDate(t,o){const e=e=>(null==o?void 0:o.includes("date"))?t.toLocaleDateString(e):(null==o?void 0:o.includes("time"))?t.toLocaleTimeString(e):t.toLocaleString(e);try{return e(document.documentElement.lang)}catch(t){return e()}}}function Po(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var jo,Fo,Mo;const Do=Symbol("internalReduxEventsUnsubscribers"),Zo=Symbol("internalStoresUnsubscribers"),To=Symbol("internalStores");class _o extends ko{constructor(){super(...arguments),this[jo]=new Map,this[Fo]=new Map,this[Mo]=[]}update(t){var o;super.update(t),(null===(o=this.reduxReactiveProperties)||void 0===o?void 0:o.some((o=>t.has(o))))&&this.updateFromStores()}getUnnamedStore(){if(this[To].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[To].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[To].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Po(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[To].delete(o)}setupStore(t,o){this[To].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[To].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Zo].has(t.store):this[Zo].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Zo].set(t,o.subscribe((()=>this.updateFromStores()))),Po(o)&&o.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Do].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Zo].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Do].forEach((t=>t())),this[Do]=[]}unsubscribeFromStore(t){this[Zo].has(t)&&this[Zo].get(t)(),this[Zo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function zo(t){for(var o=arguments.length,e=Array(o>1?o-1:0),r=1;r<o;r++)e[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(e.length?" "+e.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Bo(t){return!!t&&!!t[We]}function Ho(t){var o;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;var e=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return e===Object||"function"==typeof e&&Function.toString.call(e)===Ae}(t)||Array.isArray(t)||!!t[Le]||!!(null===(o=t.constructor)||void 0===o?void 0:o[Le])||Jo(t)||Qo(t))}function Go(t,o,e){void 0===e&&(e=!1),0===qo(t)?(e?Object.keys:ke)(t).forEach((function(r){e&&"symbol"==typeof r||o(r,t[r],t)})):t.forEach((function(e,r){return o(r,e,t)}))}function qo(t){var o=t[We];return o?o.i>3?o.i-4:o.i:Array.isArray(t)?1:Jo(t)?2:Qo(t)?3:0}function Yo(t,o){return 2===qo(t)?t.has(o):Object.prototype.hasOwnProperty.call(t,o)}function Vo(t,o,e){var r=qo(t);2===r?t.set(o,e):3===r?t.add(e):t[o]=e}function Xo(t,o){return t===o?0!==t||1/t==1/o:t!=t&&o!=o}function Jo(t){return Ee&&t instanceof Map}function Qo(t){return Re&&t instanceof Set}function te(t){return t.o||t.t}function oe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var o=$e(t);delete o[We];for(var e=ke(o),r=0;r<e.length;r++){var n=e[r],i=o[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(o[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),o)}function ee(t,o){return void 0===o&&(o=!1),ne(t)||Bo(t)||!Ho(t)||(qo(t)>1&&(t.set=t.add=t.clear=t.delete=re),Object.freeze(t),o&&Go(t,(function(t,o){return ee(o,!0)}),!0)),t}function re(){zo(2)}function ne(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ie(t){var o=Ke[t];return o||zo(18,t),o}function ae(){return xe}function se(t,o){o&&(ie("Patches"),t.u=[],t.s=[],t.v=o)}function ce(t){le(t),t.p.forEach(he),t.p=null}function le(t){t===xe&&(xe=t.l)}function fe(t){return xe={p:[],l:xe,h:t,m:!0,_:0}}function he(t){var o=t[We];0===o.i||1===o.i?o.j():o.g=!0}function ue(t,o){o._=o.p.length;var e=o.p[0],r=void 0!==t&&t!==e;return o.h.O||ie("ES5").S(o,t,r),r?(e[We].P&&(ce(o),zo(4)),Ho(t)&&(t=pe(o,t),o.l||ye(o,t)),o.u&&ie("Patches").M(e[We].t,t,o.u,o.s)):t=pe(o,e,[]),ce(o),o.u&&o.v(o.u,o.s),t!==Ie?t:void 0}function pe(t,o,e){if(ne(o))return o;var r=o[We];if(!r)return Go(o,(function(n,i){return de(t,r,o,n,i,e)}),!0),o;if(r.A!==t)return o;if(!r.P)return ye(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=oe(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),Go(i,(function(o,i){return de(t,r,n,o,i,e,a)})),ye(t,n,!1),e&&t.u&&ie("Patches").N(r,e,t.u,t.s)}return r.o}function de(t,o,e,r,n,i,a){if(Bo(n)){var s=pe(t,n,i&&o&&3!==o.i&&!Yo(o.R,r)?i.concat(r):void 0);if(Vo(e,r,s),!Bo(s))return;t.m=!1}else a&&e.add(n);if(Ho(n)&&!ne(n)){if(!t.h.D&&t._<1)return;pe(t,n),o&&o.A.l||ye(t,n)}}function ye(t,o,e){void 0===e&&(e=!1),!t.l&&t.h.D&&t.m&&ee(o,e)}function ge(t,o){var e=t[We];return(e?te(e):t)[o]}function be(t,o){if(o in t)for(var e=Object.getPrototypeOf(t);e;){var r=Object.getOwnPropertyDescriptor(e,o);if(r)return r;e=Object.getPrototypeOf(e)}}function me(t){t.P||(t.P=!0,t.l&&me(t.l))}function Oe(t){t.o||(t.o=oe(t.t))}function ve(t,o,e){var r=Jo(o)?ie("MapSet").F(o,e):Qo(o)?ie("MapSet").T(o,e):t.O?function(t,o){var e=Array.isArray(t),r={i:e?1:0,A:o?o.A:ae(),P:!1,I:!1,R:{},l:o,t,k:null,o:null,j:null,C:!1},n=r,i=Pe;e&&(n=[r],i=je);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(o,e):ie("ES5").J(o,e);return(e?e.A:ae()).p.push(r),r}function Se(t){return Bo(t)||zo(22,t),function t(o){if(!Ho(o))return o;var e,r=o[We],n=qo(o);if(r){if(!r.P&&(r.i<4||!ie("ES5").K(r)))return r.t;r.I=!0,e=we(o,n),r.I=!1}else e=we(o,n);return Go(e,(function(o,n){r&&function(t,o){return 2===qo(t)?t.get(o):t[o]}(r.t,o)===n||Vo(e,o,t(n))})),3===n?new Set(e):e}(t)}function we(t,o){switch(o){case 2:return new Map(t);case 3:return Array.from(t)}return oe(t)}jo=Zo,Fo=To,Mo=Do;var Ne,xe,Ce="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ee="undefined"!=typeof Map,Re="undefined"!=typeof Set,Ue="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ie=Ce?Symbol.for("immer-nothing"):((Ne={})["immer-nothing"]=!0,Ne),Le=Ce?Symbol.for("immer-draftable"):"__$immer_draftable",We=Ce?Symbol.for("immer-state"):"__$immer_state",Ae=""+Object.prototype.constructor,ke="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,$e=Object.getOwnPropertyDescriptors||function(t){var o={};return ke(t).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(t,e)})),o},Ke={},Pe={get:function(t,o){if(o===We)return t;var e=te(t);if(!Yo(e,o))return function(t,o,e){var r,n=be(o,e);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,e,o);var r=e[o];return t.I||!Ho(r)?r:r===ge(t.t,o)?(Oe(t),t.o[o]=ve(t.A.h,r,t)):r},has:function(t,o){return o in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,o,e){var r=be(te(t),o);if(null==r?void 0:r.set)return r.set.call(t.k,e),!0;if(!t.P){var n=ge(te(t),o),i=null==n?void 0:n[We];if(i&&i.t===e)return t.o[o]=e,t.R[o]=!1,!0;if(Xo(e,n)&&(void 0!==e||Yo(t.t,o)))return!0;Oe(t),me(t)}return t.o[o]===e&&(void 0!==e||o in t.o)||Number.isNaN(e)&&Number.isNaN(t.o[o])||(t.o[o]=e,t.R[o]=!0),!0},deleteProperty:function(t,o){return void 0!==ge(t.t,o)||o in t.t?(t.R[o]=!1,Oe(t),me(t)):delete t.R[o],t.o&&delete t.o[o],!0},getOwnPropertyDescriptor:function(t,o){var e=te(t),r=Reflect.getOwnPropertyDescriptor(e,o);return r?{writable:!0,configurable:1!==t.i||"length"!==o,enumerable:r.enumerable,value:e[o]}:r},defineProperty:function(){zo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){zo(12)}},je={};Go(Pe,(function(t,o){je[t]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}})),je.deleteProperty=function(t,o){return je.set.call(this,t,o,void 0)},je.set=function(t,o,e){return Pe.set.call(this,t[0],o,e,t[0])};var Fe=function(){function t(t){var o=this;this.O=Ue,this.D=!0,this.produce=function(t,e,r){if("function"==typeof t&&"function"!=typeof e){var n=e;e=t;var i=o;return function(t){var o=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=e).call.apply(r,[o,t].concat(a))}))}}var a;if("function"!=typeof e&&zo(6),void 0!==r&&"function"!=typeof r&&zo(7),Ho(t)){var s=fe(o),c=ve(o,t,void 0),l=!0;try{a=e(c),l=!1}finally{l?ce(s):le(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return se(s,r),ue(t,s)}),(function(t){throw ce(s),t})):(se(s,r),ue(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=e(t))&&(a=t),a===Ie&&(a=void 0),o.D&&ee(a,!0),r){var f=[],h=[];ie("Patches").M(t,a,f,h),r(f,h)}return a}zo(21,t)},this.produceWithPatches=function(t,e){if("function"==typeof t)return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return o.produceWithPatches(e,(function(o){return t.apply(void 0,[o].concat(n))}))};var r,n,i=o.produce(t,e,(function(t,o){r=t,n=o}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"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 o=t.prototype;return o.createDraft=function(t){Ho(t)||zo(8),Bo(t)&&(t=Se(t));var o=fe(this),e=ve(this,t,void 0);return e[We].C=!0,le(o),e},o.finishDraft=function(t,o){var e=(t&&t[We]).A;return se(e,o),ue(void 0,e)},o.setAutoFreeze=function(t){this.D=t},o.setUseProxies=function(t){t&&!Ue&&zo(20),this.O=t},o.applyPatches=function(t,o){var e;for(e=o.length-1;e>=0;e--){var r=o[e];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}e>-1&&(o=o.slice(e+1));var n=ie("Patches").$;return Bo(t)?n(t,o):this.produce(t,(function(t){return n(t,o)}))},t}(),Me=new Fe,De=Me.produce;function Ze(t){return Ze="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},Ze(t)}function Te(t){var o=function(t,o){if("object"!==Ze(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,o||"default");if("object"!==Ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}(t,"string");return"symbol"===Ze(o)?o:String(o)}function _e(t,o,e){return(o=Te(o))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function ze(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),e.push.apply(e,r)}return e}function Be(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?ze(Object(e),!0).forEach((function(o){_e(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ze(Object(e)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))}))}return t}function He(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. "}Me.produceWithPatches.bind(Me),Me.setAutoFreeze.bind(Me),Me.setUseProxies.bind(Me),Me.applyPatches.bind(Me),Me.createDraft.bind(Me),Me.finishDraft.bind(Me);var Ge="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ye={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};function Ve(t,o,e){var r;if("function"==typeof o&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(He(0));if("function"==typeof o&&void 0===e&&(e=o,o=void 0),void 0!==e){if("function"!=typeof e)throw new Error(He(1));return e(Ve)(t,o)}if("function"!=typeof t)throw new Error(He(2));var n=t,i=o,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(He(3));return i}function h(t){if("function"!=typeof t)throw new Error(He(4));if(c)throw new Error(He(5));var o=!0;return l(),s.push(t),function(){if(o){if(c)throw new Error(He(6));o=!1,l();var e=s.indexOf(t);s.splice(e,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(t)===o}(t))throw new Error(He(7));if(void 0===t.type)throw new Error(He(8));if(c)throw new Error(He(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var o=a=s,e=0;e<o.length;e++){(0,o[e])()}return t}return u({type:Ye.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(He(10));n=t,u({type:Ye.REPLACE})}})[Ge]=function(){var t,o=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(He(11));function e(){t.next&&t.next(f())}return e(),{unsubscribe:o(e)}}})[Ge]=function(){return this},t},r}function Xe(t){for(var o=Object.keys(t),e={},r=0;r<o.length;r++){var n=o[r];"function"==typeof t[n]&&(e[n]=t[n])}var i,a=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(o){var e=t[o];if(void 0===e(void 0,{type:Ye.INIT}))throw new Error(He(12));if(void 0===e(void 0,{type:Ye.PROBE_UNKNOWN_ACTION()}))throw new Error(He(13))}))}(e)}catch(t){i=t}return function(t,o){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=e[c],f=t[c],h=l(f,o);if(void 0===h)throw o&&o.type,new Error(He(14));n[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function Je(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return 0===o.length?function(t){return t}:1===o.length?o[0]:o.reduce((function(t,o){return function(){return t(o.apply(void 0,arguments))}}))}function Qe(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),r=function(){throw new Error(He(15))},n={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=o.map((function(t){return t(n)}));return r=Je.apply(void 0,i)(e.dispatch),Be(Be({},e),{},{dispatch:r})}}}function tr(t){return function(o){var e=o.dispatch,r=o.getState;return function(o){return function(n){return"function"==typeof n?n(e,r,t):o(n)}}}}var or=tr();or.withExtraArgument=tr;var er,rr=or,nr=(er=function(t,o){return er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])},er(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}er(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),ir=function(t,o){var e,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=o.call(t,a)}catch(t){i=[6,t],r=0}finally{e=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},ar=function(t,o){for(var e=0,r=o.length,n=t.length;e<r;e++,n++)t[n]=o[e];return t},sr=Object.defineProperty,cr=Object.defineProperties,lr=Object.getOwnPropertyDescriptors,fr=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,pr=function(t,o,e){return o in t?sr(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e},dr=function(t,o){for(var e in o||(o={}))hr.call(o,e)&&pr(t,e,o[e]);if(fr)for(var r=0,n=fr(o);r<n.length;r++){e=n[r];ur.call(o,e)&&pr(t,e,o[e])}return t},yr=function(t,o){return cr(t,lr(o))},gr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Je:Je.apply(null,arguments)};var br=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e)||this;return Object.setPrototypeOf(n,o.prototype),n}return nr(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,ar([void 0],t[0].concat(this)))):new(o.bind.apply(o,ar([void 0],t.concat(this))))},o}(Array),mr=function(t){function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e)||this;return Object.setPrototypeOf(n,o.prototype),n}return nr(o,t),Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return t.prototype.concat.apply(this,o)},o.prototype.prepend=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Array.isArray(t[0])?new(o.bind.apply(o,ar([void 0],t[0].concat(this)))):new(o.bind.apply(o,ar([void 0],t.concat(this))))},o}(Array);function Or(t){return Ho(t)?De(t,(function(){})):t}function vr(){return function(t){return function(t){void 0===t&&(t={});var o=t.thunk,e=void 0===o||o;t.immutableCheck,t.serializableCheck;var r=new br;e&&(!function(t){return"boolean"==typeof t}(e)?r.push(rr.withExtraArgument(e.extraArgument)):r.push(rr));return r}(t)}}function Sr(t){var o,e=vr(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?e():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof i)o=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var o=Object.getPrototypeOf(t);if(null===o)return!0;for(var e=o;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return o===e}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');o=Xe(i)}var d=s;"function"==typeof d&&(d=d(e));var y=Qe.apply(void 0,d),g=Je;l&&(g=gr(dr({trace:!1},"object"==typeof l&&l)));var b=new mr(y),m=b;return Array.isArray(p)?m=ar([y],p):"function"==typeof p&&(m=p(b)),Ve(o,h,g.apply(void 0,m))}function wr(t,o){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(o){var n=o.apply(void 0,e);if(!n)throw new Error("prepareAction did not return an object");return dr(dr({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:e[0]}}return e.toString=function(){return""+t},e.type=t,e.match=function(o){return o.type===t},e}function Nr(t){var o,e={},r=[],n={addCase:function(t,o){var r="string"==typeof t?t:t.type;if(r in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[r]=o,n},addMatcher:function(t,o){return r.push({matcher:t,reducer:o}),n},addDefaultCase:function(t){return o=t,n}};return t(n),[e,r,o]}function xr(t){var o=t.name;if(!o)throw new Error("`name` is a required option for createSlice");var e,r="function"==typeof t.initialState?t.initialState:Or(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var o="function"==typeof t.extraReducers?Nr(t.extraReducers):[t.extraReducers],e=o[0],n=void 0===e?{}:e,i=o[1],a=void 0===i?[]:i,c=o[2],l=void 0===c?void 0:c,f=dr(dr({},n),s);return function(t,o,e,r){void 0===e&&(e=[]);var n,i="function"==typeof o?Nr(o):[o,e,r],a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return Or(t())};else{var l=Or(t);n=function(){return l}}function f(t,o){void 0===t&&(t=n());var e=ar([a[o.type]],s.filter((function(t){return(0,t.matcher)(o)})).map((function(t){return t.reducer})));return 0===e.filter((function(t){return!!t})).length&&(e=[c]),e.reduce((function(t,e){if(e){var r;if(Bo(t))return void 0===(r=e(t,o))?t:r;if(Ho(t))return De(t,(function(t){return e(t,o)}));if(void 0===(r=e(t,o))){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=n,f}(r,(function(t){for(var o in f)t.addCase(o,f[o]);for(var e=0,r=a;e<r.length;e++){var n=r[e];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var e,r,i=n[t],l=o+"/"+t;"reducer"in i?(e=i.reducer,r=i.prepare):e=i,a[t]=e,s[l]=e,c[t]=r?wr(l,r):wr(l)})),{name:o,reducer:function(t,o){return e||(e=l()),e(t,o)},actions:c,caseReducers:a,getInitialState:function(){return e||(e=l()),e.getInitialState()}}}var Cr=["name","message","stack","code"],Er=function(t,o){this.payload=t,this.meta=o},Rr=function(t,o){this.payload=t,this.meta=o},Ur=function(t){if("object"==typeof t&&null!==t){for(var o={},e=0,r=Cr;e<r.length;e++){var n=r[e];"string"==typeof t[n]&&(o[n]=t[n])}return o}return{message:String(t)}};function Ir(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,o,e){var r=wr(t+"/fulfilled",(function(t,o,e,r){return{payload:t,meta:yr(dr({},r||{}),{arg:e,requestId:o,requestStatus:"fulfilled"})}})),n=wr(t+"/pending",(function(t,o,e){return{payload:void 0,meta:yr(dr({},e||{}),{arg:o,requestId:t,requestStatus:"pending"})}})),i=wr(t+"/rejected",(function(t,o,r,n,i){return{payload:n,error:(e&&e.serializeError||Ur)(t||"Rejected"),meta:yr(dr({},i||{}),{arg:r,requestId:o,rejectedWithValue:!!n,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==e?void 0:e.idGenerator)?e.idGenerator(t):function(t){void 0===t&&(t=21);for(var o="",e=t;e--;)o+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return o}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return ir(this,(function(O){switch(O.label){case 0:return O.trys.push([0,4,,5]),g=null==(a=null==e?void 0:e.condition)?void 0:a.call(e,t,{getState:c,extra:l}),null===(v=g)||"object"!=typeof v||"function"!=typeof v.then?[3,2]:[4,g];case 1:g=O.sent(),O.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,o){return u.signal.addEventListener("abort",(function(){return o({name:"AbortError",message:f||"Aborted"})}))})),s(n(h,t,null==(d=null==e?void 0:e.getPendingMeta)?void 0:d.call(e,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(o(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,o){return new Er(t,o)},fulfillWithValue:function(t,o){return new Rr(t,o)}})).then((function(o){if(o instanceof Er)throw o;return o instanceof Rr?r(o.payload,h,t,o.meta):r(o,h,t)}))])];case 3:return y=O.sent(),[3,5];case 4:return m=O.sent(),y=m instanceof Er?i(null,h,t,m.payload,m.meta):i(m,h,t),[3,5];case 5:return e&&!e.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var v}))},new Promise((function(t,o){var e=function(t){try{n(y.next(t))}catch(t){o(t)}},r=function(t){try{n(y.throw(t))}catch(t){o(t)}},n=function(o){return o.done?t(o.value):Promise.resolve(o.value).then(e,r)};n((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Ir)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Lr="listenerMiddleware";wr(Lr+"/add"),wr(Lr+"/removeAll"),wr(Lr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,o){var e=n[t];return e?e.enumerable=o:n[t]=e={configurable:!0,enumerable:o,get:function(){var o=this[We];return Pe.get(o,t)},set:function(o){var e=this[We];Pe.set(e,t,o)}},e}function o(t){for(var o=t.length-1;o>=0;o--){var n=t[o][We];if(!n.P)switch(n.i){case 5:r(n)&&me(n);break;case 4:e(n)&&me(n)}}}function e(t){for(var o=t.t,e=t.k,r=ke(e),n=r.length-1;n>=0;n--){var i=r[n];if(i!==We){var a=o[i];if(void 0===a&&!Yo(o,i))return!0;var s=e[i],c=s&&s[We];if(c?c.t!==a:!Xo(s,a))return!0}}var l=!!o[We];return r.length!==ke(o).length+(l?0:1)}function r(t){var o=t.k;if(o.length!==t.t.length)return!0;var e=Object.getOwnPropertyDescriptor(o,o.length-1);if(e&&!e.get)return!0;for(var r=0;r<o.length;r++)if(!o.hasOwnProperty(r))return!0;return!1}var n={};!function(t,o){Ke[t]||(Ke[t]=o)}("ES5",{J:function(o,e){var r=Array.isArray(o),n=function(o,e){if(o){for(var r=Array(e.length),n=0;n<e.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=$e(e);delete i[We];for(var a=ke(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,o||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(e),i)}(r,o),i={i:r?5:4,A:e?e.A:ae(),P:!1,I:!1,R:{},l:e,t:o,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,We,{value:i,writable:!0}),n},S:function(t,e,n){n?Bo(e)&&e[We].A===t&&o(t.p):(t.u&&function t(o){if(o&&"object"==typeof o){var e=o[We];if(e){var n=e.t,i=e.k,a=e.R,s=e.i;if(4===s)Go(i,(function(o){o!==We&&(void 0!==n[o]||Yo(n,o)?a[o]||t(i[o]):(a[o]=!0,me(e)))})),Go(n,(function(t){void 0!==i[t]||Yo(i,t)||(a[t]=!1,me(e))}));else if(5===s){if(r(e)&&(me(e),a.length=!0),i.length<n.length)for(var c=i.length;c<n.length;c++)a[c]=!1;else for(var l=n.length;l<i.length;l++)a[l]=!0;for(var f=Math.min(i.length,n.length),h=0;h<f;h++)i.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(i[h])}}}}(t.p[0]),o(t.p))},K:function(t){return 4===t.i?e(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Wr{static get(t){var o;const e="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Po(n))return n;if(null==r)return;const i=xr({...r,reducers:null!==(o=r.reducers)&&void 0!==o?o:{}}),a=Sr({reducer:(t,o)=>{var e;switch(o.type){case"CLEAR_FT_REDUX_STORE":return i.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(e=o.overwrites)&&void 0!==e?e:{}};default:return i.reducer(t,o)}}});return window.ftReduxStores[r.name]=new Wr(i,a)}constructor(t,o){this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,o,e)=>{const r=o,n=t[r];return n?(...t)=>{const o=n(...t);return this.reduxStore.dispatch(o),o}: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 Ar=t=>{const o=null!=t?t:{};return(t,e)=>{var r;const n={hasChanged:(t,o)=>!L(t,o),attribute:!1,...o};U(n)(t,e);const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}};var kr,$r;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===($r=null===(kr=window.safari)||void 0===kr?void 0:kr.pushNotification)||void 0===$r||$r.toString());const Kr=Ot`
102
106
 
103
- `;var Kr,Pr,jr,Fr,Mr,Dr,Zr,Tr,_r,zr,Br,Hr,Gr,qr;!function(t){!function(o){var e={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(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(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 o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function c(t){this.map={},t instanceof c?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function h(t){var o=new FileReader,e=f(o);return o.readAsArrayBuffer(t),e}function u(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=u(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):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.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 o=new FileReader,e=f(o);return o.readAsText(t),e}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,o){t=i(t),o=a(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},c.prototype.delete=function(t){delete this.map[i(t)]},c.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},c.prototype.set=function(t,o){this.map[i(t)]=a(o)},c.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),s(t)},e.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,r,n=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new c(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),d.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),n=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(n))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new c(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.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,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function O(t,r){return new Promise((function(n,i){var a=new y(t,r);if(a.signal&&a.signal.aborted)return i(new o.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,o,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",o=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var n=e.join(":").trim();o.append(r,n)}})),o)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;n(new b(r,e))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new o.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&&e.blob&&(s.responseType="blob"),a.headers.forEach((function(t,o){s.setRequestHeader(o,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)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=c,t.Request=y,t.Response=b),o.Headers=c,o.Request=y,o.Response=b,o.fetch=O,Object.defineProperty(o,"U",{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"}(Kr||(Kr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Pr||(Pr={})),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"}(jr||(jr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Fr||(Fr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Mr||(Mr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Dr||(Dr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Zr||(Zr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Tr||(Tr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(_r||(_r={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(zr||(zr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Br||(Br={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Hr||(Hr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Gr||(Gr={})),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"}(qr||(qr={})),qr.PERSONAL_BOOK_SHARE_USER,qr.PERSONAL_BOOK_USER,qr.HTML_EXPORT_USER,qr.PERSONAL_BOOK_USER,qr.PDF_EXPORT_USER,qr.PERSONAL_BOOK_USER,qr.KHUB_ADMIN,qr.CONTENT_PUBLISHER,qr.ADMIN,qr.KHUB_ADMIN,qr.USERS_ADMIN,qr.PORTAL_ADMIN,qr.DEVELOPER,qr.BETA_USER,qr.DEBUG_USER;const Yr=Ot`
104
- `,Vr=Lr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Xr{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=Vr.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static get(t){var o;return null!=t?Xr.build(t):null!==(o=Xr.API)&&void 0!==o?o:Xr.API=Xr.build()}static await(t){return new Promise((o=>{let e=Xr.get(t);if(e)o(e);else{const r=Vr.subscribe((()=>{e=Xr.get(t),e&&(r(),o(e))}))}}))}}var Jr;const Qr=Symbol("clearAfterUnitTest");class tn{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Jr]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Vr.getState().uiLocale,Vr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Vr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var e;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(e=this.defaultMessages[t])&&void 0!==e?e:{},...o};L(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...e){var r,n,i;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new $o(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},a).resolve(o,...e)}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,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}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(o=0,new Promise((t=>setTimeout(t,o)))).then((()=>t())).catch((()=>null));var o})))}}Jr=Qr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new tn((async(t,o)=>(await Xr.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new tn((async(t,o)=>(await Xr.await()).getCustomMessageContext(t,o))));const on=window.FluidTopicsI18nService,en=window.FluidTopicsCustomI18nService;var rn=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class nn extends ko{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=()=>Xr.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return oo`
107
+ `;var Pr,jr,Fr,Mr,Dr,Zr,Tr,_r,zr,Br,Hr,Gr,qr,Yr;!function(t){!function(o){var e={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(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(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 o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function c(t){this.map={},t instanceof c?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function h(t){var o=new FileReader,e=f(o);return o.readAsArrayBuffer(t),e}function u(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=u(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):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.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 o=new FileReader,e=f(o);return o.readAsText(t),e}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,o){t=i(t),o=a(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},c.prototype.delete=function(t){delete this.map[i(t)]},c.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},c.prototype.set=function(t,o){this.map[i(t)]=a(o)},c.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),s(t)},e.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,r,n=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new c(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),d.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),n=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(n))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new c(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.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,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function O(t,r){return new Promise((function(n,i){var a=new y(t,r);if(a.signal&&a.signal.aborted)return i(new o.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,o,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",o=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var n=e.join(":").trim();o.append(r,n)}})),o)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;n(new b(r,e))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new o.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&&e.blob&&(s.responseType="blob"),a.headers.forEach((function(t,o){s.setRequestHeader(o,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)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=c,t.Request=y,t.Response=b),o.Headers=c,o.Request=y,o.Response=b,o.fetch=O,Object.defineProperty(o,"U",{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"}(Pr||(Pr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(jr||(jr={})),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"}(Fr||(Fr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Mr||(Mr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Dr||(Dr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Zr||(Zr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Tr||(Tr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(_r||(_r={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(zr||(zr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Br||(Br={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Hr||(Hr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Gr||(Gr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(qr||(qr={})),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"}(Yr||(Yr={})),Yr.PERSONAL_BOOK_SHARE_USER,Yr.PERSONAL_BOOK_USER,Yr.HTML_EXPORT_USER,Yr.PERSONAL_BOOK_USER,Yr.PDF_EXPORT_USER,Yr.PERSONAL_BOOK_USER,Yr.KHUB_ADMIN,Yr.CONTENT_PUBLISHER,Yr.ADMIN,Yr.KHUB_ADMIN,Yr.USERS_ADMIN,Yr.PORTAL_ADMIN,Yr.DEVELOPER,Yr.BETA_USER,Yr.DEBUG_USER;const Vr=Ot`
108
+ `,Xr=Wr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Jr{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=Xr.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static get(t){var o;return null!=t?Jr.build(t):null!==(o=Jr.API)&&void 0!==o?o:Jr.API=Jr.build()}static await(t){return new Promise((o=>{let e=Jr.get(t);if(e)o(e);else{const r=Xr.subscribe((()=>{e=Jr.get(t),e&&(r(),o(e))}))}}))}}var Qr;const tn=Symbol("clearAfterUnitTest");class on{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Qr]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Xr.getState().uiLocale,Xr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Xr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var e;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(e=this.defaultMessages[t])&&void 0!==e?e:{},...o};L(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...e){var r,n,i;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new Ko(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},a).resolve(o,...e)}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,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}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(o=0,new Promise((t=>setTimeout(t,o)))).then((()=>t())).catch((()=>null));var o})))}}Qr=tn,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new on((async(t,o)=>(await Jr.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new on((async(t,o)=>(await Jr.await()).getCustomMessageContext(t,o))));const en=window.FluidTopicsI18nService,rn=window.FluidTopicsCustomI18nService;var nn=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class an extends ko{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=()=>Jr.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return oo`
105
109
  <slot></slot>
106
- `}update(t){super.update(t),t.has("baseUrl")&&Vr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Vr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Vr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Vr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Vr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Vr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Vr.actions.setSession(this.session),t.has("availableUiLocales")&&Vr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>on.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 o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}nn.elementDefinitions={},nn.styles=Yr,rn([U()],nn.prototype,"baseUrl",void 0),rn([U()],nn.prototype,"apiIntegrationIdentifier",void 0),rn([U()],nn.prototype,"uiLocale",void 0),rn([A([])],nn.prototype,"availableUiLocales",void 0),rn([U({type:Boolean})],nn.prototype,"editorMode",void 0),rn([U({type:Boolean})],nn.prototype,"noCustom",void 0),rn([U({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],nn.prototype,"noCustomComponent",void 0),rn([U({type:Boolean})],nn.prototype,"withManualResources",void 0),rn([A([])],nn.prototype,"messageContexts",void 0),rn([A(void 0)],nn.prototype,"session",void 0),rn([U({type:Object})],nn.prototype,"apiProvider",void 0);class an{async listMySearches(){var t;return(null===(t=Vr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Xr.await()).listMySearches(Vr.getState().session.profile.userId):[]}}const sn=new r;class cn{async listMyBookmarks(){return sn.get("bookmarks",(async()=>(await Xr.await()).listMyBookmarks(Vr.getState().session.profile.userId)))}clearCache(){sn.clear("bookmarks")}}const ln=Lr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Vr.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new cn,Vr.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=Vr.getState();L(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){ln.actions.savedSearches(void 0)}clearMyBookmarks(){ln.actions.bookmarks(void 0)}async reloadMySearches(){const t=new an,o=await t.listMySearches();ln.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;ln.actions.bookmarks(o)}}},W("ft-app-context")(nn);class fn extends Event{constructor(){super(fn.eventName)}}fn.eventName="search-context-clear-all-filters";var hn=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class un extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const pn=Symbol("registerInterval");class dn extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=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[pn]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[pn]):this.dispatchEvent(new un)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=pn,hn([I()],e.prototype,"stateManager",void 0),e}(To)){}const yn=Ot`
107
- `;var gn=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};const bn=Symbol("i18nProperties"),mn=Symbol("i18nUnsubs");function On(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?en:on}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const n=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var o;null===(o=this[bn])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[bn])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[bn]&&new Set([...this[bn].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[mn].has(t)||this[mn].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[mn].forEach((t=>t())),this[mn].clear()}}return o=mn,gn([U({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class vn extends(On(ko)){}class Sn extends(On(To)){}var wn=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class Nn extends Sn{constructor(){super(),this.editorMode=!1,this.addStore(Vr)}render(){return this.key&&this.context?oo`
110
+ `}update(t){super.update(t),t.has("baseUrl")&&Xr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Xr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Xr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Xr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Xr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Xr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Xr.actions.setSession(this.session),t.has("availableUiLocales")&&Xr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>en.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 o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}an.elementDefinitions={},an.styles=Vr,nn([U()],an.prototype,"baseUrl",void 0),nn([U()],an.prototype,"apiIntegrationIdentifier",void 0),nn([U()],an.prototype,"uiLocale",void 0),nn([A([])],an.prototype,"availableUiLocales",void 0),nn([U({type:Boolean})],an.prototype,"editorMode",void 0),nn([U({type:Boolean})],an.prototype,"noCustom",void 0),nn([U({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],an.prototype,"noCustomComponent",void 0),nn([U({type:Boolean})],an.prototype,"withManualResources",void 0),nn([A([])],an.prototype,"messageContexts",void 0),nn([A(void 0)],an.prototype,"session",void 0),nn([U({type:Object})],an.prototype,"apiProvider",void 0);class sn{async listMySearches(){var t;return(null===(t=Xr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Jr.await()).listMySearches(Xr.getState().session.profile.userId):[]}}const cn=new r;class ln{async listMyBookmarks(){return cn.get("bookmarks",(async()=>(await Jr.await()).listMyBookmarks(Xr.getState().session.profile.userId)))}clearCache(){cn.clear("bookmarks")}}const fn=Wr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Xr.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ln,Xr.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=Xr.getState();L(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){fn.actions.savedSearches(void 0)}clearMyBookmarks(){fn.actions.bookmarks(void 0)}async reloadMySearches(){const t=new sn,o=await t.listMySearches();fn.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;fn.actions.bookmarks(o)}}},W("ft-app-context")(an);class hn extends Event{constructor(){super(hn.eventName)}}hn.eventName="search-context-clear-all-filters";var un=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class pn extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const dn=Symbol("registerInterval");class yn extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=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[dn]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[dn]):this.dispatchEvent(new pn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=dn,un([I()],e.prototype,"stateManager",void 0),e}(_o)){}const gn=Ot`
111
+ `;var bn=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};const mn=Symbol("i18nProperties"),On=Symbol("i18nUnsubs");function vn(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?rn:en}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const n=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var o;null===(o=this[mn])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[mn])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[mn]&&new Set([...this[mn].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[On].has(t)||this[On].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[On].forEach((t=>t())),this[On].clear()}}return o=On,bn([U({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class Sn extends(vn(ko)){}class wn extends(vn(_o)){}var Nn=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class xn extends wn{constructor(){super(),this.editorMode=!1,this.addStore(Xr)}render(){return this.key&&this.context?oo`
108
112
  <span class="ft-i18n">
109
113
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
110
114
  </span>
111
- `:this.editorMode?"Select a context and a label key.":ro}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Nn.elementDefinitions={},Nn.styles=yn,wn([Wr()],Nn.prototype,"editorMode",void 0),wn([U()],Nn.prototype,"context",void 0),wn([U()],Nn.prototype,"key",void 0),wn([A([])],Nn.prototype,"args",void 0),wn([U()],Nn.prototype,"defaultMessage",void 0);class xn{static build(t){return new xn(t)}static fromGwt(t){return new xn(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>on.resolveMessage(this.name,o,...t)})}}W("ft-i18n")(Nn);const Cn=xn.build("searchResultsNumber"),En={results:"{0} results","results[\\=1]":"1 result"},Rn=Symbol.for(""),Un=t=>{if(t?.r===Rn)return t?._$litStatic$},In=t=>({_$litStatic$:t,r:Rn}),Ln=new Map,Wn=(t=>(o,...e)=>{const r=e.length;let n,i;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(i=e[l],n=Un(i));)c+=n+o[++l],f=!0;l!==r&&s.push(i),a.push(c),l++}if(l===r&&a.push(o[r]),f){const t=a.join("$$lit$$");void 0===(o=Ln.get(t))&&(a.raw=a,Ln.set(t,o=a)),e=s}return t(o,...e)})(J);var An;!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"}(An||(An={}));const kn=vo.extend("--ft-typography-font-family","",xo.titleFont),$n=vo.extend("--ft-typography-font-family","",xo.contentFont),Kn={fontFamily:$n,fontSize:vo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:vo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:vo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:vo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:vo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Pn=vo.extend("--ft-typography-title-font-family","",kn),jn=vo.extend("--ft-typography-title-font-size","",Kn.fontSize,"20px"),Fn=vo.extend("--ft-typography-title-font-weight","",Kn.fontWeight,"normal"),Mn=vo.extend("--ft-typography-title-letter-spacing","",Kn.letterSpacing,"0.15px"),Dn=vo.extend("--ft-typography-title-line-height","",Kn.lineHeight,"1.2"),Zn=vo.extend("--ft-typography-title-text-transform","",Kn.textTransform,"inherit"),Tn=vo.extend("--ft-typography-title-dense-font-family","",kn),_n=vo.extend("--ft-typography-title-dense-font-size","",Kn.fontSize,"14px"),zn=vo.extend("--ft-typography-title-dense-font-weight","",Kn.fontWeight,"normal"),Bn=vo.extend("--ft-typography-title-dense-letter-spacing","",Kn.letterSpacing,"0.105px"),Hn=vo.extend("--ft-typography-title-dense-line-height","",Kn.lineHeight,"1.7"),Gn=vo.extend("--ft-typography-title-dense-text-transform","",Kn.textTransform,"inherit"),qn=vo.extend("--ft-typography-subtitle1-font-family","",$n),Yn=vo.extend("--ft-typography-subtitle1-font-size","",Kn.fontSize,"16px"),Vn=vo.extend("--ft-typography-subtitle1-font-weight","",Kn.fontWeight,"600"),Xn=vo.extend("--ft-typography-subtitle1-letter-spacing","",Kn.letterSpacing,"0.144px"),Jn=vo.extend("--ft-typography-subtitle1-line-height","",Kn.lineHeight,"1.5"),Qn=vo.extend("--ft-typography-subtitle1-text-transform","",Kn.textTransform,"inherit"),ti=vo.extend("--ft-typography-subtitle2-font-family","",$n),oi=vo.extend("--ft-typography-subtitle2-font-size","",Kn.fontSize,"14px"),ei=vo.extend("--ft-typography-subtitle2-font-weight","",Kn.fontWeight,"normal"),ri=vo.extend("--ft-typography-subtitle2-letter-spacing","",Kn.letterSpacing,"0.098px"),ni=vo.extend("--ft-typography-subtitle2-line-height","",Kn.lineHeight,"1.7"),ii=vo.extend("--ft-typography-subtitle2-text-transform","",Kn.textTransform,"inherit"),ai=vo.extend("--ft-typography-body1-font-family","",$n),si=vo.extend("--ft-typography-body1-font-size","",Kn.fontSize,"16px"),ci=vo.extend("--ft-typography-body1-font-weight","",Kn.fontWeight,"normal"),li=vo.extend("--ft-typography-body1-letter-spacing","",Kn.letterSpacing,"0.496px"),fi=vo.extend("--ft-typography-body1-line-height","",Kn.lineHeight,"1.5"),hi=vo.extend("--ft-typography-body1-text-transform","",Kn.textTransform,"inherit"),ui=vo.extend("--ft-typography-body2-font-family","",$n),pi=vo.extend("--ft-typography-body2-font-size","",Kn.fontSize,"14px"),di=vo.extend("--ft-typography-body2-font-weight","",Kn.fontWeight,"normal"),yi=vo.extend("--ft-typography-body2-letter-spacing","",Kn.letterSpacing,"0.252px"),gi=vo.extend("--ft-typography-body2-line-height","",Kn.lineHeight,"1.4"),bi=vo.extend("--ft-typography-body2-text-transform","",Kn.textTransform,"inherit"),mi=vo.extend("--ft-typography-caption-font-family","",$n),Oi=vo.extend("--ft-typography-caption-font-size","",Kn.fontSize,"12px"),vi=vo.extend("--ft-typography-caption-font-weight","",Kn.fontWeight,"normal"),Si=vo.extend("--ft-typography-caption-letter-spacing","",Kn.letterSpacing,"0.396px"),wi=vo.extend("--ft-typography-caption-line-height","",Kn.lineHeight,"1.33"),Ni=vo.extend("--ft-typography-caption-text-transform","",Kn.textTransform,"inherit"),xi=vo.extend("--ft-typography-breadcrumb-font-family","",$n),Ci=vo.extend("--ft-typography-breadcrumb-font-size","",Kn.fontSize,"10px"),Ei=vo.extend("--ft-typography-breadcrumb-font-weight","",Kn.fontWeight,"normal"),Ri=vo.extend("--ft-typography-breadcrumb-letter-spacing","",Kn.letterSpacing,"0.33px"),Ui=vo.extend("--ft-typography-breadcrumb-line-height","",Kn.lineHeight,"1.6"),Ii=vo.extend("--ft-typography-breadcrumb-text-transform","",Kn.textTransform,"inherit"),Li=vo.extend("--ft-typography-overline-font-family","",$n),Wi=vo.extend("--ft-typography-overline-font-size","",Kn.fontSize,"10px"),Ai=vo.extend("--ft-typography-overline-font-weight","",Kn.fontWeight,"normal"),ki=vo.extend("--ft-typography-overline-letter-spacing","",Kn.letterSpacing,"1.5px"),$i=vo.extend("--ft-typography-overline-line-height","",Kn.lineHeight,"1.6"),Ki=vo.extend("--ft-typography-overline-text-transform","",Kn.textTransform,"uppercase"),Pi=vo.extend("--ft-typography-button-font-family","",$n),ji=vo.extend("--ft-typography-button-font-size","",Kn.fontSize,"14px"),Fi=vo.extend("--ft-typography-button-font-weight","",Kn.fontWeight,"600"),Mi=vo.extend("--ft-typography-button-letter-spacing","",Kn.letterSpacing,"1.246px"),Di=vo.extend("--ft-typography-button-line-height","",Kn.lineHeight,"1.15"),Zi=vo.extend("--ft-typography-button-text-transform","",Kn.textTransform,"uppercase"),Ti=Ot`
115
+ `:this.editorMode?"Select a context and a label key.":ro}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}xn.elementDefinitions={},xn.styles=gn,Nn([Ar()],xn.prototype,"editorMode",void 0),Nn([U()],xn.prototype,"context",void 0),Nn([U()],xn.prototype,"key",void 0),Nn([A([])],xn.prototype,"args",void 0),Nn([U()],xn.prototype,"defaultMessage",void 0);class Cn{static build(t){return new Cn(t)}static fromGwt(t){return new Cn(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>en.resolveMessage(this.name,o,...t)})}}W("ft-i18n")(xn);const En=Cn.build("searchResultsNumber"),Rn={results:"{0} results","results[\\=1]":"1 result"},Un=Symbol.for(""),In=t=>{if(t?.r===Un)return t?._$litStatic$},Ln=t=>({_$litStatic$:t,r:Un}),Wn=new Map,An=(t=>(o,...e)=>{const r=e.length;let n,i;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(i=e[l],n=In(i));)c+=n+o[++l],f=!0;l!==r&&s.push(i),a.push(c),l++}if(l===r&&a.push(o[r]),f){const t=a.join("$$lit$$");void 0===(o=Wn.get(t))&&(a.raw=a,Wn.set(t,o=a)),e=s}return t(o,...e)})(J);var kn;!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"}(kn||(kn={}));const $n=vo.extend("--ft-typography-font-family","",xo.titleFont),Kn=vo.extend("--ft-typography-font-family","",xo.contentFont),Pn={fontFamily:Kn,fontSize:vo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:vo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:vo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:vo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:vo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},jn=vo.extend("--ft-typography-title-font-family","",$n),Fn=vo.extend("--ft-typography-title-font-size","",Pn.fontSize,"20px"),Mn=vo.extend("--ft-typography-title-font-weight","",Pn.fontWeight,"normal"),Dn=vo.extend("--ft-typography-title-letter-spacing","",Pn.letterSpacing,"0.15px"),Zn=vo.extend("--ft-typography-title-line-height","",Pn.lineHeight,"1.2"),Tn=vo.extend("--ft-typography-title-text-transform","",Pn.textTransform,"inherit"),_n=vo.extend("--ft-typography-title-dense-font-family","",$n),zn=vo.extend("--ft-typography-title-dense-font-size","",Pn.fontSize,"14px"),Bn=vo.extend("--ft-typography-title-dense-font-weight","",Pn.fontWeight,"normal"),Hn=vo.extend("--ft-typography-title-dense-letter-spacing","",Pn.letterSpacing,"0.105px"),Gn=vo.extend("--ft-typography-title-dense-line-height","",Pn.lineHeight,"1.7"),qn=vo.extend("--ft-typography-title-dense-text-transform","",Pn.textTransform,"inherit"),Yn=vo.extend("--ft-typography-subtitle1-font-family","",Kn),Vn=vo.extend("--ft-typography-subtitle1-font-size","",Pn.fontSize,"16px"),Xn=vo.extend("--ft-typography-subtitle1-font-weight","",Pn.fontWeight,"600"),Jn=vo.extend("--ft-typography-subtitle1-letter-spacing","",Pn.letterSpacing,"0.144px"),Qn=vo.extend("--ft-typography-subtitle1-line-height","",Pn.lineHeight,"1.5"),ti=vo.extend("--ft-typography-subtitle1-text-transform","",Pn.textTransform,"inherit"),oi=vo.extend("--ft-typography-subtitle2-font-family","",Kn),ei=vo.extend("--ft-typography-subtitle2-font-size","",Pn.fontSize,"14px"),ri=vo.extend("--ft-typography-subtitle2-font-weight","",Pn.fontWeight,"normal"),ni=vo.extend("--ft-typography-subtitle2-letter-spacing","",Pn.letterSpacing,"0.098px"),ii=vo.extend("--ft-typography-subtitle2-line-height","",Pn.lineHeight,"1.7"),ai=vo.extend("--ft-typography-subtitle2-text-transform","",Pn.textTransform,"inherit"),si=vo.extend("--ft-typography-body1-font-family","",Kn),ci=vo.extend("--ft-typography-body1-font-size","",Pn.fontSize,"16px"),li=vo.extend("--ft-typography-body1-font-weight","",Pn.fontWeight,"normal"),fi=vo.extend("--ft-typography-body1-letter-spacing","",Pn.letterSpacing,"0.496px"),hi=vo.extend("--ft-typography-body1-line-height","",Pn.lineHeight,"1.5"),ui=vo.extend("--ft-typography-body1-text-transform","",Pn.textTransform,"inherit"),pi=vo.extend("--ft-typography-body2-font-family","",Kn),di=vo.extend("--ft-typography-body2-font-size","",Pn.fontSize,"14px"),yi=vo.extend("--ft-typography-body2-font-weight","",Pn.fontWeight,"normal"),gi=vo.extend("--ft-typography-body2-letter-spacing","",Pn.letterSpacing,"0.252px"),bi=vo.extend("--ft-typography-body2-line-height","",Pn.lineHeight,"1.4"),mi=vo.extend("--ft-typography-body2-text-transform","",Pn.textTransform,"inherit"),Oi=vo.extend("--ft-typography-caption-font-family","",Kn),vi=vo.extend("--ft-typography-caption-font-size","",Pn.fontSize,"12px"),Si=vo.extend("--ft-typography-caption-font-weight","",Pn.fontWeight,"normal"),wi=vo.extend("--ft-typography-caption-letter-spacing","",Pn.letterSpacing,"0.396px"),Ni=vo.extend("--ft-typography-caption-line-height","",Pn.lineHeight,"1.33"),xi=vo.extend("--ft-typography-caption-text-transform","",Pn.textTransform,"inherit"),Ci=vo.extend("--ft-typography-breadcrumb-font-family","",Kn),Ei=vo.extend("--ft-typography-breadcrumb-font-size","",Pn.fontSize,"10px"),Ri=vo.extend("--ft-typography-breadcrumb-font-weight","",Pn.fontWeight,"normal"),Ui=vo.extend("--ft-typography-breadcrumb-letter-spacing","",Pn.letterSpacing,"0.33px"),Ii=vo.extend("--ft-typography-breadcrumb-line-height","",Pn.lineHeight,"1.6"),Li=vo.extend("--ft-typography-breadcrumb-text-transform","",Pn.textTransform,"inherit"),Wi=vo.extend("--ft-typography-overline-font-family","",Kn),Ai=vo.extend("--ft-typography-overline-font-size","",Pn.fontSize,"10px"),ki=vo.extend("--ft-typography-overline-font-weight","",Pn.fontWeight,"normal"),$i=vo.extend("--ft-typography-overline-letter-spacing","",Pn.letterSpacing,"1.5px"),Ki=vo.extend("--ft-typography-overline-line-height","",Pn.lineHeight,"1.6"),Pi=vo.extend("--ft-typography-overline-text-transform","",Pn.textTransform,"uppercase"),ji=vo.extend("--ft-typography-button-font-family","",Kn),Fi=vo.extend("--ft-typography-button-font-size","",Pn.fontSize,"14px"),Mi=vo.extend("--ft-typography-button-font-weight","",Pn.fontWeight,"600"),Di=vo.extend("--ft-typography-button-letter-spacing","",Pn.letterSpacing,"1.246px"),Zi=vo.extend("--ft-typography-button-line-height","",Pn.lineHeight,"1.15"),Ti=vo.extend("--ft-typography-button-text-transform","",Pn.textTransform,"uppercase"),_i=Ot`
112
116
  .ft-typography--title {
113
- font-family: ${Pn};
114
- font-size: ${jn};
115
- font-weight: ${Fn};
116
- letter-spacing: ${Mn};
117
- line-height: ${Dn};
118
- text-transform: ${Zn};
117
+ font-family: ${jn};
118
+ font-size: ${Fn};
119
+ font-weight: ${Mn};
120
+ letter-spacing: ${Dn};
121
+ line-height: ${Zn};
122
+ text-transform: ${Tn};
119
123
  }
120
- `,_i=Ot`
124
+ `,zi=Ot`
121
125
  .ft-typography--title-dense {
122
- font-family: ${Tn};
123
- font-size: ${_n};
124
- font-weight: ${zn};
125
- letter-spacing: ${Bn};
126
- line-height: ${Hn};
127
- text-transform: ${Gn};
126
+ font-family: ${_n};
127
+ font-size: ${zn};
128
+ font-weight: ${Bn};
129
+ letter-spacing: ${Hn};
130
+ line-height: ${Gn};
131
+ text-transform: ${qn};
128
132
  }
129
- `,zi=Ot`
133
+ `,Bi=Ot`
130
134
  .ft-typography--subtitle1 {
131
- font-family: ${qn};
132
- font-size: ${Yn};
133
- font-weight: ${Vn};
134
- letter-spacing: ${Xn};
135
- line-height: ${Jn};
136
- text-transform: ${Qn};
135
+ font-family: ${Yn};
136
+ font-size: ${Vn};
137
+ font-weight: ${Xn};
138
+ letter-spacing: ${Jn};
139
+ line-height: ${Qn};
140
+ text-transform: ${ti};
137
141
  }
138
- `,Bi=Ot`
142
+ `,Hi=Ot`
139
143
  .ft-typography--subtitle2 {
140
- font-family: ${ti};
141
- font-size: ${oi};
142
- font-weight: ${ei};
143
- letter-spacing: ${ri};
144
- line-height: ${ni};
145
- text-transform: ${ii};
144
+ font-family: ${oi};
145
+ font-size: ${ei};
146
+ font-weight: ${ri};
147
+ letter-spacing: ${ni};
148
+ line-height: ${ii};
149
+ text-transform: ${ai};
146
150
  }
147
151
 
148
- `,Hi=Ot`
152
+ `,Gi=Ot`
149
153
  .ft-typography--body1 {
150
- font-family: ${ai};
151
- font-size: ${si};
152
- font-weight: ${ci};
153
- letter-spacing: ${li};
154
- line-height: ${fi};
155
- text-transform: ${hi};
154
+ font-family: ${si};
155
+ font-size: ${ci};
156
+ font-weight: ${li};
157
+ letter-spacing: ${fi};
158
+ line-height: ${hi};
159
+ text-transform: ${ui};
156
160
  }
157
- `,Gi=Ot`
161
+ `,qi=Ot`
158
162
  .ft-typography--body2 {
159
- font-family: ${ui};
160
- font-size: ${pi};
161
- font-weight: ${di};
162
- letter-spacing: ${yi};
163
- line-height: ${gi};
164
- text-transform: ${bi};
163
+ font-family: ${pi};
164
+ font-size: ${di};
165
+ font-weight: ${yi};
166
+ letter-spacing: ${gi};
167
+ line-height: ${bi};
168
+ text-transform: ${mi};
165
169
  }
166
- `,qi=Ot`
170
+ `,Yi=Ot`
167
171
  .ft-typography--caption {
168
- font-family: ${mi};
169
- font-size: ${Oi};
170
- font-weight: ${vi};
171
- letter-spacing: ${Si};
172
- line-height: ${wi};
173
- text-transform: ${Ni};
172
+ font-family: ${Oi};
173
+ font-size: ${vi};
174
+ font-weight: ${Si};
175
+ letter-spacing: ${wi};
176
+ line-height: ${Ni};
177
+ text-transform: ${xi};
174
178
  }
175
- `,Yi=Ot`
179
+ `,Vi=Ot`
176
180
  .ft-typography--breadcrumb {
177
- font-family: ${xi};
178
- font-size: ${Ci};
179
- font-weight: ${Ei};
180
- letter-spacing: ${Ri};
181
- line-height: ${Ui};
182
- text-transform: ${Ii};
181
+ font-family: ${Ci};
182
+ font-size: ${Ei};
183
+ font-weight: ${Ri};
184
+ letter-spacing: ${Ui};
185
+ line-height: ${Ii};
186
+ text-transform: ${Li};
183
187
  }
184
- `,Vi=Ot`
188
+ `,Xi=Ot`
185
189
  .ft-typography--overline {
186
- font-family: ${Li};
187
- font-size: ${Wi};
188
- font-weight: ${Ai};
189
- letter-spacing: ${ki};
190
- line-height: ${$i};
191
- text-transform: ${Ki};
190
+ font-family: ${Wi};
191
+ font-size: ${Ai};
192
+ font-weight: ${ki};
193
+ letter-spacing: ${$i};
194
+ line-height: ${Ki};
195
+ text-transform: ${Pi};
192
196
  }
193
- `,Xi=Ot`
197
+ `,Ji=Ot`
194
198
  .ft-typography--button {
195
- font-family: ${Pi};
196
- font-size: ${ji};
197
- font-weight: ${Fi};
198
- letter-spacing: ${Mi};
199
- line-height: ${Di};
200
- text-transform: ${Zi};
199
+ font-family: ${ji};
200
+ font-size: ${Fi};
201
+ font-weight: ${Mi};
202
+ letter-spacing: ${Di};
203
+ line-height: ${Zi};
204
+ text-transform: ${Ti};
201
205
  }
202
- `,Ji=Ot`
206
+ `,Qi=Ot`
203
207
  .ft-typography {
204
208
  vertical-align: inherit;
205
209
  }
206
- `,Qi=[Object.keys(wo).map((t=>function(t){const o=wo[t];return Ot`
210
+ `,ta=[Object.keys(wo).map((t=>function(t){const o=wo[t];return Ot`
207
211
  .ft-typography--${mt(t)} {
208
212
  font-family: ${o.fontFamily};
209
213
  font-size: ${o.fontSize};
@@ -212,15 +216,15 @@ let bo=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
212
216
  line-height: ${o.lineHeight};
213
217
  text-transform: ${o.textCase};
214
218
  }
215
- `}(t)))];var ta=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class oa extends ko{constructor(){super(...arguments),this.variant=An.body1}render(){return this.element?Wn`
216
- <${In(this.element)}
219
+ `}(t)))];var oa=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class ea extends ko{constructor(){super(...arguments),this.variant=kn.body1}render(){return this.element?An`
220
+ <${Ln(this.element)}
217
221
  class="ft-typography ft-typography--${this.variant}">
218
222
  <slot></slot>
219
- </${In(this.element)}>
220
- `:Wn`
223
+ </${Ln(this.element)}>
224
+ `:An`
221
225
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
222
- `}}oa.styles=[Ti,_i,zi,Bi,Hi,Gi,qi,Yi,Vi,Xi,Ji,...Qi],ta([U()],oa.prototype,"element",void 0),ta([U()],oa.prototype,"variant",void 0),W("ft-typography")(oa);var ea=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class ra extends(On(dn)){constructor(){super(),this.addI18nContext(Cn,En)}render(){return null==this.paging?ro:oo`
226
+ `}}ea.styles=[_i,zi,Bi,Hi,Gi,qi,Yi,Vi,Xi,Ji,Qi,...ta],oa([U()],ea.prototype,"element",void 0),oa([U()],ea.prototype,"variant",void 0),W("ft-typography")(ea);var ra=function(t,o,e,r){for(var n,i=arguments.length,a=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(o,e,a):n(o,e))||a);return i>3&&a&&Object.defineProperty(o,e,a),a};class na extends(vn(yn)){constructor(){super(),this.addI18nContext(En,Rn)}render(){return null==this.paging?ro:oo`
223
227
  <ft-typography variant="body1">
224
- ${Cn.messages.results(this.paging.totalClustersCount)}
228
+ ${En.messages.results(this.paging.totalClustersCount)}
225
229
  </ft-typography>
226
- `}}ra.elementDefinitions={"ft-typography":oa},ra.styles=$r,ea([Wr()],ra.prototype,"paging",void 0),W("ft-search-results-number")(ra),t.FtSearchResultsNumber=ra,t.FtSearchResultsNumberCssVariables={},t.styles=$r}({});
230
+ `}}na.elementDefinitions={"ft-typography":ea},na.styles=Kr,ra([Ar()],na.prototype,"paging",void 0),W("ft-search-results-number")(na),t.FtSearchResultsNumber=na,t.FtSearchResultsNumberCssVariables={},t.styles=Kr}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-results-number",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A component displaying the number of search results",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-i18n": "1.1.1",
23
- "@fluid-topics/ft-search-context": "1.1.1",
24
- "@fluid-topics/ft-search-result-context": "1.1.1",
25
- "@fluid-topics/ft-typography": "1.1.1",
26
- "@fluid-topics/ft-wc-utils": "1.1.1",
22
+ "@fluid-topics/ft-i18n": "1.1.2",
23
+ "@fluid-topics/ft-search-context": "1.1.2",
24
+ "@fluid-topics/ft-search-result-context": "1.1.2",
25
+ "@fluid-topics/ft-typography": "1.1.2",
26
+ "@fluid-topics/ft-wc-utils": "1.1.2",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
29
+ "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
30
30
  }