@fluid-topics/ft-search-input 1.0.42 → 1.0.44

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.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);h(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let u=i.call(n,t);u||(u=f(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)r.delete(t),d(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,o=n._getDefinition(e);return o?d(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},p=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):p(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(No){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);h(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let u=i.call(n,t);u||(u=f(t),e.call(n,t,u)),this===window.customElements&&(s.set(o,c),c.standInClass=u);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)r.delete(t),d(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,o=n._getDefinition(e);return o?d(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},p=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):p(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Mo){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -98,17 +98,17 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
98
98
  display: inline-block;
99
99
  width: 0;
100
100
  }
101
- `;class Ft{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function It(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zt(t){return!!t&&!!t[Oe]}function Tt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Se}(t)||Array.isArray(t)||!!t[$e]||!!(null===(e=t.constructor)||void 0===e?void 0:e[$e])||Kt(t)||Ht(t))}function Lt(t,e,i){void 0===i&&(i=!1),0===Bt(t)?(i?Object.keys:Ee)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Bt(t){var e=t[Oe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kt(t)?2:Ht(t)?3:0}function _t(t,e){return 2===Bt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Dt(t,e,i){var n=Bt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Wt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Kt(t){return ge&&t instanceof Map}function Ht(t){return me&&t instanceof Set}function Zt(t){return t.o||t.t}function qt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ke(t);delete e[Oe];for(var i=Ee(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Vt(t,e){return void 0===e&&(e=!1),Xt(t)||zt(t)||!Tt(t)||(Bt(t)>1&&(t.set=t.add=t.clear=t.delete=Jt),Object.freeze(t),e&&Lt(t,(function(t,e){return Vt(e,!0)}),!0)),t}function Jt(){It(2)}function Xt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Gt(t){var e=je[t];return e||It(18,t),e}function Qt(){return be}function Yt(t,e){e&&(Gt("Patches"),t.u=[],t.s=[],t.v=e)}function te(t){ee(t),t.p.forEach(ne),t.p=null}function ee(t){t===be&&(be=t.l)}function ie(t){return be={p:[],l:be,h:t,m:!0,_:0}}function ne(t){var e=t[Oe];0===e.i||1===e.i?e.j():e.g=!0}function oe(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||Gt("ES5").S(e,t,n),n?(i[Oe].P&&(te(e),It(4)),Tt(t)&&(t=re(e,t),e.l||ae(e,t)),e.u&&Gt("Patches").M(i[Oe].t,t,e.u,e.s)):t=re(e,i,[]),te(e),e.u&&e.v(e.u,e.s),t!==we?t:void 0}function re(t,e,i){if(Xt(e))return e;var n=e[Oe];if(!n)return Lt(e,(function(o,r){return se(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ae(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=qt(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Lt(r,(function(e,r){return se(t,n,o,e,r,i,s)})),ae(t,o,!1),i&&t.u&&Gt("Patches").N(n,i,t.u,t.s)}return n.o}function se(t,e,i,n,o,r,s){if(zt(o)){var a=re(t,o,r&&e&&3!==e.i&&!_t(e.R,n)?r.concat(n):void 0);if(Dt(i,n,a),!zt(a))return;t.m=!1}else s&&i.add(o);if(Tt(o)&&!Xt(o)){if(!t.h.D&&t._<1)return;re(t,o),e&&e.A.l||ae(t,o)}}function ae(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&Vt(e,i)}function le(t,e){var i=t[Oe];return(i?Zt(i):t)[e]}function ce(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ue(t){t.P||(t.P=!0,t.l&&ue(t.l))}function fe(t){t.o||(t.o=qt(t.t))}function he(t,e,i){var n=Kt(e)?Gt("MapSet").F(e,i):Ht(e)?Gt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Qt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ce;i&&(o=[n],r=Ne);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Gt("ES5").J(e,i);return(i?i.A:Qt()).p.push(n),n}function pe(t){return zt(t)||It(22,t),function t(e){if(!Tt(e))return e;var i,n=e[Oe],o=Bt(e);if(n){if(!n.P&&(n.i<4||!Gt("ES5").K(n)))return n.t;n.I=!0,i=de(e,o),n.I=!1}else i=de(e,o);return Lt(i,(function(e,o){n&&function(t,e){return 2===Bt(t)?t.get(e):t[e]}(n.t,e)===o||Dt(i,e,t(o))})),3===o?new Set(i):i}(t)}function de(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qt(t)}var ve,be,ye="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ge="undefined"!=typeof Map,me="undefined"!=typeof Set,xe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,we=ye?Symbol.for("immer-nothing"):((ve={})["immer-nothing"]=!0,ve),$e=ye?Symbol.for("immer-draftable"):"__$immer_draftable",Oe=ye?Symbol.for("immer-state"):"__$immer_state",Se=""+Object.prototype.constructor,Ee="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ke=Object.getOwnPropertyDescriptors||function(t){var e={};return Ee(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},je={},Ce={get:function(t,e){if(e===Oe)return t;var i=Zt(t);if(!_t(i,e))return function(t,e,i){var n,o=ce(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Tt(n)?n:n===le(t.t,e)?(fe(t),t.o[e]=he(t.A.h,n,t)):n},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,i){var n=ce(Zt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=le(Zt(t),e),r=null==o?void 0:o[Oe];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Wt(i,o)&&(void 0!==i||_t(t.t,e)))return!0;fe(t),ue(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==le(t.t,e)||e in t.t?(t.R[e]=!1,fe(t),ue(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Zt(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){It(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){It(12)}},Ne={};Lt(Ce,(function(t,e){Ne[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ne.deleteProperty=function(t,e){return Ne.set.call(this,t,e,void 0)},Ne.set=function(t,e,i){return Ce.set.call(this,t[0],e,i,t[0])};var Re=function(){function t(t){var e=this;this.O=xe,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&It(6),void 0!==n&&"function"!=typeof n&&It(7),Tt(t)){var a=ie(e),l=he(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?te(a):ee(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Yt(a,n),oe(t,a)}),(function(t){throw te(a),t})):(Yt(a,n),oe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===we&&(s=void 0),e.D&&Vt(s,!0),n){var u=[],f=[];Gt("Patches").M(t,s,u,f),n(u,f)}return s}It(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Tt(t)||It(8),zt(t)&&(t=pe(t));var e=ie(this),i=he(this,t,void 0);return i[Oe].C=!0,ee(e),i},e.finishDraft=function(t,e){var i=(t&&t[Oe]).A;return Yt(i,e),oe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!xe&&It(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=Gt("Patches").$;return zt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Me=new Re,Ae=Me.produce;function Ue(t){return Ue="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},Ue(t)}function Pe(t){var e=function(t,e){if("object"!==Ue(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ue(e)?e:String(e)}function Fe(t,e,i){return(e=Pe(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ie(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ze(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(i),!0).forEach((function(e){Fe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ie(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Te(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Me.produceWithPatches.bind(Me),Me.setAutoFreeze.bind(Me),Me.setUseProxies.bind(Me),Me.applyPatches.bind(Me),Me.createDraft.bind(Me),Me.finishDraft.bind(Me);var Le="function"==typeof Symbol&&Symbol.observable||"@@observable",Be=function(){return Math.random().toString(36).substring(7).split("").join(".")},_e={INIT:"@@redux/INIT"+Be(),REPLACE:"@@redux/REPLACE"+Be(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Be()}};function De(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Te(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Te(1));return i(De)(t,e)}if("function"!=typeof t)throw new Error(Te(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Te(3));return r}function f(t){if("function"!=typeof t)throw new Error(Te(4));if(l)throw new Error(Te(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Te(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Te(7));if(void 0===t.type)throw new Error(Te(8));if(l)throw new Error(Te(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:_e.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Te(10));o=t,h({type:_e.REPLACE})}})[Le]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Te(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Le]=function(){return this},t},n}function We(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:_e.INIT}))throw new Error(Te(12));if(void 0===i(void 0,{type:_e.PROBE_UNKNOWN_ACTION()}))throw new Error(Te(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Te(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function Ke(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function He(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Te(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Ke.apply(void 0,r)(i.dispatch),ze(ze({},i),{},{dispatch:n})}}}function Ze(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var qe=Ze();qe.withExtraArgument=Ze;var Ve,Je=qe,Xe=(Ve=function(t,e){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Ve(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Ve(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Ge=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},Qe=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Ye=Object.defineProperty,ti=Object.defineProperties,ei=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},si=function(t,e){for(var i in e||(e={}))ni.call(e,i)&&ri(t,i,e[i]);if(ii)for(var n=0,o=ii(e);n<o.length;n++){i=o[n];oi.call(e,i)&&ri(t,i,e[i])}return t},ai=function(t,e){return ti(t,ei(e))},li="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ke:Ke.apply(null,arguments)};var ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Xe(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Qe([void 0],t[0].concat(this)))):new(e.bind.apply(e,Qe([void 0],t.concat(this))))},e}(Array),ui=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Xe(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Qe([void 0],t[0].concat(this)))):new(e.bind.apply(e,Qe([void 0],t.concat(this))))},e}(Array);function fi(t){return Tt(t)?Ae(t,(function(){})):t}function hi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new ci;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Je.withExtraArgument(i.extraArgument)):n.push(Je));return n}(t)}}function pi(t){var e,i=hi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))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=We(r)}var d=a;"function"==typeof d&&(d=d(i));var v=He.apply(void 0,d),b=Ke;c&&(b=li(si({trace:!1},"object"==typeof c&&c)));var y=new ui(v),g=y;return Array.isArray(p)?g=Qe([v],p):"function"==typeof p&&(g=p(y)),De(e,f,b.apply(void 0,g))}function di(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return si(si({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function vi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function bi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:fi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?vi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=si(si({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?vi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return fi(t())};else{var c=fi(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=Qe([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(zt(t))return void 0===(n=i(t,e))?t:n;if(Tt(t))return Ae(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?di(c,n):di(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var yi=["name","message","stack","code"],gi=function(t,e){this.payload=t,this.meta=e},mi=function(t,e){this.payload=t,this.meta=e},xi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=yi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function wi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=di(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:ai(si({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=di(t+"/pending",(function(t,e,i){return{payload:void 0,meta:ai(si({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=di(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||xi)(t||"Rejected"),meta:ai(si({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var u,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new s;function p(t){u=t,h.abort()}var d=function(){return s=this,d=null,v=function(){var s,d,v,b,y,g;return Ge(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(f,t,null==(d=null==i?void 0:i.getPendingMeta)?void 0:d.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:h.signal,abort:p,rejectWithValue:function(t,e){return new gi(t,e)},fulfillWithValue:function(t,e){return new mi(t,e)}})).then((function(e){if(e instanceof gi)throw e;return e instanceof mi?n(e.payload,f,t,e.meta):n(e,f,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof gi?r(null,f,t,g.payload,g.meta):r(g,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,d)).next())}));var s,d,v}();return Object.assign(d,{abort:p,requestId:f,arg:t,unwrap:function(){return d.then(wi)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var $i,Oi,Si="listenerMiddleware";di(Si+"/add"),di(Si+"/removeAll"),di(Si+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Oe];return Ce.get(e,t)},set:function(e){var i=this[Oe];Ce.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Oe];if(!o.P)switch(o.i){case 5:n(o)&&ue(o);break;case 4:i(o)&&ue(o)}}}function i(t){for(var e=t.t,i=t.k,n=Ee(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Oe){var s=e[r];if(void 0===s&&!_t(e,r))return!0;var a=i[r],l=a&&a[Oe];if(l?l.t!==s:!Wt(a,s))return!0}}var c=!!e[Oe];return n.length!==Ee(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){je[t]||(je[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=ke(i);delete r[Oe];for(var s=Ee(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:Qt(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Oe,{value:r,writable:!0}),o},S:function(t,i,o){o?zt(i)&&i[Oe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Oe];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Lt(r,(function(e){e!==Oe&&(void 0!==o[e]||_t(o,e)?s[e]||t(r[e]):(s[e]=!0,ue(i)))})),Lt(o,(function(t){void 0!==r[t]||_t(r,t)||(s[t]=!1,ue(i))}));else if(5===a){if(n(i)&&(ue(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const Ei=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},ki=Symbol("internalStoresUnsubscribers"),ji=Symbol("internalStores");class Ci extends Mt{constructor(){super(...arguments),this[$i]=new Map,this[Oi]=new Map}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[ji].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ji].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ji].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ni(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ji].delete(e)}setupStore(t,e){this[ji].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ji].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[ki].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[ki]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[ki].has(t)&&this[ki].get(t)(),this[ki].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Ni(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}$i=ki,Oi=ji;class Ri{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Ni(n))return n;if(null==i)return;const o=bi(i),r=pi({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?o.getInitialState():o.reducer(t,e)});return window.ftReduxStores[i.name]=new Ri(o,r)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Mi,Ai,Ui;const Pi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ui=null===(Ai=null===(Mi=window.safari)||void 0===Mi?void 0:Mi.pushNotification)||void 0===Ai?void 0:Ai.toString())&&void 0!==Ui?Ui:""),Fi=1,Ii=2,zi=t=>(...e)=>({_$litDirective$:t,values:e});
101
+ `;class Ft{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function It(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zt(t){return!!t&&!!t[Oe]}function Tt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Se}(t)||Array.isArray(t)||!!t[$e]||!!(null===(e=t.constructor)||void 0===e?void 0:e[$e])||Kt(t)||Ht(t))}function Lt(t,e,i){void 0===i&&(i=!1),0===Bt(t)?(i?Object.keys:Ee)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Bt(t){var e=t[Oe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kt(t)?2:Ht(t)?3:0}function _t(t,e){return 2===Bt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Dt(t,e,i){var n=Bt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Wt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Kt(t){return ge&&t instanceof Map}function Ht(t){return me&&t instanceof Set}function Zt(t){return t.o||t.t}function qt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ke(t);delete e[Oe];for(var i=Ee(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Vt(t,e){return void 0===e&&(e=!1),Xt(t)||zt(t)||!Tt(t)||(Bt(t)>1&&(t.set=t.add=t.clear=t.delete=Jt),Object.freeze(t),e&&Lt(t,(function(t,e){return Vt(e,!0)}),!0)),t}function Jt(){It(2)}function Xt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Gt(t){var e=je[t];return e||It(18,t),e}function Qt(){return be}function Yt(t,e){e&&(Gt("Patches"),t.u=[],t.s=[],t.v=e)}function te(t){ee(t),t.p.forEach(ne),t.p=null}function ee(t){t===be&&(be=t.l)}function ie(t){return be={p:[],l:be,h:t,m:!0,_:0}}function ne(t){var e=t[Oe];0===e.i||1===e.i?e.j():e.g=!0}function oe(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||Gt("ES5").S(e,t,n),n?(i[Oe].P&&(te(e),It(4)),Tt(t)&&(t=re(e,t),e.l||ae(e,t)),e.u&&Gt("Patches").M(i[Oe].t,t,e.u,e.s)):t=re(e,i,[]),te(e),e.u&&e.v(e.u,e.s),t!==we?t:void 0}function re(t,e,i){if(Xt(e))return e;var n=e[Oe];if(!n)return Lt(e,(function(o,r){return se(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ae(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=qt(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Lt(r,(function(e,r){return se(t,n,o,e,r,i,s)})),ae(t,o,!1),i&&t.u&&Gt("Patches").N(n,i,t.u,t.s)}return n.o}function se(t,e,i,n,o,r,s){if(zt(o)){var a=re(t,o,r&&e&&3!==e.i&&!_t(e.R,n)?r.concat(n):void 0);if(Dt(i,n,a),!zt(a))return;t.m=!1}else s&&i.add(o);if(Tt(o)&&!Xt(o)){if(!t.h.D&&t._<1)return;re(t,o),e&&e.A.l||ae(t,o)}}function ae(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&Vt(e,i)}function le(t,e){var i=t[Oe];return(i?Zt(i):t)[e]}function ce(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ue(t){t.P||(t.P=!0,t.l&&ue(t.l))}function fe(t){t.o||(t.o=qt(t.t))}function he(t,e,i){var n=Kt(e)?Gt("MapSet").F(e,i):Ht(e)?Gt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Qt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ce;i&&(o=[n],r=Ne);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Gt("ES5").J(e,i);return(i?i.A:Qt()).p.push(n),n}function pe(t){return zt(t)||It(22,t),function t(e){if(!Tt(e))return e;var i,n=e[Oe],o=Bt(e);if(n){if(!n.P&&(n.i<4||!Gt("ES5").K(n)))return n.t;n.I=!0,i=de(e,o),n.I=!1}else i=de(e,o);return Lt(i,(function(e,o){n&&function(t,e){return 2===Bt(t)?t.get(e):t[e]}(n.t,e)===o||Dt(i,e,t(o))})),3===o?new Set(i):i}(t)}function de(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qt(t)}var ve,be,ye="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ge="undefined"!=typeof Map,me="undefined"!=typeof Set,xe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,we=ye?Symbol.for("immer-nothing"):((ve={})["immer-nothing"]=!0,ve),$e=ye?Symbol.for("immer-draftable"):"__$immer_draftable",Oe=ye?Symbol.for("immer-state"):"__$immer_state",Se=""+Object.prototype.constructor,Ee="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ke=Object.getOwnPropertyDescriptors||function(t){var e={};return Ee(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},je={},Ce={get:function(t,e){if(e===Oe)return t;var i=Zt(t);if(!_t(i,e))return function(t,e,i){var n,o=ce(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Tt(n)?n:n===le(t.t,e)?(fe(t),t.o[e]=he(t.A.h,n,t)):n},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,i){var n=ce(Zt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=le(Zt(t),e),r=null==o?void 0:o[Oe];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Wt(i,o)&&(void 0!==i||_t(t.t,e)))return!0;fe(t),ue(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==le(t.t,e)||e in t.t?(t.R[e]=!1,fe(t),ue(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Zt(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){It(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){It(12)}},Ne={};Lt(Ce,(function(t,e){Ne[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ne.deleteProperty=function(t,e){return Ne.set.call(this,t,e,void 0)},Ne.set=function(t,e,i){return Ce.set.call(this,t[0],e,i,t[0])};var Re=function(){function t(t){var e=this;this.O=xe,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&It(6),void 0!==n&&"function"!=typeof n&&It(7),Tt(t)){var a=ie(e),l=he(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?te(a):ee(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Yt(a,n),oe(t,a)}),(function(t){throw te(a),t})):(Yt(a,n),oe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===we&&(s=void 0),e.D&&Vt(s,!0),n){var u=[],f=[];Gt("Patches").M(t,s,u,f),n(u,f)}return s}It(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Tt(t)||It(8),zt(t)&&(t=pe(t));var e=ie(this),i=he(this,t,void 0);return i[Oe].C=!0,ee(e),i},e.finishDraft=function(t,e){var i=(t&&t[Oe]).A;return Yt(i,e),oe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!xe&&It(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=Gt("Patches").$;return zt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Me=new Re,Ae=Me.produce;function Ue(t){return Ue="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},Ue(t)}function Pe(t){var e=function(t,e){if("object"!==Ue(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ue(e)?e:String(e)}function Fe(t,e,i){return(e=Pe(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ie(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ze(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(i),!0).forEach((function(e){Fe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ie(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Te(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Me.produceWithPatches.bind(Me),Me.setAutoFreeze.bind(Me),Me.setUseProxies.bind(Me),Me.applyPatches.bind(Me),Me.createDraft.bind(Me),Me.finishDraft.bind(Me);var Le="function"==typeof Symbol&&Symbol.observable||"@@observable",Be=function(){return Math.random().toString(36).substring(7).split("").join(".")},_e={INIT:"@@redux/INIT"+Be(),REPLACE:"@@redux/REPLACE"+Be(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Be()}};function De(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Te(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Te(1));return i(De)(t,e)}if("function"!=typeof t)throw new Error(Te(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Te(3));return r}function f(t){if("function"!=typeof t)throw new Error(Te(4));if(l)throw new Error(Te(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Te(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Te(7));if(void 0===t.type)throw new Error(Te(8));if(l)throw new Error(Te(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:_e.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Te(10));o=t,h({type:_e.REPLACE})}})[Le]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Te(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Le]=function(){return this},t},n}function We(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:_e.INIT}))throw new Error(Te(12));if(void 0===i(void 0,{type:_e.PROBE_UNKNOWN_ACTION()}))throw new Error(Te(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Te(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function Ke(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function He(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Te(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Ke.apply(void 0,r)(i.dispatch),ze(ze({},i),{},{dispatch:n})}}}function Ze(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var qe=Ze();qe.withExtraArgument=Ze;var Ve,Je=qe,Xe=(Ve=function(t,e){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Ve(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Ve(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Ge=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},Qe=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Ye=Object.defineProperty,ti=Object.defineProperties,ei=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},si=function(t,e){for(var i in e||(e={}))ni.call(e,i)&&ri(t,i,e[i]);if(ii)for(var n=0,o=ii(e);n<o.length;n++){i=o[n];oi.call(e,i)&&ri(t,i,e[i])}return t},ai=function(t,e){return ti(t,ei(e))},li="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ke:Ke.apply(null,arguments)};var ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Xe(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Qe([void 0],t[0].concat(this)))):new(e.bind.apply(e,Qe([void 0],t.concat(this))))},e}(Array),ui=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Xe(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Qe([void 0],t[0].concat(this)))):new(e.bind.apply(e,Qe([void 0],t.concat(this))))},e}(Array);function fi(t){return Tt(t)?Ae(t,(function(){})):t}function hi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new ci;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Je.withExtraArgument(i.extraArgument)):n.push(Je));return n}(t)}}function pi(t){var e,i=hi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))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=We(r)}var d=a;"function"==typeof d&&(d=d(i));var v=He.apply(void 0,d),b=Ke;c&&(b=li(si({trace:!1},"object"==typeof c&&c)));var y=new ui(v),g=y;return Array.isArray(p)?g=Qe([v],p):"function"==typeof p&&(g=p(y)),De(e,f,b.apply(void 0,g))}function di(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return si(si({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function vi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function bi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:fi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?vi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=si(si({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?vi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return fi(t())};else{var c=fi(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=Qe([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(zt(t))return void 0===(n=i(t,e))?t:n;if(Tt(t))return Ae(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?di(c,n):di(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var yi=["name","message","stack","code"],gi=function(t,e){this.payload=t,this.meta=e},mi=function(t,e){this.payload=t,this.meta=e},xi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=yi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function wi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=di(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:ai(si({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=di(t+"/pending",(function(t,e,i){return{payload:void 0,meta:ai(si({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=di(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||xi)(t||"Rejected"),meta:ai(si({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var u,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new s;function p(t){u=t,h.abort()}var d=function(){return s=this,d=null,v=function(){var s,d,v,b,y,g;return Ge(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(f,t,null==(d=null==i?void 0:i.getPendingMeta)?void 0:d.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:h.signal,abort:p,rejectWithValue:function(t,e){return new gi(t,e)},fulfillWithValue:function(t,e){return new mi(t,e)}})).then((function(e){if(e instanceof gi)throw e;return e instanceof mi?n(e.payload,f,t,e.meta):n(e,f,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof gi?r(null,f,t,g.payload,g.meta):r(g,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,d)).next())}));var s,d,v}();return Object.assign(d,{abort:p,requestId:f,arg:t,unwrap:function(){return d.then(wi)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var $i,Oi,Si,Ei="listenerMiddleware";di(Ei+"/add"),di(Ei+"/removeAll"),di(Ei+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Oe];return Ce.get(e,t)},set:function(e){var i=this[Oe];Ce.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Oe];if(!o.P)switch(o.i){case 5:n(o)&&ue(o);break;case 4:i(o)&&ue(o)}}}function i(t){for(var e=t.t,i=t.k,n=Ee(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Oe){var s=e[r];if(void 0===s&&!_t(e,r))return!0;var a=i[r],l=a&&a[Oe];if(l?l.t!==s:!Wt(a,s))return!0}}var c=!!e[Oe];return n.length!==Ee(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){je[t]||(je[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=ke(i);delete r[Oe];for(var s=Ee(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:Qt(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Oe,{value:r,writable:!0}),o},S:function(t,i,o){o?zt(i)&&i[Oe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Oe];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Lt(r,(function(e){e!==Oe&&(void 0!==o[e]||_t(o,e)?s[e]||t(r[e]):(s[e]=!0,ue(i)))})),Lt(o,(function(t){void 0!==r[t]||_t(r,t)||(s[t]=!1,ue(i))}));else if(5===a){if(n(i)&&(ue(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const ki=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},ji=Symbol("internalReduxEventsUnsubscribers"),Ci=Symbol("internalStoresUnsubscribers"),Ni=Symbol("internalStores");class Ri extends Mt{constructor(){super(...arguments),this[$i]=new Map,this[Oi]=new Map,this[Si]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ni].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ni].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ni].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Mi(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ni].delete(e)}setupStore(t,e){this[Ni].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ni].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Ci].set(t,e.subscribe((()=>this.updateFromStores()))),Mi(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[ji].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Ci]).forEach((t=>this.unsubscribeFromStore(t))),this[ji].forEach((t=>t())),this[ji]=[]}unsubscribeFromStore(t){this[Ci].has(t)&&this[Ci].get(t)(),this[Ci].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Mi(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}$i=Ci,Oi=Ni,Si=ji;class Ai{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Mi(n))return n;if(null==i)return;const o=bi(i),r=pi({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?o.getInitialState():o.reducer(t,e)});return window.ftReduxStores[i.name]=new Ai(o,r)}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,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Ui,Pi,Fi;const Ii=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Fi=null===(Pi=null===(Ui=window.safari)||void 0===Ui?void 0:Ui.pushNotification)||void 0===Pi?void 0:Pi.toString())&&void 0!==Fi?Fi:""),zi=1,Ti=2,Li=t=>(...e)=>({_$litDirective$:t,values:e});
102
102
  /**
103
103
  * @license
104
104
  * Copyright 2017 Google LLC
105
105
  * SPDX-License-Identifier: BSD-3-Clause
106
- */class Ti{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
106
+ */class Bi{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
107
107
  /**
108
108
  * @license
109
109
  * Copyright 2018 Google LLC
110
110
  * SPDX-License-Identifier: BSD-3-Clause
111
- */const Li=zi(class extends Ti{constructor(t){var e;if(super(t),t.type!==Fi||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return et}}),Bi=$t.extend("--ft-ripple-color",St.colorContent),_i={color:Bi,backgroundColor:$t.extend("--ft-ripple-background-color",Bi),opacityContentOnSurfacePressed:$t.external(St.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(St.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(St.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(St.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},Di=$t.extend("--ft-ripple-color",St.colorPrimary),Wi=Di,Ki=$t.extend("--ft-ripple-background-color",Di),Hi=$t.extend("--ft-ripple-color",St.colorSecondary),Zi=Hi,qi=$t.extend("--ft-ripple-background-color",Hi),Vi=w`
111
+ */const _i=Li(class extends Bi{constructor(t){var e;if(super(t),t.type!==zi||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return et}}),Di=$t.extend("--ft-ripple-color",St.colorContent),Wi={color:Di,backgroundColor:$t.extend("--ft-ripple-background-color",Di),opacityContentOnSurfacePressed:$t.external(St.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(St.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(St.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(St.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},Ki=$t.extend("--ft-ripple-color",St.colorPrimary),Hi=Ki,Zi=$t.extend("--ft-ripple-background-color",Ki),qi=$t.extend("--ft-ripple-color",St.colorSecondary),Vi=qi,Ji=$t.extend("--ft-ripple-background-color",qi),Xi=w`
112
112
  :host {
113
113
  display: contents;
114
114
  }
@@ -121,7 +121,7 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
121
121
 
122
122
  .ft-ripple:not(.ft-ripple--unbounded) {
123
123
  overflow: hidden;
124
- border-radius: ${_i.borderRadius};
124
+ border-radius: ${Wi.borderRadius};
125
125
  }
126
126
 
127
127
  .ft-ripple .ft-ripple--background,
@@ -131,27 +131,27 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
131
131
  }
132
132
 
133
133
  .ft-ripple .ft-ripple--background {
134
- background-color: ${_i.backgroundColor};
134
+ background-color: ${Wi.backgroundColor};
135
135
  }
136
136
 
137
137
  .ft-ripple .ft-ripple--effect {
138
- background-color: ${_i.color};
138
+ background-color: ${Wi.color};
139
139
  }
140
140
 
141
141
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
142
- background-color: ${qi};
142
+ background-color: ${Ji};
143
143
  }
144
144
 
145
145
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
146
- background-color: ${Zi};
146
+ background-color: ${Vi};
147
147
  }
148
148
 
149
149
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
150
- background-color: ${Ki};
150
+ background-color: ${Zi};
151
151
  }
152
152
 
153
153
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
154
- background-color: ${Wi};
154
+ background-color: ${Hi};
155
155
  }
156
156
 
157
157
  .ft-ripple .ft-ripple--background {
@@ -183,22 +183,22 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
183
183
  }
184
184
 
185
185
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
186
- opacity: ${_i.opacityContentOnSurfaceHover};
186
+ opacity: ${Wi.opacityContentOnSurfaceHover};
187
187
  }
188
188
 
189
189
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
190
- opacity: ${_i.opacityContentOnSurfaceSelected};
190
+ opacity: ${Wi.opacityContentOnSurfaceSelected};
191
191
  }
192
192
 
193
193
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
194
- opacity: ${_i.opacityContentOnSurfaceFocused};
194
+ opacity: ${Wi.opacityContentOnSurfaceFocused};
195
195
  }
196
196
 
197
197
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
198
- opacity: ${_i.opacityContentOnSurfacePressed};
198
+ opacity: ${Wi.opacityContentOnSurfacePressed};
199
199
  transform: translate(-50%, -50%) scale(1);
200
200
  }
201
- `;var Ji=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Xi extends Mt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var e,i;let{x:n,y:o}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=n?n-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return tt`
201
+ `;var Gi=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Qi extends Mt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var e,i;let{x:n,y:o}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=n?n-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return tt`
202
202
  <style>
203
203
  .ft-ripple .ft-ripple--effect,
204
204
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -211,119 +211,119 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
211
211
  top: ${this.originY}px;
212
212
  }
213
213
  </style>
214
- <div class="${Li(t)}">
214
+ <div class="${_i(t)}">
215
215
  <div class="ft-ripple--background"></div>
216
216
  <div class="ft-ripple--effect"></div>
217
217
  </div>
218
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Xi.elementDefinitions={},Xi.styles=Vi,Ji([s({type:Boolean})],Xi.prototype,"primary",void 0),Ji([s({type:Boolean})],Xi.prototype,"secondary",void 0),Ji([s({type:Boolean})],Xi.prototype,"unbounded",void 0),Ji([s({type:Boolean})],Xi.prototype,"activated",void 0),Ji([s({type:Boolean})],Xi.prototype,"selected",void 0),Ji([s({type:Boolean})],Xi.prototype,"disabled",void 0),Ji([a()],Xi.prototype,"hovered",void 0),Ji([a()],Xi.prototype,"focused",void 0),Ji([a()],Xi.prototype,"pressed",void 0),Ji([a()],Xi.prototype,"rippling",void 0),Ji([a()],Xi.prototype,"rippleSize",void 0),Ji([a()],Xi.prototype,"originX",void 0),Ji([a()],Xi.prototype,"originY",void 0),Ji([c(".ft-ripple")],Xi.prototype,"ripple",void 0),Ji([c(".ft-ripple--effect")],Xi.prototype,"rippleEffect",void 0),p("ft-ripple")(Xi);
218
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Qi.elementDefinitions={},Qi.styles=Xi,Gi([s({type:Boolean})],Qi.prototype,"primary",void 0),Gi([s({type:Boolean})],Qi.prototype,"secondary",void 0),Gi([s({type:Boolean})],Qi.prototype,"unbounded",void 0),Gi([s({type:Boolean})],Qi.prototype,"activated",void 0),Gi([s({type:Boolean})],Qi.prototype,"selected",void 0),Gi([s({type:Boolean})],Qi.prototype,"disabled",void 0),Gi([a()],Qi.prototype,"hovered",void 0),Gi([a()],Qi.prototype,"focused",void 0),Gi([a()],Qi.prototype,"pressed",void 0),Gi([a()],Qi.prototype,"rippling",void 0),Gi([a()],Qi.prototype,"rippleSize",void 0),Gi([a()],Qi.prototype,"originX",void 0),Gi([a()],Qi.prototype,"originY",void 0),Gi([c(".ft-ripple")],Qi.prototype,"ripple",void 0),Gi([c(".ft-ripple--effect")],Qi.prototype,"rippleEffect",void 0),p("ft-ripple")(Qi);
219
219
  /**
220
220
  * @license
221
221
  * Copyright 2020 Google LLC
222
222
  * SPDX-License-Identifier: BSD-3-Clause
223
223
  */
224
- const Gi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Gi)return null==t?void 0:t._$litStatic$},Yi=t=>({_$litStatic$:t,r:Gi}),tn=new Map,en=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=Qi(r));)l+=o+e[++c],u=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=tn.get(t))&&(s.raw=s,tn.set(t,e=s)),i=a}return t(e,...i)})(tt);var nn;!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"}(nn||(nn={}));const on=$t.extend("--ft-typography-font-family",St.titleFont),rn=$t.extend("--ft-typography-font-family",St.contentFont),sn={fontFamily:rn,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},an=$t.extend("--ft-typography-title-font-family",on),ln=$t.extend("--ft-typography-title-font-size",sn.fontSize,"20px"),cn=$t.extend("--ft-typography-title-font-weight",sn.fontWeight,"normal"),un=$t.extend("--ft-typography-title-letter-spacing",sn.letterSpacing,"0.15px"),fn=$t.extend("--ft-typography-title-line-height",sn.lineHeight,"1.2"),hn=$t.extend("--ft-typography-title-text-transform",sn.textTransform,"inherit"),pn=$t.extend("--ft-typography-title-dense-font-family",on),dn=$t.extend("--ft-typography-title-dense-font-size",sn.fontSize,"14px"),vn=$t.extend("--ft-typography-title-dense-font-weight",sn.fontWeight,"normal"),bn=$t.extend("--ft-typography-title-dense-letter-spacing",sn.letterSpacing,"0.105px"),yn=$t.extend("--ft-typography-title-dense-line-height",sn.lineHeight,"1.7"),gn=$t.extend("--ft-typography-title-dense-text-transform",sn.textTransform,"inherit"),mn=$t.extend("--ft-typography-subtitle1-font-family",rn),xn=$t.extend("--ft-typography-subtitle1-font-size",sn.fontSize,"16px"),wn=$t.extend("--ft-typography-subtitle1-font-weight",sn.fontWeight,"600"),$n=$t.extend("--ft-typography-subtitle1-letter-spacing",sn.letterSpacing,"0.144px"),On=$t.extend("--ft-typography-subtitle1-line-height",sn.lineHeight,"1.5"),Sn=$t.extend("--ft-typography-subtitle1-text-transform",sn.textTransform,"inherit"),En=$t.extend("--ft-typography-subtitle2-font-family",rn),kn=$t.extend("--ft-typography-subtitle2-font-size",sn.fontSize,"14px"),jn=$t.extend("--ft-typography-subtitle2-font-weight",sn.fontWeight,"normal"),Cn=$t.extend("--ft-typography-subtitle2-letter-spacing",sn.letterSpacing,"0.098px"),Nn=$t.extend("--ft-typography-subtitle2-line-height",sn.lineHeight,"1.7"),Rn=$t.extend("--ft-typography-subtitle2-text-transform",sn.textTransform,"inherit"),Mn=$t.extend("--ft-typography-body1-font-family",rn),An=$t.extend("--ft-typography-body1-font-size",sn.fontSize,"16px"),Un=$t.extend("--ft-typography-body1-font-weight",sn.fontWeight,"normal"),Pn=$t.extend("--ft-typography-body1-letter-spacing",sn.letterSpacing,"0.496px"),Fn=$t.extend("--ft-typography-body1-line-height",sn.lineHeight,"1.5"),In=$t.extend("--ft-typography-body1-text-transform",sn.textTransform,"inherit"),zn=$t.extend("--ft-typography-body2-font-family",rn),Tn=$t.extend("--ft-typography-body2-font-size",sn.fontSize,"14px"),Ln=$t.extend("--ft-typography-body2-font-weight",sn.fontWeight,"normal"),Bn=$t.extend("--ft-typography-body2-letter-spacing",sn.letterSpacing,"0.252px"),_n=$t.extend("--ft-typography-body2-line-height",sn.lineHeight,"1.4"),Dn=$t.extend("--ft-typography-body2-text-transform",sn.textTransform,"inherit"),Wn=$t.extend("--ft-typography-caption-font-family",rn),Kn=$t.extend("--ft-typography-caption-font-size",sn.fontSize,"12px"),Hn=$t.extend("--ft-typography-caption-font-weight",sn.fontWeight,"normal"),Zn=$t.extend("--ft-typography-caption-letter-spacing",sn.letterSpacing,"0.396px"),qn=$t.extend("--ft-typography-caption-line-height",sn.lineHeight,"1.33"),Vn=$t.extend("--ft-typography-caption-text-transform",sn.textTransform,"inherit"),Jn=$t.extend("--ft-typography-breadcrumb-font-family",rn),Xn=$t.extend("--ft-typography-breadcrumb-font-size",sn.fontSize,"10px"),Gn=$t.extend("--ft-typography-breadcrumb-font-weight",sn.fontWeight,"normal"),Qn=$t.extend("--ft-typography-breadcrumb-letter-spacing",sn.letterSpacing,"0.33px"),Yn=$t.extend("--ft-typography-breadcrumb-line-height",sn.lineHeight,"1.6"),to=$t.extend("--ft-typography-breadcrumb-text-transform",sn.textTransform,"inherit"),eo=$t.extend("--ft-typography-overline-font-family",rn),io=$t.extend("--ft-typography-overline-font-size",sn.fontSize,"10px"),no=$t.extend("--ft-typography-overline-font-weight",sn.fontWeight,"normal"),oo=$t.extend("--ft-typography-overline-letter-spacing",sn.letterSpacing,"1.5px"),ro=$t.extend("--ft-typography-overline-line-height",sn.lineHeight,"1.6"),so=$t.extend("--ft-typography-overline-text-transform",sn.textTransform,"uppercase"),ao={fontFamily:$t.extend("--ft-typography-button-font-family",rn),fontSize:$t.extend("--ft-typography-button-font-size",sn.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",sn.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",sn.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",sn.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",sn.textTransform,"uppercase")},lo=w`
224
+ const Yi=Symbol.for(""),tn=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void 0:t._$litStatic$},en=t=>({_$litStatic$:t,r:Yi}),nn=new Map,on=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=tn(r));)l+=o+e[++c],u=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=nn.get(t))&&(s.raw=s,nn.set(t,e=s)),i=a}return t(e,...i)})(tt);var rn;!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"}(rn||(rn={}));const sn=$t.extend("--ft-typography-font-family",St.titleFont),an=$t.extend("--ft-typography-font-family",St.contentFont),ln={fontFamily:an,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},cn=$t.extend("--ft-typography-title-font-family",sn),un=$t.extend("--ft-typography-title-font-size",ln.fontSize,"20px"),fn=$t.extend("--ft-typography-title-font-weight",ln.fontWeight,"normal"),hn=$t.extend("--ft-typography-title-letter-spacing",ln.letterSpacing,"0.15px"),pn=$t.extend("--ft-typography-title-line-height",ln.lineHeight,"1.2"),dn=$t.extend("--ft-typography-title-text-transform",ln.textTransform,"inherit"),vn=$t.extend("--ft-typography-title-dense-font-family",sn),bn=$t.extend("--ft-typography-title-dense-font-size",ln.fontSize,"14px"),yn=$t.extend("--ft-typography-title-dense-font-weight",ln.fontWeight,"normal"),gn=$t.extend("--ft-typography-title-dense-letter-spacing",ln.letterSpacing,"0.105px"),mn=$t.extend("--ft-typography-title-dense-line-height",ln.lineHeight,"1.7"),xn=$t.extend("--ft-typography-title-dense-text-transform",ln.textTransform,"inherit"),wn=$t.extend("--ft-typography-subtitle1-font-family",an),$n=$t.extend("--ft-typography-subtitle1-font-size",ln.fontSize,"16px"),On=$t.extend("--ft-typography-subtitle1-font-weight",ln.fontWeight,"600"),Sn=$t.extend("--ft-typography-subtitle1-letter-spacing",ln.letterSpacing,"0.144px"),En=$t.extend("--ft-typography-subtitle1-line-height",ln.lineHeight,"1.5"),kn=$t.extend("--ft-typography-subtitle1-text-transform",ln.textTransform,"inherit"),jn=$t.extend("--ft-typography-subtitle2-font-family",an),Cn=$t.extend("--ft-typography-subtitle2-font-size",ln.fontSize,"14px"),Nn=$t.extend("--ft-typography-subtitle2-font-weight",ln.fontWeight,"normal"),Rn=$t.extend("--ft-typography-subtitle2-letter-spacing",ln.letterSpacing,"0.098px"),Mn=$t.extend("--ft-typography-subtitle2-line-height",ln.lineHeight,"1.7"),An=$t.extend("--ft-typography-subtitle2-text-transform",ln.textTransform,"inherit"),Un=$t.extend("--ft-typography-body1-font-family",an),Pn=$t.extend("--ft-typography-body1-font-size",ln.fontSize,"16px"),Fn=$t.extend("--ft-typography-body1-font-weight",ln.fontWeight,"normal"),In=$t.extend("--ft-typography-body1-letter-spacing",ln.letterSpacing,"0.496px"),zn=$t.extend("--ft-typography-body1-line-height",ln.lineHeight,"1.5"),Tn=$t.extend("--ft-typography-body1-text-transform",ln.textTransform,"inherit"),Ln=$t.extend("--ft-typography-body2-font-family",an),Bn=$t.extend("--ft-typography-body2-font-size",ln.fontSize,"14px"),_n=$t.extend("--ft-typography-body2-font-weight",ln.fontWeight,"normal"),Dn=$t.extend("--ft-typography-body2-letter-spacing",ln.letterSpacing,"0.252px"),Wn=$t.extend("--ft-typography-body2-line-height",ln.lineHeight,"1.4"),Kn=$t.extend("--ft-typography-body2-text-transform",ln.textTransform,"inherit"),Hn=$t.extend("--ft-typography-caption-font-family",an),Zn=$t.extend("--ft-typography-caption-font-size",ln.fontSize,"12px"),qn=$t.extend("--ft-typography-caption-font-weight",ln.fontWeight,"normal"),Vn=$t.extend("--ft-typography-caption-letter-spacing",ln.letterSpacing,"0.396px"),Jn=$t.extend("--ft-typography-caption-line-height",ln.lineHeight,"1.33"),Xn=$t.extend("--ft-typography-caption-text-transform",ln.textTransform,"inherit"),Gn=$t.extend("--ft-typography-breadcrumb-font-family",an),Qn=$t.extend("--ft-typography-breadcrumb-font-size",ln.fontSize,"10px"),Yn=$t.extend("--ft-typography-breadcrumb-font-weight",ln.fontWeight,"normal"),to=$t.extend("--ft-typography-breadcrumb-letter-spacing",ln.letterSpacing,"0.33px"),eo=$t.extend("--ft-typography-breadcrumb-line-height",ln.lineHeight,"1.6"),io=$t.extend("--ft-typography-breadcrumb-text-transform",ln.textTransform,"inherit"),no=$t.extend("--ft-typography-overline-font-family",an),oo=$t.extend("--ft-typography-overline-font-size",ln.fontSize,"10px"),ro=$t.extend("--ft-typography-overline-font-weight",ln.fontWeight,"normal"),so=$t.extend("--ft-typography-overline-letter-spacing",ln.letterSpacing,"1.5px"),ao=$t.extend("--ft-typography-overline-line-height",ln.lineHeight,"1.6"),lo=$t.extend("--ft-typography-overline-text-transform",ln.textTransform,"uppercase"),co={fontFamily:$t.extend("--ft-typography-button-font-family",an),fontSize:$t.extend("--ft-typography-button-font-size",ln.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",ln.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",ln.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",ln.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",ln.textTransform,"uppercase")},uo=w`
225
225
  .ft-typography--title {
226
- font-family: ${an};
227
- font-size: ${ln};
228
- font-weight: ${cn};
229
- letter-spacing: ${un};
230
- line-height: ${fn};
231
- text-transform: ${hn};
232
- }
233
- `,co=w`
234
- .ft-typography--title-dense {
235
- font-family: ${pn};
236
- font-size: ${dn};
237
- font-weight: ${vn};
238
- letter-spacing: ${bn};
239
- line-height: ${yn};
240
- text-transform: ${gn};
241
- }
242
- `,uo=w`
243
- .ft-typography--subtitle1 {
244
- font-family: ${mn};
245
- font-size: ${xn};
246
- font-weight: ${wn};
247
- letter-spacing: ${$n};
248
- line-height: ${On};
249
- text-transform: ${Sn};
226
+ font-family: ${cn};
227
+ font-size: ${un};
228
+ font-weight: ${fn};
229
+ letter-spacing: ${hn};
230
+ line-height: ${pn};
231
+ text-transform: ${dn};
250
232
  }
251
233
  `,fo=w`
252
- .ft-typography--subtitle2 {
253
- font-family: ${En};
254
- font-size: ${kn};
255
- font-weight: ${jn};
256
- letter-spacing: ${Cn};
257
- line-height: ${Nn};
258
- text-transform: ${Rn};
234
+ .ft-typography--title-dense {
235
+ font-family: ${vn};
236
+ font-size: ${bn};
237
+ font-weight: ${yn};
238
+ letter-spacing: ${gn};
239
+ line-height: ${mn};
240
+ text-transform: ${xn};
259
241
  }
260
-
261
242
  `,ho=w`
262
- .ft-typography--body1 {
263
- font-family: ${Mn};
264
- font-size: ${An};
265
- font-weight: ${Un};
266
- letter-spacing: ${Pn};
267
- line-height: ${Fn};
268
- text-transform: ${In};
243
+ .ft-typography--subtitle1 {
244
+ font-family: ${wn};
245
+ font-size: ${$n};
246
+ font-weight: ${On};
247
+ letter-spacing: ${Sn};
248
+ line-height: ${En};
249
+ text-transform: ${kn};
269
250
  }
270
251
  `,po=w`
271
- .ft-typography--body2 {
272
- font-family: ${zn};
273
- font-size: ${Tn};
274
- font-weight: ${Ln};
275
- letter-spacing: ${Bn};
276
- line-height: ${_n};
277
- text-transform: ${Dn};
252
+ .ft-typography--subtitle2 {
253
+ font-family: ${jn};
254
+ font-size: ${Cn};
255
+ font-weight: ${Nn};
256
+ letter-spacing: ${Rn};
257
+ line-height: ${Mn};
258
+ text-transform: ${An};
278
259
  }
260
+
279
261
  `,vo=w`
280
- .ft-typography--caption {
281
- font-family: ${Wn};
282
- font-size: ${Kn};
283
- font-weight: ${Hn};
284
- letter-spacing: ${Zn};
285
- line-height: ${qn};
286
- text-transform: ${Vn};
262
+ .ft-typography--body1 {
263
+ font-family: ${Un};
264
+ font-size: ${Pn};
265
+ font-weight: ${Fn};
266
+ letter-spacing: ${In};
267
+ line-height: ${zn};
268
+ text-transform: ${Tn};
287
269
  }
288
270
  `,bo=w`
289
- .ft-typography--breadcrumb {
290
- font-family: ${Jn};
291
- font-size: ${Xn};
292
- font-weight: ${Gn};
293
- letter-spacing: ${Qn};
294
- line-height: ${Yn};
295
- text-transform: ${to};
271
+ .ft-typography--body2 {
272
+ font-family: ${Ln};
273
+ font-size: ${Bn};
274
+ font-weight: ${_n};
275
+ letter-spacing: ${Dn};
276
+ line-height: ${Wn};
277
+ text-transform: ${Kn};
296
278
  }
297
279
  `,yo=w`
298
- .ft-typography--overline {
299
- font-family: ${eo};
300
- font-size: ${io};
301
- font-weight: ${no};
302
- letter-spacing: ${oo};
303
- line-height: ${ro};
304
- text-transform: ${so};
280
+ .ft-typography--caption {
281
+ font-family: ${Hn};
282
+ font-size: ${Zn};
283
+ font-weight: ${qn};
284
+ letter-spacing: ${Vn};
285
+ line-height: ${Jn};
286
+ text-transform: ${Xn};
305
287
  }
306
288
  `,go=w`
307
- .ft-typography--button {
308
- font-family: ${ao.fontFamily};
309
- font-size: ${ao.fontSize};
310
- font-weight: ${ao.fontWeight};
311
- letter-spacing: ${ao.letterSpacing};
312
- line-height: ${ao.lineHeight};
313
- text-transform: ${ao.textTransform};
289
+ .ft-typography--breadcrumb {
290
+ font-family: ${Gn};
291
+ font-size: ${Qn};
292
+ font-weight: ${Yn};
293
+ letter-spacing: ${to};
294
+ line-height: ${eo};
295
+ text-transform: ${io};
314
296
  }
315
297
  `,mo=w`
298
+ .ft-typography--overline {
299
+ font-family: ${no};
300
+ font-size: ${oo};
301
+ font-weight: ${ro};
302
+ letter-spacing: ${so};
303
+ line-height: ${ao};
304
+ text-transform: ${lo};
305
+ }
306
+ `,xo=w`
307
+ .ft-typography--button {
308
+ font-family: ${co.fontFamily};
309
+ font-size: ${co.fontSize};
310
+ font-weight: ${co.fontWeight};
311
+ letter-spacing: ${co.letterSpacing};
312
+ line-height: ${co.lineHeight};
313
+ text-transform: ${co.textTransform};
314
+ }
315
+ `,wo=w`
316
316
  .ft-typography {
317
317
  vertical-align: inherit;
318
318
  }
319
- `;var xo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class wo extends Mt{constructor(){super(...arguments),this.variant=nn.body1}render(){return this.element?en`
320
- <${Yi(this.element)}
319
+ `;var $o=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Oo extends Mt{constructor(){super(...arguments),this.variant=rn.body1}render(){return this.element?on`
320
+ <${en(this.element)}
321
321
  class="ft-typography ft-typography--${this.variant}">
322
322
  <slot></slot>
323
- </${Yi(this.element)}>
324
- `:en`
323
+ </${en(this.element)}>
324
+ `:on`
325
325
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
326
- `}}wo.styles=[lo,co,uo,fo,ho,po,vo,bo,yo,go,mo],xo([s()],wo.prototype,"element",void 0),xo([s()],wo.prototype,"variant",void 0),p("ft-typography")(wo);const $o={distance:$t.create("--ft-tooltip-distance","SIZE","4px"),color:$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:$t.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:$t.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:$t.external(St.borderRadiusS,"Design system"),maxWidth:$t.create("--ft-tooltip-max-width","SIZE","150px")},Oo=w`
326
+ `}}Oo.styles=[uo,fo,ho,po,vo,bo,yo,go,mo,xo,wo],$o([s()],Oo.prototype,"element",void 0),$o([s()],Oo.prototype,"variant",void 0),p("ft-typography")(Oo);const So={distance:$t.create("--ft-tooltip-distance","SIZE","4px"),color:$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:$t.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:$t.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:$t.external(St.borderRadiusS,"Design system"),maxWidth:$t.create("--ft-tooltip-max-width","SIZE","150px")},Eo=w`
327
327
  .ft-tooltip--container {
328
328
  display: block;
329
329
  position: relative;
@@ -339,23 +339,23 @@ const Gi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Gi)return null==t?void
339
339
  box-sizing: border-box;
340
340
  overflow: hidden;
341
341
  width: max-content;
342
- max-width: ${$o.maxWidth};
342
+ max-width: ${So.maxWidth};
343
343
  text-align: center;
344
- padding: ${$o.distance};
345
- z-index: ${$o.zIndex};
344
+ padding: ${So.distance};
345
+ z-index: ${So.zIndex};
346
346
  }
347
347
 
348
348
  .ft-tooltip--content {
349
349
  padding: 4px 8px;
350
- border-radius: ${$o.borderRadiusS};
351
- background-color: ${$o.backgroundColor};
352
- color: ${$o.color};
350
+ border-radius: ${So.borderRadiusS};
351
+ background-color: ${So.backgroundColor};
352
+ color: ${So.color};
353
353
  top: -500px;
354
354
  left: -500px;
355
355
  position: relative;
356
356
  word-break: break-word;
357
357
  }
358
- `;var So=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Eo extends Mt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return tt`
358
+ `;var ko=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class jo extends Mt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return tt`
359
359
  <div part="container"
360
360
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
361
361
  @mouseenter=${this.onHover}
@@ -373,13 +373,13 @@ const Gi=Symbol.for(""),Qi=t=>{if((null==t?void 0:t.r)===Gi)return null==t?void
373
373
  </div>
374
374
  </div>
375
375
  </div>
376
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,n=(e.width-this.tooltip.clientWidth)/2;let o=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,o=n;break;case"bottom":r=e.height,o=n;break;case"left":r=i,o=-this.tooltip.clientWidth;break;case"right":r=i,o=e.width}e.left+o+this.tooltip.clientWidth>window.innerWidth&&(o=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+o<0&&(o=4-e.left);const s=this.tooltip.style;s.left=o+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${$o.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Eo.elementDefinitions={"ft-typography":wo},Eo.styles=Oo,So([s()],Eo.prototype,"text",void 0),So([s({type:Boolean})],Eo.prototype,"manual",void 0),So([s({type:Boolean})],Eo.prototype,"inline",void 0),So([s({type:Number})],Eo.prototype,"delay",void 0),So([s()],Eo.prototype,"position",void 0),So([
376
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,n=(e.width-this.tooltip.clientWidth)/2;let o=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,o=n;break;case"bottom":r=e.height,o=n;break;case"left":r=i,o=-this.tooltip.clientWidth;break;case"right":r=i,o=e.width}e.left+o+this.tooltip.clientWidth>window.innerWidth&&(o=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+o<0&&(o=4-e.left);const s=this.tooltip.style;s.left=o+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${So.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}jo.elementDefinitions={"ft-typography":Oo},jo.styles=Eo,ko([s()],jo.prototype,"text",void 0),ko([s({type:Boolean})],jo.prototype,"manual",void 0),ko([s({type:Boolean})],jo.prototype,"inline",void 0),ko([s({type:Number})],jo.prototype,"delay",void 0),ko([s()],jo.prototype,"position",void 0),ko([
377
377
  /**
378
378
  * @license
379
379
  * Copyright 2017 Google LLC
380
380
  * SPDX-License-Identifier: BSD-3-Clause
381
381
  */
382
- function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?f(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Eo.prototype,"slotNodes",void 0),So([c(".ft-tooltip--container")],Eo.prototype,"container",void 0),So([c("slot")],Eo.prototype,"target",void 0),So([c(".ft-tooltip")],Eo.prototype,"tooltip",void 0),So([c(".ft-tooltip--content")],Eo.prototype,"tooltipContent",void 0),So([a()],Eo.prototype,"visible",void 0),p("ft-tooltip")(Eo);const ko={color:$t.extend("--ft-loader-color",St.colorPrimary),size:$t.create("--ft-loader-size","SIZE","80px")},jo=w`
382
+ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const o="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(o),s=null!=r?f(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],jo.prototype,"slotNodes",void 0),ko([c(".ft-tooltip--container")],jo.prototype,"container",void 0),ko([c("slot")],jo.prototype,"target",void 0),ko([c(".ft-tooltip")],jo.prototype,"tooltip",void 0),ko([c(".ft-tooltip--content")],jo.prototype,"tooltipContent",void 0),ko([a()],jo.prototype,"visible",void 0),p("ft-tooltip")(jo);const Co={color:$t.extend("--ft-loader-color",St.colorPrimary),size:$t.create("--ft-loader-size","SIZE","80px")},No=w`
383
383
  :host {
384
384
  line-height: 0;
385
385
  }
@@ -388,8 +388,8 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
388
388
  display: inline-block;
389
389
  position: relative;
390
390
 
391
- width: ${ko.size};
392
- height: ${ko.size};
391
+ width: ${Co.size};
392
+ height: ${Co.size};
393
393
  }
394
394
 
395
395
  .ft-loader div {
@@ -398,7 +398,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
398
398
  width: 25%;
399
399
  height: 25%;
400
400
  border-radius: 50%;
401
- background: ${ko.color};
401
+ background: ${Co.color};
402
402
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
403
403
  }
404
404
 
@@ -445,23 +445,23 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
445
445
  transform: translate(0, 0);
446
446
  }
447
447
  100% {
448
- transform: translate(calc(0.35 * ${ko.size}), 0);
448
+ transform: translate(calc(0.35 * ${Co.size}), 0);
449
449
  }
450
450
  }
451
- `;class Co extends Mt{render(){return tt`
451
+ `;class Ro extends Mt{render(){return tt`
452
452
  <div class="ft-loader">
453
453
  <div></div>
454
454
  <div></div>
455
455
  <div></div>
456
456
  <div></div>
457
457
  </div>
458
- `}}Co.styles=jo,p("ft-loader")(Co);
458
+ `}}Ro.styles=No,p("ft-loader")(Ro);
459
459
  /**
460
460
  * @license
461
461
  * Copyright 2017 Google LLC
462
462
  * SPDX-License-Identifier: BSD-3-Clause
463
463
  */
464
- class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===it||null==t)return this.ft=void 0,this.et=t;if(t===et)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}No.directiveName="unsafeHTML",No.resultType=1;const Ro=zi(No);var Mo,Ao;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Mo||(Mo={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ao||(Ao={}));const Uo=new Map([...["abw"].map((t=>[t,Ao.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ao.AUDIO])),...["avi"].map((t=>[t,Ao.AVI])),...["chm","xhs"].map((t=>[t,Ao.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ao.CODE])),...["csv"].map((t=>[t,Ao.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ao.DITA])),...["epub"].map((t=>[t,Ao.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ao.EXCEL])),...["flac"].map((t=>[t,Ao.FLAC])),...["gif"].map((t=>[t,Ao.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ao.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ao.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ao.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ao.JPEG])),...["json"].map((t=>[t,Ao.JSON])),...["m4a","m4p"].map((t=>[t,Ao.M4A])),...["mov","qt"].map((t=>[t,Ao.MOV])),...["mp3"].map((t=>[t,Ao.MP3])),...["mp4","m4v"].map((t=>[t,Ao.MP4])),...["ogg","oga"].map((t=>[t,Ao.OGG])),...["pdf","ps"].map((t=>[t,Ao.PDF])),...["png"].map((t=>[t,Ao.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ao.POWERPOINT])),...["rar"].map((t=>[t,Ao.RAR])),...["stp"].map((t=>[t,Ao.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ao.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ao.VIDEO])),...["wav"].map((t=>[t,Ao.WAV])),...["wma"].map((t=>[t,Ao.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ao.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ao.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ao.YAML])),...["zip"].map((t=>[t,Ao.ZIP]))]),Po=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Fo={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},Io=w`
464
+ class Mo extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Ti)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===it||null==t)return this.ft=void 0,this.et=t;if(t===et)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Mo.directiveName="unsafeHTML",Mo.resultType=1;const Ao=Li(Mo);var Uo,Po;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Uo||(Uo={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Po||(Po={}));const Fo=new Map([...["abw"].map((t=>[t,Po.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Po.AUDIO])),...["avi"].map((t=>[t,Po.AVI])),...["chm","xhs"].map((t=>[t,Po.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Po.CODE])),...["csv"].map((t=>[t,Po.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Po.DITA])),...["epub"].map((t=>[t,Po.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Po.EXCEL])),...["flac"].map((t=>[t,Po.FLAC])),...["gif"].map((t=>[t,Po.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Po.GZIP])),...["html","htm","xhtml"].map((t=>[t,Po.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Po.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Po.JPEG])),...["json"].map((t=>[t,Po.JSON])),...["m4a","m4p"].map((t=>[t,Po.M4A])),...["mov","qt"].map((t=>[t,Po.MOV])),...["mp3"].map((t=>[t,Po.MP3])),...["mp4","m4v"].map((t=>[t,Po.MP4])),...["ogg","oga"].map((t=>[t,Po.OGG])),...["pdf","ps"].map((t=>[t,Po.PDF])),...["png"].map((t=>[t,Po.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Po.POWERPOINT])),...["rar"].map((t=>[t,Po.RAR])),...["stp"].map((t=>[t,Po.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Po.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Po.VIDEO])),...["wav"].map((t=>[t,Po.WAV])),...["wma"].map((t=>[t,Po.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Po.WORD])),...["xml","xsl","rdf"].map((t=>[t,Po.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Po.YAML])),...["zip"].map((t=>[t,Po.ZIP]))]),Io=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const zo={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},To=w`
465
465
  :host, i.ft-icon {
466
466
  display: inline-flex;
467
467
  align-items: center;
@@ -470,14 +470,14 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
470
470
  }
471
471
 
472
472
  :host {
473
- width: ${Fo.size};
474
- height: ${Fo.size};
473
+ width: ${zo.size};
474
+ height: ${zo.size};
475
475
  }
476
476
 
477
477
  i.ft-icon {
478
478
  width: 100%;
479
479
  height: 100%;
480
- font-size: ${Fo.size};
480
+ font-size: ${zo.size};
481
481
  line-height: 1;
482
482
  font-weight: normal;
483
483
  text-transform: none;
@@ -488,33 +488,33 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
488
488
  text-rendering: auto;
489
489
  -webkit-font-smoothing: antialiased;
490
490
  -moz-osx-font-smoothing: grayscale;
491
- vertical-align: ${Fo.verticalAlign};
491
+ vertical-align: ${zo.verticalAlign};
492
492
  }
493
493
 
494
494
  i.ft-icon.ft-icon--fluid-topics {
495
- font-family: ${Fo.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
495
+ font-family: ${zo.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
496
496
 
497
497
  /* Ugly fix because font is broken */
498
- font-size: calc(0.75 * ${Fo.size});
499
- line-height: ${Fo.size};
498
+ font-size: calc(0.75 * ${zo.size});
499
+ line-height: ${zo.size};
500
500
  position: relative;
501
501
  top: -4%;
502
502
  justify-content: center;
503
503
  }
504
504
 
505
505
  .ft-icon--file-format {
506
- font-family: ${Fo.fileFormatFontFamily}, ft-mime, sans-serif;
506
+ font-family: ${zo.fileFormatFontFamily}, ft-mime, sans-serif;
507
507
  }
508
508
 
509
509
  .ft-icon--material {
510
- font-family: ${Fo.materialFontFamily}, "Material Icons", sans-serif;
510
+ font-family: ${zo.materialFontFamily}, "Material Icons", sans-serif;
511
511
  }
512
- `;var zo;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(zo||(zo={}));var To=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Lo extends Mt{constructor(){super(...arguments),this.resolvedIcon=it}render(){const t=this.variant&&Object.values(zo).includes(this.variant)?this.variant:zo.fluid_topics,e=t!==zo.material||!!this.value;return tt`
512
+ `;var Lo;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Lo||(Lo={}));var Bo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class _o extends Mt{constructor(){super(...arguments),this.resolvedIcon=it}render(){const t=this.variant&&Object.values(Lo).includes(this.variant)?this.variant:Lo.fluid_topics,e=t!==Lo.material||!!this.value;return tt`
513
513
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
514
- ${Ro(this.resolvedIcon)}
514
+ ${Ao(this.resolvedIcon)}
515
515
  <slot ?hidden=${e}></slot>
516
516
  </i>
517
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case zo.file_format:this.resolvedIcon=null!==(t=Ao[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case zo.material:this.resolvedIcon=this.value||it;break;default:this.resolvedIcon=null!==(e=Mo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Lo.elementDefinitions={},Lo.styles=Io,To([s()],Lo.prototype,"variant",void 0),To([s()],Lo.prototype,"value",void 0),To([a()],Lo.prototype,"resolvedIcon",void 0),To([c("slot")],Lo.prototype,"slottedContent",void 0),p("ft-icon")(Lo);const Bo=$t.extend("--ft-button-color",St.colorPrimary),_o={backgroundColor:$t.extend("--ft-button-background-color",St.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",St.borderRadiusL),color:Bo,fontSize:$t.extend("--ft-button-font-size",ao.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",Bo),verticalPadding:$t.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:$t.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:$t.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:$t.external(St.colorOpacityDisabled,"Design system")},Do=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",St.colorOnPrimary)),Wo={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",St.colorPrimary)),color:Do,rippleColor:$t.extend("--ft-button-primary-ripple-color",Do)},Ko=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",St.borderRadiusM)),Ho=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),Zo=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),qo=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),Vo=[w`
517
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Lo.file_format:this.resolvedIcon=null!==(t=Po[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Lo.material:this.resolvedIcon=this.value||it;break;default:this.resolvedIcon=null!==(e=Uo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}_o.elementDefinitions={},_o.styles=To,Bo([s()],_o.prototype,"variant",void 0),Bo([s()],_o.prototype,"value",void 0),Bo([a()],_o.prototype,"resolvedIcon",void 0),Bo([c("slot")],_o.prototype,"slottedContent",void 0),p("ft-icon")(_o);const Do=$t.extend("--ft-button-color",St.colorPrimary),Wo={backgroundColor:$t.extend("--ft-button-background-color",St.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",St.borderRadiusL),color:Do,fontSize:$t.extend("--ft-button-font-size",co.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",Do),verticalPadding:$t.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:$t.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:$t.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:$t.external(St.colorOpacityDisabled,"Design system")},Ko=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",St.colorOnPrimary)),Ho={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",St.colorPrimary)),color:Ko,rippleColor:$t.extend("--ft-button-primary-ripple-color",Ko)},Zo=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",St.borderRadiusM)),qo=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),Vo=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Jo=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),Xo=[w`
518
518
  :host {
519
519
  display: inline-block;
520
520
  max-width: 100%;
@@ -525,7 +525,7 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
525
525
  box-shadow: 0px 0px 0px transparent;
526
526
  border: 0px solid transparent;
527
527
  text-shadow: 0px 0px 0px transparent;
528
- font-size: ${_o.fontSize};
528
+ font-size: ${Wo.fontSize};
529
529
  }
530
530
 
531
531
  button:hover {
@@ -554,31 +554,31 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
554
554
  border: none;
555
555
  pointer-events: auto;
556
556
 
557
- --ft-button-internal-line-height: max(calc(${_o.fontSize} + 2px), ${_o.iconSize});
558
- --ft-button-internal-color: ${_o.color};
559
- ${Ot(Fo.size,_o.iconSize)};
560
- ${Ot(_i.color,_o.rippleColor)};
557
+ --ft-button-internal-line-height: max(calc(${Wo.fontSize} + 2px), ${Wo.iconSize});
558
+ --ft-button-internal-color: ${Wo.color};
559
+ ${Ot(zo.size,Wo.iconSize)};
560
+ ${Ot(Wi.color,Wo.rippleColor)};
561
561
 
562
- border-radius: ${_o.borderRadius};
563
- padding: ${_o.verticalPadding} ${_o.horizontalPadding};
564
- background-color: ${_o.backgroundColor};
562
+ border-radius: ${Wo.borderRadius};
563
+ padding: ${Wo.verticalPadding} ${Wo.horizontalPadding};
564
+ background-color: ${Wo.backgroundColor};
565
565
  color: var(--ft-button-internal-color);
566
566
  -webkit-mask-image: radial-gradient(white, black);
567
567
  }
568
568
 
569
569
  .ft-button.ft-button--outlined {
570
570
  border: 1px solid var(--ft-button-internal-color);
571
- padding: calc(${_o.verticalPadding} - 1px) calc(${_o.horizontalPadding} - 1px);
571
+ padding: calc(${Wo.verticalPadding} - 1px) calc(${Wo.horizontalPadding} - 1px);
572
572
  }
573
573
 
574
574
  .ft-button.ft-button--dense {
575
- padding: ${Ho} ${Zo};
576
- border-radius: ${Ko};
577
- gap: ${qo};
575
+ padding: ${qo} ${Vo};
576
+ border-radius: ${Zo};
577
+ gap: ${Jo};
578
578
  }
579
579
 
580
580
  .ft-button.ft-button--dense.ft-button--outlined {
581
- padding: calc(${Ho} - 1px) calc(${Zo} - 1px);
581
+ padding: calc(${qo} - 1px) calc(${Vo} - 1px);
582
582
  }
583
583
 
584
584
  .ft-button:not([disabled]):hover {
@@ -586,22 +586,22 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
586
586
  }
587
587
 
588
588
  .ft-button--round {
589
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${_o.verticalPadding});
589
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Wo.verticalPadding});
590
590
  }
591
591
 
592
592
  .ft-button--round.ft-button--dense {
593
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ho});
593
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${qo});
594
594
  }
595
595
 
596
596
  .ft-button[disabled] {
597
597
  filter: grayscale(1);
598
- opacity: ${_o.opacityDisabled};
598
+ opacity: ${Wo.opacityDisabled};
599
599
  }
600
600
 
601
601
  .ft-button.ft-button--primary {
602
- background-color: ${Wo.backgroundColor};
603
- --ft-button-internal-color: ${Wo.color};
604
- ${Ot(_i.color,Wo.rippleColor)};
602
+ background-color: ${Ho.backgroundColor};
603
+ --ft-button-internal-color: ${Ho.color};
604
+ ${Ot(Wi.color,Ho.rippleColor)};
605
605
  }
606
606
 
607
607
  .ft-button:focus {
@@ -614,13 +614,13 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
614
614
  white-space: nowrap;
615
615
  text-overflow: ellipsis;
616
616
  display: block;
617
- margin: 0 ${_o.iconPadding};
618
- ${Ot(ao.fontSize,"1em")};
619
- ${Ot(ao.lineHeight,"var(--ft-button-internal-line-height)")};
617
+ margin: 0 ${Wo.iconPadding};
618
+ ${Ot(co.fontSize,"1em")};
619
+ ${Ot(co.lineHeight,"var(--ft-button-internal-line-height)")};
620
620
  }
621
621
 
622
622
  .ft-button--dense .ft-button--label {
623
- margin: 0 ${qo};
623
+ margin: 0 ${Jo};
624
624
  }
625
625
 
626
626
  .ft-button--label[hidden] {
@@ -633,13 +633,13 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
633
633
  }
634
634
 
635
635
  .ft-button--label[hidden] + ft-icon {
636
- margin: 0 calc(${_o.horizontalPadding} * -1);
637
- padding: 0 ${_o.verticalPadding};
636
+ margin: 0 calc(${Wo.horizontalPadding} * -1);
637
+ padding: 0 ${Wo.verticalPadding};
638
638
  }
639
639
 
640
640
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
641
- margin: 0 calc(${Zo} * -1);
642
- padding: 0 ${Ho};
641
+ margin: 0 calc(${Vo} * -1);
642
+ padding: 0 ${qo};
643
643
  }
644
644
 
645
645
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -648,19 +648,19 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
648
648
  }
649
649
 
650
650
  ft-loader {
651
- ${Ot(ko.size,_o.iconSize)};
652
- ${Ot(ko.color,"var(--ft-button-internal-color)")};
651
+ ${Ot(Co.size,Wo.iconSize)};
652
+ ${Ot(Co.color,"var(--ft-button-internal-color)")};
653
653
  }
654
- `,At];var Jo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Xo extends Mt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(tt`
654
+ `,At];var Go=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Qo extends Mt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(tt`
655
655
  <button part="button"
656
- class="${Li(t)}"
656
+ class="${_i(t)}"
657
657
  aria-label="${this.getLabel()}"
658
658
  ?disabled=${this.isDisabled()}>
659
659
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
660
660
  <ft-typography part="label"
661
661
  variant="button"
662
662
  element="span"
663
- class="ft-button--label ${Pi?"ft-safari-ellipsis-fix":""}"
663
+ class="ft-button--label ${Ii?"ft-safari-ellipsis-fix":""}"
664
664
  ?hidden=${!this.hasTextContent()}>
665
665
  <slot @slotchange=${this.onSlotchange}></slot>
666
666
  </ft-typography>
@@ -674,7 +674,7 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
674
674
  </ft-tooltip>
675
675
  `:t}resolveIcon(){return this.loading?tt`
676
676
  <ft-loader part="loader icon"></ft-loader> `:this.icon?tt`
677
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Xo.elementDefinitions={"ft-ripple":Xi,"ft-tooltip":Eo,"ft-typography":wo,"ft-icon":Lo,"ft-loader":Co},Xo.styles=[Pt,Vo],Jo([s({type:String,reflect:!0})],Xo.prototype,"role",void 0),Jo([s({type:Boolean})],Xo.prototype,"primary",void 0),Jo([s({type:Boolean})],Xo.prototype,"outlined",void 0),Jo([s({type:Boolean})],Xo.prototype,"disabled",void 0),Jo([s({type:Boolean})],Xo.prototype,"dense",void 0),Jo([s({type:Boolean})],Xo.prototype,"round",void 0),Jo([s()],Xo.prototype,"label",void 0),Jo([s()],Xo.prototype,"icon",void 0),Jo([s()],Xo.prototype,"iconVariant",void 0),Jo([s({type:Boolean})],Xo.prototype,"trailingIcon",void 0),Jo([s({type:Boolean})],Xo.prototype,"loading",void 0),Jo([s()],Xo.prototype,"tooltipPosition",void 0),Jo([s({type:Boolean})],Xo.prototype,"hideTooltip",void 0),Jo([s({type:Boolean})],Xo.prototype,"forceTooltip",void 0),Jo([c(".ft-button")],Xo.prototype,"button",void 0),Jo([c(".ft-button--label slot")],Xo.prototype,"slottedContent",void 0),p("ft-button")(Xo);const Go={height:$t.create("--ft-search-input-height","SIZE","38px"),borderRadius:$t.extend("--ft-search-input-border-radius",St.borderRadiusS),desktopFiltersHeight:$t.create("--ft-search-input-desktop-filters-height","SIZE","350px"),floatingZIndex:$t.create("--ft-search-input-floating-components-z-index","NUMBER","3"),colorSurface:$t.external(St.colorSurface,"Design system"),colorOnSurface:$t.external(St.colorOnSurface,"Design system"),colorOnSurfaceMedium:$t.external(St.colorOnSurfaceMedium,"Design system"),colorOutline:$t.external(St.colorOutline,"Design system"),colorPrimary:$t.external(St.colorPrimary,"Design system"),elevation02:$t.external(St.elevation02,"Design system"),buttonColor:$t.external(_o.color,"Button"),buttonRippleColor:$t.external(_o.rippleColor,"Button")},Qo=w`
677
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Qo.elementDefinitions={"ft-ripple":Qi,"ft-tooltip":jo,"ft-typography":Oo,"ft-icon":_o,"ft-loader":Ro},Qo.styles=[Pt,Xo],Go([s({type:String,reflect:!0})],Qo.prototype,"role",void 0),Go([s({type:Boolean})],Qo.prototype,"primary",void 0),Go([s({type:Boolean})],Qo.prototype,"outlined",void 0),Go([s({type:Boolean})],Qo.prototype,"disabled",void 0),Go([s({type:Boolean})],Qo.prototype,"dense",void 0),Go([s({type:Boolean})],Qo.prototype,"round",void 0),Go([s()],Qo.prototype,"label",void 0),Go([s()],Qo.prototype,"icon",void 0),Go([s()],Qo.prototype,"iconVariant",void 0),Go([s({type:Boolean})],Qo.prototype,"trailingIcon",void 0),Go([s({type:Boolean})],Qo.prototype,"loading",void 0),Go([s()],Qo.prototype,"tooltipPosition",void 0),Go([s({type:Boolean})],Qo.prototype,"hideTooltip",void 0),Go([s({type:Boolean})],Qo.prototype,"forceTooltip",void 0),Go([c(".ft-button")],Qo.prototype,"button",void 0),Go([c(".ft-button--label slot")],Qo.prototype,"slottedContent",void 0),p("ft-button")(Qo);const Yo={height:$t.create("--ft-search-input-height","SIZE","38px"),borderRadius:$t.extend("--ft-search-input-border-radius",St.borderRadiusS),desktopFiltersHeight:$t.create("--ft-search-input-desktop-filters-height","SIZE","350px"),floatingZIndex:$t.create("--ft-search-input-floating-components-z-index","NUMBER","3"),colorSurface:$t.external(St.colorSurface,"Design system"),colorOnSurface:$t.external(St.colorOnSurface,"Design system"),colorOnSurfaceMedium:$t.external(St.colorOnSurfaceMedium,"Design system"),colorOutline:$t.external(St.colorOutline,"Design system"),colorPrimary:$t.external(St.colorPrimary,"Design system"),elevation02:$t.external(St.elevation02,"Design system"),buttonColor:$t.external(Wo.color,"Button"),buttonRippleColor:$t.external(Wo.rippleColor,"Button")},tr=w`
678
678
  * {
679
679
  box-sizing: border-box;
680
680
  }
@@ -684,11 +684,11 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
684
684
  display: flex;
685
685
  flex-direction: row;
686
686
  align-items: center;
687
- height: ${Go.height};
687
+ height: ${Yo.height};
688
688
 
689
- background: ${Go.colorSurface};
690
- border: 1px solid ${Go.colorOutline};
691
- border-radius: ${Go.borderRadius};
689
+ background: ${Yo.colorSurface};
690
+ border: 1px solid ${Yo.colorOutline};
691
+ border-radius: ${Yo.borderRadius};
692
692
  }
693
693
 
694
694
  .ft-search-input--input-container {
@@ -703,23 +703,23 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
703
703
  width: 100%;
704
704
  display: grid;
705
705
  padding: 0 8px;
706
- border-radius: ${Go.borderRadius};
706
+ border-radius: ${Yo.borderRadius};
707
707
  }
708
708
 
709
709
  .ft-search-input--input-container:focus-within .ft-search-input--input-outline {
710
- outline: 2px solid ${Go.colorPrimary};
710
+ outline: 2px solid ${Yo.colorPrimary};
711
711
  }
712
712
 
713
713
  .ft-search-input--input {
714
714
  height: 100%;
715
715
  border: none;
716
716
  background-color: transparent;
717
- color: ${Go.colorOnSurface};
717
+ color: ${Yo.colorOnSurface};
718
718
  outline: none;
719
719
  }
720
720
 
721
721
  .ft-search-input--input::placeholder {
722
- color: ${Go.colorOnSurfaceMedium};
722
+ color: ${Yo.colorOnSurfaceMedium};
723
723
  }
724
724
 
725
725
  .ft-search-input--actions {
@@ -729,13 +729,13 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
729
729
  align-items: center;
730
730
  height: 100%;
731
731
 
732
- ${Ot($o.zIndex,`calc(${Go.floatingZIndex} + 1)`)};
732
+ ${Ot(So.zIndex,`calc(${Yo.floatingZIndex} + 1)`)};
733
733
  }
734
734
 
735
735
  .ft-search-input > ft-button,
736
736
  .ft-search-input--actions ft-button {
737
737
  flex-shrink: 0;
738
- ${Ot(_o.backgroundColor,"transparent")};
738
+ ${Ot(Wo.backgroundColor,"transparent")};
739
739
  }
740
740
 
741
741
  .ft-search-input .ft-search-input--launch-search,
@@ -753,31 +753,31 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
753
753
 
754
754
  .ft-search-input--separator {
755
755
  height: 20px;
756
- border-right: 1px solid ${Go.colorOutline};
756
+ border-right: 1px solid ${Yo.colorOutline};
757
757
  }
758
- `,Yo=w`
759
- `,tr=Ri.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 er{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=tr.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?er.build(t):null!==(e=er.API)&&void 0!==e?e:er.API=er.build()}static await(t){return new Promise((e=>{let i=er.get(t);if(i)e(i);else{const n=tr.subscribe((()=>{i=er.get(t),i&&(n(),e(i))}))}}))}}var ir;const nr=Symbol("clearAfterUnitTest");class or{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[ir]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=tr.getState().uiLocale,tr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=tr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};h(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new Ft(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}ir=nr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new or((async(t,e)=>(await er.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new or((async(t,e)=>(await er.await()).getCustomMessageContext(t,e))));const rr=window.FluidTopicsI18nService,sr=window.FluidTopicsCustomI18nService;var ar=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class lr extends Mt{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=()=>er.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return tt`
758
+ `,er=w`
759
+ `,ir=Ai.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 nr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=ir.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?nr.build(t):null!==(e=nr.API)&&void 0!==e?e:nr.API=nr.build()}static await(t){return new Promise((e=>{let i=nr.get(t);if(i)e(i);else{const n=ir.subscribe((()=>{i=nr.get(t),i&&(n(),e(i))}))}}))}}var or;const rr=Symbol("clearAfterUnitTest");class sr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[or]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=ir.getState().uiLocale,ir.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ir.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};h(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new Ft(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}or=rr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new sr((async(t,e)=>(await nr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new sr((async(t,e)=>(await nr.await()).getCustomMessageContext(t,e))));const ar=window.FluidTopicsI18nService,lr=window.FluidTopicsCustomI18nService;var cr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ur extends Mt{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=()=>nr.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return tt`
760
760
  <slot></slot>
761
- `}updated(t){super.updated(t),t.has("baseUrl")&&tr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&tr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&tr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&tr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&tr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&tr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&tr.actions.setSession(this.session),t.has("availableUiLocales")&&tr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>rr.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()))))}}lr.elementDefinitions={},lr.styles=Yo,ar([s()],lr.prototype,"baseUrl",void 0),ar([s()],lr.prototype,"apiIntegrationIdentifier",void 0),ar([s()],lr.prototype,"uiLocale",void 0),ar([d([])],lr.prototype,"availableUiLocales",void 0),ar([s({type:Boolean})],lr.prototype,"editorMode",void 0),ar([s({type:Boolean})],lr.prototype,"noCustom",void 0),ar([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],lr.prototype,"noCustomComponent",void 0),ar([s({type:Boolean})],lr.prototype,"withManualResources",void 0),ar([d([])],lr.prototype,"messageContexts",void 0),ar([d(void 0)],lr.prototype,"session",void 0),ar([s({type:Object})],lr.prototype,"apiProvider",void 0),p("ft-app-context")(lr);var cr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ur extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const fr=Symbol("registerInterval");class hr extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[fr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[fr]):this.dispatchEvent(new ur)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=fr,cr([a()],i.prototype,"stateManager",void 0),i}(Ci)){}const pr=w`
762
- `;var dr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const vr=Symbol("i18nProperties"),br=Symbol("i18nUnsubs");function yr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?sr:rr}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[vr])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[vr])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[vr]&&new Set([...this[vr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[br].has(t)||this[br].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[br].forEach((t=>t())),this[br].clear()}}return e=br,dr([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class gr extends(yr(Mt)){}class mr extends(yr(Ci)){}var xr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class wr extends mr{constructor(){super(),this.editorMode=!1,this.addStore(tr)}render(){return this.key&&this.context?tt`
761
+ `}updated(t){super.updated(t),t.has("baseUrl")&&ir.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ir.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ir.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ir.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ir.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ir.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ir.actions.setSession(this.session),t.has("availableUiLocales")&&ir.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ar.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}ur.elementDefinitions={},ur.styles=er,cr([s()],ur.prototype,"baseUrl",void 0),cr([s()],ur.prototype,"apiIntegrationIdentifier",void 0),cr([s()],ur.prototype,"uiLocale",void 0),cr([d([])],ur.prototype,"availableUiLocales",void 0),cr([s({type:Boolean})],ur.prototype,"editorMode",void 0),cr([s({type:Boolean})],ur.prototype,"noCustom",void 0),cr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ur.prototype,"noCustomComponent",void 0),cr([s({type:Boolean})],ur.prototype,"withManualResources",void 0),cr([d([])],ur.prototype,"messageContexts",void 0),cr([d(void 0)],ur.prototype,"session",void 0),cr([s({type:Object})],ur.prototype,"apiProvider",void 0),p("ft-app-context")(ur);var fr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class hr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const pr=Symbol("registerInterval");class dr extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[pr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[pr]):this.dispatchEvent(new hr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=pr,fr([a()],i.prototype,"stateManager",void 0),i}(Ri)){}const vr=w`
762
+ `;var br=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const yr=Symbol("i18nProperties"),gr=Symbol("i18nUnsubs");function mr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?lr:ar}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[yr])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[yr])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[yr]&&new Set([...this[yr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[gr].has(t)||this[gr].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[gr].forEach((t=>t())),this[gr].clear()}}return e=gr,br([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class xr extends(mr(Mt)){}class wr extends(mr(Ri)){}var $r=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Or extends wr{constructor(){super(),this.editorMode=!1,this.addStore(ir)}render(){return this.key&&this.context?tt`
763
763
  <span class="ft-i18n">
764
764
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
765
765
  </span>
766
- `:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}wr.elementDefinitions={},wr.styles=pr,xr([Ei()],wr.prototype,"editorMode",void 0),xr([s()],wr.prototype,"context",void 0),xr([s()],wr.prototype,"key",void 0),xr([d([])],wr.prototype,"args",void 0),xr([s()],wr.prototype,"defaultMessage",void 0);class $r{static build(t){return new $r(t)}static fromGwt(t){return new $r(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>rr.resolveMessage(this.name,e,...t)})}}p("ft-i18n")(wr);const Or=$r.build("designedSearchInput"),Sr=w`
766
+ `:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Or.elementDefinitions={},Or.styles=vr,$r([ki()],Or.prototype,"editorMode",void 0),$r([s()],Or.prototype,"context",void 0),$r([s()],Or.prototype,"key",void 0),$r([d([])],Or.prototype,"args",void 0),$r([s()],Or.prototype,"defaultMessage",void 0);class Sr{static build(t){return new Sr(t)}static fromGwt(t){return new Sr(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>ar.resolveMessage(this.name,e,...t)})}}p("ft-i18n")(Or);const Er=Sr.build("designedSearchInput"),kr=w`
767
767
  * {
768
768
  box-sizing: border-box;
769
769
  }
770
770
 
771
771
  .ft-search-input-suggestion {
772
772
  position: absolute;
773
- z-index: ${Go.floatingZIndex};
773
+ z-index: ${Yo.floatingZIndex};
774
774
  top: calc(100% + 2px);
775
775
  left: -1px;
776
776
  right: -1px;
777
- background: ${Go.colorSurface};
778
- border: 1px solid ${Go.colorOutline};
779
- border-radius: 0 0 ${Go.borderRadius} ${Go.borderRadius};
780
- box-shadow: ${Go.elevation02};
777
+ background: ${Yo.colorSurface};
778
+ border: 1px solid ${Yo.colorOutline};
779
+ border-radius: 0 0 ${Yo.borderRadius} ${Yo.borderRadius};
780
+ box-shadow: ${Yo.elevation02};
781
781
  }
782
782
 
783
783
  .ft-search-input-suggestion--suggestion {
@@ -788,7 +788,7 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
788
788
  padding: 8px;
789
789
  gap: 8px;
790
790
  cursor: pointer;
791
- color: ${Go.colorOnSurface};
791
+ color: ${Yo.colorOnSurface};
792
792
  min-height: 44px;
793
793
  }
794
794
 
@@ -810,11 +810,11 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
810
810
  * @license
811
811
  * Copyright 2020 Google LLC
812
812
  * SPDX-License-Identifier: BSD-3-Clause
813
- */,{I:Er}=bt,kr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(kr(),r),n=o.insertBefore(kr(),r);i=new Er(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Cr=(t,e,i=t)=>(t._$AI(e,i),t),Nr={},Rr=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Mr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},Ar=zi(class extends Ti{constructor(t){if(super(t),t.type!==Ii)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const o=[],r=[];let s=0;for(const e of t)o[s]=n?n(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var o;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let u,f,h=0,p=r.length-1,d=0,v=s.length-1;for(;h<=p&&d<=v;)if(null===r[h])h++;else if(null===r[p])p--;else if(l[h]===a[d])c[d]=Cr(r[h],s[d]),h++,d++;else if(l[p]===a[v])c[v]=Cr(r[p],s[v]),p--,v--;else if(l[h]===a[v])c[v]=Cr(r[h],s[v]),jr(t,c[v+1],r[h]),h++,v--;else if(l[p]===a[d])c[d]=Cr(r[p],s[d]),jr(t,r[h],r[p]),p--,d++;else if(void 0===u&&(u=Mr(a,d,v),f=Mr(l,h,p)),u.has(l[h]))if(u.has(l[p])){const e=f.get(a[d]),i=void 0!==e?r[e]:null;if(null===i){const e=jr(t,r[h]);Cr(e,s[d]),c[d]=e}else c[d]=Cr(i,s[d]),jr(t,r[h],i),r[e]=null;d++}else Rr(r[p]),p--;else Rr(r[h]),h++;for(;d<=v;){const e=jr(t,c[v+1]);Cr(e,s[d]),c[d++]=e}for(;h<=p;){const t=r[h++];null!==t&&Rr(t)}return this.ht=a,((t,e=Nr)=>{t._$AH=e})(t,c),et}});var Ur=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Pr extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let Fr=class extends hr{render(){return tt`
813
+ */,{I:jr}=bt,Cr=()=>document.createComment(""),Nr=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Cr(),r),n=o.insertBefore(Cr(),r);i=new jr(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Rr=(t,e,i=t)=>(t._$AI(e,i),t),Mr={},Ar=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Ur=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},Pr=Li(class extends Bi{constructor(t){if(super(t),t.type!==Ti)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const o=[],r=[];let s=0;for(const e of t)o[s]=n?n(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var o;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let u,f,h=0,p=r.length-1,d=0,v=s.length-1;for(;h<=p&&d<=v;)if(null===r[h])h++;else if(null===r[p])p--;else if(l[h]===a[d])c[d]=Rr(r[h],s[d]),h++,d++;else if(l[p]===a[v])c[v]=Rr(r[p],s[v]),p--,v--;else if(l[h]===a[v])c[v]=Rr(r[h],s[v]),Nr(t,c[v+1],r[h]),h++,v--;else if(l[p]===a[d])c[d]=Rr(r[p],s[d]),Nr(t,r[h],r[p]),p--,d++;else if(void 0===u&&(u=Ur(a,d,v),f=Ur(l,h,p)),u.has(l[h]))if(u.has(l[p])){const e=f.get(a[d]),i=void 0!==e?r[e]:null;if(null===i){const e=Nr(t,r[h]);Rr(e,s[d]),c[d]=e}else c[d]=Rr(i,s[d]),Nr(t,r[h],i),r[e]=null;d++}else Ar(r[p]),p--;else Ar(r[h]),h++;for(;d<=v;){const e=Nr(t,c[v+1]);Rr(e,s[d]),c[d++]=e}for(;h<=p;){const t=r[h++];null!==t&&Ar(t)}return this.ht=a,((t,e=Mr)=>{t._$AH=e})(t,c),et}});var Fr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ir extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let zr=class extends dr{render(){return tt`
814
814
  <div class="ft-search-input-suggestion ft-word-wrap"
815
815
  part="container"
816
816
  @keydown=${t=>this.onSuggestKeyDown(t)}>
817
- ${Ar(this.suggestResults||[],(t=>t.value),(t=>tt`
817
+ ${Pr(this.suggestResults||[],(t=>t.value),(t=>tt`
818
818
  <a href="#"
819
819
  part="suggestion"
820
820
  class="ft-search-input-suggestion--suggestion"
@@ -826,16 +826,16 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
826
826
  </a>
827
827
  `))}
828
828
  </div>
829
- `}onSuggestKeyDown(t){var e,i,n,o,r,s;switch(t.key){case"ArrowUp":null===(n=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(s=null!==(r=null===(o=this.getFocusedSuggestionElement())||void 0===o?void 0:o.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===s||s.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new Pr(e))}getIcon(t){const e="DOCUMENT"===t.type?zo.file_format:zo.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?Mo.BOOK:Mo.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,n,o,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[s,a]=((null!==(i=Po.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(r=null!==(o=null!==(n=Uo.get(a))&&void 0!==n?n:Uo.get(e))&&void 0!==o?o:Uo.get(s))&&void 0!==r?r:Ao.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=Mo.TOPICS}return tt`
829
+ `}onSuggestKeyDown(t){var e,i,n,o,r,s;switch(t.key){case"ArrowUp":null===(n=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(s=null!==(r=null===(o=this.getFocusedSuggestionElement())||void 0===o?void 0:o.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===s||s.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new Ir(e))}getIcon(t){const e="DOCUMENT"===t.type?Lo.file_format:Lo.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?Uo.BOOK:Uo.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,n,o,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[s,a]=((null!==(i=Io.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(r=null!==(o=null!==(n=Fo.get(a))&&void 0!==n?n:Fo.get(e))&&void 0!==o?o:Fo.get(s))&&void 0!==r?r:Po.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=Uo.TOPICS}return tt`
830
830
  <ft-icon .variant="${e}" .value="${i}" part="suggestion-icon"></ft-icon>
831
- `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};Fr.elementDefinitions={"ft-ripple":Xi,"ft-typography":wo,"ft-icon":Lo},Fr.styles=[Ut,Sr],Ur([Ei()],Fr.prototype,"suggestResults",void 0),Fr=Ur([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(t,e))("ft-search-input-suggestion")],Fr);var Ir=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zr extends(yr(hr)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(Or)}render(){var t,e;let i={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return tt`
832
- <div class="${Li(i)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
831
+ `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};zr.elementDefinitions={"ft-ripple":Qi,"ft-typography":Oo,"ft-icon":_o},zr.styles=[Ut,kr],Fr([ki()],zr.prototype,"suggestResults",void 0),zr=Fr([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(t,e))("ft-search-input-suggestion")],zr);var Tr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Lr extends(mr(dr)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(Er)}render(){var t,e;let i={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return tt`
832
+ <div class="${_i(i)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
833
833
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
834
834
  <div class="ft-search-input--input-outline" part="input-outline">
835
835
  <input class="ft-search-input--input ft-typography--body2"
836
836
  part="input"
837
837
  type="text"
838
- placeholder="${Or.messages.placeholder()}"
838
+ placeholder="${Er.messages.placeholder()}"
839
839
  .value="${this.liveQuery}"
840
840
  @keydown=${t=>this.onSearchBarKeyDown(t)}
841
841
  @keyup=${t=>this.onSearchBarKeyUp(t)}>
@@ -851,7 +851,7 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
851
851
  part="clear-query"
852
852
  icon="close"
853
853
  round dense
854
- label="${Or.messages.clearButton()}"
854
+ label="${Er.messages.clearButton()}"
855
855
  @click=${()=>this.liveQuery=""}
856
856
  ></ft-button>
857
857
  <div class="ft-search-input--separator"></div>
@@ -860,9 +860,9 @@ class No extends Ti{constructor(t){if(super(t),this.et=it,t.type!==Ii)throw Erro
860
860
  part="launch-search-in-input"
861
861
  icon="search"
862
862
  round dense
863
- label="${Or.messages.searchButton()}"
863
+ label="${Er.messages.searchButton()}"
864
864
  @click=${()=>this.launchSearch()}
865
865
  ></ft-button>
866
866
  </div>
867
867
  </div>
868
- `}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var e,i;"Enter"===t.key?(null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(i=this.stateManager)||void 0===i||i.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}zr.elementDefinitions={"ft-search-input-suggestion":Fr,"ft-button":Xo},zr.styles=[po,Qo],Ir([Ei()],zr.prototype,"request",void 0),Ir([Ei()],zr.prototype,"liveQuery",void 0),Ir([Ei()],zr.prototype,"suggestResults",void 0),Ir([a()],zr.prototype,"forceCloseSuggestion",void 0),Ir([c(".ft-search-input--input")],zr.prototype,"input",void 0),Ir([c("ft-search-input-suggestion")],zr.prototype,"suggestion",void 0),p("ft-search-input")(zr),t.FtSearchInput=zr,t.FtSearchInputCssVariables=Go,t.styles=Qo}({});
868
+ `}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var e,i;"Enter"===t.key?(null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(i=this.stateManager)||void 0===i||i.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}Lr.elementDefinitions={"ft-search-input-suggestion":zr,"ft-button":Qo},Lr.styles=[bo,tr],Tr([ki()],Lr.prototype,"request",void 0),Tr([ki()],Lr.prototype,"liveQuery",void 0),Tr([ki()],Lr.prototype,"suggestResults",void 0),Tr([a()],Lr.prototype,"forceCloseSuggestion",void 0),Tr([c(".ft-search-input--input")],Lr.prototype,"input",void 0),Tr([c("ft-search-input-suggestion")],Lr.prototype,"suggestion",void 0),p("ft-search-input")(Lr),t.FtSearchInput=Lr,t.FtSearchInputCssVariables=Yo,t.styles=tr}({});