@fluid-topics/ft-search-results-spellcheck 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,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=o.call(r,t);f||(f=h(t),e.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 e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,n=r._getDefinition(e);return n?d(o,n):i.set(o,r),o}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!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,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i,n),o.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(e.has(r)){const t=this.getAttribute(r);n.call(this,r),o.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(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const e=this.getAttribute(n);o.call(this,n,t,e)}else i.call(this,n,r)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),c=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===n.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class i{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),n=e.get(r)||[];this[+o]=t,n.push(t),e.set(r,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=n.get(o);t&&!0!==t.formAssociated||e.push(o)}return new i(e)}})}}try{window.customElements.define("custom-element",null)}catch(Pr){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}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,e=window.customElements.define,o=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=o.call(r,t);f||(f=h(t),e.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 e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,n=r._getDefinition(e);return n?d(o,n):i.set(o,r),o}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!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,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i,n),o.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(e.has(r)){const t=this.getAttribute(r);n.call(this,r),o.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(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const e=this.getAttribute(n);o.call(this,n,t,e)}else i.call(this,n,r)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),c=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===n.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class i{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),n=e.get(r)||[];this[+o]=t,n.push(t),e.set(r,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=n.get(o);t&&!0!==t.formAssociated||e.push(o)}return new i(e)}})}}try{window.customElements.define("custom-element",null)}catch(jr){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class n{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}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
@@ -33,12 +33,12 @@ const E={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:N},R=(t=E,e,
33
33
  * @license
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
- */}function I(t){return U({...t,state:!0,attribute:!1})}function L(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,r,n;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(r=o;0!=r--;)if(!L(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!L(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,n[r]))return!1;for(r=o;0!=r--;){var i=n[r];if(!L(t[i],e[i]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const W=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function A(t,e){const o=()=>JSON.parse(JSON.stringify(t));return U({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!L(t,e),...null!=e?e:{}})}
36
+ */}function I(t){return U({...t,state:!0,attribute:!1})}function L(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,r,n;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(r=o;0!=r--;)if(!L(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!L(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,n[r]))return!1;for(r=o;0!=r--;){var i=n[r];if(!L(t[i],e[i]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const W=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function k(t,e){const o=()=>JSON.parse(JSON.stringify(t));return U({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!L(t,e),...null!=e?e:{}})}
37
37
  /**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const k=globalThis,$=k.trustedTypes,K=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,F="?"+j,M=`<${F}>`,D=document,Z=()=>D.createComment(""),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,z="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,G=/>/g,q=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,V=/"/g,X=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),Q=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),et=new WeakMap,ot=D.createTreeWalker(D,129);function rt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}let nt=class t{constructor({strings:e,_$litType$:o},r){let n;this.parts=[];let i=0,a=0;const s=e.length-1,c=this.parts,[l,f]=((t,e)=>{const o=t.length-1,r=[];let n,i=2===e?"<svg>":"",a=B;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===B?"!--"===c[1]?a=H:void 0!==c[1]?a=G:void 0!==c[2]?(X.test(c[2])&&(n=RegExp("</"+c[2],"g")),a=q):void 0!==c[3]&&(a=q):a===q?">"===c[0]?(a=n??B,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?q:'"'===c[3]?V:Y):a===V||a===Y?a=q:a===H||a===G?a=B:(a=q,n=void 0);const h=a===q&&t[e+1].startsWith("/>")?" ":"";i+=a===B?o+M:l>=0?(r.push(s),o.slice(0,l)+P+o.slice(l)+j+h):o+j+(-2===l?e:h)}return[rt(t,i+(t[o]||"<?>")+(2===e?"</svg>":"")),r]})(e,o);if(this.el=t.createElement(l,r),ot.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=ot.nextNode())&&c.length<s;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(P)){const e=f[a++],o=n.getAttribute(t).split(j),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:i,name:r[2],strings:o,ctor:"."===r[1]?ct:"?"===r[1]?lt:"@"===r[1]?ft:st}),n.removeAttribute(t)}else t.startsWith(j)&&(c.push({type:6,index:i}),n.removeAttribute(t));if(X.test(n.tagName)){const t=n.textContent.split(j),e=t.length-1;if(e>0){n.textContent=$?$.emptyScript:"";for(let o=0;o<e;o++)n.append(t[o],Z()),ot.nextNode(),c.push({type:2,index:++i});n.append(t[e],Z())}}}else if(8===n.nodeType)if(n.data===F)c.push({type:2,index:i});else{let t=-1;for(;-1!==(t=n.data.indexOf(j,t+1));)c.push({type:7,index:i}),t+=j.length-1}i++}}static createElement(t,e){const o=D.createElement("template");return o.innerHTML=t,o}};function it(t,e,o=t,r){if(e===Q)return e;let n=void 0!==r?o._$Co?.[r]:o._$Cl;const i=T(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=n:o._$Cl=n),void 0!==n&&(e=it(t,n._$AS(t,e.values),n,r)),e}let at=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),T(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==Q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>_(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==tt&&T(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=nt.createElement(rt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??D).importNode(e,!0);ot.currentNode=r;let n=ot.nextNode(),i=0,a=0,s=o[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new at(n,n.nextSibling,this,t):1===s.type?e=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(e=new ht(n,this,t)),this._$AV.push(e),s=o[++a]}i!==s?.index&&(n=ot.nextNode(),i++)}return ot.currentNode=D,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=et.get(t.strings);return void 0===e&&et.set(t.strings,e=new nt(t)),e}T(e){_(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,n=0;for(const i of e)n===o.length?o.push(r=new t(this.k(Z()),this.k(Z()),this,this.options)):r=o[n],r._$AI(i),n++;n<o.length&&(this._$AR(r&&r._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},st=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=tt}_$AI(t,e=this,o,r){const n=this.strings;let i=!1;if(void 0===n)t=it(this,t,e,0),i=!T(t)||t!==this._$AH&&t!==Q,i&&(this._$AH=t);else{const r=t;let a,s;for(t=n[0],a=0;a<n.length-1;a++)s=it(this,r[o+a],e,a),s===Q&&(s=this._$AH[a]),i||=!T(s)||s!==this._$AH[a],s===tt?t=tt:t!==tt&&(t+=(s??"")+n[a+1]),this._$AH[a]=s}i&&!r&&this.O(t)}O(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends st{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===tt?void 0:t}},lt=class extends st{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},ft=class extends st{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??tt)===Q)return;const o=this._$AH,r=t===tt&&o!==tt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==tt&&(o===tt||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ht=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const ut=k.litHtmlPolyfillSupport;ut?.(nt,at),(k.litHtmlVersions??=[]).push("3.1.0");
41
+ */const A=globalThis,$=A.trustedTypes,K=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,F="?"+j,M=`<${F}>`,D=document,Z=()=>D.createComment(""),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,z="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,G=/>/g,q=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,V=/"/g,X=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),Q=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),et=new WeakMap,ot=D.createTreeWalker(D,129);function rt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}let nt=class t{constructor({strings:e,_$litType$:o},r){let n;this.parts=[];let i=0,a=0;const s=e.length-1,c=this.parts,[l,f]=((t,e)=>{const o=t.length-1,r=[];let n,i=2===e?"<svg>":"",a=B;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===B?"!--"===c[1]?a=H:void 0!==c[1]?a=G:void 0!==c[2]?(X.test(c[2])&&(n=RegExp("</"+c[2],"g")),a=q):void 0!==c[3]&&(a=q):a===q?">"===c[0]?(a=n??B,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?q:'"'===c[3]?V:Y):a===V||a===Y?a=q:a===H||a===G?a=B:(a=q,n=void 0);const h=a===q&&t[e+1].startsWith("/>")?" ":"";i+=a===B?o+M:l>=0?(r.push(s),o.slice(0,l)+P+o.slice(l)+j+h):o+j+(-2===l?e:h)}return[rt(t,i+(t[o]||"<?>")+(2===e?"</svg>":"")),r]})(e,o);if(this.el=t.createElement(l,r),ot.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=ot.nextNode())&&c.length<s;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(P)){const e=f[a++],o=n.getAttribute(t).split(j),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:i,name:r[2],strings:o,ctor:"."===r[1]?ct:"?"===r[1]?lt:"@"===r[1]?ft:st}),n.removeAttribute(t)}else t.startsWith(j)&&(c.push({type:6,index:i}),n.removeAttribute(t));if(X.test(n.tagName)){const t=n.textContent.split(j),e=t.length-1;if(e>0){n.textContent=$?$.emptyScript:"";for(let o=0;o<e;o++)n.append(t[o],Z()),ot.nextNode(),c.push({type:2,index:++i});n.append(t[e],Z())}}}else if(8===n.nodeType)if(n.data===F)c.push({type:2,index:i});else{let t=-1;for(;-1!==(t=n.data.indexOf(j,t+1));)c.push({type:7,index:i}),t+=j.length-1}i++}}static createElement(t,e){const o=D.createElement("template");return o.innerHTML=t,o}};function it(t,e,o=t,r){if(e===Q)return e;let n=void 0!==r?o._$Co?.[r]:o._$Cl;const i=T(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=n:o._$Cl=n),void 0!==n&&(e=it(t,n._$AS(t,e.values),n,r)),e}let at=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),T(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==Q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>_(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==tt&&T(this._$AH)?this._$AA.nextSibling.data=t:this.$(D.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=nt.createElement(rt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??D).importNode(e,!0);ot.currentNode=r;let n=ot.nextNode(),i=0,a=0,s=o[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new at(n,n.nextSibling,this,t):1===s.type?e=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(e=new ht(n,this,t)),this._$AV.push(e),s=o[++a]}i!==s?.index&&(n=ot.nextNode(),i++)}return ot.currentNode=D,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=et.get(t.strings);return void 0===e&&et.set(t.strings,e=new nt(t)),e}T(e){_(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,n=0;for(const i of e)n===o.length?o.push(r=new t(this.k(Z()),this.k(Z()),this,this.options)):r=o[n],r._$AI(i),n++;n<o.length&&(this._$AR(r&&r._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},st=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=tt}_$AI(t,e=this,o,r){const n=this.strings;let i=!1;if(void 0===n)t=it(this,t,e,0),i=!T(t)||t!==this._$AH&&t!==Q,i&&(this._$AH=t);else{const r=t;let a,s;for(t=n[0],a=0;a<n.length-1;a++)s=it(this,r[o+a],e,a),s===Q&&(s=this._$AH[a]),i||=!T(s)||s!==this._$AH[a],s===tt?t=tt:t!==tt&&(t+=(s??"")+n[a+1]),this._$AH[a]=s}i&&!r&&this.O(t)}O(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends st{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===tt?void 0:t}},lt=class extends st{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},ft=class extends st{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??tt)===Q)return;const o=this._$AH,r=t===tt&&o!==tt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==tt&&(o===tt||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ht=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const ut=A.litHtmlPolyfillSupport;ut?.(nt,at),(A.litHtmlVersions??=[]).push("3.1.0");
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2019 Google LLC
@@ -49,7 +49,7 @@ const pt=globalThis,dt=pt.ShadowRoot&&(void 0===pt.ShadyCSS||pt.ShadyCSS.nativeS
49
49
  * @license
50
50
  * Copyright 2017 Google LLC
51
51
  * SPDX-License-Identifier: BSD-3-Clause
52
- */,{is:St,defineProperty:wt,getOwnPropertyDescriptor:Nt,getOwnPropertyNames:xt,getOwnPropertySymbols:Ct,getPrototypeOf:Et}=Object,Rt=globalThis,Ut=Rt.trustedTypes,It=Ut?Ut.emptyScript:"",Lt=Rt.reactiveElementPolyfillSupport,Wt=(t,e)=>t,At={toAttribute(t,e){switch(e){case Boolean:t=t?It:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},kt=(t,e)=>!St(t,e),$t={attribute:!0,type:String,converter:At,reflect:!1,hasChanged:kt};Symbol.metadata??=Symbol("metadata"),Rt.litPropertyMetadata??=new WeakMap;let Kt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$t){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&wt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:n}=Nt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const i=r?.call(this);n.call(this,e),this.requestUpdate(t,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$t}static _$Ei(){if(this.hasOwnProperty(Wt("elementProperties")))return;const t=Et(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Wt("properties"))){const t=this.properties,e=[...xt(t),...Ct(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(vt(t))}else void 0!==t&&e.push(vt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(dt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=pt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const n=(void 0!==o.converter?.toAttribute?o.converter:At).toAttribute(e,o.type);this._$Em=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:At;this._$Em=r,this[r]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,n){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??kt)(r?n:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Kt.elementStyles=[],Kt.shadowRootOptions={mode:"open"},Kt[Wt("elementProperties")]=new Map,Kt[Wt("finalized")]=new Map,Lt?.({ReactiveElement:Kt}),(Rt.reactiveElementVersions??=[]).push("2.0.2");
52
+ */,{is:St,defineProperty:wt,getOwnPropertyDescriptor:Nt,getOwnPropertyNames:xt,getOwnPropertySymbols:Ct,getPrototypeOf:Et}=Object,Rt=globalThis,Ut=Rt.trustedTypes,It=Ut?Ut.emptyScript:"",Lt=Rt.reactiveElementPolyfillSupport,Wt=(t,e)=>t,kt={toAttribute(t,e){switch(e){case Boolean:t=t?It:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},At=(t,e)=>!St(t,e),$t={attribute:!0,type:String,converter:kt,reflect:!1,hasChanged:At};Symbol.metadata??=Symbol("metadata"),Rt.litPropertyMetadata??=new WeakMap;let Kt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$t){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&wt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:n}=Nt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const i=r?.call(this);n.call(this,e),this.requestUpdate(t,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$t}static _$Ei(){if(this.hasOwnProperty(Wt("elementProperties")))return;const t=Et(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Wt("properties"))){const t=this.properties,e=[...xt(t),...Ct(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(vt(t))}else void 0!==t&&e.push(vt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(dt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=pt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const n=(void 0!==o.converter?.toAttribute?o.converter:kt).toAttribute(e,o.type);this._$Em=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:kt;this._$Em=r,this[r]=n.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,n){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??At)(r?n:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Kt.elementStyles=[],Kt.shadowRootOptions={mode:"open"},Kt[Wt("elementProperties")]=new Map,Kt[Wt("finalized")]=new Map,Lt?.({ReactiveElement:Kt}),(Rt.reactiveElementVersions??=[]).push("2.0.2");
53
53
  /**
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
@@ -66,7 +66,11 @@ let ge=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 Ee extends ge{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Ce?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=xe.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Re,Ue=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};const Ie=Symbol("constructorPrototype"),Le=Symbol("constructorName"),We=Symbol("exportpartsDebouncer");class Ae extends Ee{constructor(){super(),this[Re]=new n(5),this[Le]=this.constructor.name,this[Ie]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Le]&&Object.setPrototypeOf(this,this[Ie])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[We].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,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!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(n=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==n?n:[],o=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(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Re=We,Ue([U()],Ae.prototype,"exportpartsPrefix",void 0),Ue([A([])],Ae.prototype,"exportpartsPrefixes",void 0),Ue([U()],Ae.prototype,"customStylesheet",void 0),Ot`
69
+ */class Ee extends ge{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Ce?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=xe.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Re,Ue=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};const Ie=Symbol("constructorPrototype"),Le=Symbol("constructorName"),We=Symbol("exportpartsDebouncer");class ke extends Ee{constructor(){super(),this[Re]=new n(5),this[Le]=this.constructor.name,this[Ie]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Le]&&Object.setPrototypeOf(this,this[Ie])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[We].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,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!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(n=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==n?n:[],o=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(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Re=We,Ue([U()],ke.prototype,"exportpartsPrefix",void 0),Ue([k([])],ke.prototype,"exportpartsPrefixes",void 0),Ue([U()],ke.prototype,"customStylesheet",void 0);const Ae=Oe.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Ot`
70
+ .highlight-html-match {
71
+ background: ${Ae};
72
+ }
73
+ `,Ot`
70
74
  .ft-no-text-select {
71
75
  -webkit-touch-callout: none;
72
76
  -webkit-user-select: none;
@@ -98,123 +102,123 @@ let ge=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
98
102
  display: inline-block;
99
103
  width: 0;
100
104
  }
101
- `;class ke{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let n=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),n}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function $e(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ke,Pe,je;const Fe=Symbol("internalReduxEventsUnsubscribers"),Me=Symbol("internalStoresUnsubscribers"),De=Symbol("internalStores");class Ze extends Ae{constructor(){super(...arguments),this[Ke]=new Map,this[Pe]=new Map,this[je]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[De].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[De].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[De].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:$e(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[De].delete(e)}setupStore(t,e){this[De].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[De].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Me].has(t.store):this[Me].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Me].set(t,e.subscribe((()=>this.updateFromStores()))),$e(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Fe].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Me].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Fe].forEach((t=>t())),this[Fe]=[]}unsubscribeFromStore(t){this[Me].has(t)&&this[Me].get(t)(),this[Me].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Te(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _e(t){return!!t&&!!t[Lo]}function ze(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Wo}(t)||Array.isArray(t)||!!t[Io]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Io])||Ve(t)||Xe(t))}function Be(t,e,o){void 0===o&&(o=!1),0===He(t)?(o?Object.keys:Ao)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function He(t){var e=t[Lo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ve(t)?2:Xe(t)?3:0}function Ge(t,e){return 2===He(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function qe(t,e,o){var r=He(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function Ye(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Ve(t){return Co&&t instanceof Map}function Xe(t){return Eo&&t instanceof Set}function Je(t){return t.o||t.t}function Qe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ko(t);delete e[Lo];for(var o=Ao(e),r=0;r<o.length;r++){var n=o[r],i=e[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function to(t,e){return void 0===e&&(e=!1),oo(t)||_e(t)||!ze(t)||(He(t)>1&&(t.set=t.add=t.clear=t.delete=eo),Object.freeze(t),e&&Be(t,(function(t,e){return to(e,!0)}),!0)),t}function eo(){Te(2)}function oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ro(t){var e=$o[t];return e||Te(18,t),e}function no(){return No}function io(t,e){e&&(ro("Patches"),t.u=[],t.s=[],t.v=e)}function ao(t){so(t),t.p.forEach(lo),t.p=null}function so(t){t===No&&(No=t.l)}function co(t){return No={p:[],l:No,h:t,m:!0,_:0}}function lo(t){var e=t[Lo];0===e.i||1===e.i?e.j():e.g=!0}function fo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||ro("ES5").S(e,t,r),r?(o[Lo].P&&(ao(e),Te(4)),ze(t)&&(t=ho(e,t),e.l||po(e,t)),e.u&&ro("Patches").M(o[Lo].t,t,e.u,e.s)):t=ho(e,o,[]),ao(e),e.u&&e.v(e.u,e.s),t!==Uo?t:void 0}function ho(t,e,o){if(oo(e))return e;var r=e[Lo];if(!r)return Be(e,(function(n,i){return uo(t,r,e,n,i,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return po(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=Qe(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),Be(i,(function(e,i){return uo(t,r,n,e,i,o,a)})),po(t,n,!1),o&&t.u&&ro("Patches").N(r,o,t.u,t.s)}return r.o}function uo(t,e,o,r,n,i,a){if(_e(n)){var s=ho(t,n,i&&e&&3!==e.i&&!Ge(e.R,r)?i.concat(r):void 0);if(qe(o,r,s),!_e(s))return;t.m=!1}else a&&o.add(n);if(ze(n)&&!oo(n)){if(!t.h.D&&t._<1)return;ho(t,n),e&&e.A.l||po(t,n)}}function po(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&to(e,o)}function yo(t,e){var o=t[Lo];return(o?Je(o):t)[e]}function go(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function bo(t){t.P||(t.P=!0,t.l&&bo(t.l))}function mo(t){t.o||(t.o=Qe(t.t))}function Oo(t,e,o){var r=Ve(e)?ro("MapSet").F(e,o):Xe(e)?ro("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:no(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=r,i=Ko;o&&(n=[r],i=Po);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):ro("ES5").J(e,o);return(o?o.A:no()).p.push(r),r}function vo(t){return _e(t)||Te(22,t),function t(e){if(!ze(e))return e;var o,r=e[Lo],n=He(e);if(r){if(!r.P&&(r.i<4||!ro("ES5").K(r)))return r.t;r.I=!0,o=So(e,n),r.I=!1}else o=So(e,n);return Be(o,(function(e,n){r&&function(t,e){return 2===He(t)?t.get(e):t[e]}(r.t,e)===n||qe(o,e,t(n))})),3===n?new Set(o):o}(t)}function So(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Qe(t)}Ke=Me,Pe=De,je=Fe;var wo,No,xo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Co="undefined"!=typeof Map,Eo="undefined"!=typeof Set,Ro="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Uo=xo?Symbol.for("immer-nothing"):((wo={})["immer-nothing"]=!0,wo),Io=xo?Symbol.for("immer-draftable"):"__$immer_draftable",Lo=xo?Symbol.for("immer-state"):"__$immer_state",Wo=""+Object.prototype.constructor,Ao="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ko=Object.getOwnPropertyDescriptors||function(t){var e={};return Ao(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},$o={},Ko={get:function(t,e){if(e===Lo)return t;var o=Je(t);if(!Ge(o,e))return function(t,e,o){var r,n=go(e,o);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!ze(r)?r:r===yo(t.t,e)?(mo(t),t.o[e]=Oo(t.A.h,r,t)):r},has:function(t,e){return e in Je(t)},ownKeys:function(t){return Reflect.ownKeys(Je(t))},set:function(t,e,o){var r=go(Je(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var n=yo(Je(t),e),i=null==n?void 0:n[Lo];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Ye(o,n)&&(void 0!==o||Ge(t.t,e)))return!0;mo(t),bo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==yo(t.t,e)||e in t.t?(t.R[e]=!1,mo(t),bo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Je(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){Te(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Te(12)}},Po={};Be(Ko,(function(t,e){Po[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Po.deleteProperty=function(t,e){return Po.set.call(this,t,e,void 0)},Po.set=function(t,e,o){return Ko.set.call(this,t[0],e,o,t[0])};var jo=function(){function t(t){var e=this;this.O=Ro,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var n=o;o=t;var i=e;return function(t){var e=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=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Te(6),void 0!==r&&"function"!=typeof r&&Te(7),ze(t)){var s=co(e),c=Oo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?ao(s):so(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return io(s,r),fo(t,s)}),(function(t){throw ao(s),t})):(io(s,r),fo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Uo&&(a=void 0),e.D&&to(a,!0),r){var f=[],h=[];ro("Patches").M(t,a,f,h),r(f,h)}return a}Te(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(n))}))};var r,n,i=e.produce(t,o,(function(t,e){r=t,n=e}));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 e=t.prototype;return e.createDraft=function(t){ze(t)||Te(8),_e(t)&&(t=vo(t));var e=co(this),o=Oo(this,t,void 0);return o[Lo].C=!0,so(e),o},e.finishDraft=function(t,e){var o=(t&&t[Lo]).A;return io(o,e),fo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ro&&Te(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var n=ro("Patches").$;return _e(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Fo=new jo,Mo=Fo.produce;function Do(t){return Do="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},Do(t)}function Zo(t){var e=function(t,e){if("object"!==Do(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Do(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Do(e)?e:String(e)}function To(t,e,o){return(e=Zo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function _o(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function zo(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?_o(Object(o),!0).forEach((function(e){To(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):_o(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Bo(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. "}Fo.produceWithPatches.bind(Fo),Fo.setAutoFreeze.bind(Fo),Fo.setUseProxies.bind(Fo),Fo.applyPatches.bind(Fo),Fo.createDraft.bind(Fo),Fo.finishDraft.bind(Fo);var Ho="function"==typeof Symbol&&Symbol.observable||"@@observable",Go=function(){return Math.random().toString(36).substring(7).split("").join(".")},qo={INIT:"@@redux/INIT"+Go(),REPLACE:"@@redux/REPLACE"+Go(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Go()}};function Yo(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Bo(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Bo(1));return o(Yo)(t,e)}if("function"!=typeof t)throw new Error(Bo(2));var n=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Bo(3));return i}function h(t){if("function"!=typeof t)throw new Error(Bo(4));if(c)throw new Error(Bo(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Bo(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Bo(7));if(void 0===t.type)throw new Error(Bo(8));if(c)throw new Error(Bo(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:qo.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Bo(10));n=t,u({type:qo.REPLACE})}})[Ho]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Bo(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[Ho]=function(){return this},t},r}function Vo(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var n=e[r];"function"==typeof t[n]&&(o[n]=t[n])}var i,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:qo.INIT}))throw new Error(Bo(12));if(void 0===o(void 0,{type:qo.PROBE_UNKNOWN_ACTION()}))throw new Error(Bo(13))}))}(o)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(Bo(14));n[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function Xo(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Jo(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(Bo(15))},n={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(n)}));return r=Xo.apply(void 0,i)(o.dispatch),zo(zo({},o),{},{dispatch:r})}}}function Qo(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(n){return"function"==typeof n?n(o,r,t):e(n)}}}}var tr=Qo();tr.withExtraArgument=Qo;var er,or=tr,rr=(er=function(t,e){return er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},er(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}er(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),nr=function(t,e){var o,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(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=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=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},ir=function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];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,e,o){return e in t?ar(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},pr=function(t,e){for(var o in e||(e={}))fr.call(e,o)&&ur(t,o,e[o]);if(lr)for(var r=0,n=lr(e);r<n.length;r++){o=n[r];hr.call(e,o)&&ur(t,o,e[o])}return t},dr=function(t,e){return sr(t,cr(e))},yr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Xo:Xo.apply(null,arguments)};var gr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return rr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ir([void 0],t[0].concat(this)))):new(e.bind.apply(e,ir([void 0],t.concat(this))))},e}(Array),br=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return rr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ir([void 0],t[0].concat(this)))):new(e.bind.apply(e,ir([void 0],t.concat(this))))},e}(Array);function mr(t){return ze(t)?Mo(t,(function(){})):t}function Or(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new gr;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(or.withExtraArgument(o.extraArgument)):r.push(or));return r}(t)}}function vr(t){var e,o=Or(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof i)e=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(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');e=Vo(i)}var d=s;"function"==typeof d&&(d=d(o));var y=Jo.apply(void 0,d),g=Xo;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)),Yo(e,h,g.apply(void 0,m))}function Sr(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var n=e.apply(void 0,o);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:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function wr(t){var e,o={},r=[],n={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,n},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[o,r,e]}function Nr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:mr(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?wr(t.extraReducers):[t.extraReducers],o=e[0],n=void 0===o?{}:o,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,f=pr(pr({},n),s);return function(t,e,o,r){void 0===o&&(o=[]);var n,i="function"==typeof e?wr(e):[e,o,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,e){void 0===t&&(t=n());var o=ir([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(_e(t))return void 0===(r=o(t,e))?t:r;if(ze(t))return Mo(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=n,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var n=r[o];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var o,r,i=n[t],l=e+"/"+t;"reducer"in i?(o=i.reducer,r=i.prepare):o=i,a[t]=o,s[l]=o,c[t]=r?Sr(l,r):Sr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var xr=["name","message","stack","code"],Cr=function(t,e){this.payload=t,this.meta=e},Er=function(t,e){this.payload=t,this.meta=e},Rr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=xr;o<r.length;o++){var n=r[o];"string"==typeof t[n]&&(e[n]=t[n])}return e}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,e,o){var r=Sr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:dr(pr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),n=Sr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:dr(pr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=Sr(t+"/rejected",(function(t,e,r,n,i){return{payload:n,error:(o&&o.serializeError||Rr)(t||"Rejected"),meta:dr(pr({},i||{}),{arg:r,requestId:e,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==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),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==o?void 0:o.condition)?void 0:a.call(o,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,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(n(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Cr(t,e)},fulfillWithValue:function(t,e){return new Er(t,e)}})).then((function(e){if(e instanceof Cr)throw e;return e instanceof Er?r(e.payload,h,t,e.meta):r(e,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 o&&!o.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var v}))},new Promise((function(t,e){var o=function(t){try{n(y.next(t))}catch(t){e(t)}},r=function(t){try{n(y.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,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,e){var o=n[t];return o?o.enumerable=e:n[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Lo];return Ko.get(e,t)},set:function(e){var o=this[Lo];Ko.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Lo];if(!n.P)switch(n.i){case 5:r(n)&&bo(n);break;case 4:o(n)&&bo(n)}}}function o(t){for(var e=t.t,o=t.k,r=Ao(o),n=r.length-1;n>=0;n--){var i=r[n];if(i!==Lo){var a=e[i];if(void 0===a&&!Ge(e,i))return!0;var s=o[i],c=s&&s[Lo];if(c?c.t!==a:!Ye(s,a))return!0}}var l=!!e[Lo];return r.length!==Ao(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var n={};!function(t,e){$o[t]||($o[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),n=function(e,o){if(e){for(var r=Array(o.length),n=0;n<o.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=ko(o);delete i[Lo];for(var a=Ao(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(o),i)}(r,e),i={i:r?5:4,A:o?o.A:no(),P:!1,I:!1,R:{},l:o,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Lo,{value:i,writable:!0}),n},S:function(t,o,n){n?_e(o)&&o[Lo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Lo];if(o){var n=o.t,i=o.k,a=o.R,s=o.i;if(4===s)Be(i,(function(e){e!==Lo&&(void 0!==n[e]||Ge(n,e)?a[e]||t(i[e]):(a[e]=!0,bo(o)))})),Be(n,(function(t){void 0!==i[t]||Ge(i,t)||(a[t]=!1,bo(o))}));else if(5===s){if(r(o)&&(bo(o),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]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Lr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[o];if($e(n))return n;if(null==r)return;const i=Nr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=vr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return i.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return i.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Lr(i,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,n=t[r];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Wr=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const n={hasChanged:(t,e)=>!L(t,e),attribute:!1,...e};U(n)(t,o);const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.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={linkColor:Oe.external(Ne.colorPrimaryVariant,"Design system"),linkHoverColor:Oe.external(Ne.colorPrimary,"Design system")},Kr=Ot`
105
+ `;class $e{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let n=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),n}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function Ke(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Pe,je,Fe;const Me=Symbol("internalReduxEventsUnsubscribers"),De=Symbol("internalStoresUnsubscribers"),Ze=Symbol("internalStores");class Te extends ke{constructor(){super(...arguments),this[Pe]=new Map,this[je]=new Map,this[Fe]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ze].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ze].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ze].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ke(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ze].delete(e)}setupStore(t,e){this[Ze].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ze].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[De].has(t.store):this[De].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[De].set(t,e.subscribe((()=>this.updateFromStores()))),Ke(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Me].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[De].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Me].forEach((t=>t())),this[Me]=[]}unsubscribeFromStore(t){this[De].has(t)&&this[De].get(t)(),this[De].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function _e(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ze(t){return!!t&&!!t[Wo]}function Be(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===ko}(t)||Array.isArray(t)||!!t[Lo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Lo])||Xe(t)||Je(t))}function He(t,e,o){void 0===o&&(o=!1),0===Ge(t)?(o?Object.keys:Ao)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function Ge(t){var e=t[Wo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Xe(t)?2:Je(t)?3:0}function qe(t,e){return 2===Ge(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ye(t,e,o){var r=Ge(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function Ve(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Xe(t){return Eo&&t instanceof Map}function Je(t){return Ro&&t instanceof Set}function Qe(t){return t.o||t.t}function to(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=$o(t);delete e[Wo];for(var o=Ao(e),r=0;r<o.length;r++){var n=o[r],i=e[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function eo(t,e){return void 0===e&&(e=!1),ro(t)||ze(t)||!Be(t)||(Ge(t)>1&&(t.set=t.add=t.clear=t.delete=oo),Object.freeze(t),e&&He(t,(function(t,e){return eo(e,!0)}),!0)),t}function oo(){_e(2)}function ro(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function no(t){var e=Ko[t];return e||_e(18,t),e}function io(){return xo}function ao(t,e){e&&(no("Patches"),t.u=[],t.s=[],t.v=e)}function so(t){co(t),t.p.forEach(fo),t.p=null}function co(t){t===xo&&(xo=t.l)}function lo(t){return xo={p:[],l:xo,h:t,m:!0,_:0}}function fo(t){var e=t[Wo];0===e.i||1===e.i?e.j():e.g=!0}function ho(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||no("ES5").S(e,t,r),r?(o[Wo].P&&(so(e),_e(4)),Be(t)&&(t=uo(e,t),e.l||yo(e,t)),e.u&&no("Patches").M(o[Wo].t,t,e.u,e.s)):t=uo(e,o,[]),so(e),e.u&&e.v(e.u,e.s),t!==Io?t:void 0}function uo(t,e,o){if(ro(e))return e;var r=e[Wo];if(!r)return He(e,(function(n,i){return po(t,r,e,n,i,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return yo(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=to(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),He(i,(function(e,i){return po(t,r,n,e,i,o,a)})),yo(t,n,!1),o&&t.u&&no("Patches").N(r,o,t.u,t.s)}return r.o}function po(t,e,o,r,n,i,a){if(ze(n)){var s=uo(t,n,i&&e&&3!==e.i&&!qe(e.R,r)?i.concat(r):void 0);if(Ye(o,r,s),!ze(s))return;t.m=!1}else a&&o.add(n);if(Be(n)&&!ro(n)){if(!t.h.D&&t._<1)return;uo(t,n),e&&e.A.l||yo(t,n)}}function yo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&eo(e,o)}function go(t,e){var o=t[Wo];return(o?Qe(o):t)[e]}function bo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function mo(t){t.P||(t.P=!0,t.l&&mo(t.l))}function Oo(t){t.o||(t.o=to(t.t))}function vo(t,e,o){var r=Xe(e)?no("MapSet").F(e,o):Je(e)?no("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:io(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=r,i=Po;o&&(n=[r],i=jo);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):no("ES5").J(e,o);return(o?o.A:io()).p.push(r),r}function So(t){return ze(t)||_e(22,t),function t(e){if(!Be(e))return e;var o,r=e[Wo],n=Ge(e);if(r){if(!r.P&&(r.i<4||!no("ES5").K(r)))return r.t;r.I=!0,o=wo(e,n),r.I=!1}else o=wo(e,n);return He(o,(function(e,n){r&&function(t,e){return 2===Ge(t)?t.get(e):t[e]}(r.t,e)===n||Ye(o,e,t(n))})),3===n?new Set(o):o}(t)}function wo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return to(t)}Pe=De,je=Ze,Fe=Me;var No,xo,Co="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Eo="undefined"!=typeof Map,Ro="undefined"!=typeof Set,Uo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Io=Co?Symbol.for("immer-nothing"):((No={})["immer-nothing"]=!0,No),Lo=Co?Symbol.for("immer-draftable"):"__$immer_draftable",Wo=Co?Symbol.for("immer-state"):"__$immer_state",ko=""+Object.prototype.constructor,Ao="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,$o=Object.getOwnPropertyDescriptors||function(t){var e={};return Ao(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Ko={},Po={get:function(t,e){if(e===Wo)return t;var o=Qe(t);if(!qe(o,e))return function(t,e,o){var r,n=bo(e,o);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!Be(r)?r:r===go(t.t,e)?(Oo(t),t.o[e]=vo(t.A.h,r,t)):r},has:function(t,e){return e in Qe(t)},ownKeys:function(t){return Reflect.ownKeys(Qe(t))},set:function(t,e,o){var r=bo(Qe(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var n=go(Qe(t),e),i=null==n?void 0:n[Wo];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Ve(o,n)&&(void 0!==o||qe(t.t,e)))return!0;Oo(t),mo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==go(t.t,e)||e in t.t?(t.R[e]=!1,Oo(t),mo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Qe(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){_e(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){_e(12)}},jo={};He(Po,(function(t,e){jo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),jo.deleteProperty=function(t,e){return jo.set.call(this,t,e,void 0)},jo.set=function(t,e,o){return Po.set.call(this,t[0],e,o,t[0])};var Fo=function(){function t(t){var e=this;this.O=Uo,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var n=o;o=t;var i=e;return function(t){var e=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=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&_e(6),void 0!==r&&"function"!=typeof r&&_e(7),Be(t)){var s=lo(e),c=vo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?so(s):co(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return ao(s,r),ho(t,s)}),(function(t){throw so(s),t})):(ao(s,r),ho(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Io&&(a=void 0),e.D&&eo(a,!0),r){var f=[],h=[];no("Patches").M(t,a,f,h),r(f,h)}return a}_e(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(n))}))};var r,n,i=e.produce(t,o,(function(t,e){r=t,n=e}));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 e=t.prototype;return e.createDraft=function(t){Be(t)||_e(8),ze(t)&&(t=So(t));var e=lo(this),o=vo(this,t,void 0);return o[Wo].C=!0,co(e),o},e.finishDraft=function(t,e){var o=(t&&t[Wo]).A;return ao(o,e),ho(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Uo&&_e(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var n=no("Patches").$;return ze(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Mo=new Fo,Do=Mo.produce;function Zo(t){return Zo="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},Zo(t)}function To(t){var e=function(t,e){if("object"!==Zo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Zo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Zo(e)?e:String(e)}function _o(t,e,o){return(e=To(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function zo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function Bo(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?zo(Object(o),!0).forEach((function(e){_o(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):zo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Ho(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. "}Mo.produceWithPatches.bind(Mo),Mo.setAutoFreeze.bind(Mo),Mo.setUseProxies.bind(Mo),Mo.applyPatches.bind(Mo),Mo.createDraft.bind(Mo),Mo.finishDraft.bind(Mo);var Go="function"==typeof Symbol&&Symbol.observable||"@@observable",qo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yo={INIT:"@@redux/INIT"+qo(),REPLACE:"@@redux/REPLACE"+qo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qo()}};function Vo(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Ho(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Ho(1));return o(Vo)(t,e)}if("function"!=typeof t)throw new Error(Ho(2));var n=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Ho(3));return i}function h(t){if("function"!=typeof t)throw new Error(Ho(4));if(c)throw new Error(Ho(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Ho(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Ho(7));if(void 0===t.type)throw new Error(Ho(8));if(c)throw new Error(Ho(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:Yo.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ho(10));n=t,u({type:Yo.REPLACE})}})[Go]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ho(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[Go]=function(){return this},t},r}function Xo(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var n=e[r];"function"==typeof t[n]&&(o[n]=t[n])}var i,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:Yo.INIT}))throw new Error(Ho(12));if(void 0===o(void 0,{type:Yo.PROBE_UNKNOWN_ACTION()}))throw new Error(Ho(13))}))}(o)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(Ho(14));n[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function Jo(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Qo(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(Ho(15))},n={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(n)}));return r=Jo.apply(void 0,i)(o.dispatch),Bo(Bo({},o),{},{dispatch:r})}}}function tr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(n){return"function"==typeof n?n(o,r,t):e(n)}}}}var er=tr();er.withExtraArgument=tr;var or,rr=er,nr=(or=function(t,e){return or=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},or(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}or(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ir=function(t,e){var o,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(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=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=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},ar=function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];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,e,o){return e in t?sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},dr=function(t,e){for(var o in e||(e={}))hr.call(e,o)&&pr(t,o,e[o]);if(fr)for(var r=0,n=fr(e);r<n.length;r++){o=n[r];ur.call(e,o)&&pr(t,o,e[o])}return t},yr=function(t,e){return cr(t,lr(e))},gr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Jo:Jo.apply(null,arguments)};var br=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return nr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ar([void 0],t[0].concat(this)))):new(e.bind.apply(e,ar([void 0],t.concat(this))))},e}(Array),mr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return nr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ar([void 0],t[0].concat(this)))):new(e.bind.apply(e,ar([void 0],t.concat(this))))},e}(Array);function Or(t){return Be(t)?Do(t,(function(){})):t}function vr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new br;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(rr.withExtraArgument(o.extraArgument)):r.push(rr));return r}(t)}}function Sr(t){var e,o=vr(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof i)e=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(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');e=Xo(i)}var d=s;"function"==typeof d&&(d=d(o));var y=Qo.apply(void 0,d),g=Jo;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)),Vo(e,h,g.apply(void 0,m))}function wr(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var n=e.apply(void 0,o);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:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Nr(t){var e,o={},r=[],n={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,n},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[o,r,e]}function xr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Or(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Nr(t.extraReducers):[t.extraReducers],o=e[0],n=void 0===o?{}:o,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,f=dr(dr({},n),s);return function(t,e,o,r){void 0===o&&(o=[]);var n,i="function"==typeof e?Nr(e):[e,o,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,e){void 0===t&&(t=n());var o=ar([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(ze(t))return void 0===(r=o(t,e))?t:r;if(Be(t))return Do(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=n,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var n=r[o];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var o,r,i=n[t],l=e+"/"+t;"reducer"in i?(o=i.reducer,r=i.prepare):o=i,a[t]=o,s[l]=o,c[t]=r?wr(l,r):wr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Cr=["name","message","stack","code"],Er=function(t,e){this.payload=t,this.meta=e},Rr=function(t,e){this.payload=t,this.meta=e},Ur=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Cr;o<r.length;o++){var n=r[o];"string"==typeof t[n]&&(e[n]=t[n])}return e}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,e,o){var r=wr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:yr(dr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),n=wr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:yr(dr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=wr(t+"/rejected",(function(t,e,r,n,i){return{payload:n,error:(o&&o.serializeError||Ur)(t||"Rejected"),meta:yr(dr({},i||{}),{arg:r,requestId:e,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==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),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==o?void 0:o.condition)?void 0:a.call(o,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,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(n(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Er(t,e)},fulfillWithValue:function(t,e){return new Rr(t,e)}})).then((function(e){if(e instanceof Er)throw e;return e instanceof Rr?r(e.payload,h,t,e.meta):r(e,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 o&&!o.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var v}))},new Promise((function(t,e){var o=function(t){try{n(y.next(t))}catch(t){e(t)}},r=function(t){try{n(y.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,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,e){var o=n[t];return o?o.enumerable=e:n[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Wo];return Po.get(e,t)},set:function(e){var o=this[Wo];Po.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Wo];if(!n.P)switch(n.i){case 5:r(n)&&mo(n);break;case 4:o(n)&&mo(n)}}}function o(t){for(var e=t.t,o=t.k,r=Ao(o),n=r.length-1;n>=0;n--){var i=r[n];if(i!==Wo){var a=e[i];if(void 0===a&&!qe(e,i))return!0;var s=o[i],c=s&&s[Wo];if(c?c.t!==a:!Ve(s,a))return!0}}var l=!!e[Wo];return r.length!==Ao(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var n={};!function(t,e){Ko[t]||(Ko[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),n=function(e,o){if(e){for(var r=Array(o.length),n=0;n<o.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=$o(o);delete i[Wo];for(var a=Ao(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(o),i)}(r,e),i={i:r?5:4,A:o?o.A:io(),P:!1,I:!1,R:{},l:o,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Wo,{value:i,writable:!0}),n},S:function(t,o,n){n?ze(o)&&o[Wo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Wo];if(o){var n=o.t,i=o.k,a=o.R,s=o.i;if(4===s)He(i,(function(e){e!==Wo&&(void 0!==n[e]||qe(n,e)?a[e]||t(i[e]):(a[e]=!0,mo(o)))})),He(n,(function(t){void 0!==i[t]||qe(i,t)||(a[t]=!1,mo(o))}));else if(5===s){if(r(o)&&(mo(o),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]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Wr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[o];if(Ke(n))return n;if(null==r)return;const i=xr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Sr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return i.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return i.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Wr(i,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,n=t[r];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const kr=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const n={hasChanged:(t,e)=>!L(t,e),attribute:!1,...e};U(n)(t,o);const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};var Ar,$r;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===($r=null===(Ar=window.safari)||void 0===Ar?void 0:Ar.pushNotification)||void 0===$r||$r.toString());const Kr={linkColor:Oe.external(Ne.colorPrimaryVariant,"Design system"),linkHoverColor:Oe.external(Ne.colorPrimary,"Design system")},Pr=Ot`
102
106
  .ft-search-results-spellcheck--spellcheck {
103
107
  display: flex;
104
108
  flex-direction: column;
105
109
  }
106
110
 
107
111
  .link {
108
- color: ${$r.linkColor};
112
+ color: ${Kr.linkColor};
109
113
  text-decoration: underline;
110
- text-decoration-color: ${$r.linkColor};
114
+ text-decoration-color: ${Kr.linkColor};
111
115
  }
112
116
 
113
117
  .link:hover {
114
- color: ${$r.linkHoverColor};
115
- text-decoration-color: ${$r.linkHoverColor};
118
+ color: ${Kr.linkHoverColor};
119
+ text-decoration-color: ${Kr.linkHoverColor};
116
120
  }
117
121
  `
118
122
  /**
119
123
  * @license
120
124
  * Copyright 2020 Google LLC
121
125
  * SPDX-License-Identifier: BSD-3-Clause
122
- */,Pr=Symbol.for(""),jr=t=>{if(t?.r===Pr)return t?._$litStatic$},Fr=t=>({_$litStatic$:t,r:Pr}),Mr=new Map,Dr=(t=>(e,...o)=>{const r=o.length;let n,i;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(i=o[l],n=jr(i));)c+=n+e[++l],f=!0;l!==r&&s.push(i),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=Mr.get(t))&&(a.raw=a,Mr.set(t,e=a)),o=s}return t(e,...o)})(J);var Zr;!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"}(Zr||(Zr={}));const Tr=Oe.extend("--ft-typography-font-family","",Ne.titleFont),_r=Oe.extend("--ft-typography-font-family","",Ne.contentFont),zr={fontFamily:_r,fontSize:Oe.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oe.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oe.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oe.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oe.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Br=Oe.extend("--ft-typography-title-font-family","",Tr),Hr=Oe.extend("--ft-typography-title-font-size","",zr.fontSize,"20px"),Gr=Oe.extend("--ft-typography-title-font-weight","",zr.fontWeight,"normal"),qr=Oe.extend("--ft-typography-title-letter-spacing","",zr.letterSpacing,"0.15px"),Yr=Oe.extend("--ft-typography-title-line-height","",zr.lineHeight,"1.2"),Vr=Oe.extend("--ft-typography-title-text-transform","",zr.textTransform,"inherit"),Xr=Oe.extend("--ft-typography-title-dense-font-family","",Tr),Jr=Oe.extend("--ft-typography-title-dense-font-size","",zr.fontSize,"14px"),Qr=Oe.extend("--ft-typography-title-dense-font-weight","",zr.fontWeight,"normal"),tn=Oe.extend("--ft-typography-title-dense-letter-spacing","",zr.letterSpacing,"0.105px"),en=Oe.extend("--ft-typography-title-dense-line-height","",zr.lineHeight,"1.7"),on=Oe.extend("--ft-typography-title-dense-text-transform","",zr.textTransform,"inherit"),rn=Oe.extend("--ft-typography-subtitle1-font-family","",_r),nn=Oe.extend("--ft-typography-subtitle1-font-size","",zr.fontSize,"16px"),an=Oe.extend("--ft-typography-subtitle1-font-weight","",zr.fontWeight,"600"),sn=Oe.extend("--ft-typography-subtitle1-letter-spacing","",zr.letterSpacing,"0.144px"),cn=Oe.extend("--ft-typography-subtitle1-line-height","",zr.lineHeight,"1.5"),ln=Oe.extend("--ft-typography-subtitle1-text-transform","",zr.textTransform,"inherit"),fn=Oe.extend("--ft-typography-subtitle2-font-family","",_r),hn=Oe.extend("--ft-typography-subtitle2-font-size","",zr.fontSize,"14px"),un=Oe.extend("--ft-typography-subtitle2-font-weight","",zr.fontWeight,"normal"),pn=Oe.extend("--ft-typography-subtitle2-letter-spacing","",zr.letterSpacing,"0.098px"),dn=Oe.extend("--ft-typography-subtitle2-line-height","",zr.lineHeight,"1.7"),yn=Oe.extend("--ft-typography-subtitle2-text-transform","",zr.textTransform,"inherit"),gn=Oe.extend("--ft-typography-body1-font-family","",_r),bn=Oe.extend("--ft-typography-body1-font-size","",zr.fontSize,"16px"),mn=Oe.extend("--ft-typography-body1-font-weight","",zr.fontWeight,"normal"),On=Oe.extend("--ft-typography-body1-letter-spacing","",zr.letterSpacing,"0.496px"),vn=Oe.extend("--ft-typography-body1-line-height","",zr.lineHeight,"1.5"),Sn=Oe.extend("--ft-typography-body1-text-transform","",zr.textTransform,"inherit"),wn=Oe.extend("--ft-typography-body2-font-family","",_r),Nn=Oe.extend("--ft-typography-body2-font-size","",zr.fontSize,"14px"),xn=Oe.extend("--ft-typography-body2-font-weight","",zr.fontWeight,"normal"),Cn=Oe.extend("--ft-typography-body2-letter-spacing","",zr.letterSpacing,"0.252px"),En=Oe.extend("--ft-typography-body2-line-height","",zr.lineHeight,"1.4"),Rn=Oe.extend("--ft-typography-body2-text-transform","",zr.textTransform,"inherit"),Un=Oe.extend("--ft-typography-caption-font-family","",_r),In=Oe.extend("--ft-typography-caption-font-size","",zr.fontSize,"12px"),Ln=Oe.extend("--ft-typography-caption-font-weight","",zr.fontWeight,"normal"),Wn=Oe.extend("--ft-typography-caption-letter-spacing","",zr.letterSpacing,"0.396px"),An=Oe.extend("--ft-typography-caption-line-height","",zr.lineHeight,"1.33"),kn=Oe.extend("--ft-typography-caption-text-transform","",zr.textTransform,"inherit"),$n=Oe.extend("--ft-typography-breadcrumb-font-family","",_r),Kn=Oe.extend("--ft-typography-breadcrumb-font-size","",zr.fontSize,"10px"),Pn=Oe.extend("--ft-typography-breadcrumb-font-weight","",zr.fontWeight,"normal"),jn=Oe.extend("--ft-typography-breadcrumb-letter-spacing","",zr.letterSpacing,"0.33px"),Fn=Oe.extend("--ft-typography-breadcrumb-line-height","",zr.lineHeight,"1.6"),Mn=Oe.extend("--ft-typography-breadcrumb-text-transform","",zr.textTransform,"inherit"),Dn=Oe.extend("--ft-typography-overline-font-family","",_r),Zn=Oe.extend("--ft-typography-overline-font-size","",zr.fontSize,"10px"),Tn=Oe.extend("--ft-typography-overline-font-weight","",zr.fontWeight,"normal"),_n=Oe.extend("--ft-typography-overline-letter-spacing","",zr.letterSpacing,"1.5px"),zn=Oe.extend("--ft-typography-overline-line-height","",zr.lineHeight,"1.6"),Bn=Oe.extend("--ft-typography-overline-text-transform","",zr.textTransform,"uppercase"),Hn=Oe.extend("--ft-typography-button-font-family","",_r),Gn=Oe.extend("--ft-typography-button-font-size","",zr.fontSize,"14px"),qn=Oe.extend("--ft-typography-button-font-weight","",zr.fontWeight,"600"),Yn=Oe.extend("--ft-typography-button-letter-spacing","",zr.letterSpacing,"1.246px"),Vn=Oe.extend("--ft-typography-button-line-height","",zr.lineHeight,"1.15"),Xn=Oe.extend("--ft-typography-button-text-transform","",zr.textTransform,"uppercase"),Jn=Ot`
126
+ */,jr=Symbol.for(""),Fr=t=>{if(t?.r===jr)return t?._$litStatic$},Mr=t=>({_$litStatic$:t,r:jr}),Dr=new Map,Zr=(t=>(e,...o)=>{const r=o.length;let n,i;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(i=o[l],n=Fr(i));)c+=n+e[++l],f=!0;l!==r&&s.push(i),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=Dr.get(t))&&(a.raw=a,Dr.set(t,e=a)),o=s}return t(e,...o)})(J);var Tr;!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"}(Tr||(Tr={}));const _r=Oe.extend("--ft-typography-font-family","",Ne.titleFont),zr=Oe.extend("--ft-typography-font-family","",Ne.contentFont),Br={fontFamily:zr,fontSize:Oe.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oe.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oe.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oe.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oe.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Hr=Oe.extend("--ft-typography-title-font-family","",_r),Gr=Oe.extend("--ft-typography-title-font-size","",Br.fontSize,"20px"),qr=Oe.extend("--ft-typography-title-font-weight","",Br.fontWeight,"normal"),Yr=Oe.extend("--ft-typography-title-letter-spacing","",Br.letterSpacing,"0.15px"),Vr=Oe.extend("--ft-typography-title-line-height","",Br.lineHeight,"1.2"),Xr=Oe.extend("--ft-typography-title-text-transform","",Br.textTransform,"inherit"),Jr=Oe.extend("--ft-typography-title-dense-font-family","",_r),Qr=Oe.extend("--ft-typography-title-dense-font-size","",Br.fontSize,"14px"),tn=Oe.extend("--ft-typography-title-dense-font-weight","",Br.fontWeight,"normal"),en=Oe.extend("--ft-typography-title-dense-letter-spacing","",Br.letterSpacing,"0.105px"),on=Oe.extend("--ft-typography-title-dense-line-height","",Br.lineHeight,"1.7"),rn=Oe.extend("--ft-typography-title-dense-text-transform","",Br.textTransform,"inherit"),nn=Oe.extend("--ft-typography-subtitle1-font-family","",zr),an=Oe.extend("--ft-typography-subtitle1-font-size","",Br.fontSize,"16px"),sn=Oe.extend("--ft-typography-subtitle1-font-weight","",Br.fontWeight,"600"),cn=Oe.extend("--ft-typography-subtitle1-letter-spacing","",Br.letterSpacing,"0.144px"),ln=Oe.extend("--ft-typography-subtitle1-line-height","",Br.lineHeight,"1.5"),fn=Oe.extend("--ft-typography-subtitle1-text-transform","",Br.textTransform,"inherit"),hn=Oe.extend("--ft-typography-subtitle2-font-family","",zr),un=Oe.extend("--ft-typography-subtitle2-font-size","",Br.fontSize,"14px"),pn=Oe.extend("--ft-typography-subtitle2-font-weight","",Br.fontWeight,"normal"),dn=Oe.extend("--ft-typography-subtitle2-letter-spacing","",Br.letterSpacing,"0.098px"),yn=Oe.extend("--ft-typography-subtitle2-line-height","",Br.lineHeight,"1.7"),gn=Oe.extend("--ft-typography-subtitle2-text-transform","",Br.textTransform,"inherit"),bn=Oe.extend("--ft-typography-body1-font-family","",zr),mn=Oe.extend("--ft-typography-body1-font-size","",Br.fontSize,"16px"),On=Oe.extend("--ft-typography-body1-font-weight","",Br.fontWeight,"normal"),vn=Oe.extend("--ft-typography-body1-letter-spacing","",Br.letterSpacing,"0.496px"),Sn=Oe.extend("--ft-typography-body1-line-height","",Br.lineHeight,"1.5"),wn=Oe.extend("--ft-typography-body1-text-transform","",Br.textTransform,"inherit"),Nn=Oe.extend("--ft-typography-body2-font-family","",zr),xn=Oe.extend("--ft-typography-body2-font-size","",Br.fontSize,"14px"),Cn=Oe.extend("--ft-typography-body2-font-weight","",Br.fontWeight,"normal"),En=Oe.extend("--ft-typography-body2-letter-spacing","",Br.letterSpacing,"0.252px"),Rn=Oe.extend("--ft-typography-body2-line-height","",Br.lineHeight,"1.4"),Un=Oe.extend("--ft-typography-body2-text-transform","",Br.textTransform,"inherit"),In=Oe.extend("--ft-typography-caption-font-family","",zr),Ln=Oe.extend("--ft-typography-caption-font-size","",Br.fontSize,"12px"),Wn=Oe.extend("--ft-typography-caption-font-weight","",Br.fontWeight,"normal"),kn=Oe.extend("--ft-typography-caption-letter-spacing","",Br.letterSpacing,"0.396px"),An=Oe.extend("--ft-typography-caption-line-height","",Br.lineHeight,"1.33"),$n=Oe.extend("--ft-typography-caption-text-transform","",Br.textTransform,"inherit"),Kn=Oe.extend("--ft-typography-breadcrumb-font-family","",zr),Pn=Oe.extend("--ft-typography-breadcrumb-font-size","",Br.fontSize,"10px"),jn=Oe.extend("--ft-typography-breadcrumb-font-weight","",Br.fontWeight,"normal"),Fn=Oe.extend("--ft-typography-breadcrumb-letter-spacing","",Br.letterSpacing,"0.33px"),Mn=Oe.extend("--ft-typography-breadcrumb-line-height","",Br.lineHeight,"1.6"),Dn=Oe.extend("--ft-typography-breadcrumb-text-transform","",Br.textTransform,"inherit"),Zn=Oe.extend("--ft-typography-overline-font-family","",zr),Tn=Oe.extend("--ft-typography-overline-font-size","",Br.fontSize,"10px"),_n=Oe.extend("--ft-typography-overline-font-weight","",Br.fontWeight,"normal"),zn=Oe.extend("--ft-typography-overline-letter-spacing","",Br.letterSpacing,"1.5px"),Bn=Oe.extend("--ft-typography-overline-line-height","",Br.lineHeight,"1.6"),Hn=Oe.extend("--ft-typography-overline-text-transform","",Br.textTransform,"uppercase"),Gn=Oe.extend("--ft-typography-button-font-family","",zr),qn=Oe.extend("--ft-typography-button-font-size","",Br.fontSize,"14px"),Yn=Oe.extend("--ft-typography-button-font-weight","",Br.fontWeight,"600"),Vn=Oe.extend("--ft-typography-button-letter-spacing","",Br.letterSpacing,"1.246px"),Xn=Oe.extend("--ft-typography-button-line-height","",Br.lineHeight,"1.15"),Jn=Oe.extend("--ft-typography-button-text-transform","",Br.textTransform,"uppercase"),Qn=Ot`
123
127
  .ft-typography--title {
124
- font-family: ${Br};
125
- font-size: ${Hr};
126
- font-weight: ${Gr};
127
- letter-spacing: ${qr};
128
- line-height: ${Yr};
129
- text-transform: ${Vr};
128
+ font-family: ${Hr};
129
+ font-size: ${Gr};
130
+ font-weight: ${qr};
131
+ letter-spacing: ${Yr};
132
+ line-height: ${Vr};
133
+ text-transform: ${Xr};
130
134
  }
131
- `,Qn=Ot`
135
+ `,ti=Ot`
132
136
  .ft-typography--title-dense {
133
- font-family: ${Xr};
134
- font-size: ${Jr};
135
- font-weight: ${Qr};
136
- letter-spacing: ${tn};
137
- line-height: ${en};
138
- text-transform: ${on};
137
+ font-family: ${Jr};
138
+ font-size: ${Qr};
139
+ font-weight: ${tn};
140
+ letter-spacing: ${en};
141
+ line-height: ${on};
142
+ text-transform: ${rn};
139
143
  }
140
- `,ti=Ot`
144
+ `,ei=Ot`
141
145
  .ft-typography--subtitle1 {
142
- font-family: ${rn};
143
- font-size: ${nn};
144
- font-weight: ${an};
145
- letter-spacing: ${sn};
146
- line-height: ${cn};
147
- text-transform: ${ln};
146
+ font-family: ${nn};
147
+ font-size: ${an};
148
+ font-weight: ${sn};
149
+ letter-spacing: ${cn};
150
+ line-height: ${ln};
151
+ text-transform: ${fn};
148
152
  }
149
- `,ei=Ot`
153
+ `,oi=Ot`
150
154
  .ft-typography--subtitle2 {
151
- font-family: ${fn};
152
- font-size: ${hn};
153
- font-weight: ${un};
154
- letter-spacing: ${pn};
155
- line-height: ${dn};
156
- text-transform: ${yn};
155
+ font-family: ${hn};
156
+ font-size: ${un};
157
+ font-weight: ${pn};
158
+ letter-spacing: ${dn};
159
+ line-height: ${yn};
160
+ text-transform: ${gn};
157
161
  }
158
162
 
159
- `,oi=Ot`
163
+ `,ri=Ot`
160
164
  .ft-typography--body1 {
161
- font-family: ${gn};
162
- font-size: ${bn};
163
- font-weight: ${mn};
164
- letter-spacing: ${On};
165
- line-height: ${vn};
166
- text-transform: ${Sn};
165
+ font-family: ${bn};
166
+ font-size: ${mn};
167
+ font-weight: ${On};
168
+ letter-spacing: ${vn};
169
+ line-height: ${Sn};
170
+ text-transform: ${wn};
167
171
  }
168
- `,ri=Ot`
172
+ `,ni=Ot`
169
173
  .ft-typography--body2 {
170
- font-family: ${wn};
171
- font-size: ${Nn};
172
- font-weight: ${xn};
173
- letter-spacing: ${Cn};
174
- line-height: ${En};
175
- text-transform: ${Rn};
174
+ font-family: ${Nn};
175
+ font-size: ${xn};
176
+ font-weight: ${Cn};
177
+ letter-spacing: ${En};
178
+ line-height: ${Rn};
179
+ text-transform: ${Un};
176
180
  }
177
- `,ni=Ot`
181
+ `,ii=Ot`
178
182
  .ft-typography--caption {
179
- font-family: ${Un};
180
- font-size: ${In};
181
- font-weight: ${Ln};
182
- letter-spacing: ${Wn};
183
+ font-family: ${In};
184
+ font-size: ${Ln};
185
+ font-weight: ${Wn};
186
+ letter-spacing: ${kn};
183
187
  line-height: ${An};
184
- text-transform: ${kn};
188
+ text-transform: ${$n};
185
189
  }
186
- `,ii=Ot`
190
+ `,ai=Ot`
187
191
  .ft-typography--breadcrumb {
188
- font-family: ${$n};
189
- font-size: ${Kn};
190
- font-weight: ${Pn};
191
- letter-spacing: ${jn};
192
- line-height: ${Fn};
193
- text-transform: ${Mn};
192
+ font-family: ${Kn};
193
+ font-size: ${Pn};
194
+ font-weight: ${jn};
195
+ letter-spacing: ${Fn};
196
+ line-height: ${Mn};
197
+ text-transform: ${Dn};
194
198
  }
195
- `,ai=Ot`
199
+ `,si=Ot`
196
200
  .ft-typography--overline {
197
- font-family: ${Dn};
198
- font-size: ${Zn};
199
- font-weight: ${Tn};
200
- letter-spacing: ${_n};
201
- line-height: ${zn};
202
- text-transform: ${Bn};
201
+ font-family: ${Zn};
202
+ font-size: ${Tn};
203
+ font-weight: ${_n};
204
+ letter-spacing: ${zn};
205
+ line-height: ${Bn};
206
+ text-transform: ${Hn};
203
207
  }
204
- `,si=Ot`
208
+ `,ci=Ot`
205
209
  .ft-typography--button {
206
- font-family: ${Hn};
207
- font-size: ${Gn};
208
- font-weight: ${qn};
209
- letter-spacing: ${Yn};
210
- line-height: ${Vn};
211
- text-transform: ${Xn};
210
+ font-family: ${Gn};
211
+ font-size: ${qn};
212
+ font-weight: ${Yn};
213
+ letter-spacing: ${Vn};
214
+ line-height: ${Xn};
215
+ text-transform: ${Jn};
212
216
  }
213
- `,ci=Ot`
217
+ `,li=Ot`
214
218
  .ft-typography {
215
219
  vertical-align: inherit;
216
220
  }
217
- `,li=[Object.keys(Se).map((t=>function(t){const e=Se[t];return Ot`
221
+ `,fi=[Object.keys(Se).map((t=>function(t){const e=Se[t];return Ot`
218
222
  .ft-typography--${mt(t)} {
219
223
  font-family: ${e.fontFamily};
220
224
  font-size: ${e.fontSize};
@@ -223,26 +227,26 @@ let ge=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
223
227
  line-height: ${e.lineHeight};
224
228
  text-transform: ${e.textCase};
225
229
  }
226
- `}(t)))];var fi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class hi extends Ae{constructor(){super(...arguments),this.variant=Zr.body1}render(){return this.element?Dr`
227
- <${Fr(this.element)}
230
+ `}(t)))];var hi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class ui extends ke{constructor(){super(...arguments),this.variant=Tr.body1}render(){return this.element?Zr`
231
+ <${Mr(this.element)}
228
232
  class="ft-typography ft-typography--${this.variant}">
229
233
  <slot></slot>
230
- </${Fr(this.element)}>
231
- `:Dr`
234
+ </${Mr(this.element)}>
235
+ `:Zr`
232
236
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
233
- `}}hi.styles=[Jn,Qn,ti,ei,oi,ri,ni,ii,ai,si,ci,...li],fi([U()],hi.prototype,"element",void 0),fi([U()],hi.prototype,"variant",void 0),W("ft-typography")(hi);const ui=Ot`
234
- `,pi=Ot`
235
- `,di=Lr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class yi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=di.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?yi.build(t):null!==(e=yi.API)&&void 0!==e?e:yi.API=yi.build()}static await(t){return new Promise((e=>{let o=yi.get(t);if(o)e(o);else{const r=di.subscribe((()=>{o=yi.get(t),o&&(r(),e(o))}))}}))}}var gi;const bi=Symbol("clearAfterUnitTest");class mi{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[gi]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=di.getState().uiLocale,di.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=di.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};L(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,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 ke(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}gi=bi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new mi((async(t,e)=>(await yi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new mi((async(t,e)=>(await yi.await()).getCustomMessageContext(t,e))));const Oi=window.FluidTopicsI18nService,vi=window.FluidTopicsCustomI18nService;var Si=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class wi extends Ae{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=()=>yi.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return ee`
237
+ `}}ui.styles=[Qn,ti,ei,oi,ri,ni,ii,ai,si,ci,li,...fi],hi([U()],ui.prototype,"element",void 0),hi([U()],ui.prototype,"variant",void 0),W("ft-typography")(ui);const pi=Ot`
238
+ `,di=Ot`
239
+ `,yi=Wr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class gi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=yi.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?gi.build(t):null!==(e=gi.API)&&void 0!==e?e:gi.API=gi.build()}static await(t){return new Promise((e=>{let o=gi.get(t);if(o)e(o);else{const r=yi.subscribe((()=>{o=gi.get(t),o&&(r(),e(o))}))}}))}}var bi;const mi=Symbol("clearAfterUnitTest");class Oi{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[bi]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=yi.getState().uiLocale,yi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=yi.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};L(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,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 $e(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}bi=mi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Oi((async(t,e)=>(await gi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Oi((async(t,e)=>(await gi.await()).getCustomMessageContext(t,e))));const vi=window.FluidTopicsI18nService,Si=window.FluidTopicsCustomI18nService;var wi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Ni extends ke{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=()=>gi.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return ee`
236
240
  <slot></slot>
237
- `}update(t){super.update(t),t.has("baseUrl")&&di.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&di.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&di.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&di.actions.setNoCustom(this.noCustom),t.has("editorMode")&&di.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&di.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&di.actions.setSession(this.session),t.has("availableUiLocales")&&di.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Oi.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}wi.elementDefinitions={},wi.styles=pi,Si([U()],wi.prototype,"baseUrl",void 0),Si([U()],wi.prototype,"apiIntegrationIdentifier",void 0),Si([U()],wi.prototype,"uiLocale",void 0),Si([A([])],wi.prototype,"availableUiLocales",void 0),Si([U({type:Boolean})],wi.prototype,"editorMode",void 0),Si([U({type:Boolean})],wi.prototype,"noCustom",void 0),Si([U({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],wi.prototype,"noCustomComponent",void 0),Si([U({type:Boolean})],wi.prototype,"withManualResources",void 0),Si([A([])],wi.prototype,"messageContexts",void 0),Si([A(void 0)],wi.prototype,"session",void 0),Si([U({type:Object})],wi.prototype,"apiProvider",void 0);class Ni{async listMySearches(){var t;return(null===(t=di.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await yi.await()).listMySearches(di.getState().session.profile.userId):[]}}const xi=new r;class Ci{async listMyBookmarks(){return xi.get("bookmarks",(async()=>(await yi.await()).listMyBookmarks(di.getState().session.profile.userId)))}clearCache(){xi.clear("bookmarks")}}const Ei=Lr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=di.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ci,di.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=di.getState();L(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Ei.actions.savedSearches(void 0)}clearMyBookmarks(){Ei.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ni,e=await t.listMySearches();Ei.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Ei.actions.bookmarks(e)}}},W("ft-app-context")(wi);var Ri=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};const Ui=Symbol("i18nProperties"),Ii=Symbol("i18nUnsubs");function Li(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?vi:Oi}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);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 e;null===(e=this[Ui])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ui])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ui]&&new Set([...this[Ui].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Ii].has(t)||this[Ii].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Ii].forEach((t=>t())),this[Ii].clear()}}return e=Ii,Ri([U({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Wi extends(Li(Ae)){}class Ai extends(Li(Ze)){}var ki,$i,Ki,Pi,ji,Fi,Mi,Di,Zi,Ti,_i,zi,Bi,Hi,Gi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class qi extends Ai{constructor(){super(),this.editorMode=!1,this.addStore(di)}render(){return this.key&&this.context?ee`
241
+ `}update(t){super.update(t),t.has("baseUrl")&&yi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&yi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&yi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&yi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&yi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&yi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&yi.actions.setSession(this.session),t.has("availableUiLocales")&&yi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>vi.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Ni.elementDefinitions={},Ni.styles=di,wi([U()],Ni.prototype,"baseUrl",void 0),wi([U()],Ni.prototype,"apiIntegrationIdentifier",void 0),wi([U()],Ni.prototype,"uiLocale",void 0),wi([k([])],Ni.prototype,"availableUiLocales",void 0),wi([U({type:Boolean})],Ni.prototype,"editorMode",void 0),wi([U({type:Boolean})],Ni.prototype,"noCustom",void 0),wi([U({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ni.prototype,"noCustomComponent",void 0),wi([U({type:Boolean})],Ni.prototype,"withManualResources",void 0),wi([k([])],Ni.prototype,"messageContexts",void 0),wi([k(void 0)],Ni.prototype,"session",void 0),wi([U({type:Object})],Ni.prototype,"apiProvider",void 0);class xi{async listMySearches(){var t;return(null===(t=yi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await gi.await()).listMySearches(yi.getState().session.profile.userId):[]}}const Ci=new r;class Ei{async listMyBookmarks(){return Ci.get("bookmarks",(async()=>(await gi.await()).listMyBookmarks(yi.getState().session.profile.userId)))}clearCache(){Ci.clear("bookmarks")}}const Ri=Wr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=yi.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ei,yi.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=yi.getState();L(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Ri.actions.savedSearches(void 0)}clearMyBookmarks(){Ri.actions.bookmarks(void 0)}async reloadMySearches(){const t=new xi,e=await t.listMySearches();Ri.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Ri.actions.bookmarks(e)}}},W("ft-app-context")(Ni);var Ui=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};const Ii=Symbol("i18nProperties"),Li=Symbol("i18nUnsubs");function Wi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Si:vi}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);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 e;null===(e=this[Ii])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ii])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ii]&&new Set([...this[Ii].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Li].has(t)||this[Li].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Li].forEach((t=>t())),this[Li].clear()}}return e=Li,Ui([U({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class ki extends(Wi(ke)){}class Ai extends(Wi(Te)){}var $i,Ki,Pi,ji,Fi,Mi,Di,Zi,Ti,_i,zi,Bi,Hi,Gi,qi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Yi extends Ai{constructor(){super(),this.editorMode=!1,this.addStore(yi)}render(){return this.key&&this.context?ee`
238
242
  <span class="ft-i18n">
239
243
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
240
244
  </span>
241
- `:this.editorMode?"Select a context and a label key.":re}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}qi.elementDefinitions={},qi.styles=ui,Gi([Wr()],qi.prototype,"editorMode",void 0),Gi([U()],qi.prototype,"context",void 0),Gi([U()],qi.prototype,"key",void 0),Gi([A([])],qi.prototype,"args",void 0),Gi([U()],qi.prototype,"defaultMessage",void 0);class Yi{static build(t){return new Yi(t)}static fromGwt(t){return new Yi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Oi.resolveMessage(this.name,e,...t)})}}W("ft-i18n")(qi),function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],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 e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.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):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=i(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},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,e){this.map[i(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,n=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),n=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(n))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},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,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var a=new y(t,r);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var n=o.join(":").trim();e.append(r,n)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;n(new b(r,o))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=O,Object.defineProperty(e,"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"}(ki||(ki={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}($i||($i={})),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"}(Ki||(Ki={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Pi||(Pi={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(ji||(ji={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Fi||(Fi={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Mi||(Mi={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Di||(Di={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Zi||(Zi={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ti||(Ti={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(_i||(_i={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(zi||(zi={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Bi||(Bi={})),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"}(Hi||(Hi={})),Hi.PERSONAL_BOOK_SHARE_USER,Hi.PERSONAL_BOOK_USER,Hi.HTML_EXPORT_USER,Hi.PERSONAL_BOOK_USER,Hi.PDF_EXPORT_USER,Hi.PERSONAL_BOOK_USER,Hi.KHUB_ADMIN,Hi.CONTENT_PUBLISHER,Hi.ADMIN,Hi.KHUB_ADMIN,Hi.USERS_ADMIN,Hi.PORTAL_ADMIN,Hi.DEVELOPER,Hi.BETA_USER,Hi.DEBUG_USER;class Vi extends Event{constructor(){super(Vi.eventName)}}Vi.eventName="search-context-clear-all-filters";var Xi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Ji extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Qi=Symbol("registerInterval");class ta extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Qi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Qi]):this.dispatchEvent(new Ji)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Qi,Xi([I()],o.prototype,"stateManager",void 0),o}(Ze)){}const ea=Yi.build("integratedSpellcheckComponent"),oa={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var ra=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class na extends(Li(ta)){constructor(){super(),this.editorMode=!1,this.addStore(di),this.addI18nContext(ea,oa)}getSpellcheckedUrl(t){return this.editorMode?"":function(t,e){var o;const r=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${r.toString()}`).href}(di.getState().baseUrl,{...this.request,query:t})}renderSpellcheck(t,e){return ee`
245
+ `:this.editorMode?"Select a context and a label key.":re}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Yi.elementDefinitions={},Yi.styles=pi,qi([kr()],Yi.prototype,"editorMode",void 0),qi([U()],Yi.prototype,"context",void 0),qi([U()],Yi.prototype,"key",void 0),qi([k([])],Yi.prototype,"args",void 0),qi([U()],Yi.prototype,"defaultMessage",void 0);class Vi{static build(t){return new Vi(t)}static fromGwt(t){return new Vi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>vi.resolveMessage(this.name,e,...t)})}}W("ft-i18n")(Yi),function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],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 e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.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):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=i(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},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,e){this.map[i(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,n=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),n=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(n))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},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,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var a=new y(t,r);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var n=o.join(":").trim();e.append(r,n)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;n(new b(r,o))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=O,Object.defineProperty(e,"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"}($i||($i={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ki||(Ki={})),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"}(Pi||(Pi={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(ji||(ji={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Fi||(Fi={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Mi||(Mi={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Di||(Di={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Zi||(Zi={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ti||(Ti={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(_i||(_i={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(zi||(zi={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Bi||(Bi={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Hi||(Hi={})),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"}(Gi||(Gi={})),Gi.PERSONAL_BOOK_SHARE_USER,Gi.PERSONAL_BOOK_USER,Gi.HTML_EXPORT_USER,Gi.PERSONAL_BOOK_USER,Gi.PDF_EXPORT_USER,Gi.PERSONAL_BOOK_USER,Gi.KHUB_ADMIN,Gi.CONTENT_PUBLISHER,Gi.ADMIN,Gi.KHUB_ADMIN,Gi.USERS_ADMIN,Gi.PORTAL_ADMIN,Gi.DEVELOPER,Gi.BETA_USER,Gi.DEBUG_USER;class Xi extends Event{constructor(){super(Xi.eventName)}}Xi.eventName="search-context-clear-all-filters";var Ji=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Qi extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const ta=Symbol("registerInterval");class ea extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ta]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ta]):this.dispatchEvent(new Qi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ta,Ji([I()],o.prototype,"stateManager",void 0),o}(Te)){}const oa=Vi.build("integratedSpellcheckComponent"),ra={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var na=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class ia extends(Wi(ea)){constructor(){super(),this.editorMode=!1,this.addStore(yi),this.addI18nContext(oa,ra)}getSpellcheckedUrl(t){return this.editorMode?"":function(t,e){var o;const r=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${r.toString()}`).href}(yi.getState().baseUrl,{...this.request,query:t})}renderSpellcheck(t,e){return ee`
242
246
  <div class="ft-search-results-spellcheck--spellcheck">
243
247
  <div>
244
248
  <ft-typography variant="subtitle1">
245
- ${ea.messages.resultsFor()}
249
+ ${oa.messages.resultsFor()}
246
250
  </ft-typography>
247
251
  <a href="${this.getSpellcheckedUrl(t)}"
248
252
  @click=${t=>{var e,o;return null===(e=this.stateManager)||void 0===e?void 0:e.setQuery(null===(o=this.autocorrect)||void 0===o?void 0:o.suggestedQuery)}}>
@@ -253,7 +257,7 @@ let ge=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
253
257
  </div>
254
258
 
255
259
  <ft-typography variant="subtitle2" class="ft-search-results-spellcheck--old-query">
256
- ${ea.messages.noResultsForQuery(e)}
260
+ ${oa.messages.noResultsForQuery(e)}
257
261
  </ft-typography>
258
262
  </div>
259
- `}render(){var t,e;return this.autocorrect?this.renderSpellcheck(null===(t=this.autocorrect)||void 0===t?void 0:t.suggestedQuery,null===(e=this.request)||void 0===e?void 0:e.query):this.editorMode?this.renderSpellcheck("new-query","old-query"):re}}na.elementDefinitions={"ft-typography":hi},na.styles=Kr,ra([Wr({store:di.name})],na.prototype,"editorMode",void 0),ra([Wr({store:"search"})],na.prototype,"request",void 0),ra([Wr({store:"search",selector:t=>t.spellcheck})],na.prototype,"autocorrect",void 0),W("ft-search-results-spellcheck")(na),t.FtSearchResultsSpellcheck=na,t.FtSearchResultsSpellcheckCssVariables=$r,t.styles=Kr}({});
263
+ `}render(){var t,e;return this.autocorrect?this.renderSpellcheck(null===(t=this.autocorrect)||void 0===t?void 0:t.suggestedQuery,null===(e=this.request)||void 0===e?void 0:e.query):this.editorMode?this.renderSpellcheck("new-query","old-query"):re}}ia.elementDefinitions={"ft-typography":ui},ia.styles=Pr,na([kr({store:yi.name})],ia.prototype,"editorMode",void 0),na([kr({store:"search"})],ia.prototype,"request",void 0),na([kr({store:"search",selector:t=>t.spellcheck})],ia.prototype,"autocorrect",void 0),W("ft-search-results-spellcheck")(ia),t.FtSearchResultsSpellcheck=ia,t.FtSearchResultsSpellcheckCssVariables=Kr,t.styles=Pr}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-results-spellcheck",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Spellcheck component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.1.1",
22
+ "@fluid-topics/ft-wc-utils": "1.1.2",
23
23
  "@fluid-topics/public-api": "1.0.51",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
26
+ "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
27
27
  }